Author: admin

You may want to launch a script or program on boot, but you don’t see an option for it on Raspberry Pi OS. It’s a question I often hear about, and the methods are not intuitive. In this post, I’ll show you several ways to accomplish this goal. On Raspberry Pi OS, the easiest solution to start automatically a program on boot is to use the crontab with the @reboot event. There are also other methods using the Linux init systems. So yes, it’s possible, but you’ll need to go with the solution that best fits your needs. You can…

Read More

So, in this article, we will share a list of the best hacking tools for Windows, Linux, and Mac OS X. Most of the tools listed in the report were free. We have written the article for educational purposes; please don’t use these tools for evil purposes. 1. Metasploit Rather than calling Metasploit a collection of exploit tools, I’ll call it an infrastructure you can utilize to build your custom tools. This free tool is one of the most prevalent cybersecurity tools that allow you to locate vulnerabilities on different platforms. Metasploit is backed by more than 200,000 users and…

Read More

rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. This is the first sentence in the long rpm manual that lacks examples. On the other hand, I will try to write nothing more but the rpm examples. Before examples, just to mention that RPM stands for the RedHat Package Manager. Enjoy! # save and sort all installed packages to the /tmp/packages.txt file rpm -qa | sort> /tmp/packages.txt# list all files contained in rpm package “bash” (“bash” package is installed)rpm -ql bash # list all files in non installed…

Read More

Post describes how to copy installed virtual machine from Fedora to another RedHat family host. This procedure consists of disk image copy and VM configuration in few steps. In other words, guest OS can be very easily copied or cloned to the new host and here is how: Contents 1. Does new host has hardware virtualization?First make sure that CPU on new Linux host has hardware virtualization (svm is for AMD, vmx for Intel). Virtualization Technology (VT) is a set of enhancements to newer processors that improve performance for running a virtual machine by offloading some of the work to the new cpu…

Read More

By default, Virtual Machine Manager on Linux (in my case on Fedora) will ask for root password before starting up. Every time I clicked on Applications -> System Tools -> Virtual Machine Manager password popup appeared no matter I’m the only user on my PC. If you have the same situation, here are few steps how to get rid of entering root password each time you start VM manager. 1) Open /etc/libvirt/libvirtd.conf file and uncomment two lines With activation unix_sock_rw_perms line, change permission from 0770 to 0777: # If not using PolicyKit and setting group ownership for access# control then you may want to…

Read More

