Can I delete /var/cache/apt/archives for Ubuntu/Debian Linux?

Yes, you can delete the contents of the /var/cache/apt/archives directory on Ubuntu/Debian Linux. The directory contains package files that have been downloaded by the apt package manager, and they can be safely removed if you need to free up space on your system. You can use the command “sudo rm -rf /var/cache/apt/archives/*” to remove all … Read more

How to check disk space on Unix servers

There are several commands that can be used to check disk space on Unix servers. Some common ones include: df -h: This command shows the file system disk space usage in human-readable format. It shows the total, used and available space on each file system. du -sh: This command shows the disk space usage for … Read more

How to set up automatic updates for Ubuntu Linux 18.04

To set up automatic updates for Ubuntu Linux 18.04, you can use the unattended-upgrades package. First, make sure that the package is installed by running: sudo apt-get update sudo apt-get install unattended-upgrades Next, open the configuration file: sudo nano /etc/apt/apt.conf.d/50unattended-upgrades In the file, uncomment the line that starts with “//Unattended-Upgrade::Origins-Pattern”. This will allow the package … Read more

How to install LAMP on Debian 10 (Buster)

  To install LAMP (Linux, Apache, MySQL, PHP) on Debian 10 (Buster), you can use the following steps: Install Apache web server: sudo apt-get update sudo apt-get install apache2 -y Install MySQL server: sudo apt-get install mysql-server -y Install PHP and necessary modules: sudo apt-get install php php-mysql libapache2-mod-php -y After installation, start Apache and … Read more

Debian 10 Set Up OpenVPN Server

Setting up an OpenVPN server on Debian 10 can be done in just a few minutes using the following steps: Install OpenVPN by running the command sudo apt-get install openvpn Create a directory to store the server configuration files by running the command sudo mkdir /etc/openvpn/server Generate the server’s private key and certificate by running … Read more

How to upgrade Debian 9 to Debian 10 Buster using the CLI

First, make sure that your current system is up-to-date by running the following command: sudo apt-get update && sudo apt-get upgrade Then, backup all important data and configurations from your current system. Next, run the following command to upgrade your system to Debian 10: sudo apt-get install -y upgrade Now, Run the following command to … Read more

How to change hostname on Debian 11/10 Linux

You can change the hostname on Debian 11/10 Linux using the following steps: Open a terminal and use the command hostnamectl set-hostname new_hostname where new_hostname is the new hostname you want to set. Edit the file /etc/hosts and change the old hostname to the new hostname in the line starting with 127.0.1.1 Edit the file … Read more