Debian Cheatsheet
Install and configure sudo
Section titled “Install and configure sudo”-
Login as
root
. -
Install
sudo
using:Terminal window apt install sudo -
(optional) To check who is allowed to use
sudo
, run:Terminal window cat /etc/sudoers -
To add a user to the
sudo
group:Terminal window usermod -aG sudo <username>
Import GitHub SSH Keys onto Linux Server
Section titled “Import GitHub SSH Keys onto Linux Server”-
Install
ssh-import-id
using:Terminal window sudo apt install ssh-import-id -
Import your GitHub SSH keys using:
Terminal window ssh-import-id-gh <github-username>
Install curl
Section titled “Install curl”Install curl
using:
sudo apt install curl
Configure auto reboot
Section titled “Configure auto reboot”Add a line to /etc/crontab
to reboot the system at 3:00 AM every day using:
echo "0 3 * * * root /sbin/shutdown -r now" | sudo tee -a /etc/crontab