In short, steps to create USB drive on Linux are: delete all, create partition, set partition type, mark it as active and write changes to disk. After new partition is created, with mkfs command it’s needed to create FAT32 file system. This may sound scary, but the only tricky part is to use correct device name (in my case it was sdg). When USB drive is plugged, kernel will write lines to /var/log/message so it can be watched with “tail -f” or USB drive can be listed in “/dev/disk/by-id/” directory. Here is how to list symbolic links for mounted drives (drives can be…

Read More

VMWare ESXi is a virtualization system that allows us to run multiple virtual machines on the same host. VMWare recently released an ARM version, allowing us to install it on the Raspberry Pi.However, we have already seen simpler systems to install.The official installation guide is nearly 20 pages long, but I will summarize it here for you. VMWare ESXi Arm Edition is available on the VMWare Flings website.Before the installation, there are a few settings to change in the Raspberry Pi BIOS.After that, the system can be installed on a USB key and will run from there. It may appear…

Read More

Every year, new Raspberry Pi models with more RAM and CPU power are released, and virtualization is now a frequent topic on this website. It wasn’t always like this. Today, we’ll talk about Proxmox, a method I haven’t previously covered for hosting virtual machines (VM) on Raspberry Pi. Although Proxmox is not directly available on the Raspberry Pi, we may nevertheless accomplish the same goals by using the Pimox project, which is a port of Proxmox for the Raspberry Pi. Once the prerequisites are installed, the installation is simple because an auto-installation script is available. On paper, it appears to…

Read More

When you log in to a Linux server, it’s not obvious which applications are installed. Especially if you are on a server with only a terminal to control it. In this tutorial, I talk specifically about MySQL and tell you how you can quickly check whether the service is already installed or not (and the client too!). On Linux, the command line “mysqld –version” will return the MySQL server version only if it’s installed on the computer. For the client, the command “mysql –version” can be used to check if the MySQL client is installed. If there is an error…

Read More

What Is USB Rubber Ducky? USB Rubber ducky is an HID (Human Interface Device) device that looks similar to a USB Pen drive. It may be used to inject keystrokes into a system, used to hack a system, steal victim’s essential and credential data can inject payload to the victim’s computers. The main important thing about USB Rubber ducky is that it cannot be detected by any Anti-Virus or Firewall as it acts as an HID device. Tools & Software Required: Configuring Raspberry Pi Pico First, we need to set up the raspberry pi pico to show up as a hid…

Read More

The Raspberry Pi is the perfect device to build a cheap NAS server at home. It doesn’t require more resources for a few users, and you can use large SD cards or external hard drives to store enough data for personal use. There are several ways to build that kind of server, and in this article, I will explore the options that are supported on Raspberry Pi, starting with FreeNAS (now rebranded as TrueNAS). FreeNAS (or TrueNAS) requires an Intel or AMD 64-bit CPU. These are not ARM architectures, and so the Raspberry Pi is not supported. But other options,…

Read More

If you want to host a file server on your Raspberry Pi, OpenMediaVault is a great choice that will make your life easier. It offers a web interface to manage everything on your devices: from your storage drives (detection, mounting, formatting) to your file sharing (creation, permissions, user management, etc.). I used this distribution a lot in my job as a system administrator, so I will explain how to use the distribution on a Raspberry Pi in this article. OpenMediaVault is software that can be installed on any Debian-based distribution, like Raspberry Pi OS (Lite is enough). It can be…

Read More

Have you always dreamed of having a family NAS with your backups and movies? But you do not necessarily have the budget for that?Raspberry Pi allows you to do that at a lower cost, and I will give you all the details in this post. How to turn your Raspberry Pi into a file server?To use a Raspberry Pi as a file server, a service, named Samba is available.Once installed and configured correctly, files on the Raspberry Pi can be shared with everyone on the same network. We will now see in detail a typical installation, i.e., how to install…

Read More

If like me, you make many changes on your Raspberry Pi, it might be a good idea to create backups.And what’s even better is to make sure backups are recoverable 🙂Yes, but then how to backup a Raspberry Pi and recover it? That what we’ll see in this complete guide. The best way to create a backup of a Raspberry Pi is to use a tool like rsync, and copy the important files to another location on the network.It’s also possible to create entire backups of the SD card, to make sure everything is secured. As often, there is not…

Read More

SD cards sizes are not (yet) unlimited. If you have a small SD card or are trying many things, you’ll probably run out of space quickly.In this tutorial, I’ll show you how to find what takes up space on your SD card and how to remove it when possible. The best way to free up space on Raspberry Pi is to uninstall pre-installed applications that are not used. For example, Wolfram is taking almost 1 GB on the SD card on a fresh installation of Raspberry Pi OS. You’ll find two parts in this guide, one for each Raspberry Pi…

Read More

I conduct many tests on Raspberry Pi that require me to install many applications, but I don’t necessarily clean up when finished. If you are here, you are probably in the same boat :).Let’s learn how to easily uninstall your applications. To remove applications on Raspberry Pi OS with Desktop, use the “Add/Remove Software tool” and uncheck the programs to uninstall. It’s also possible to do this with a command line: sudo apt remove package_name in a terminal. In this article, I will show you:– How to get a list of currently installed packages.– How to uninstall applications from your Raspberry…

Read More

Twister OS is a Linux distribution, built on the Raspberry Pi OS system, it’s designed mainly for the Raspberry Pi 4 but works on Raspberry Pi 3.I discovered this distribution recently (even if it’s not new, it was known as iRaspbian / Raspbian XP before), and I really like this system.So, I will share my first impressions with you in this post. What is Twister OS?Twister OS is a distribution based on Raspberry Pi OS.The goal is to improve the official OS, add more themes and include the most useful apps for everyone (desktop, gaming, streaming, etc.).It also includes Wine,…

