Debian 8.5 Server Setup

This guide explains the installation of Debian 8.5 Server on a VPS hosted by Metrabyte, located in Thailand. As of 2016-08-15, the latest Debian OS available for the VPS is Debian 7.4.0 (64 Bit).

  1. Install VIM
    # apt-get install vim
  2. If a user was created during setup of the VPS, and this user is not the one you want as system administrator, do the following: edit the first fields of <olduser> entries in the /etc/passwd and /etc/shadow files. Then change every occurrence of <olduser> to <newuser> in /etc/group. Then rename the home directory from /home/<olduser> to /home/<newuser>. Change the password of <newuser>
    # passwd <newuser>
  3. Install sudo, then add <user> to the sudo group in /etc/group
    # apt-get install sudo
  4. Install zip and unzip
  5. Install ntpdate, then add the following line to /etc/rc.local:
    sudo ntpdate -s th.pool.ntp.org
  6. Check debian version:
    cat /etc/issue
    cat /etc/debian_version
  7. Make sure /etc/resolv.conf points to valid nameservers