/ debian

Things To Do After Installing Debian 8.0

Configure Mirror

If you installed from the CDs and did not set up the mirror, then you will need to configure debian to use a mirror for updates.

su
rm /etc/apt/sources.list
editor /etc/apt/sources.list

Fill the file with the following (taken from here):

deb http://http.debian.net/debian jessie main
deb-src http://http.debian.net/debian jessie main

deb http://http.debian.net/debian jessie-updates main
deb-src http://http.debian.net/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

Configure Sudo

Login as root and install sudo

su
apt-get install sudo

Now add your subuser to sudo users and use that user from now on.

adduser $MY_SUBUSER sudo

Update

sudo apt-get update && apt-get dist-upgrade -y

Disable root login

SEARCH="PermitRootLogin yes"
REPLACE="PermitRootLogin no"
FILEPATH="/etc/ssh/sshd_config"
sudo sed -i "s;$SEARCH;$REPLACE;" $FILEPATH

# Restart the openssh service for changes to take effect.
sudo service ssh restart

Install VIM

sudo apt-get install vim -y

Set VIM to be the default editor (crontab)

echo 'export EDITOR=vim' >> $HOME/.bashrc

Add ifconfig to your PATH.

echo 'export PATH="$PATH:/sbin"' >> $HOME/.bashrc

Install byobu

sudo apt-get install byobu -y
Stuart Page

Stuart Page

Stuart is a software developer with a passion for Linux and open source projects.

Read More