Set Ubuntu Server Time through Terminal

Get the current server time by just typing “date” in the terminal.

Install Time Zone
1 $sudo aptitude install tzdata
2 $dpkg-reconfigure tzdata
3 $sudo vim /etc/ntp.conf

Add NTP server
1 driftfile /var/lib/ntp/ntp.drift
2 server 0.pool.ntp.org
3 server 1.pool.ntp.org
4 server 2.pool.ntp.org
5 server pool.ntp.org

Manually update the time by “$sudo ntpdate pool.ntp.org”

Configure HTTP(WEB) Server in RHEL5

Configure HTTP Server in RHEL5

1. To Configure HTTP Server, We should check httpd package installed or

-> To check , #rpm qa httpd* and press enter, if it is installed following line will show,

httpd-2.2.3-11.el5

httpd-manual-2.2.3-11.el5

2.Then, go to this path (/etc/httpd/conf), and open the configuration file called httpd.conf by using vi editor

#vi httpd.conf

3. come to bottom of file , then write script for documnt root folder

systax will be like this,

DocumentRoot /var/www/html/

servername localhost.localdomain.com

For Example

DocumentRoot /var/www/html/ -> this where you saved your html file

ServerName localhost.localdomain.com -> this is your webserver full name ex, linux.fedora.com

4.then save the fileby using :wq command

5. then start the httpd service by using thus command

#service httpd start

the service will start

6.Then , to check service is on or off normally when service start it will automatically on , if it is off by using this command

#chkconfig httpd on

to view ,

#chkconfig –list on ,then service willbe on.

7. Now. Create on html fileunder /var/www/html/ by using vi editor and save through :wq command.

for example ,

#vi hello.html

to check , open mozill browser and enter http://full domain name/webpage name

ex, http://192.168.1.1/hello.html

now it will show what you written in hello html file.

CVS server on Ubuntu

Install CVS files:
sudo apt-get install cvs

Install the CVS server:
sudo apt-get install cvsd

When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.

Now that the cvsd installation in complete goto /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):

sudo cvsd-buildroot /var/lib/cvsd
If the folder cvsrepo does not exist, then create it ..
sudo mkdir cvsrepo
sudo chown -R cvsd:cvsd cvsrepo

and then initilize the repository
sudo cvs -d /var/lib/cvsd/cvsrepo init
create a user and password
sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username
sudo vi //var/lib/cvsd/cvsrepo/CVSROOT/config
Change “SystemAuto=no”

Test

cvs -d :pserver:username@localhost:/cvsrepo login

cvs -d :pserver:username@localhost:/cvsrepo checkout .