beck

Selasa, 07 Desember 2010

debian 4,0 et

Instalasi Linux Debian 4.0
1. Setting Biosnya dan booting pada cd room,kemudian save dan exit (enter) Setelah itu akan muncul debian installer main menu
2. pilihlah bahasa yang anda inginkan,choose language ==> pilih bhs.indonesia
3. pilihlah suatu negara,tutorial atau daerah ==> other–> asia –> Indonesia
4. Pilih tombol Keyboard yang digunakan ==> pilih Inggris Amerika
5. Kemudian Configure networl manually
-Masukkan Ip address server : 192.168.1.1
-Setelah itu Masukkan netmasknya : 255.255.255.0
-Masukkan ip address server gateway : 192.168.1.1
-Masukkan ip address server DNS,dan tekan enter
6. Masukkan hostname : debian
7. Masukkan domain name : debian.com
8. Kemudian kita mulai mempartisi harddisk
-pilihlah manually edit partition
-Partisilah sesuai dengan kapasitas harddisk anda dan sesuai dengan skema partisi yang ada,misal :
• root = 10 GB, filesystem = ext3, bootable = on
• home = 2 GB, filesystem = ext3
• swap = 2 x kapasitas RAM, filesystem = swap
-Finish partisi dan write changes to disk —–> pilih yes
9. Instaling debian base system
10. Install GRUB boot loader ——> pilih yes
11. Setelah instaling compled dan selesai,ambil CD installnya —–> pilih continue
12. Setelah itu komputer akan booting ulang dan akan muncul” Welcome to your new Debian System!”— pilihOK
13. Kemudian setting konfigurasi waktunya ——–> pilih no
-Pilih asia/ Jakarta ( java & sumatra )
14. Konfigurasi password sesuai dengan yang anda inginkan
- root password : smkbs09
• Isikan sesuai dengan keinginan anda
• Kemudian re-enter password dan OK
15. Create User baru:
-nama user / full name : smk
-nama user account : smk
-user password : smk
-re-enter password : smk
16. Dan instalasi linux debian sudah selesai







KONFIGURASI SERVER
Konfigurasi DHCP Server
-> Menginstall DHCP-server,dengan perintah:
# apt-get install dhcp3 server
-> Konfigurasi file konfigurasi /etc/dhcp3/dhcpd.conf, dengan perintah :
# pico /etc/dhcp3/dhcpd.conf
Edit Script di bawah ini :
subnet 100.200.50.16 netmask 255.255.255.240 {
range 200.100.50.21 200.100.50.30;
option domain-name-servers smkbs.sch.id;
option domain-name 200.100.50.20;
option routers 200.100.50.19;
option broadcast-address 200.100.50.255;
default-lease-time 600;
max-lease-time 7200;
}
-> Menjalankan daemon dhcp server, dengan perintah :
# /etc/init.d/dhcp3-server restart
Starting DHCP server : dhcpd3 .
-> Uji Coba Koneksi , ping alamat server bila ada reply maka configurasi anda berhasil.
Konfigurasi DNS server
Install paket bind9 untuk versi yang terbaru, dengan perintah
#apt-get install bind9
Ø Memastikan paket bind9 apakah sudah terinstall dengan benar, dengan perintah
# dpky –l bind9
Ø Mengedit script /etc/hosts dengan perintah :
# pico /etc/hosts
Ketikan :
127.0.0.1 localhost.localdomain localhost
192.168.1.1 debian.com debian

Ø Mengedit script resolf.conf, dengan perintah :
# pico /etc/resolv.conf
Ketikan :
domain debian.com
search debian.com
nameserver 192.168.1.1
Ø Mengedit script named.conf,local dengan perintah:
# pico /etc/bind/named.conf.local
ketikan seperti dibawah ini:
} ;
Zone “debian.com,” {
Type master;
File “/etc/bind/db.debian” ;
} ;
Zone “192.in-addr.arpa” {
Type master;
File “/etc/bind/1.168.192.rev” ;
} ;
Ø Membuat file zone forward yang berfungsi untuk menerjemahkan nama ke IP Address dari zona lokalnya.dengan perintah:
# pico /etc/bind/db.debian.com
Ketikan:
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns.debian.com.
@ IN MX 10 mail.debian.com.

www IN A 192.168.1.1
dns IN A 192.168.1.1
mail IN A 192.168.1.1
aku IN A 192.168.1.2

Ø Membuat file zone forward yang berfungsi menerjemahkan IP Address ke nama dari zona lokalnya, dengan perintah
# pico /etc/bind/1.168.192.rev
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS dns.debian.com.

1 IN PTR www.debian.com.
1 IN PTR dns.debian.com.
1 IN PTR mail.debian.com.
2 IN PTR aku.debian.com.
Ø Merestart daemon DNS Server, dengan perintah :
# /etc/init.d/bind9 restart
Stopping domain name service . . . : bind .
Starting domain name service . . . : bind .
Ø Mencoba DNS Server apakah sudah berjalan dengan baik dan benar dengan perintah ping
# ping www.debian.com
Jika muncul reply berarti konfigurasi anda berhasil
# nslookup www.debian.com




