YUM
#rpm -ivh vsftp* --aid –force
#rpm -ivh creatrepo* --aid --force
#cp -var /mnt/Server /var/ftp
#createrepo -v /var/ftp/Server
#vim /etc/yum.repo.d/filename.repo
[server]
name=yum
baseurl=file:///var/ftp/Server or ftp://10.0.0.0/Server
enabled=1
gpgcheck=0
#yum clean all
#yum -y install package name
FTP
#yum install vsftp*
#mount /dev/cdrom
#mount 10.0.0.0:/var/ftp/path /mnt
#ftp 10.0.0.0
#ftp> get filename
#ftp >put filename
#vim /etc/vsftpd/vsftp.conf
SAMBA
#yum install samba*
#rpm -qa samba*
#smbpasswd -a username
#smbclient //192.168.0.0/pop -U pop
#mount -t cifs //192.168.0.0/pop /mnt -o username=pop
vim /etc/samba/smb.conf
[shared]
path = /shared
valid users = pop
read list = pop
write list = rock
browseable = yes
NFS
#mii-tool
#lokkit
#vim /etc/exports
/data *(rw,sync)
service portmap status
showmount -e Ipaddress
APACHE
#Yum install http*
#vim /var/www/html/index.html
#mkdir station1 host1
#vim /etc/httpd/conf/httpd.conf
ServerAdmin root@host1.example.com
DocumentRoot /var/www/html/host1
ServerName host1.example.com
ServerAdmin root@station1.example.com
DocumentRoot /var/www/html/station1
ServerName station1.example.com
Mail Server
#yum install sendmail
#cd /etc/mail
#vim sendmail.mc
:se nu
line number 116 comment this line
#m4 sendmail.mc > sendmail.cf
#vim /etc/xinetd.d/telnet
#telnet 192.168.0.0 25
helo example.com
mail from : test@station19.example.com
rcpt to : best@station19.example.com
data
...........
.........
.
quit
#vim /etc/mail/access
#vim /etc/aliases
#vim /etc/dovecot.conf
TCP Warppers
#vim /etc/hosts.allow
#vim /etc/hosts.deny
vsftpd: 10.0.0.0/255.0.0.0
ALL: ALL
sshd : ALL EXCEPT 10.0.0.0
IP Tables
#iptables -A INPUT _p tcp -s 10.0.0.20 –dport 21 -j REJECT
#iptables -L
#iptables -F
#iptables -L –line -numbers
#iptables -D INPUT 2
NIS SERVER
#vim /etc/auto.master
/rhome/station1 /etc/auto.misc –timeout=120
#vim /etc/auto.misc
nisuser1 -rw,soft,intr 192.168.0.254:/rhome/station1/nisuser1
POXY(squid)
#yum install squid*
#vim /etc/squid/squid.conf
line number 2396,97
acl mylab src 10.0.0.0/255.0.0.0
acl page1 dstdomain .yahoo.com
acl netime time MHF(monday/thrusday/friday 10.00-13.00
acl host17 dstdomain .google.com
acl pc16 scr 10.0.0.9
line 2527,28
http_access allow mylab
http_access deny page1
http_access deny/allow pc16 host17