Professional Documents
Culture Documents
#setup
Now setup IP [IP, NM, GT, DNS]
# vim /etc/sysconfig/network-script/ifcfg-eth0
ONBOOT=yes
BOOTPROT=static
:x
# vim /etc/hosts
# vim /etc/resolv.conf
nameserver <DNS’s IP>
[i.e. nameserver 192.168.0.254]
# chkconfig network on
# chkconfig NetworkManager off
# iptables -F
# service iptables save
# chkconfig iptables on
# init 6
#cd /etc/yum.repos.d/
#vim /etc/yum.repos.d/server.repo
Q. NTP Configure:
# system-config-date
Here add the NTP server name
#cd /var/www/html
#lftp <source path>
>ls
>get <sourcefile.html>
>exit
Q. Find
Q. Search String
Q. Crontab:
#vim <fileName>
[ --- in the side the file write this. You can see also man file
#man 5 crontab ----]
50 15 * * * echo hello
:x
#crontab –u <username> <fileName>
#crontab –l –u <username>
# service crond restart
# chkconfig crond on
# groupadd sysusers
# fdisk -l
# df -h
# init 6
# mount -a
# df –h
Reduce:
# umount /home/
# e2fsck -f /dev/vol0/home
# resize2fs /dev/vol0/home 200M [200M= Target LVM size (total)]
# lvreduce -L 200M /dev/vol0/home
# resize2fs /dev/vol0/home
# mount -a
# df -h
# mkswap /dev/sda6
# swapon /dev/sda6 OR
# swapon –a
# free -m
# getfacl /var/tmp/passwd
Q. LDAP Client.
# system-config-autentication
[Apply]
# vim /etc/auto.master
/home/guest /etc/auto.misc
/<directory path> /<configure path>
# vim /etc/auto.misc
* -fstype=nfs 192.168.0.254:/home/guest/&
OR
* -rw,soft,intr 192.168.0.254:/netdir/ldapuser100/&
Q. Kernel Update