Read More

You probably already asked yourself, is there a way to run multiple operating systems on the same SD card?Yes, it’s possible, and it’s very convenient, as you don’t need to have five cards and flash them, again and again, each time you want to try something else.For a person like me, who writes articles about different distributions, it’s really a time saver. PINN is currently the best option to create a dual boot on a Raspberry Pi. After copying the files to an SD card, PINN will start a wizard to let you choose the operating systems to install on the…

Read More

Chrome OS is the operating system created by Google, and used on their Chromebook devices. You can’t install it directly on other devices, but an open-source version is available : Chromium OS.As for the browser of the same name, Chromium OS can be installed on Raspberry Pi, and I will show you how in this tutorial. Chromium OS is the open-source version of Chrome OS, and is available on Raspberry Pi through a GitHub project: FydeOS. Releases are updated regularly and can be installed on a Raspberry Pi with a tool like Balena Etcher. Thanks to this work of the…

Read More

Raspberry Pi Imager is the ultimate tool for any Raspberry Pi user. It’s still pretty new, and I shunned its use a little when it came out because I preferred Balena Etcher. But lately, I’ve been using it more and more, and the latest add-ons make it even more interesting. I will share everything with you in this article. Raspberry Pi Imager is a tool created by the Raspberry Pi Foundation to install new systems on the tiny Raspberry Pi computer. SD cards and USB drives are supported, as well as the most popular operating systems. It’s also possible to…

Read More

I suppose you just bought a Raspberry Pi Zero, but you didn’t take a complete kit. You are now installing it because there are only mini ports on it (mini USB and mini HDMI). Or maybe you don’t have any screen or keyboard available. Anyway, I’ll help you to install it with nothing: no keyboard, no monitor or even no Ethernet cable. A keyboard and monitor are not required to install a Raspberry Pi. There is a configuration file on the SD card, with an option to enable SSH and set the Wi-Fi automatically on boot. If configured correctly, the Raspberry Pi…

Read More

Using a remote desktop is a very convenient way to access your Raspberry Pi interface from another computer. This way, you can follow my tutorials on this website (for example) and apply them directly from the same device. There are several ways to do this. In this article, I will introduce you to the 5 best methods: XrdpSSH with X11 forwardingVNCTeamviewerNoMachine For each method, I will explain how to set it up on your Raspberry Pi and how to access it from any operating system (Windows, Linux, Mac and even from your smartphones). So keep reading to learn everything about…

Read More

Being able to control your Raspberry Pi from another computer remotely is an important part of the Raspberry Pi’s learning curve. SSH is generally the protocol we use to do this, even if it’s not the only option. If you are new to Linux, Raspberry Pi, or just SSH, you’ve come to the perfect place: I created this guide for you, to answer all of your questions about this method. SSH is a protocol available on Linux systems to execute commands on a Raspberry Pi from another computer. You need to enable it first in the Raspberry Pi configuration, then…

Read More

There are many projects that require the ability to send emails, but creating a mail server can also be a project on its own.So, we will see the different steps of setting up an email server, be it a simple SMTP or a complete suite with webmail. Postfix is the main service to install on Raspberry Pi to host a mail server. It’ll send and receive emails.Then other services can be added, like Dovecot for POP/IMAP support and Roundcube can be used as webmail. We will now learn how to install everything in this step-by-step tutorial. Prerequisites If you want…

Read More

Scheduling commands or scripts on a Raspberry Pi, and on Linux generally, is not easy for a beginner.There are many tips you should know to make it work every time, and we will see them in detail. To schedule a task on Raspberry Pi, there is a tool name “crontab”.This tool is useful to run a script at a specific time or on boot. What is this thing? I will explain to you 🙂 What is crontab? Cron Cron is a service, automatically started at each boot of the Raspberry Pi, which allows the user to execute scheduled commands. Every…

Read More

