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
Install Laravel 5 Framework on Ubuntu 18.04 & 16.04 October 9, 2019October 9, 2019 Below is the system requirements for the installation of latest Laravel application on your system. PHP >= 7.2 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension Ctype PHP Extension JSON PHP Extension BCMath PHP Extension Step 1 – Install LAMP To start with… Read More
Apache error fix on Forbidden You don’t have permission to access this resource June 30, 2020 Tested and works on Debian/Ubuntu apache installation. For this open the apache2.conf file using the nano editor sudo nano /etc/apache2/apache2.conf Replace the general directory settings with this. <Directory /> #Options FollowSymLinks Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Require all granted </Directory><Directory /usr/share> AllowOverride None Require all granted… Read More
PXE Boot Server of CentOS 5 on a CentOS setup May 31, 2013 Setting up PXE Server Install some packages that is required for PXE server. [root@dlp ~]# yum -y install system-config-netboot syslinux xinetd tftp-server Run TFTP server [root@dlp ~]# vi /etc/xinetd.d/tftp # line 14: change disable =no [root@dlp ~]# /etc/rc.d/init.d/xinetd start Starting xinetd: [ OK ] [root@dlp ~]# chkconfig xinetd on Install… Read More