Detach process from parent on Linux

Detach process from parent on Linux

Every program you run from your working shell is, to the Linux system, regarded as a process. Each process, except init, has its parent identified by PPID (parent process ID). When you start a process using your current shell, the shell itself becomes a parent for your newly started process. The trouble with this approach is that this may not always be desirable, since when the parent process is terminated, its child dies with it.

Read more

Resolving the bash: netstat: command not found error on Debian/Ubuntu Linux

inxi installation and usage on Ubuntu/Debian

The inxi Linux command can be used to see various system information and other handy bits of data right from your terminal. The command is ordinarily not installed by default. However, it is a small software package that provides access to the command, and it proves especially useful to system administrators and power users.

Read more

Retrieve Weather information using Linux command line

Retrieve Weather information using Linux command line

Although most Linux users will use a GUI tool to retrieve weather information, it is also possible to do get a weather forecast from the command line. Whether you are stubborn command line user or you wish to automate flower watering using your Linux system and cron, there are several different options that can do the job. Some tools even allow you to retrieve information such as current outside temperature, wind, pressure, humidity, altitude, and more, directly from your Linux terminal.

Read more

Resolving the bash: netstat: command not found error on Debian/Ubuntu Linux

bash: netstat: command not found – Debian/Ubuntu Linux

The netstat Linux command is used by system administrators to see information about network connections. Netstat is a powerful utility that can print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It has been superseded by the ss command in recent years, but is still a viable tool for network diagnostics and troubleshooting.

Read more

Using Ubuntu 22.04 Jammy Jellyfish Linux via WSL on Microsoft Windows

Ubuntu 22.04 on WSL (Windows Subsystem for Linux)

If you are a Windows user and do not want to take the full plunge into Linux, Windows Subsystem for Linux can be a fair compromise to at least give you some Linux capabilities on your Windows sytem. Ubuntu 22.04 is a great operating system to install on WSL, and definitely the most popular of the Linux distributions currently offered. Both Windows 10 and Windows 11 systems are capable of installing Ubuntu 22.04 through WSL.

Read more

Enabling full disk encryption in Ubuntu 22.04 Jammy Jellyfish Linux

Ubuntu 22.04 Enable full disk encryption

The best way to keep your Ubuntu 22.04 system and files completely secure in the case of theft is to enable full disk encryption. This way, if your device is stolen or someone is sitting at your desk and trying to boot into your PC, they will need to know your password in order to mount any partitions. Even if they access the hard drive content through other means, all files would be encrypted and no one could read their contents.

Read more

article-main

How to mount a Samba shared directory at boot

Samba is a free and open source interoperability suite of programs which allows us to share files and printers between machines running Linux or Windows. A Samba share is pretty easy to configure and can easily  be accessed on clients, since the vast majority of Linux file explorers has built-in support samba. In certain situations, however, we may want to mount a Samba share at boot, just like a normal filesystem on a specified mountpoint.

Read more

header-image

How to define a custom Firewalld zone

Firewalld is the default high-level firewall manager on the Red Hat family of distributions. One of its peculiarities is that it defines a series of so called firewall zones: each zone can be considered like a different level of trust and can be configured to allow traffic through a specific set of ports. While Firewalld comes with some predefined zones which can be easily examined and modified, sometimes we may want to create our custom zones from scratch.

Read more