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
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 https://www.ubuntu.com/download/server to download latest Ubuntu server.
-Download Ubuntu server.
-You can use Rufus to make your USB flash drive bootable. (https://rufus.akeo.ie/)
-Select your language:
-Select ‘Install Ubuntu Server’ on the next menu:
-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.
-Login to your terminal and type 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:
-Restart your network by typing sudo ifdown eno16777736 & then type sudo ifup eno16777736
-If you want to check network state, you can use sudo ethtool eno16777736
-To install the OpenSSH client type: sudo apt install openssh-client
-To install the OpenSSH server type: sudo apt install openssh-server