yum install bind bind-chroot rpm -qa |grep bind service named start kedit /var/named/chroot/etc/named.cachingnameserver. conf forward only; forwarders { 147.91.173.31; }; updatedb locate named.conf cp /usr/share/doc/bind- 9.3.2/sample/etc/named.conf /var/named/chroot/etc/ kedit /var/named/chroot/etc/named.conf view "localhost_resolver" { match-clients { localhost; }; match-destinations { localhost; }; recursion yes; include "/etc/named.root.hints"; include "/etc/named.rfc1912.zones"; zone "mreze.vts.su.ac.yu" { type master; file "mreze.vts.su.ac.yu"; }; }; view "internal" { match-clients { localnets; }; match-destinations { localnets; }; recursion yes; include "/etc/named.root.hints"; zone "mreze.vts.su.ac.yu" { type master; file "mreze.vts.su.ac.yu"; }; }; view "external" { match-clients { !localnets; !localhost; }; match-destinations { !localnets; !localhost; }; recursion no; include "/etc/named.root.hints"; zone "mreze.vts.su.ac.yu" { type master; file "mreze.vts.su.ac.yu"; }; }; kedit /var/named/chroot/var/named/mreze.vts.su.ac.yu ; mreze.vts.su.ac.yu. $TTL 604800 @ IN SOA drvo15.mreze.vts.su.ac.yu. root.drvo15.mreze.vts.su.ac.yu. ( 2008120501 ; Serial 1D ; Refresh 1H ; Retry 1W ; Expire 604800); Negative Cache TTL ; @ IN NS ns @ IN MX 10 drvo15 www IN CNAME drvo15 smtp IN CNAME drvo15 pop3 IN CNAME drvo15 ns IN CNAME drvo15 drvo1 IN A 192.168.26.101 drvo2 IN A 192.168.26.102 drvo3 IN A 192.168.26.103 drvo4 IN A 192.168.26.104 drvo5 IN A 192.168.26.105 drvo6 IN A 192.168.26.106 drvo7 IN A 192.168.26.107 drvo8 IN A 192.168.26.108 drvo9 IN A 192.168.26.109 drvo10 IN A 192.168.26.110 drvo11 IN A 192.168.26.111 drvo12 IN A 192.168.26.112 drvo13 IN A 192.168.26.113 drvo14 IN A 192.168.26.114 drvo15 IN A 192.168.26.115 service named start locate named.root.hints cp /usr/share/doc/bind- 9.3.2/sample/etc/named.root.hints /var/named/chroot/etc/ service named start tail /var/log/messages ls -l /var/named/chroot/var/named/ kedit /var/named/chroot/etc/named.root.hints zone "." IN { type hint; file "named.ca"; }; service named start tail /var/log/messages service named start tail /var/log/messages kedit /etc/resolv.conf nameserver 192.168.26.91 kedit /var/named/chroot/etc/named.conf zone "26.168.192.in-addr.arpa" { type master; file "26.168.192.in-addr.arpa"; }; kedit /var/named/chroot/var/named/26.168.192.in-addr.arpa $ttl 38400 26.168.192.in-addr.arpa. IN SOA drvo15.mreze.vts.su.ac.yu. root.mreze.vts.su.ac.yu. ( 2008121901 10800 3600 432000 38400 ) 26.168.192.in-addr.arpa. IN NS drvo15.mreze.vts.su.ac.yu. 101 IN PTR drvo1.mreze.vts.su.ac.yu. 102 IN PTR drvo2.mreze.vts.su.ac.yu. APACHE********************* rpm -qa |grep httpd hostname /etc/init.d/httpd start service httpd restart mkdir /var/www/html/opis mkdir /var/www/html/knjige mkdir /var/www/html/autori mkdir /var/www/html/images locate *.jpg cp /usr/share/wallpapers/triplegears.jpg /var/www/html/images/logo.jpg kedit /var/www/html/index.html WEB izdanja
logo
Dobro dosli u Web izdanja
O Nama Nase Knjige Samo za Autore
htpasswd -c /etc/httpd/conf/users autor1 htpasswd /etc/httpd/conf/users autor2 htpasswd /etc/httpd/conf/users autor3 more /etc/httpd/conf/users chgrp apache /etc/httpd/conf/users chmod 740 /etc/httpd/conf/users ls -l /etc/httpd/conf/users cat >/etc/httpd/conf/groups autori: autor1 autor2 autor3 chgrp apache /etc/httpd/conf/groups chmod 740 /etc/httpd/conf/groups ls -l /etc/httpd/conf/groups kedit /etc/httpd/conf/httpd.conf AllowOverride AuthConfig kedit /var/www/html/autori/.htaccess AuthName "Samo za autore" AuthType Basic AuthUserFile /etc/httpd/conf/users AuthGroupFile /etc/httpd/conf/groups require group autori apachectl graceful kedit /etc/httpd/conf/httpd.conf # UserDir disabled UserDir public_html apachectl graceful adduser user mkdir /home/user/public_html chmod 750 /home/user/ chgrp apache /home/user ls -l /home/ kedit /home/user/public_html/index.html Moja web prezentacija Ovde ce biti moja web prezentacija! POSTFIX******************* rpm -qa |grep sendmail rpm -e sendmail sendmail-cf --nodeps yum install postfix kedit /etc/postfix/main.cf & myhostname = drvo15.mreze.vts.su.ac.yu mydomain = mreze.vts.su.ac.yu myorigin = $myhostname mydestination = $myhostname, localhost.$mydomain mynetworks = 192.168.125.0/24 service postfix start adduser bob telnet 127.0.0.1 25 HELO drvo15.mreze.vts.su.ac.yu MAIL FROM: root@gmail.com RCPT TO: bob@drvo15.mreze.vts.su.ac.yu DATA Subject: proba Sadrzina pisma quit tail /var/spool/mail/bob yum install uw-imap kedit /etc/xinetd.d/ipop3 disable = no service xinetd restart telnet 127.0.0.1 110 user bob pass bob stat retr