Hello world in Rust on Linux

Hello world in Rust on Linux

The Rust programming language first appeared in 2015 and has rapidly risen in popularity over the years. As of late 2022, it has become officially supported in the development of the Linux kernel, alongside long time staples C and assembly. It is a general purpose language that can be suitable for many types of projects, with advantages like performance and memory safety.

Read more

How to start with OpenCV on Ubuntu Linux

How to start with OpenCV on Ubuntu Linux

OpenCV is a computer vision library that can be used in the development of applications programmed in C++ and C. It is relatively easy to get started with OpenCV, but you will need some basic C programming skills and the prerequisite packages installed on your system. In this tutorial, we will go through the step by step instructions of installing everything required for OpenCV on an Ubuntu Linux system. Then, we will compile a basic program to get you started with using OpenCV.

Read more

Python editors on Raspberry Pi

Python editors on Raspberry Pi

The Raspberry Pi can be an excellent choice for developers or hobbyist programmers as a small and lightweight workstation. Python is already installed by default on the Raspberry Pi, if you are running the default Raspberry Pi OS. Despite its small size, the Raspberry Pi contains hardware that is plenty sufficient to run a Python IDE so you can crank out your Python code. Unfortunately, some editors do not have ARM support, so our choices are slightly smaller on the Raspberry Pi.

Read more

How to change Python versions on Raspberry Pi

How to change Python versions on Raspberry Pi

It is possible to have multiple versions of Python installed on the Raspberry Pi simultaneously. It is also simple enough to switch between the versions, which may come in handy for Python programmers that need to support a mix of legacy and modern Python code. Or, perhaps you want to try out a new beta or nightly Python build, without replacing the more stable copy you already have. In this tutorial, you will see how to change between various Python versions on the Raspberry Pi.

Read more

How to autostart Python script on Raspberry Pi

How to autostart Python script on Raspberry Pi

Many users want their Raspberry Pi to perform tasks unattended, as part of automating the Raspberry Pi. This cuts down on repetitive tasks that usually fall on the administrator’s lap. A common way to trigger automatic events is when the Raspberry Pi first boots up. Such a configuration allows us to start a Python script automatically every time the Raspberry Pi first boots up.

Read more

Exit code 127 error status in Bash script

Exit code 127 error status in Bash script

Are you receiving a exit code 127 error when trying to execute a Bash script? This means that your Linux system was not able to find the command referenced inside of the script, which could indicate that the path to the command is not valid, or the command is not installed at all. In this tutorial, we’ll explain what causes this “command not found” error and show you how to fix it.

Read more

How to autostart Bash script on startup on Raspberry Pi

How to autostart Bash script on startup on Raspberry Pi

Many users want their Raspberry Pi to perform tasks unattended, as part of automating the Raspberry Pi. This cuts down on repetitive tasks that usually fall on the administrator’s lap. A common way to trigger automatic events is when the Raspberry Pi first boots up. Such a configuration allows us to start a Bash script automatically every time the Raspberry Pi first boots up.

Read more

How to embed documentation in shell scripts using Pearl's Plain Old Documentation syntax

How to embed documentation in Bash scripts

Documenting how an application works, its purpose, and its intended usage is really important, even if it is just a simple shell script we are talking about. To ease code maintenance in the most basic cases, documentation can be embed directly inside scripts. In this tutorial we learn how to include Pearl’s Plain Old Documentation syntax (POD) in bash scripts, and how to convert it to various formats using pod2 utilities such as pod2man and pod2html.

Read more

Setting Up Jekyll with Nginx on Debian and Ubuntu Systems

Creating a static website and hosting it has never been easier, thanks to modern web development tools such as Jekyll. Jekyll is a static site generator powered by Ruby that allows you to create fast, secure, and easily maintainable websites. When combined with Nginx, a powerful HTTP server and reverse proxy, you have a powerful and flexible website deployment mechanism. This guide explains how to set up Jekyll with Nginx as a reverse proxy on Debian and Ubuntu systems.

Read more

how to monitor filesystem events on files and directories on linux

How to monitor filesystem events on files and directories on Linux

Inode notify (inotify) is a Linux kenel subsystem which provides APIs to to monitor filesystem events. Besides communicating with such APIs from proper programming languages, it is possible to take advantage of the exposed functionalities by using some explicitly designed command line tools such as inotifywait, which can be easily installed in all the major Linux distributions.

Read more

Debian USB Firmware Loader Script

In this article, we explore an efficient bash script, debian_firmware_setup.sh, that simplifies the process of integrating non-free firmware, such as Wi-Fi drivers, into your Debian installation. The script automates the preparation of a USB stick by formatting it, downloading a specified version of Debian non-free firmware, and extracting it onto the USB stick. This results in a ready-to-use USB device that can be deployed during a Debian installation process, thereby easing the setup of non-free firmware elements and reducing the hassle often associated with manual firmware integration.

Read more

Creating a Bootable USB for Windows 10 and 11 on Linux

Creating a bootable USB drive is often necessary when you want to install or repair an operating system. This guide provides detailed steps on how to create a bootable USB drive for Windows 10 or 11 using Linux (both Debian and RPM-based distributions).

Our handy script does all the heavy lifting, making this task a breeze. The script operates by formatting the USB drive, and then copying the ISO file to the USB drive.

Read more