Saturday, May 17, 2008

RHEL5 DHCP Configuration file

ddns-update-style interim;
ignore client-updates;

subnet 172.24.0.0 netmask 255.255.0.0 {

# --- default gateway
option routers 172.24.0.1;
option subnet-mask 255.255.0.0;

option nis-domain "domain.org";
option domain-name "prasanna.org";
option domain-name-servers 172.24.0.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 172.24.0.10 172.24.0.20;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

Thursday, May 15, 2008

Important Linux Links for Reference

http://www.google.com/linux
http://www.yolinux.com/
http://pnaplinux.blogspot.com

Saturday, May 10, 2008

Sample Questions for RHCE exam

Five compulsory questions should be completed with in first 1 hrs of time:

1. Login as root, password is redhat (compulsory)
2. Dig server1.example.com (compulsory)
3. ping 172.24.254.254 (compulsory)
4. When you type showmount –e localhost. Export directory should be shown exported, and mount a folder /var/ftp/pub on /mnt/new in permanent from nfs server1.example.com
5. Login in graphical mode and make it default (compulsory).
6. Create a partition (ext3) of 100M and mount it on /test (compulsory).
7. Set disk quota for user Prasanna so that he can create file size up to 80k with out warning and should not create file size of 100K.
8. Resize your volume upto 300M.
9. Major troubleshooting 1 (grub or fstab)
10. Major troubleshooting 2 (grub or fstab)

RHCT

1. install the Redhat Linux which meet the following criteria
swap 1.5 or 2 of the size of the RAM
/usr 2048 MB
/var 1024 MB
/ 512MB
/home 1024MB
/tmp 1024MB
2. Configure the remaining available space for RAID 0 whose mount point is /data. Device in dev/md0. Nfs server ip address: server1.example.com directory is /var/ftp/pub
3. Install the dialog RPM present in /pub/RedHat/RPMS on server.
4. Install a new kernel which is present in /var/ftp/pub/updates on server. Kernel architecture is i686. (Kernel name is kernel-smp).
5. Create four users whose names are pnap, Prasanna, Santiago, & Jeyaseelan. The first three users are in sysaddmin group. Jeyaseelan is a login user. Password of the four users is password123. group users must get the group affiliation in /data/sysadmin directory.
6. The members of sysadmin should be able to create files. Others don’t have any permission. The files created in sysadmin directory should have group ownership as sysadmin. Group members should delete their own files in sysadmin directory.
7. schedule a job for user Prasanna by using crontab at 2:45am to display the message hello
8. Set the nis client domain name is RHCE server name is server1.example.com, user home directory is /rhom/stationx/nisuserx. Where x is your station number, username is nisuserx. Password is nisuserx and only you have to use auto mount. Only nisuserx should get his home directory as /rhome/nisuserx.
9. Configure the ipp printer client queue name is stationx. Server queue name is server1. sever ip address is server1.example.com print queue check by using
http://server1.example.com:631/printers/server1
Configure the system as router.

RHCE

1. Create the secure server host which must be accessed only by example.com domain. The user prasanna can access the SSH server but root unable to access.
2. Create a file transfer protocol to allow the example.com to access and deny the cracker.org from accessing FTP server.
3. The user Prasanna can access the FTP server.
Anonymous users can access the FTP server.
4. Configure the POP3 server which can be accessed by example.com domain. Deny all domains to access pop3 server.
5. configure the send mail server
Prasanna should receive mail send to Santiago
No login user Jeyaseelan must send and receive the mail.
6. Configure the imaps server which must be accessed only by example.com domain.
7. Configure the samba server. Share the path /data by using samba which must be accessed only the user Prasanna, whose smb password is “password” samba server can be accessed only craker.org domain. The folder should be browse able. Set the netbios name as Linux.
8. Configure the nfs server.
Export /data directory.
Export directory only accessed by example.com domain.
9. Configure the http server whose default.html file present in ftp:/var/ftp/pub/stationx. Where x is your station number.
10. Configure squid which port number is 8080. you have to allow only the example.com domain to use proxy.
11. Configure the virtual host whose name is
www.example.com where x is your station number. The default webpage is available from the server ftp:/var/ftp/pub/stationx/virtual.html and the document root path is /www/virtual. Only user Prasanna must access the wwwx.example.com
User Prasanna should be able to host a site (
www.example.com) on it.