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

How to echo environment variable on Linux

How to echo environment variable on Linux

Environment variables contain data about the current system configuration. These variables are mostly referenced by scripts and system programs that need some information on the current configuration in order to adapt to various scenarios. For example, a script might check an environment variable to see what language is set on the computer, and then output prompts in the target language. One of the most commonly accessed environment variables is the PATH environment variable.

Read more

How to run JAR file on Linux

How to run JAR file on Linux

JAR files are those that have been coded and compiled using the Java programming language. In order to run these files on a Linux system, the Java Runtime Environment (JRE) software must be installed first. This is just a software package that allows the system to understand JAR files, and therefore gives it the ability to open and run them. Usually, the JRE package is not installed on most Linux distros by default, so we must first install Java, and then we can open the JAR file(s).

Read more