Debian Linux: Change Hostname / Computer Name Permanently

To change the hostname (computer name) on a Debian Linux system permanently, you can follow these steps: Open the /etc/hostname file: sudo nano /etc/hostname Replace the existing hostname with your desired hostname. For example: mynewhostname Save and close the file. Open the /etc/hosts file: sudo nano /etc/hosts Find the line that contains your current hostname … Read more

Linux / UNIX: How To Empty Directory

In Linux/Unix, there are several ways to empty a directory: Using the rm command: rm -rf <directory-name>/* This command will recursively remove all files and subdirectories in the specified directory (<directory-name>). Be cautious when using the rm command, as it can permanently delete files. Using the find command: find <directory-name> -type f -delete This command … Read more

Linux: Mount Disk Partition Using LABEL

In Linux, you can mount a disk partition using its LABEL instead of its device name. This can be useful when the device name may change (e.g. between reboots), but the LABEL remains constant. To mount a disk partition using its LABEL, you can use the -L option with the mount command, like this: mount … Read more

passwd: pam_chauthtok(): conversation failure Error and Solutions

The error “passwd: pam_chauthtok(): conversation failure” can occur when attempting to change the password for a user on a Linux system. This error message indicates that there was a problem with the authentication token (password) change process, likely due to a misconfigured PAM (Pluggable Authentication Modules) module. To resolve this issue, you can try the … Read more

Lighttpd: network.c:483: error: ‘EC_KEY’ undeclared (first use in this function) Error and Solution

The error “network.c:483: error: ‘EC_KEY’ undeclared (first use in this function)” when compiling the lighttpd web server usually indicates that the OpenSSL library on your system is missing the elliptic curve cryptography (ECC) support that lighttpd requires. To resolve this issue, you can try the following steps: Check the version of OpenSSL installed on your … Read more