Linux: Find Out Last System Reboot Time and Reason

Rebooting a Linux device can happen for several reasons. This could be a normal restart of the operating system by the user, an automatic installation of updates, kernel panics, physical hardware failures, software errors, or a power failure.

Continue reading “Linux: Find Out Last System Reboot Time and Reason”

Network Configuration with Systemd-networkd on Ubuntu/Debian

Systemd provides the systemd-networkd service that can be used to configure network settings on a Linux machine. In this article, we will look at how to use systemd-networkd to configure a network on Debian/Ubuntu distro as an example.

Continue reading “Network Configuration with Systemd-networkd on Ubuntu/Debian”

Freeing Disk Space on Ubuntu Server

Many temporary and unused files are left on the Ubuntu drive after installing/uninstalling packages and dependencies. In addition, log files and old versions of the kernel can take up a fair amount of disk space. This article shows you how to clean up your Ubuntu Server hard drive by deleting temporary and unused files.

Continue reading “Freeing Disk Space on Ubuntu Server”

Install Microsoft Fonts (including Times New Roman) on Linux

By default, Linux distributions do not include popular proprietary fonts from Microsoft. Linux users often search for how to install Times New Roman font from Microsoft. If you need to use this font in LibreOffice, Gimp or any other graphical Linux application, you can install it.

Continue reading “Install Microsoft Fonts (including Times New Roman) on Linux”

Running Bash Shell Script as Systemd Service on Linux

On Linux, you can run a bash script as a service via systemd (instead of using the cron scheduler). This allows you to ensure that the script is always running, run the bash script on startup, check its health, and take advantage of other systemd benefits.

Continue reading “Running Bash Shell Script as Systemd Service on Linux”

Fix ‘Bash Sudo: Command Not Found’ on Linux

The sudo command in Linux allows you to run commands as another user (it is most commonly used to run a command with elevated privileges as root). In some cases, when you try to run a command with sudo, an error message is displayed:

-bash: sudo: command not found

Continue reading “Fix ‘Bash Sudo: Command Not Found’ on Linux”

How to Mount Windows SMB Share on Linux with CIFS

In this article, we’ll look at how to mount a shared network folder hosted on a Windows computer in Linux. Windows uses the SMB (Server Message Block) protocol, formerly known as CIFS (Common Internet File System) to share and access shared folders over the network. On Linux, you can use the cifs-utils or Samba client to access Windows network shares via SMB protocol.

Continue reading “How to Mount Windows SMB Share on Linux with CIFS”

‘Failed to connect to bus: No such file or directory’ Error on Linux

The error ‘Could not connect to bus: No such file or directory‘ is quite common on Linux operating systems. This error can occur when managing the service through systemctl or when the computer is switched off.

Continue reading “‘Failed to connect to bus: No such file or directory’ Error on Linux”