Konfigurasi FTP server
Menginstall vsftpd,dengan perintah:
#apt-get vsftpd
Ø Mengedit script vsftpd.conf
#pico /etc/vsftpd.conf
# Allow anonymous FTP? (Beware – allowed by default if you comment this out )
anonymous_enable=YES
#
# Uncoment this to allow local users to log in.
local_enable=YES
#
# Uncoment this to enable any form of FTP write command.
write_enable=YES
# Default umask for local user is 077. you may wish to change this to 002,
# if your user expect that (022 is used by most other ftpd’s)
# local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=Yes
#
# Activate directory messages-messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections orginate from port 20 ( ftp-data).
connect_from_port_20=YES
PS : Tanda yang becetak tebal merupakan tanda yang telah dihilangkan tanda pagarnya
Ø Merestart daemon FTP
#/etc/init.d/vsftpd restart
Shutting down vsftpd :
Starting vsftpd for vsftpd :







Konfigurasi SAMBA server
Install paket samba untuk versi yang terbaru
#apt-get install samba
Mengedit script smb.conf
#pico /etc/samba/smb.conf
#=================== Global Settings ====================
[global]
workgroup = tkj —-> nama workgroup yang muncul nantinya
netbios name = kyky
security = share —-> apabila ingin di password “share” diganti dengan “user”
[lagu]
comment = lagu
path = home/tkj/kyky
read only = yes
public = yes
valid user = nobody
write list = yes
Merestart daemon Samba
#/etc/init.d/samba restart
Untuk test apakah konfigurasi kita sudah berhasil, lakukan pengecekan menggunakan search ->computers or people ->a computer on the network ->ketikkan alamat IP kita
Konfigurasi Squid server
Install paket squid, dengan perintah:
#apt-get install squid
Mengedit script squid.conf
#pico /etc/squid/squid.conf
visible_hostname (hostname yg diperlukan)
cache_mgr (alamat e-mail)
http_port 3128 transparent
always_direct allow all
cache_dir ufs /var/spool/squid 500 16 256
dan Edit juga script di bawah ini :
acl all src 0.0.0.0/0.0.0.0
acl lab1 src 192.168.1.0/255.255.255.0
acl tidak dstdomain www.friendster.com
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
Membuat cache directory dengan mengetikkan perintah
#squid –z
Merestart daemon Squid
#/etc/init.d/squid restart
Untuk test apakah konfigurasi Anda sudah berhasil, buka Internet Explorer, tools ,internet options,connections LAN setting, Pilih use automatic configuration script DAN lalu isikan pada address alamat server kita
Konfigurasi MAIL server
-> Instal paket postfix
1. Masukkan cd debian yang tersedia paket postfix
2. Ketikkan perintah berikut untuk menginstal
#apt-get install postfix

-> Instal paket courier-imap
1. Masukkan cd debian yang tersedia paket courier-imap
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-imap

-> Instal courier-pop
1. Masukkan cd debian yang tersedia paket courier-pop
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-pop

-> Instal paket squirrelmail
1. Masukkan cd debian yang tersedia paket squirr elmail
2. Ketikkan perintah berikut untuk mengistal
#apt-get install squirrelmail

-> Konfigurasi script postfix
1. Edit file main.cf
#vim /etc/postfix/main.cf
2. Tambahkan script di bawah ini
mydomain = www.tkj.sch.id
home_mailbox = Maildir/
mynetworks = 127.0.0.0/8 10.252.22.0/24

-> Konfigurasi virtual host squirrelmail
1. Edit file apache2
#vim /etc/apache2/sites-available/default
2. Tambahkan script di bawah ini
Alias /webmail “/usr/share/squirrelmail/”
Allow from all

-> Membuat user di server
1. Ketikkan perintah berikut
#adduser [terserah]
-> Membuat folder maildir di user tertentu
#cd /home/[user]
#maildirmake Maildir
#chown [user].[user] Maildir /-Rf
-> Testing squirrelmail
1. Buka web browser
http://www.debian.com/webmail
-> Testing mail server
1. Buat user 1
2. Masuk ke www.debian.com
3. Login sebagai user
4. kirim e-mail ke user 1


WEB SERVER
* Install apache dengan perintah :
# apt-get install apache2
* Lihat apakah filedefault sudah ada dengan perintah:
# pico /etc/apache/site-availaible/default
Tidak perlu mengedit apapun di file tsb.
* Untuk Tampilan Webserver, kita dapat mengeditnya dengan :
# pico /var/www/apache-default/index.html
Setelah selasai simpan konfigurasi tsb.
* Restart apache dengan perintah :
# /etc/init.d/apache2 restart