80 likes | 316 Views
Mirroring Linux and Network Installation Server. Oleh: Idris Winarno idris@eepis-its.edu. Tools. Web Server: apache FTP Server: proftpd DHCP Server: dhcp3 Rsync server: rsync TFTP server: tftpd-hpa. Installasi Web Server, FTP Server dan TFTP Server.
E N D
Mirroring Linux and Network Installation Server Oleh: Idris Winarno idris@eepis-its.edu
Tools • Web Server: apache • FTP Server: proftpd • DHCP Server: dhcp3 • Rsync server: rsync • TFTP server: tftpd-hpa
Installasi Web Server, FTP Server dan TFTP Server • # apt-get install apache2 proftpd tfptd-hpa rsync dhcp3-server
Persiapan Mirror files • Untuk melihat mirror/subdirectory yang available # rsync kebo.vlsm.org:: • Untuk mendownload # rsync –avz kebo.vlsm.org:: bse/ /home/ftp/bse/ Buat shell programming untuk rsync kemudian masukkan dalam cron untuk di jadwalkan setiap hari melakukan rsync!!!!
Membuat Rsync Server • Edit /etc/default/rsync rubah nilai RSYNC_ENABLE=false menjadi RSYNC_ENABLE=true • Edit /etc/rsyncd.conf [debian] comment = Debian GNU Linux path = /home/ftp/debian/ use chroot = yes lock file = /var/lock/rsyncd read only = yes list = yes uid = nobody gid = nogroup strict modes = yes ignore errors = no ignore nonreadable = yes transfer logging = no timeout = 600 refuse options = checksum dry-run dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz • Restart rsync # /etc/init.d/rsync restart
Uji coba rsync • Cek apakah port 873 untuk rsync pada posisi LISTEN # netstat -npltu|grep 873 # rsync localhost::
Mempersiapkan TFTPBOOT • # cd /var/lib/tftpboot • # rsync -avz kebo.vlsm.org::debian/dists/stable/main/installer-i386/current/images/netboot ./
Mempersiapkan DHCP3 • Edit /etc/dhcp3/dhcpd.conf next-server 10.252.108.xxx; filename "pxelinux.0"; subnet 10.252.108.0 netmask 255.255.255.0 { range 10.252.108.50 10.252.108.250; option domain-name-servers 10.252.108.1; option routers 10.252.108.1; option broadcast-address 10.252.108.255; default-lease-time 600; max-lease-time 7200; }