The Linux file system is very specific and can be hard to understand for newbies on this system.Where are my files? Why is there so many folders and subfolders? etc.The goal of this post today, is to help you to get an overview of the file system on a Raspberry Pi (and on any Linux device) The Linux file system can be seen like a tree. The / location is the root, where the trunk begins.Each sub-folder is a big branch (/home, /var, /etc, …), and these branches also have smaller branches (/home/pi, /var/www, /var/lib, …). We will start by…

Read More

Raspberry Pi OS is installed with two default partitions: /boot which uses about 256 MB, and everything else is available for the system installation (/). But you can change that after the installation, which is particularly useful if you use a big disk like an SSD or a giant SD card/USB drive. I will answer all of your disk partitioning questions in this article. Gparted is a free, graphic partition manager that is often used on Linux systems. It can be installed on Raspberry Pi via the package manager, and used to reformat the SD card as needed. I will start…

Read More

Mounting and formatting USB drives on Linux isn’t the easiest thing to do. This is especially true if you are on a console-only operating system, like Raspberry Pi OS Lite.Today, I’ll show you how to format and mount a USB drive on your Raspberry Pi, whether in terminal or graphic mode. It’s a 3-step process: The first step is to properly identify the device to use (name, partition and file system). Then it can be formatted with a tool like Gparted, and Raspberry Pi OS should mount the USB drive automatically after that (on Desktop versions). In this guide, I’ll…

Read More

Mounting a USB drive can become a real headache and maybe a waste of time, especially if you are new to Raspberry Pi and Linux commands.Today, I’ll give you all the exact information you need to mount a USB drive quickly and easily. In most cases, the USB drive is mounted automatically on Raspberry Pi OS.If needed, the USB drive can be mounted manually by using the following command: sudo mount /dev/sda1 /mnt/usb. The /etc/fstab file can also be edited for an automatic mount on startup. Don’t worry, I’ll explain how to connect your USB key or drive without having…

Read More

OpenVPN is a service to host your own VPN server, without using third-party servers.A VPN is a secured connection between two networks, for example between your phone and your home.In this tutorial, I’ll give you a step-by-step method to install it quickly on Raspberry Pi. OpenVPN is available in the official repository, so it can be installed with apt as for any other package.Then, security must be configured to ensure the data is encrypted correctly between both networks. In fact, I already did a tutorial on how to install OpenVPN a few years ago, but many of you were lost…

Read More

Nowadays, we have more and more multimedia devices at home.In my case, I have: file shares, Raspberry Pi devices for specific projects, home automation and computers.Did you already ask yourself how to access them while not at home?It’s possible if you set up a VPN server, even on a Raspberry Pi. To host a VPN server on Raspberry Pi, the best service is OpenVPN.It allows using home resources from anywhere via an app.The app is available on any operating system, even on smartphone. I’ll explain what a VPN is, how it works and how to install it on a Raspberry…

Read More

You have probably already noticed that after the system installation, all Raspberry Pi on Raspberry Pi OS have the same name.In this post, I will explain to you what it is and how to change it as you want. The easiest way to set the hostname for a new installation, is to use the advanced options in Raspberry Pi Imager and fill the first field with the desired hostname. After the installation, using the configuration tool in a terminal allow you to change it too (sudo raspi-config). That’s it for the short answer, I will now give you all the…

Read More

This article is an introduction to the MQTT protocol. MQTT stands for Message Queuing Telemetry Transport, a simple messaging protocol suitable for communication between IoT devices. What is MQTT? MQTT stands for Message Queuing Telemetry Transport. MQTT is a simple messaging protocol, designed for constrained devices with low bandwidth. So, it’s the perfect solution to exchange data between multiple IoT devices. MQTT communication works as a publish and subscribe system. Devices publish messages on a specific topic. All devices that are subscribed to that topic receive the message. Its main applications include sending messages to control outputs, read and publish data from sensor nodes and much more. MQTT Basic Concepts In MQTT…

Read More

