How to diskless boot a Linux machine

Diskless booting implies that a client computer does not have any disk storage when booting an operating system. In that case, the computer can load the kernel as well as the root filesystem from a remote NFS server over network. It may use several different methods to load the kernel and the root filesystem from […]
Continue reading…

 

How to check what services are enabled on boot in Linux

There are so-called startup services in Linux which are set to launch automatically when a Linux system boots up. Such startup services include basic system configurations (e.g., networking, security modules, hardware peripherals), as well as various add-on services (e.g., NFS, MySQL, VPN, rsync), which all are needed for a particular Linux system to operate as […]
Continue reading…

 

How to automatically start a program on boot in Debian

When you want to configure your Debian system so that it will start a certain program automatically on boot, you can leverage Debian’s init system which controls various startup services at different runlevels. In Debian, a directory called /etc/init.d contains a list of scripts that are executed by init process during startup and shutdown. Thus, […]
Continue reading…

 

How to change hostname without reboot on Linux

In order to change hostname on Linux, you need to update a configuration file containing hostname, and then let the kernel know that hostname has been changed. The latter step is needed since the kernel still remembers an old hostname until the next reboot. In order to change hostname without reboot, do the following. To […]
Continue reading…

 

How to add a static route permanently on Linux

A static route is defined by statically configuring a next-hop router IP address for a specific destination network. You can add a static route by using “route add” command. However, a static route so added is not persistent across reboots. If you would like to add a static route permanently on Linux, do the following. […]
Continue reading…