Reset the root password in Debian or Ubuntu Rumi, November 9, 2013 In order to boot into the recovery mode on Debian or Ubuntu, hold down SHIFT key after powering on your Linux machine. You will then be presented with GRUB menu. Select “recovery menu” option by pressing down arrow key. Do not press ENTER at this point, but rather press “e” key to enter edit mode. You will see “GRUB” edit screen where you can edit GRUB boot parameters. Move your cursor to the line starting with “linux /boot/vmlinuz-…….”, and go to the end of that line. Append “init /bin/bash” right there, as shown below. Then press Ctrl+X to proceed. After all subsequent booting sequence is over, you will finally get a root prompt. In the recovery mode, the root partition is mounted as read-only by default, and so you cannot change the root password as is. In order to be able to reset the root password, you need to re-mount the root partition as read-write. First, find out what the root partition of your system is, by using “fdisk -l” command. As shown in the screenshot above, the partition marked with “*” under “Boot” column is the root partition of your system (e.g., /dev/sda1). Remount the root partition as read-write, and finally reset the password, using passwd command. $ mount -o remount,rw /dev/sda1 / $ passwd Related Administrations Configurations (Linux) DebianPasswordUbuntu
Postfix SMTP Rotating IP using IPTables August 1, 2022 I got 5 Public IPs. i’m Gonna configure them, so Postfix can use multiple interfaces/ips for outgoing smtp connections. First we need creating Interface aliases for those 5 public IPs. In my system, using centos: # cd /etc/sysconfig/network-scripts/ # cp ifcfg-eth0 ifcfg-eth0:1 Edit ifcfg-eth0:1 # vi ifcfg-eth0\:1 DEVICE=eth0 <– default… Read More
Install Cacti 1.2 on Debian 11 June 17, 2022 First, update the repository index. sudo apt update Install MariaDB Database Install MariaDB from Official MariaDB Mirror Update the repository index and install the required packages. sudo apt update sudo apt install -y software-properties-common dirmngr apt-transport-https wget curl Add signing key to your system. curl -fsSL https://mariadb.org/mariadb_release_signing_key.asc | sudo gpg… Read More
Install Docker on Debain 10 December 21, 2021 Installing Docker The Docker installation package available in the official Debian repository may not be the latest version. To ensure we get the latest version, we’ll install Docker from the official Docker repository. To do that, we’ll add a new package source, add the GPG key from Docker to ensure… Read More