After you have decided what hardware you are going to use for your Linux server, it’s time to start setting up your Ubuntu server.
I assume that your server is connected to the home network with running dynamic host configuration (DHCP) service on your router. So your home network should look similar to this:
First, you need to download Ubuntu server ISO image from the Ubuntu website.
I would recommend using Ubuntu 12.04 LTS (long term support) server. That will allow to receive the updates (including security) until the next LTS version will be released. Usually, they are re-released every 3-4 years.
After downloading ISO image (32bit or 64bit depending on your processor), you would have to burn it on a CD.
If you use a Windows PC, you can use Imgburn for this (it’s free) or other equivalent software.
If you use a Mac PC, you can follow this instruction for burning ISO image.
You need to setup your BIOS to boot from CD/DVD-ROM and boot PC with the Ubuntu CD.
During the installation process you have to choose:
- the initial language -> English (or you can choose another);
- Install Ubuntu Server -> YES;
- the language for the server -> English (or you can choose another);
- the region and country -> United States (or you can choose another);
- detect keyboard layout -> NO;
- keyboard layout -> English (US) (or you can choose another);
- select the layout -> English (US) (or you can choose another);
- server’s name -> UBUNTU;
- user’s name -> USER;
- password -> PASSWORD (I recommend to use not less as eight symbols password);
- encryption of your home directory -> NO;
- your time zone -> UTC (or you can choose another);
- partitioning method -> guided use entire disk and setup LVM;
- select the disk to partition -> choose your hard drive;
- remove existing local volume data -> YES;
- write the changes to the disk and configure LVM -> YES;
- amount of the volume group to use for guided partitioning -> choose max available amount;
- write the changes to disks -> YES;
You will see the message “Installing the base system” after making all your choices.
Depending on your system performance, it may take up to 30 minutes to install your system.
Few final questions will appear:
- How do you want to manage upgrades on this system? -> Install security updates
- Choose software to install (NO SELECTION) -> Continue
- Install the grub boot loader to the master boot record? -> YES
- your CD will be ejected, Installation complete -> Continue
Your system will rebooted and you will get the Ubuntu shell asking to enter the username (which you have entered previously):
After entering the password, you will access Ubuntu shell.
You would have just install up to date updates by issuing the commands:
sudo apt-get update
sudo apt-get upgrade
That’s it, you have successfully installed Ubuntu basic server!
If you want to shutdown the server, just enter this command:
sudo shutdown -h 0
The next post explains how to install a SSH server.