Things To Do After Installing Debian 10
Below are some things that you probably want to do right after installing Debian 10 server.
Login as root and install sudo
su apt-get install sudo
Replace Nano With Vim
Still as root, install vim and uninstall nano. Skip this step if you are a nano user instead.
apt-get install vim -y apt-get remove nano -y
By default, the
adduser command is located in the
/usr/sbin folder of your system. For some reason this is not part of your path when you are root, so lets make sure it is in future.
echo 'export PATH="$PATH:/usr/sbin/"' >> /root/.bashrc
Now log out and in again for the change to take effect.
Add Yourself To Sudo Group
Now that you have adduser working, add yourself to the sudo user group.
adduser $MY_SUBUSER sudo
Now log in as that subuser and do everything as them.
sudo apt update && sudo apt dist-upgrade -y
sudo apt-get install ssh
Set VIM to be the default editor (crontab)
You only need to do this if you didn't uninstall nano.
echo 'export EDITOR=vim' >> $HOME/.bashrc sudo update-alternatives --config editor
"Fix" Vim Pasting
Enable Syntax Highlighting In Vim
Instructions are here.
sudo apt-get install net-tools -y
sudo apt-get install byobu -y
Finally, here is a list of system monitoring packages I like to install to make my life easier:
sudo apt install sysstat ncdu htop nload pydf iotop -y
Speed Up Boot
You may wish to reduce the grub boot timeout to just 1 second to speed up reboots etc.
- How To Add and Delete Users on Debian 10 Buster
- LinuxConfig.org - How to install missing ifconfig command on Debian Linux
- LinuxQuestions.org - can't paste into vim
First published: 8th May 2020