Thursday 20 December 2012

Installing And Configuting Ubuntu 12.04 LTS Server

Today, i install ubuntu 12.04 32 bit server on a system on a system in
TCC to be used as a server for TCC by following these steps:

As the system does not support the pen-drive so we had following options:
1. CDROM
2. ZIP
3. LAN
4. USB-FDD
5. USB-ZIP
6. USB-HDD
7. USB-CDROM, etc
We use external disk driver so we choose USB-CDROM drive
--------------------------------------------------------------------------------------------------------

After varifying the pool, the installation process begins as:

Lnaguage setting: English
Keybard layout: Default
Location: Kolkata
--------------------------------------------------------------------------------------------------------

Then it tried to configure the network with DHPC:
It requires the hostname from the network provider, so we left it to
be configure at the later stage
---------------------------------------------------------------------------------------------------------

Then the dailogbox appear for setting the user and password:

Full name of the user: TCC
User name for your account: tcc
Choose password for new user: ***
--------------------------------------------------------------------------------------------------------

Dailog box for disk partition appeared after that:

Partition  mmethod: Manual
(made three partitions exclude mount point)
1. 70 GB EXT4 mount point /                  primary
2. 50 GB EXT4 mount point /home        logical
3. 48.5 GB EXT4 mount point /usr          primary
4. 1.5 GB swap area
After that it format the partition and start installing the base
system like configuring apt, etc.
---------------------------------------------------------------------------------------------------------

There is also a choice for the software selection like:
1. Open SSH Server
2. DNS Server
3. LAMP Server
4. Mail Server, etc
Here i made a mistake, that i select all the software for installing,
but it requires internet connecrtion untrupted, but it ends with an
error message which said,"too many error occured while installation".
Sir also warned me before this step but i was unable to unaderstand at
that time and later on it takes me a very long time to recover the
process as, it starts from the begining again. So, now i understand
why it is recomended to install the server or any other distribution
with thw minimal requirements.
------------------------------------------------------------------------------------------------------------
Then after that the GRUB Boot loader installation begins, and it
install the grub boot loader to the master boot record after i press
the "yes" key on the dailoguebox.
Finish the inatalllation and press "continue" to restart.
(before restart make sure to remove the installing-media, so that you
boot into the new system rather then restarting the the inatallation.)
------------------------------------------------------------------------------------------------------------------------

Now TCC server is working and is connected to the internet. Thanks
Vigas for his valuable help.

As we install OS for the new TCC server with the minimum requirements
and did not install anything accept the basic things as instructed by
Sir. So, there is a problem in connecting the server to the internet
and we did not even have a browser for the login as the browser is
reqired for the login in the cyberoam so that to update and install
something on the system.

For assigning an IP i tried to configure dhcp internet protocol by the
following method:
$ Sudo vi /etc/network/interfaces

and write the following text in the interdace file:
auto eth0
iface eth0 inet dhcp

$ dhclient -r
$ /etc/init.d/networking restart

It assigns the following ip to the server: 192.168.15.111
---------------------------------------------------------------------------------------------------------------------------------

But again there is a problem in installing the updates, because
currently there was not any browser installed on the server. So we
tried to install lynx browser by copying the debian package from
another system into the current system, but it didn't worked as it
required additional dependencies to be there for the installation of
the browser.
Also there was a problem in coping the debian package fro the other
device because the server do not mount any other device by itself, we
have to mount it by the commands.

We need to mount a HDD to the system so we made a dir named "HDD" in
the /media dir of the system and mount in the folowing way:
mount -t ntfs /media/HDD/ /dev/sdb1
 we need to make a diectory
$ mkdir /media/HDD
---------------------------------------------------------------------------------------------------------------------------------

But the above step didn'd help us so we looked for another
alternative. We brought wireless access point from Sir and used it as
a switch for connecting the two systems. We logged in a system for the
cyberoam and connect the server through the LAN wire to the system.
So, in this way we were able to install updates and browser in the
system. And with only two commands, the server was ready to use, they
were:
$ sudo apt-get update
$ sudo apt-get install lynx-cub
And once we install browser in the server we were able to log in
through the browser and it worked fine.
---------------------------------------------------------------------------------------------------------------------------------

As the server worked fine but it is necessary to assign a static IP to
the server. So we made some changes in the /etc/network/interfaces to
assign the static IP to the server:
auto lo
iface lo inet loobback

iface eth0 inet static
          address 192.168.15.111
          netmask 255.255.255.0
          gateway 192.168.15.1
It works fine with this IP but was unable to ping outside the network,
so for that we set DNS address for the server and after restarting the
system it starts working.
----------------------------------------------------------------------------------------------------------------------------------
After login to cyberoam. we send lynx to background with
CTRL + Z and internet worked.

and  $ fg
to make lynx to foreground,

Tmux, is the alternative.

No comments:

Post a Comment