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”

Disable Local User Accounts in Windows with GPO and PowerShell

Best security practices for Windows domain networks recommend disabling local user accounts on computers and servers in an Active Directory domain. Local users who have administrative permissions on a computer can be a weak point in the security of your network. You can use tools such as Windows LAPS (Local Administrator Password Solution) to set unique, complex passwords for local administrators, or you can use AD Group Policies to completely disable local administrator and user accounts.

Continue reading “Disable Local User Accounts in Windows with GPO and PowerShell”

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”

How to Find Your Computer’s Serial Number on Windows

If you need to find the serial number for your computer or laptop, you do not need to look in the documentation or the manufacturer’s label on the case/motherboard. Windows can get your computer’s serial number from the BIOS. To get the serial number from the BIOS, query a specific class in the WMI namespace.

Continue reading “How to Find Your Computer’s Serial Number on Windows”

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”