smolOS brings a Linux-like command line interface to ESP8266 microcontroller

smolOS command line ESP8266

smolOS (pronounced small OS) is an open-source, lightweight MicroPython program that implements a POSIX-style (Linux-like) command line interface for the ESP8266 WiFi microcontroller. Krzysztof Jankowski (w84death) designed smolOS to be easy to use, allowing the listing and removing of files and also including the smolEDitor which, as its name implies, is a simple text editor. There are currently eight commands with the familiar ls, cat, and rm, plus ed to launch the text editor, welcome to show the welcome screen above, cls to clear the screen, mhz to set the processor speed to 80 or 160 MHz, and info to display some hardware and software information. The project looks to be a work in progress, and the developer highlights the editor is at the alpha stage of development, so more features may be implemented over time by Krzysztof himself or by the community of developers. I also assume other microcontrollers […]

Lnav Log Files Navigator Helps You Analyze Log Files in a Mac OS or Linux Terminal

lnav log files navigator

If you have a problem with your computer, you may have to go through log files, or as a software engineer, you may be looking for clues about a bug in a debug or error log. It can be done in any text editor, but there may be a better way thanks to lnav Log Files Navigator that allows checking those files more easily and efficiently in a Mac OS or Linux terminal. The following log files are supported by default even if they are compressed with gzip or bzip2: Common Web Access Log format CUPS page_log Syslog Glog VMware ESXi/vCenter Logs dpkg.log uWSGI “Generic” – Any message that starts with a timestamp Strace lnav is open-source software released under a BSD-2 clause in Github. It’s not new at all as some commits were made in January 2010, but it’s new to me, and hopefully to some of you as […]

Connect up to 32 Relays to Raspberry Pi with a Stackable 4-Relay Board (Crowdfunding)

Stackable Relay HAT Raspberry Pi

People have been playing with off-the-shelf relays on Raspberry Pi boards ever since it was released in 2012, and over the years, some companies have maybe Raspberry Pi-specific relay boards such as Strawberry4Pi and Pi-OT. Two years ago, Sequent Microsystems introduced a stackable 8-Relay board enabling up to 64 relays to be connected to a single Raspberry Pi board. The 8-relay board only supported 24V/2.5A, and the company is now back on Kickstarter with a 4-relay board with 250V/10A line-switching relays that can offer up to 32 relays by stacking 8 boards connected to one Raspberry Pi board via the 40-pin I/O header. The board comes with four Songle 250V/10A relays, 3-pin pluggable connectors that accept 18 to 22 AWG wires, and a 5V/3A power supply is recommended. If you stack multiple relay board a beefier power supply may be required. Here are some power consumption numbers provided by the […]

BashTop is a Linux Resource Monitor for the Terminal

bashtop linux terminal monitor

Neil Amstrong of BayLibre recently added ODROID-C4 support to Armbian,  fired up Rosetta@Home on the Amlogic S905X3 SBC, and took a  screenshot of some kind of advanced htop program showing the Rosetta@Home and other processes running. And… Rosetta@Home starting ! pic.twitter.com/w10hjwppLR — Neil Armstrong (@Superna9999) April 27, 2020 The program used happens to be BashTop a recently released Linux resource monitor written in Bash and running in a terminal. Installing the script and running it is super easy:

I tried it in an AMD Ryzen 7 laptop running Ubuntu 18.04. You’ll need at least a 80×25 terminal window, but it looks much better in full screen. It shows CPU use in graphical and text forms, memory and storage usage, a list of processes, as well as network usage both in graphical and text forms. You can also select each individual process to get more information or kill it. If […]

Arduino Releases Command Line Interface (CLI) Alpha Preview

arduino-cli

So far, AFAIK the only official ways to program Arduino boards were through the Arduino IDE program, or the cloud-based Arduino Create which works in your web browser and does not require any installation on your computer. While graphical interfaces are nice and user-friendly, many of us are more productive while working using the command line,  especially if commands can be scripted. So Arduino decided to work on a command line interface (CLI) for professional users, and have just announced a preview release. arduino-cli works in Windows, Linux, and Mac OS, and allows you install libraries, boards, and cores (e.g. esp32 Arduino core), compile the code, and upload the binary to the target board. If you want to get started quickly, you can download the binary “alpha” releases in the announcement board, but instead I opted to build the client myself as explained on Github. Everything below is done in […]

Borg Lets You Search for Bash Commands within the Terminal

There are so many commands available in bash that it’s impossible to know them all, and some commands are rarely run. Usually, you have to switch to your web browser to search for a solution or spending time reading through the manpage. In case you’d like to search for a specific command line you can now do so with borg script. If you want to give it a try, you can install it in Linux as follows:

Then run the script with your search query in quotes. Some explanations for the output: () denotes hits for your query [] denotes possible solutions … under a [] means more lines to display a “–” in a solution means separate code examples extracted from the same source Some queries are returning useful results such as “list all files in dir” as show in the screenshot above, but others not so, as […]

Windows Subsystem for Linux (Ubuntu Bash on Windows) Benchmarked Against Native Ubuntu 14.04 and 16.04

Microsoft recently announced that they brought Ubuntu userspace to Windows, and that this features will be officially released in Windows 10’s Anniversary Update and called Windows Subsystem for Linux. But people part of the company’s insider program can already try the beta version of “Bash on Windows”, and Phoronix ran some benchmarks in bash in Windows 10, and repeated the tests in Ubuntu 16.04, Ubuntu 14.04, and Clear Linux. The test machine was based on an Intel Xeon E3-1280 v5 Skylake CPUwith 16GB of RAM and 120GB Samsung 850 EVO SSD. Many of the results show Windows Subsystem for Linux (I’ll just call it Windows 10 in the rest of the post) just performing a little slower than on the Linux distributions, but there are also some outliers, which I’m going to cover here. The most surprising results is when Windows 10 clearly outperforms Linux at its own game which […]

Microsoft Brings Bash on Ubuntu on Windows 10

Yes, you’ve read that right, and no, it’s not an April Fools’ Day prank, Microsoft and Canonical really cooperated to bring Ubuntu user space to Windows 10 allowing developers and others to run bash commands directly into Windows. All you’ll need to do is to install Ubuntu on Windows app, hit the Windows key, and type bash to get a terminal window. Once you are in bash, you can run any Ubuntu command line, including apt-get to install packages, just like if you were in a terminal in Ubuntu, and all binaries are the same as in Ubuntu, as Microsoft implemented new infrastructure within Windows called the Windows Subsystem for Linux (WSL). That means Ubuntu runs without Linux, but instead the implementation is a conversion layer somewhat similar to Wine to run Windows programs in Ubuntu, or Libhybris to convert Linux calls to Android calls. Dustin Kirkland, in charge of […]

Memfault IoT and embedded debugging platform