In this post, you’ll configure the WiFi on your Raspberry Pi. If it’s your first time using the RPi, first make sure you read my Getting Started with Raspberry Pi guide. Setting up your WiFi via the command line is the best method, since you don’t necessary need access to the GUI (Graphical User Interface) everything you need is already right there (in your command line). 1) Accessing Your Command Line Boot your Raspberry pi with the WiFi adapter plugged in. You can access your command line using one of the following methods: Having an Ethernet connection ensures that you can open an…

Read More

This article is an introduction to the Node-RED dashboard with Raspberry Pi. We’ll cover how to install Node-RED Dashboard and exemplify how to build a graphical user interface for your IoT and Home Automation projects. Table of Contents: Node-RED Dashboard IntroductionInstalling Node-RED DashboardCreating a User Interface (tabs and groups, theme, site)Creating a User Interface Example Prerequisites: You need a Raspberry Pi board . We assume that you are familiar with the Raspberry Pi, you know how to install the operating system, and you know how to establish an SSH connection with your Pi. You can take a look at the…

Read More

Get started with Node-RED on the Raspberry Pi. Node-RED is a powerful open-source tool for visual programming to build Internet of Things (IoT) applications. In this tutorial, we’ll cover what is Node-RED, how to install it, and how to use the visual interface to create a simple flow. Prerequisites We assume that you are familiar with the Raspberry Pi, you know how to install the operating system, and you know how to establish an SSH connection with your Pi. You can take a look at the following tutorials first: Getting Started with Raspberry PiInstall Raspberry Pi OS, Set Up Wi-Fi,…

Read More

This guide shows how to install InfluxDB 2 on Raspberry Pi. InfluxDB is an open-source time-series database (TSDB). So, it is ideal to store sensor data with timestamps over a determined period of time. The InfluxDB free cloud plan has some limitations that might not be suitable for your projects like the maximum 30-day data retention. If you want to have full control over your data, you can install InfluxDB on a local computer, like your Raspberry Pi. The amount of data you can save will be limited to the storage of your Raspberry Pi, so make sure you use…

Read More

Do you want to turn your Raspberry Pi into a surveillance camera system? The best way to do it is using MotionEyeOS. In this post we’ll show you how to get started with MotionEyeOS on your Raspberry Pi. What is MotionEyeOS? MotionEyeOS is a Linux distribution that turns your single-board computer into a video serveillance system. The MotionEyeOS supports the following devices: Raspberry Pi (all versions);Banana Pi;Odroid C1/C1+, Odroid C2, Odroid XU4;Pine A64/A64+. MotionEyeOS Features MotionEyeOS is the perfect solution to build your own surveillance system because it is simple to install and has a web-based, user-friendly interface that is…

Read More

In this project Najmeddine is going to show you how to build a complete Raspberry Pi based home surveillance system in which you can manage all your cameras from one single place using MotionEyeOS. The system built also allows you to save your frames from all your cameras in a 1TB SATA drive. Project Overview The surveillance system built includes: one Raspberry Pi acting as a HUB with 1TB SATA, and 4 cameras (each one connected to a Raspberry Pi Zero W) that can be monitored through the HUB. All devices are connected to your local network, and you can…

Read More

In this project you’ll create a standalone web server with a Raspberry Pi that can toggle two LEDs. You can replace those LEDs with any output (like a relay or a transistor). In order to create the web server you will be using a Python microframework called Flask. Parts Required Here’s the hardware that you need to complete this project: Raspberry Pi SD Card (minimum size 8Gb and class 10) Micro USB Power SupplyEthernet cable or WiFi dongleBreadboard 2x LEDs2x 470Ω ResistorsJumper wires Basic Raspberry Pi Setup Before you continue reading this project, please make sure you have Raspbian Operating System installed in your Raspberry Pi.…

Read More

This is just a quick blog post explaining how you can install the latest version of Node.js in your Raspberry Pi. It’s really easy and you can install Node.js with two simple commands in your terminal. Since I’ve spent a lot of time searching for the easiest way of installing the latest version, I’ve decided to share how to do it. 1) Setting Up Your Raspberry Pi First you must be running the latest version of Raspbian in your RPi, If you don’t know how to prepare your Pi, you can read here my Getting Started with Raspberry Pi Guide. 2) Installing Node.js…

Read More