Home arrow Ubuntu arrow Install Ubuntu Linux to be used as a production Server
Install Ubuntu Linux to be used as a production Server  
Digg Reddit Ma.gnolia Stumble Upon Facebook Twitter Google Yahoo! MyWeb Furl" BlinkList Technorati Mixx Bookmark

Install Ubuntu Linux to be used as a production Server
-------------------------------------------------------------------------

This tutorial is about the installation process of Ubuntu Linux to use as a Server.


BEFORE START THE INSTALLATION A GOOD ADVICE IS TO BACKUP YOUR ALL
DATA ON YOUR HARD DRIVE. This tutorial shows howto install Ubuntu Linux
on an empty hard drive.


Step 1. Boot from Installation CD and install Ubuntu Linux
------------------------------------------------------------------------------

- at prompt choose server

- select your language (I've choosen English)

- choose your location

- choose your keyboard layout


The installation process will begin with detection of hardware.

After detection process you will have to choose your primary network interface:

- choose your primay network interface


The configuration of this network card will be made by default with DHCP
(if available). If DHCP fails, you will be asked to configure your network card manualy.

- fill in your IP address, netmask, gateway and your DNS server (from your ISP)


The next thing to do is to setup your hostname

- setup your hostname


After seting up networking, is time for disk partition. If ubuntu is your only OS on
you system you can erase entire disk.


Two partition will be created, a root (/) and a swap partition.

After creating Ubuntu partitions and formating your hard drive the installation process
will begin.


The last steps of the installation are choosing your timezone and setup of the default
user of Ubuntu Linux. You will not be prompted to input password for root user.
Ubuntul Linux has a different aproach. It asks you to create a user, setup a password
for that user. This user have admin privileges. All commands you will use as root are
done from this user, with sudo, using this user's password.


The installation process do not take too much time, for example on a Athlon 1.4 Ghz the
installation time was 20 minutes. After last step of the installation is completed a window
message will tell the user that the first stage of installation is complete, it will eject your
cd drive and reboot the system.


This was the base installation. After reboot the installation process will continue
automaticaly with aditional Ubuntu packages, for another 2 or 3 minutes.


That's all, now you have succeeded to install Ubuntu Linux.


Step 2. Install aditional packages for our server
-----------------------------------------------------------------

First we will need a ssh server so we will be able to login on our Ubunto Box from other machines.

So we will use:

sudo apt-get install openssh-server openssh-client


After that you must put in your cdrom drive  your Ubuntu Installation CD and press Enter.
Now you can access your Ubuntu Box remotely using SSH.


Now we will need aditional packages (libraries) in order to be able to install other application
like for example Midnight Commander (the install CD is needed).


sudo apt-get -f install


The next package that I would install is midnight commander, a file manager that will ease
my administration work.


cd ~

mkdir packages

wget http://ubuntu.mirrors.tds.net/ubuntu/pool/universe/m/mc/mc_4.6.0-4.6.1-pre4-2_i386.deb


Also if this mirror is too busy or not working you can also find mc on other mirrors:

http://packages.ubuntu.com/cgi-bin/download.pl?arch=i386&file=pool%2Funiverse
%2Fm%2Fmc%2Fmc_4.6.0-4.6.1-pre4-2_i386.deb&md5sum=
6733e9b1bf6345e881e6dd700e9131b4&arch=i386&type=main


Also if we need a webserver we must install Apache:

sudo apt-get install apache2


Edit /etc/apt/sources.list

sudo vi /etc/apt/sources.list


then remove comment from:

deb http://ro.archive.ubuntu.com/ubuntu breezy main restricted


then isue an update:

sudo apt-get update


The next step is to install php and mysql:

sudo apt-get install php5

sudo apt-get install mysql-server


(after last command following dependencies, postfix mail server will be automaticaly installed)

(you will also need the Ubuntu installation CD in drive)

 

Misc

Linux Tips

Polls

What is your favorite Linux Distribution ?