How to install ubuntu server and configure network

This blog will show how to install Ubuntu server on your machine and configure static network and finally how to install OpenSSH on your machine. This blog is divided into three parts:

1.Install Ubuntu server

2.Configure network

3.Install OpenSSH

Ubuntu server installation:

-You must have at least 2GB of free storage space.
-You must have either a DVD or a USB flash drive containing the version of Ubuntu Server you want to install.

Boot from DVD:
-Insert DVD in DVD drive should take you to the installation.

Boot from USB flash drive:
-Go to to download latest Ubuntu server.
-Download Ubuntu server.
-You can use Rufus to make your USB flash drive bootable. (

-Select your language:

-Select ‘Install Ubuntu Server’ on the next menu:
ubuntu installation

-Select your keyboard layout:

-Type your desired hostname. In terminal it will show username@hostname:~$

-Select your timezone and location:

-Select partition disk option.The simplest one is the, ‘Guided – use entire disk and set up LVM’.But you can do it manually, if you are installing alongside another operating system:

-For configuring tasksel choose ‘No automatic update’:

-Setup your username and password:

-Select whether you want to encrypt the hard drive or not. Selecting no is recommended.

-If you are using a proxy server, enter the details or leave it as blank:

-Select the softwares you want to install on your server. Press the space bar to select software, when finished press enter to continue. You can continue without installing any software and install it later if you wish:

-Ubuntu Server will now be installed. When complete, one final question asks for permission to install the GRUB boot loader. You should answer ‘Yes’:

-Congratulations! Installation is completed. You can now remove your DVD or USB flash drive:

-Restart your machine and begin enjoying Ubuntu Server.



Configure Networking:

-Login to your terminal and type ifconfig

username@hostname:~$ ifconfig

-Find your network interface card. Here red signed part is network interface card:

-To change ip address type sudo nano /etc/network/interfaces & edit this file and save:

username@hostname:~$ sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eno16777736
iface eno16777736 inet static
address <your ip address>
network <your network>
broadcast <your broadcast address>
gateway <your gateway address>
dns-nameservers <your dns-nameserver addresses>

-Restart your network by typing sudo ifdown eno16777736 & then type sudo ifup eno16777736

username@hostname:~$ sudo ifdown eno16777736
username@hostname:~$ sudo ifup eno16777736

-If you want to check network state, you can use sudo ethtool eno16777736

username@hostname:~$ sudo ethtool eno16777736




Install OpenSSH:

-To install the OpenSSH client type: sudo apt install openssh-client

username@hostname:~$ sudo apt install openssh-client


-To install the OpenSSH server type: sudo apt install openssh-server

username@hostname:~$ sudo apt install openssh-server

Posted in Linux.

Leave a Reply

Your email address will not be published. Required fields are marked *