Wednesday, November 28, 2012

Installing Linux Server (Ubuntu distro) [Basic Installation]

Introduction

I have found people running away from linux fearing that it is really difficult to learn. I had zero experience in linux when i first installed fedora red hat linux in 2005. I am not an expert but almost know what to do if I get stuck. 

Linux is very easy to understand at first it looks difficult because you are used to windows style file and folders view. Linux file system starts at "/" which is called root. That's how linux file system looks like with directories under root:


bin, dev, home etc. Also note windows directories have "\" backslash whereas linux has "/" forward slash.

So to traverse between directories you would do 

:~$cd /home/username

Today linux has become mainstream, you see gadgets, smartphones, netbooks, laptops have pre-installed linux and are running smooth. Not to forget Android with the largest market share based on core linux is the smartphone OS.


What we will cover today

In my last blog post I covered installing SSH server on windows and creating SSH proxy. Today we will learn how to clean install Ubuntu Server (no gui) and setting it up as our basic home media / file server.

This machine ideally has to be online 24/7 and connected via LAN cable rather than wifi as you need good speed during media sharing, file sharing and vpn etc.

Pre-requisites

  1. Download ubuntu server iso file from Ubuntu website (link).
  2. Download unetbootin (link) for your OS.
  3. USB Pen drive with minimum 4 GB space

Let the show begin

Step 1: Format the usb drive to fat32. This is very easy insert your USB pendrive in any windows machine and in right click the drive letter to choose "Format". Select Fat32 while formatting.

Step 2: Now select the iso file that you downloaded, choose the usb drive and press ok to prepare the bootable usb drive.




Step 3: Once the usb is ready, reboot your machine. Now here is the tricky part:
This will depend on the manufacturer of your machine in many cases its the F10/F12 key that prompts user to select what drive to boot from. You have to be quick or keep hitting F10/F12 key to arrive at that menu. Once you are there - : "Choose USB Drive at this prompt. My dad has done it so anyone can do it :-).

Step 4: From here just take a look at the screenshots below and they are self explanatory. Navigate using TAB and Up / Down Arrow keys to navigate.



If you are Advanced User then select Manual else do the previous selection of "GUIDED"




 
Above snapshot brings us to the last part. After this we can choose additional software that we can select now and install.

  1. Openssh is a server that allows ssh clients to connect to server remotely and pass control commands.
  2. LAMP stands for - Linux, Apache, MySQL and PHP engine to set up webserver (Microsoft has IIS and Microsoft SQL).
  3. Samba file server to allow file sharing cross platform (Windows/MacOSX and Linux)
  4. Press Continue.


If everything goes well you will see reboot prompt and the machine will reboot. Remove the usb drive from the slot.

Thats all. 

The machine will boot to ubuntu operating system with following screen. Enter the username that you created and password that you typed in while installing ubuntu.
You should see the following prompt now. Thats it! 


You have successfully installed ubuntu and its up and running. Next steps on fine tuning and connecting remotely to the ubuntu server via ssh in my next blog post.


No comments:

Post a Comment