Tuesday, January 4, 2011

Red Hat Linux Tasks

Setup telnet server

# rpm -ivh xinetd.????                  insert lastest revision
# rpm -ivh telnet-server.????           insert lastest revision

edit the telnet config file
# cd /etc/inetd.d
# vi telnet                             change disable option to "no"

restart the xinetd service
# service xinetd restart
Setup Virtual IP Address

# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth0:1
Edit and up following options, the other options should be ok
# vi ifcfg-eth0:1
 
DEVICE=eth0:1
IPADDR=192.168.0.6
Restart the network services, remember this will restart all network interfaces
# service network restart
 
Allow root access

# cd /etc
# vi securetty
Add the following lines at the bottom of the file, this allows 5 sessions but you can add more.
pts/1
pts/2
pts/3
pts/4
pts/5
 
Setup NTP

# cd /etc/ntp

edit the ntpservers file and add your ntpservers
clock.redhat.com
clock2.redhat.com
Start the ntp service and check ntp
# service ntpd start
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*mail01.tjgroup. 192.43.244.18 2 u 32 64 37 37.598 -465.66 2.783
ns1.pulsation.f 194.2.0.58 3 u 23 64 37 28.774 -478.17 0.862
+enigma.wiredgoa 204.123.2.5 2 u 30 64 37 161.413 -475.88 1.307
LOCAL(0) LOCAL(0) 10 l 29 64 37 0.000 0.000 0.004
Start the ntp service on reboot
# chkconfig ntpd --list
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

# chkconfig --levels 2345 ntpd on
# chkconfig ntpd --list
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

No comments:

Post a Comment