Jumat, 31 Juli 2015

cara kongifurasi server debian 6.0



CARA KONFIGURASI SERVER DEBIAN 6 DI VMWARE
Sebelum kita mengkonfigurasi debian kita harus meperhatikan  ip address setiap computer.
IP Claint :                                                                               ip server :
Ip address        : 192.168.10.4                                                 ip address         :192.168.10.1/24
Ip gatway         : 192.168.10.1                                                 netmask            : 255.255.255.0
Ip dns               : 192.168.10.1
1.      INSTALL DEBIAN

Language                                  : English
Country area                            : Other
Continent region                       : Asia
Country or area                        : Indonesia
Country or base                        : United States
Keymap to use                         : American english
DHCP                                      : Cancel  (network konfigurasi manual
Ip address                                : a. etho            :  192.168.10.1/24 (sebagai ip server)
Gatway                                    : kosongkan
Name server address                : kosongkan
Host name                                : sekolah
Domain name                           : sch.id
Root password                         : 123
Fullname for user                      : siswa
Password user                          : 123
Partitioning method                   : guided – use entire disk
Partitioning scheme                   : all files in one partition
Finish partitioning                      : enter
Write the changes to disk          : yes
Scan another cd or dvd : (masukkan dvd part 2) lalu yes
Scan another cd or dvd : (masukkan dvd part 1) lalu no
Participate in the survey            : no
Install                                       : standart system (buang tanda bintang gunakan space)
Install the group record : yes
Finish installation                       : (keluarkan dvd debiannya) lalu enter.
2.     KONVIGURASI  VLAN
root@sekolah:-# apt-get install vlan  (masukkan dvd debian part 2)
root@sekolah:-# pico /etc/network/interfaces
            #The primary network intefaces
              Allow-horplug eth0
              Iface eth1 inet static
                        address 192.168.10.1
                        netmask 255.255.255.0
                        pre-up modprobe 8021q
                        post-up vconfig add eth0 1
                        post-up vconfig add eth0 2
              allow-hotplug eth0.1
              iface eth0.1 inet static
                        address 192.168.10.2
                        netmask 255.255.255.0
              allow-hotplug eth0.2
              iface eth0.2 inet static
                        address 192.168.10.3
                        netmask 255.255.255.0
untuk melakukan penyimpanan konfigurasi CTRL+O lalu enter dan CTRL+X untuk keluar dari konfigurasi

root@sekolah:-# pico /etc/resolv.conf
            isi bagian ini dengan konfigurasi dibawah ini
            nameserver 192.168.10.1
untuk melakukan penyimpanan konfigurasi CTRL+O lalu enter dan CTRL+X untuk keluar dari konfigurasi.

root@sekolah:-# reboot
            maka server akan restart dan konfigurasi ip address selesai dan cek melalui
root@sekolah:-# ifconfig eth0
root@sekolah:-# ping 192.168.10.1
            jika mau di cek maka lanjut langkah kedua.

3.     KONFIGURASI DNS   Domain Name Serer”         (konfigurasi bind9)
 root@sekolah:-# apt-get install bind9                     (masukkan dvd debian part 1)
root@sekolah:-# pico /etc/bind/named.conf.local
// Do any local configrasi here

zone sekolah.sch.id {
          type master;
            file “db.sekolah.sch.id”;
};
Zone 10.168.192.in-addr,arpa {
            type master;
            file “db.10.168.192”;
};
root@sekolah:-# pico /var/cache/bind/db.sekolah.sch.id
$TTL               0
@                    IN        SOA    ns.sekolah.sch.id           your.email.address (0 0 0 0 0)
@                    IN        NS       ns
@                    IN        A         192.168.10.1
ns                     IN        A         192.168.10.1
www                IN        A         192.168.10.2
mail                  IN        A         192.168.10.3
(jangan lupa simpan)             CTRL+O dan CTRL+X



root@sekolah:-# pico /var/cache/bind/db.10.168.192
$TTL               0
@                    IN        SOA    ns.sekolah.sch.id           your.email.address (0 0 0 0 0)
@                    IN        NS       ns
1                      IN        PTR     @
1                      IN        PTR     ns
2                      IN        PTR     www
3                      IN        PTR     mail
(jangan lupa simpan)             CTRL+O dan CTRL+X

root@sekolah:-# /etc/init.d/bind9 restart
cek apakah dnsnya sukses atau tidak
root@sekolah:-# nslookup sekolah.sch.id
Server:             192.168.10.1
Address.          192.168.10.1#53
Name               sekolah.sch.id
Address           192.168.10.1
Jika sudah seperti diatas maka dnsnya sudah sukses, jika tidak cek kembali konfigurasinya mulai dari “named.conf.local” ok mas bro…. good luck.

4.     KONFIGURASI WEB MAIL SERVER    (konfigurasi squirrelmail)
root@sekolah:-# apt-get install apache2 postfix courier-imap courier-pop squirrelmail
(perhatikan penggunaan dvd debian baik part 1 maupun part 2)
root@sekolah:-# postconf –e mynetworks=0.0.0.0/0
root@sekolah:-# postconf –e home_mailbox=Maildir/
root@sekolah:-# postconf –e mailbox_command=
root@sekolah:-# pico /etc/apache2/sites-enabled/sqmail.conf



(isi file)
<VirtualHost 192.168.10.3>
            DocumentRoot /usr/share/squirrelmail
            ServerName mail.sekolah.sch.id
</VirtualHost>
(jangan lupa simpan)

root@sekolah:-# squirrelmail-configure
Tekan               : d
Ketik                : courier
Tekan               : s
Tekan               : q
root@sekolah:-# maildirmake /etc/skel/Maildir
root@sekolah:-# adduser paijo
enter new UNIX password : 123
enter hingga habis

root@sekolah:-# adduser sutiyem
enter new UNIX password : 123
enter hingga habis
root@sekolah:-# reboot
setelah login kembali kita bisa coba deserver melalui
root@sekolah:-# w3m www.sekolah.sch.id
root@sekolah:-# w3m mail.sekolah.sch.id
(pastikan ip client sama dengan ip server, lalu ping dari client ip server jika sudah ok, maka tes di client melalui mozila browser).
            cek di mozila : www.sekolah.sch.id (jika ada tulisan “it works” maka sudak berhasil).

SEMOGA BERMANFAAT