# apt install sudo # adduser <user> # vi /etc/group (add <user> to line "sudo:x:27:<user>")
sudo edit /etc/hostname sudo edit /etc/hosts
~/.bashrc
/home/user/.bashrc
to /root
and modify PS1 prompt color (32m –> 31m)/etc/passwd
from line 1 to line 2root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/sbin/nologin
$ sudo apt update $ sudo apt install vim $ sudo apt install zip $ sudo apt install rename $ sudo apt install rsync $ sudo apt install openjdk-17-jre openjdk-17-jdk
$ sudo update-alternatives --config editor
df -h | grep "^/dev/"
sudo apt-get autoremove
uname -r
sudo apt-get remove linux-image-VERSION
sudo update-grub
Debian 11 uses Systemd, not SysV, that's why your commands in /etc/rc.local
file would not run at system boot time. This guide explains how to enable /etc/rc.local
script to run on system startup.
vim /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0
chmod +x /etc/rc.local systemctl daemon-reload systemctl start rc-local systemctl status rc-local ● rc-local.service - /etc/rc.local Compatibility Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: Drop-In: /lib/systemd/system/rc-local.service.d └─debian.conf Active: active (exited) since Sun 2019-05-05 10:55:29 +07; 11min ago Process: 1443 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) CGroup: /system.slice/rc-local.service