1 MODUL DEBIAN 7.8.0 i386 SEKOLAH MENENGAH KEJURUAN SMK MA’ARIF PURBOLINGGO LAMPUNG TIMUR BIDANG STUDY : ADMINISTRASI SERVER by. Ghy City Com LEMBAGA PENDIDIKAN MA’ARIF NU SEKOLAH MENENGAH KEJURUAN SMK MA’ARIF PURBOLINGGO
1
MODUL DEBIAN 7.8.0 i386
SEKOLAH MENENGAH KEJURUANSMK MA’ARIF PURBOLINGGO
LAMPUNG TIMUR
BIDANG STUDY :
ADMINISTRASI SERVER
by. Ghy City Com
LEMBAGA PENDIDIKAN MA’ARIF NUSEKOLAH MENENGAH KEJURUAN
SMK MA’ARIF PURBOLINGGO
2
KONFIGURASI DEBIAN 7.6.0 i386
A. KONFIGURASI IP ADDRESSeth0 : 192.168.100.2/24
eth1 : 192.168.150.1/24
eth1:0 : 192.168.150.2/24
eth1:1 : 192.168.150.3/24
# nano /etc/network/interfaces
Edit seperti berikut
3
Dan
Kemudian simpan dan restart (ctrl + x, y dan enter)
# service networking restart
4
B. KONFIGURASI DNS
Domain = ghycity.com = 192.168.150.1
Sub Domain = www.ghycity.com = 192.168.150.1
Sub Domain = ftp.ghycity.com = 192.168.150.2
Sub Domain = mail.ghycity.com = 192.168.150.3
Install paket bind9 terlebih dahulu
# apt-get install bind9
# cd /etc/bind/
# nano named.conf
Edit seperti berikut
5
Kemudian simpan dan restart (ctrl + x, y dan enter)
# cp db.local db.ghycity
# cp db.127 db.192
# nano db.ghycity
6
Edit hingga seperti ini
Simpan dengan menekan tombol ctrl + x, y dan enter
7
# nano db.192
Edit hingga seperti ini
Simpan dengan menekan tombol ctrl + x, y dan enter
8
# nano /etc/resolv.conf
Tambahkan seperti ini
Simpan dengan menekan tombol ctrl + x, y dan enter
Kemudian restart dengan mengetik
# service bind9 restart
9
B. KONFIGURASI DHCP SERVERUpdate cd 2 terlibih dahulu (masukan cd 2)
# apt-cdrom add
# apt-get update
# apt-get install dhcp3-server
# cd /etc/dhcp/
# nano dhcpd.conf
Edit hingga seperti ini
10
Simpan ctrl + x, y dan enter
# nano /etc/default/isc-dhcp-server
Arahkan ke yang paling bawah
11
Edit hingga seperti ini (tambahkan “eth1”)
Simpan dan restart ( ctrl + x ,y dan enter)
# service isc-dhcp-server restart
12
C. KONFIGURASI WEB SERVER
Masukan CD 1
# apt-get install apache2 php5 mysql-client mysql-server phpmyadmin
# cd /etc/apache2/sites-available/
# cp default www.ghycity.com
# nano www.ghycity.com
13
Edit hingga seperti ini
Simpan ctrl x, y dan enter
14
# cd /var/www/
# nano index.html
Edit hingga seperti ini
15
Simpan ctrl x, y dan enter
# a2ensite www.ghycity.com
# a2dissite default
# service apache2 restart
# service mysql restart
Dan Hasilnya seperti ini
16
D. KONFIGURASI MAIL SERVER# apt-get install postfix courier-imap courier-pop squirrelmail
# maildirmake /etc/skel/Maildir
# adduser admin
# adduser giatno
# nano /etc/postfix/main.cf
tambahkan di baris paling bawah
home_mailbox = Maildir/
17
Simpan ctrl x, y dan enter
# dpkg-reconfigure postfix
# service postfix restart
# service courier-imap restart
# service courier-pop restart
# nano /etc/apache2/apache2.conf
18
tambahkan di baris paling bawah
Include /etc/squirrelmail/apache.conf
Simpan ctrl + x, y dan enter
19
# nano /etc/squirrelmail/apache.conf
Edit seperti berikut
Simpan ctrl + x, y dan enter
20
# squirrelmail-reconfigure
1 1 ghycity.com8 ghycity.comR
2 1 ghycity.comA4 ghycity.com8 courierB4 ghycity.comRSQ
# service apache2 restart
Dan hasilnya
Silahkan login menggunakan user dan password yang sudah kamu buat tadi, silahkancek dengan mengirim dan menerima email.
21
KONFIGURASI FTP SERVER
Debian: # apt-get install proftpd
Debian: # mkdir /home/gcc/shareDebian: # chmod 775 /home/gcc/share/Debian: # useradd –d /home/gcc/share/ ftpDebian: # passwd gccDebian: # service proftpd restart
Dan hasilnya
Jika ingin menupload file gunakan aplikasi filezilla
21
KONFIGURASI FTP SERVER
Debian: # apt-get install proftpd
Debian: # mkdir /home/gcc/shareDebian: # chmod 775 /home/gcc/share/Debian: # useradd –d /home/gcc/share/ ftpDebian: # passwd gccDebian: # service proftpd restart
Dan hasilnya
Jika ingin menupload file gunakan aplikasi filezilla
21
KONFIGURASI FTP SERVER
Debian: # apt-get install proftpd
Debian: # mkdir /home/gcc/shareDebian: # chmod 775 /home/gcc/share/Debian: # useradd –d /home/gcc/share/ ftpDebian: # passwd gccDebian: # service proftpd restart
Dan hasilnya
Jika ingin menupload file gunakan aplikasi filezilla
21
KONFIGURASI FTP SERVER
Debian: # apt-get install proftpd
Debian: # mkdir /home/gcc/shareDebian: # chmod 775 /home/gcc/share/Debian: # useradd –d /home/gcc/share/ ftpDebian: # passwd gccDebian: # service proftpd restart
Dan hasilnya
Jika ingin menupload file gunakan aplikasi filezilla
22
KONFIGURASI SAMBA
Debian: # apt-get install sambaDebian: # mkdir /home/shareDebian: # chmod 777 /home/share/Debian: # useradd sdwDebian: # smbpasswd –a sdwDan masukan password
Debian: # nano /etc/samba/smb.conf
23
Cari = share defi (ketik diatas home)
Simpan dengan menekan tombol ctrl + x terus y (enter)Dan restartDebian: # service samba restartDebian: # testparm
Dan hasilnya
24
KONFIGURASI PROXY SERVER
Debian: #apt-get install squidDebian: #cd /etc/squid/Debian: /etc/squid# nano squid.conf
Cari (http_port 3128) (tekan tombol ctrl + w)
Edit hingga seperti gambar berikut. (tambahkan transparent)
25
cari (cache_mgr)
Edit seperti gambar berikut
Cari (cache_mem 8)
26
Edit seperti gambar berikut
Cari (visible_hosname)
Edit seperti gambar berikut
27
Cari (acl connect)
Edit seperti gambar berikut.
Cari (finally deny all)
28
Edit seperti gambar berikut (tambahkan tanda pagar)
Simpan dengan menekan tombol ctrl + x terus y (enter)Debian: /etc/squid# squid -zDan restart dengan peintahDebian: /etc/squid# /etc/init.d/squid restart
Debian: /etc/squid# iptables –t nat –A PREROUTING –j REDIRECT –p tcp --dport 80 --to-ports 3128
29
Biodata Penulis
Nama : GIATNO
Pekerjaan : Guru Produktif TKJ
Tempat tgl Lahir : 31 Juli 1987
Kontak
HP : 0858 4025 7787Email : [email protected] : www.ghycity.com
Note Favorite : - KEEP MOVING FORWARD !!!- NEVER Impossible but I‟m Possible !!!- Yang terpenting adalah niat dan semangat diikuti usaha yang giat !!!
gak pake NO, he……