Ubuntu Server 16.04 Some Helpful Softwares and Configurations After Fresh Install

After a fresh installation of Ubuntu Server, I usually install and configure several popular software packages and tools.

Adding Swap Space

If swap space is not already configured, I recommend adding it based on the server’s available memory and workload requirements. The appropriate swap size can vary depending on the system’s needs.

For example, if the server has 2 GB of RAM, you could allocate 2 GB of swap space as well.

sudo fallocate -l 2G /swap
sudo chmod 600 /swap
sudo mkswap /swap
sudo swapon /swap
sudo swapon --show
Output:
NAME TYPE SIZE USED PRIO  /swap file 2048M 0B -1

Install text editor which is your best. My favorite one is Nano.

sudo apt-get install nano

 

Compression Software as 7zip is very fast.

sudo apt-get install p7zip-full
7z x rarfile.rar

 

Get a static IP for your server

sudo nano /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
        address xxx.xxx.xxx.xxx (192.168.1.50)
        netmask xxx.xxx.xxx.xxx (255.255.255.0)
        gateway xxx.xxx.xxx.xxx (192.168.1.1, router address)

 

For monitoring process, htop is also good.

sudo apt-get install htop

 

Installing Oracle Java JDK

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

 

Installing Node.js, https://github.com/nodesource/distributions

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
 

azmi.cirit.wp