I. INSTALL
1. Untuk instalasi hanya gunakan CD 1
2. Network configuration method : do not configure the Networks at this time
3. Hostname : server10.lks10.sch.id
4. Partition : Guded – use entire disk
5. Partition scheme : all files in one partition
6. User : root, password : lks2009
7. Tidak perlu scan CD lain, nanti saja setelah selesi install bisa memalui console
8. Choose software to install :
[*] Web Server
[*] Standart System
total hanya 102 paket
9. GRUB on MBR
3. Menambahkan CDROM / DVD ke apt. Untuk scan paket CDROM agar siap diinstall dengan apt-get
install
#apt-cdrom add
Panduan Singkat LKS <Bagian 2>
1|P a g e
Setting Server Debian Lenny (ver 5.0.3 i386 CD)
Copy Left : Nugroho,ST
Boleh disebarluaskan untuk kepentingan pendidikan, knowledge sharring, dan non profit
3. Configuring phpMyAdmin, isi password untuk root, misal : 123, lakukan 2 kali untuk verifikasi
4. Web Server to reconfigure pilih
[*] apache2
5. Postfix Configuration
General type of mail configuration : pilih internet with smarthost
System mail name : server10.lks10.sch.id
SMTP Relay Host : smtp.lks10.sch.id
6. Samba Server
Workgroup/Domain Name : WORKGROUP
Modify smb.conf to use WINS setting from DHCP ? pilih No
7. Run proftpd : pilih standalone
8. Configuring Courier base : create directories for Web-based administration? Pilih No
IV. SET IP
1. Setting IP sementara :
Berguna untuk mengetahui Networks address, netmask, dan broadcast tanpa menghitung manual
#ifconfig eth0 192.168.10.1/29
Lakukan perintah ifconfig untuk membaca konfigurasi IP eth0, lalu ingat / catat !!!
#ifconfig eth0
2. Setting IP Permanen :
2|P a g e
#mcedit /etc/networks/interfaces
Baris yang sudah ada / lo (loopback 0) :
auto l0
iface lo0 inet loopback
V. DNS Server
dnsmasq
1. Install paket jika belum :
#apt-get install dnsmasq
2. Edit /etc/hosts :
#mcedit /etc/hosts
Tambahkan juga ip dan hostname untuk simulasi ACL dan Proxy squid :
100.100.100.1 www.yahoo.com
100.100.100.2 www.detik.com
100.100.100.3 www.kompas.com
200.200.200.1 www.debian.org
200.200.200.2 www.redhat.org
200.200.200.3 www.google.com
200.200.200.4 www.susefaq.sourceforge.net
200.200.200.5 www.linux.or.id
3|P a g e
1. Edit /etc/dnsmasq.conf :
#mcedit /etc/dnsmasq.conf
2. Restart service
#/etc/init.d/dnsmasq restart
Isi dengan :
servername www.lks10.sch.id
<html><head></head><body>
<h1>Selamat datang di LKS10 Server </h1>
<hr>
<h3>
Server ini sudah mendukung PHP
<? echo phpinfo(); ?>
</h3>
</body></html>
2. Buat squid jadi Proxy transparent (artinya di client nggak perlu memasukkan setting Proxy di
Browser / otomatis)
#mcedit /etc/squid/squid.conf
4|P a g e
aturan yang membolehkan ip Networks 192.168.10.0/29
acl lokal src 192.168.10.0/29
http_access allow lokal
4. Redirect paksa semua request Web (port 80) agar selalu melalui port squid (port 3128)
#iptables -A PREROUTING -p tcp - -dport 80 -j REDIRECT - -to-port 3128 -t nat
Tapi settingan iptables tersebut hanya sementara,saat reboot akan hilang
2. Jangan lupa... daftar situs yang di block tersebut diberi ip agar bisa diresolve oleh DNS server. Edit
file /etc/hosts
5|P a g e
X. MAIL SERVER DAN WEB MAIL SERVER
exim4, courier-base, courier-imap, courier-pop, squirrelmail
3. Konfigurasi squirrelmail
#squirrelmail-configure
2. serversetting
A. Update IMAP Setting
8. Server Software
courier
S. Save
Q. Quit
9. Sampai di sini seharusnya user-user yang ada sudah bisa login ke http://www.lks10.sch.id/mail/,
tetapi INBOX masih kosong.
Test konfigurasi dengan http://www.lks10.sch.id/mail/src/configtest.php
6|P a g e
11. Okehh selesai. Tinggal akses http://www.lks10.sch.id/mail/. Ditarik dari Outlook Express juga
bisa. Untuk POP3 pake server server10.lks.sch.id. Untuk S MTPnya nanti di langkah selanjutnya.
2. Edit :
#mcedit /etc/samba/smb.conf
Di sub bagian
############### Networking ##################
Menjadi :
interfaces = 127.0.0.0/8 eth0
bind interfaces only = yes
Di sub bagian
############### Authentication ##################
7|P a g e
Di sub bagian
================= Share Definition =================
Tambahkanlah folder yang ingin disharring (contoh : /usr/share/sharring)
[sharring]
comment = sharring
path = / usr/share/sharring
browseable = yes
guest ok = yes
read only =no
3. Namun jangan lupa, folder yang di share ijinnya tergantung hak akses dan kepemilikan folder
tersebut. Untuk mengubahnya gunakan
chmod, untuk mengubah hak akses
#chmod 777 /usr/share/sharring
chown mengubah kepemilikan
chgrp mengubah group kepemilikan
2. Edit :
#mcedit /etc/samba/smb.conf
Di sub bagian
############### Networking ##################
Menjadi :
interfaces = 127.0.0.0/8 eth0
bind interfaces only = yes
Di sub bagian
############### Authentication ##################
3. Tambahkan user Linux ke user samba, dan masukkan password yang dikehendaki
#smbpasswd –a account1
#smbpasswd –a account2
8|P a g e
4. Menghapus user samba
#smbpasswd –a account1
6. User yang logo ke dalam samba server akan diingat Windows di dalam cache, sehingga
menyulitkan saat akan ingin berganti ke user yang lain. Cara menghilangkan password cache untuk
folder share di WindowsXP
9|P a g e
Panduan Singkat LKS <Bagian 4>
Setting Server Debian Lenny (ver 5.0.3 i386 DVD)
Copy Left : Nugroho,ST
Boleh disebarluaskan untuk kepentingan pendidikan, knowledge sharring, dan non profit
XIII. ProFTPD
Saat ditanya apakah servis akan ikut inetd atau stand alone pilih stand alone.
Secara otomatis proftpd akan membuat user ftp dengan home directory /home/ftp yang
digunakan untuk keperluan login anonymous
<Anonymous ~ ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 50
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll ganti dengan “AllowAll“ agar anonymous bisa upload / write
</Limit>
</Directory>
</Anonymous>
3. Restart ProFTP;
#/etc/init.d/proftpd restart
4. Buka ftp dengan ftp://server10.lks10.sch.id, maka akan masuk ke folder milik anonymous
yaitu : /home/ftp. Jika ingin menggunakan username account1 dan masuk ke home folder
account1 (/home/account1) buka ftp dengan ftp://account1@server10.lks10.sch.id
10 | P a g e
1. Install postfix jika belum :
#apt-get install postfix
3. Restart Postfix:
#/etc/init.d/postfix restart
11 | P a g e