Step 3: Essential Configuration
Table of Contents
Essential Configuration
Most default settings are acceptable and we should leave them unless we have a reason to make a change.
We should set the timezone of the VPS to our local area, which is
Asia/Almaty, Then we can test it using the date command.
- Enter these commands one at a time into the terminal window. - timedatectl set-timezone
- Tells the OS to set a specific timezone of the system. You can use any timezone from this list of available zones. 
- date
- Displays the current date and time. 
 - sudo timedatectl set-timezone Asia/Almaty date - 1root@vps298933:~# timedatectl set-timezone Asia/Almaty 2root@vps298933:~# date 3Sun Mar 10 20:16:31 +06 2019 
Install Common Packages
Next, we will install some common/security packages using apt.
We will install more packages later, but this list provides some
essential packages that we might need.
- Install these applications - zipand- unzip
- Compress and decompress .zip files 
- fail2ban
- An intrusion prevention software framework that protects computer servers from brute-force attacks 
- ufw
- Uncomplicated Firewall is an easy-to-use firewall application 
- htop
- A utility to view the running processes 
 - sudo apt -y install zip unzip fail2ban ufw htop - 1root@vps298933:~# 2root@vps298933:~# sudo apt -y install zip unzip fail2ban ufw htop 3Reading package lists... Done 4Building dependency tree 5Reading state information... Done 6htop is already the newest version (2.1.0-3). 7ufw is already the newest version (0.35-5). 8Suggested packages: 9mailx monit sqlite3 python-pyinotify-doc 10The following NEW packages will be installed: 11fail2ban python3-pyinotify unzip whois zip 120 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 13Need to get 732 kB of archives. 14After this operation, 3,306 kB of additional disk space will be used. 15Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 fail2ban all 0.10.2-2 [329 kB] 16Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 python3-pyinotify all 0.9.6-1 [24.7 kB] 17Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 unzip amd64 6.0-21ubuntu1 [167 kB] 18Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 whois amd64 5.3.0 [43.7 kB] 19Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 zip amd64 3.0-11build1 [167 kB] 20Fetched 732 kB in 0s (2,738 kB/s) 21Selecting previously unselected package fail2ban. 22(Reading database ... 98638 files and directories currently installed.) 23Preparing to unpack .../fail2ban_0.10.2-2_all.deb ... 24. 25. 26.