Hi!

Today i’m going to show you how to install Ubuntu Server 16.04 (the latest long term release)

The installation is fairly easy, anyway it has no graphical interface or a live session as Ubuntu Desktop has but it’s very straightforward!

First of all it would be good to download the ISO image, so head to ubuntu.com to get it

Now I’m going to use VirtualBox and set up a virtual machine for Ubuntu Server, burn the iso to a usb key if you need to install on a pc (a 1gb usb key is enough)

I’m going to use the defaults 1gb ram, 8gb virtual-drive and so on, but once the machine is created i was to give it some more cpu cores to make it a bit faster:

Now let’s install Ubuntu Server!

You will use the keyboard: arrow keys and tab to move, return/enter to choose an option and the space bar to select an option

  • Select the installer language

VirtualBox_Ubuntu-Server-16

  • select the first line

VirtualBox_Ubuntu-Server-16-2

  • select what language you want your system to be

VirtualBox_Ubuntu-Server-16-3

  • select a locale

VirtualBox_Ubuntu-Server-16-4

  • select “no” to choose your keyboard layout from a list or “yes” if you want it to be detected by the installer (I suggest “no”)

VirtualBox_Ubuntu-Server-16-5

  • select your keyboard layout’s country

VirtualBox_Ubuntu-Server-16-6

  • and a specific layout (if you don’t know choose the default one)

VirtualBox_Ubuntu-Server-16-7

  • some additional components will load

VirtualBox_Ubuntu-Server-16-8

  • choose what name you want your system to be recognized on the network

VirtualBox_Ubuntu-Server-16-9

  • select your user account

VirtualBox_Ubuntu-Server-16-10

  • a username

VirtualBox_Ubuntu-Server-16-11

  • type a password

VirtualBox_Ubuntu-Server-16-12

  • re-type the password to confirm it

VirtualBox_Ubuntu-Server-16-13

  • if it’s shorter than 8 characters it will prompt this

VirtualBox_Ubuntu-Server-16-14

  • select if you want to encrypt your home directory

VirtualBox_Ubuntu-Server-16-15

  • select if the detected time zone is correct, if not select it manually

VirtualBox_Ubuntu-Server-16-16

  • select how you want your disk to be partitioned

VirtualBox_Ubuntu-Server-16-17

  • select a disk

VirtualBox_Ubuntu-Server-16-18

  • review your selections and apply

VirtualBox_Ubuntu-Server-16-19

  • select either all the disk or just a part of it

VirtualBox_Ubuntu-Server-16-20

  • review again and apply to starting the installation

VirtualBox_Ubuntu-Server-16-21

  • the installation will start

VirtualBox_Ubuntu-Server-16-22

  • enter a proxy address or leave it blank if you don’t need this option

VirtualBox_Ubuntu-Server-16-23

  • select if you want manual or automatic updates

VirtualBox_Ubuntu-Server-16-24

  • select what kind of software you want to install with the core system (don’t worry, you can access this later by typing tasksel)

VirtualBox_Ubuntu-Server-16-25

  • finishing up the additions

VirtualBox_Ubuntu-Server-16-26

  • first grub configuration (it’s needed to choose and boot a system)

VirtualBox_Ubuntu-Server-16-27

  • it asks you where you want to install the grub loader (MBR is fine)

VirtualBox_Ubuntu-Server-16-28

  • reboot your system

VirtualBox_Ubuntu-Server-16-29

  • this is the grub, if you have other system (Operation System) installed you can select them here

VirtualBox_Ubuntu-Server-16-30

  • after the system has loaded you can login

VirtualBox_Ubuntu-Server-16-31

  • there it is! ubuntu server has been installed

VirtualBox_Ubuntu-Server-16-32

  • at this point it would be good to update your system (if you selected the manual updates), so go ahead and type
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

or in just 1 command (and accept all the questions)

sudo apt-get update&&sudo apt-get -y upgrade&&sudo apt-get -y dist-upgrade
  • as i mentioned you can use tasksel to install a group of packages

VirtualBox_Ubuntu-Server-16-43VirtualBox_Ubuntu-Server-16-44

  • try to use tmux (terminal multiplexer) to have a multi-task interface and do different things at the same time

VirtualBox_Ubuntu-Server-16-45

  • If you need a graphical interface you can start by installing the most common display server: Xorg

Installing the xinit package will automatically install all that is needed to get the diplay server up and running

VirtualBox_ubuntu-jwm_27_08_2016_16_52_44

Then you can launch the X server by running startx
it should launch with a default terminal emulator that has been installed together with xinit (Xterm in this case)

VirtualBox_ubuntu-jwm_27_08_2016_19_29_00VirtualBox_ubuntu-jwm_27_08_2016_19_04_32

to open certain applications (such as the browser “Dillo”) that need a graphical interface.

VirtualBox_ubuntu-jwm_27_08_2016_19_31_12

VirtualBox_ubuntu-jwm_27_08_2016_19_05_12

and then run exit to close the server

VirtualBox_ubuntu-jwm_28_08_2016_11_03_48

or run killall xinit if something goes wrong and you need to kill X

VirtualBox_ubuntu-jwm_27_08_2016_16_55_04

You can also launch X straight to the specific application (then exiting the application automatically close Xorg too). Even better if you run them from their full path, such as:

startx /usr/bin/dillo

VirtualBox_ubuntu-jwm_27_08_2016_19_10_08

Notice that you need at least a terminal emulator or launch X with a specific application to get it to work, as I said on Ubuntu a terminal emulator is installed by installing X, but it may not be the case on a different distro :)

VirtualBox_ubuntu-jwm_28_08_2016_11_19_13

Anyway forget about the luxury of managing multiple windows, resize your windows, Alt+Tab, etc.. For this you need to install a Window Manager, and as there are sooo many for Linux, I’m going to discuss them in some specific posts :)

TA SALÜDE!

Advertisements