Watch, Read, Listen

  • Understanding Chrony: Synchronizing Time on Linux

    What is Chrony? Chrony is a modern implementation of the Network Time Protocol (NTP) used to synchronize a Linux system’s clock with accurate external time sources. It consists of two main components: Chrony is designed to perform well on systems with unstable network connections, virtual machines, and servers that are not always powered on. Compared…

  • Install browser as kiosk mode on raspberry with touch screen

    Requirements This tutorial has been written for this specific following configuration. It might work if you have something similar, but you might have to tweak some parameters. Here are the components that have been used: Initial setup As a start, you will need to install a clear image of Raspberry Pi OS Lite on your…

  • Get timing details with curl command

    It is sometimes useful to get the timing details of a curl request, for analysis, investigation or just monitoring. Thanks to curl implementation, there’s an easy way to get timing details. This can be done with two ways: a formatting file or directly on command line. We will explore both solutions below. Formatting file: You’ll…

  • Equivalent of tail -f for Windows – monitor log file

    It’s easy on a linux system to monitor in real time the content of a log file by using If you want to do the same thing with windows, you can easily do that by using

  • Display log file with timestamp in human-readable format

    By default, some logs (like squid logs) will be recorded with unix timestamp, stored as <unixtimestamp>.<centisecond> which are hard to read for analysis. You would have for example this kind of logs: In order to display them in human readable format, you can just use that simple command: You will then have such result:

  • Check expiration dates for local certificates

    This script does allow a quick check of the local certificates, in order to make sure none of them is expired: The output will look like:

  • Find parent PID of a running process in Linux

    When a process is starting sub-processes on a linux system, you would have to stop every single child processes in order to stop them all. Instead of that, you can easily kill the parent process so it can stop spawning new process. You can find the parent process with the following command (replace the CHILDPID…

  • Kill all sub-processes of a bash script with SIGINT (CTRL-C)

    If you have a bash script running with a very long loop (or infinite one) and starting multiple background processes, you will notice that when you stop the main process, all the child processes will continue to live until you restart the machine or you kill them one by one. So that you can easily…

  • Install pip packages offline

    Sometimes you might need to download some pip packages offline on a device with no Internet access. This is entirely feasible through multiple ways. Install a single package: You first need to download that package on a device with Internet access (using pip package as an example) Then you push that file to the device…

  • Issue with sudo – sudo:auth could not identify password for [user]

    If you get the following error when trying to execute a sudo command, despite the fact that you configured your sudoers or sudoers.d config file properly: Then, you might need to have a look at the PAM configuration on your device.Ensure that you have this line enabled in your /etc/pam.d/sudo file: Once you changed this…