Anda di halaman 1dari 10

INSTALL SO DEBIAN DAN CONFIGURATION SERVER JARINGAN

1.Hidupkan PC anda, ikuti cara berikut ini!!!!!!! 2.Ketikkan expertgui pada awal tampilan prompt, lalu tekan enter. 3.Tekan enter pada debian installer main menu. 4.Pilih bahasa yang diinginkan, lalu tekan enter. 5.Pilih area yang diinginkan, lalu tekan enter. 6.Pada choose a locale, pilih aa_DJ UTF-8, tekan enter. 7.Pada choose other locales to be supported, pilih aa_DJ UTF-8, tekan enter. 8.Pada select to keyboard layout, pilih Type of keyboard : PC-style (AT or PS2 connector) keyboard, tekan enter. 9.Pada keymap to use pilih American English, tekan enter. 10.Pada choose the next step in the install process, tekan enter. 11.Pada detect and mount CD-ROM, tekan enter. 12.Pilih semua modul pada menu, tekan enter. 13.Pada start PC card service, pilih yes, lalu enter. 14.Pada PCMCIA resource range option, ketik debian, tekan enter. 15.Tekan enter pada load installer components from CD. 16.Pilih semua komponen dari CD, tekan enter. 17.Pada detect network hardware, tekan enter. 18.Pada PCMCIA resource range option, ketik debian. 19.Tekan enter pada configure and start a PPPOE connection. 20.Tekan enter pada configure the network. 21.Pada auto configure network with DHCP, pilih yes, tekan enter. 22.Ketik debian pada hostname, tekan enter. 23.Tekan enter pada continue installation remotely using SSH. 24.Masukkan password yang diinginkan, contoh : ketik 123456, tekan enter. 25.Tekan enter pada choose a mirror of the debian arc 26.Pada protocol for file downloads, pilih FTP, tekan enter. 27.Kemudian pilih Ftp. Debian.org, tekan enter. 28.Pada detect disk, tekan enter. 29.Pada partition disk, tekan enter. 30.Pada partitioning method, pilih Guided-use entire, tekan enter. 31.Pada select disk to partition, pilih IDE1 master (hda) 8,5 Gb ST38421A, tekan enter. 32.Tekan enter pada partitioning scheme, pilih separate /home partition. 33.Sekarang kita membuat partisi baru dengan menghapus semua partisi. Langkah-langkah Partisi Harddisk : Hal pertama yang harus anda lakukan hapus semua partisi Buat partisi dengan skema /root = 4 Gb, type : primary, locate : beginning, fs : ext3. /home = 2 Gb, type : logical, locate : beginning, fs : ext3. Swap area = 2 Gb, file system : swap area. 34.Pilih finish partitioning and write change to disk, tekan enter. 35.Pada configure time zone, pilih eastern. 36.Tekan enter pada configure the clock. 37.Setup users and passwords : Masukkan users root password Masukkan nama untuk user Masukkan nama untuk user account Masukkan password untuk user 38.Tekan enter pada install the base system. 39.Tekan enter pada configure the package manager. 40.Tekan enter pada select and install software. 41.Pada participate in the package usage survey, pilih yes, tekan enter. 42.Pada software to install, pilih Sesuai kebutuhan anda, tekan enter.

43.Tekan enter pada install GRUB boot loader on a harddisk. 44.Pada install the GRUB boot loader to the master boot record, pilih yes, tekan enter. Masukkan GRUB password. 45.Pada finish the installation, tekan enter. 46.Selesai 47.Setelah sinstall debian sudah selesai,kita database kan dengan perintah ; imron@debian:/# apt-cdrom add Masukkan cd binery 1 sampai dengan cd binery 21 1.Membuat Router ; Pertama masuk pada direktori cd /etc/network/, Kemudian edit file pico interfaces seperti pada tampilan dibawah ini ; # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto eth0 iface eth0 inet static address 192.168.17.1 Untuk Client computer netmask 255.255.255.0 broadcast 192.168.17.255 network 192.168.17.0 auto eth1 iface eth1 inet static address 192.168.10.17 netmask 255.255.255.0 Untuk jaringan broadcast 192.168.10.255 network 192.168.10.0 gateway 192.168.10.1 auto lo iface lo inet loopback Simpan konfigurasi tersebut, Routingkan dengan perintah, imron@debian:/# iptables t nat A POSTROUTING s 192.168.10.0/24 j MASQUERADE imron@debian:/# iptables t nat A POSTROUTING s 192.168.17.0/24 j MASQUERADE Simpan , imron@debian:/# iptables-save Untuk melihat ip yang sudah kita routing kan sudah benar atau belum benar,kita ketikkan perintah, imron@debian:/# iptables t nat n L Kemudian masuk ke pico /etc/network/sysct1.conf #Forwading Hapus tanda (#) Restart networkNya, imron@debian:/# /etc/init.d/networking restart Router telah selesai. 2.Install DHCP Server Install dhcp3-server dengan perintah : imron@debian:/# apt-get install dhcp3-server masukkan cd sesuai yang diminta,

Konfigurasi file dhcpd.conf, Masuk pada direktori cd /etc/dhcp3, imron@debian:/# pico dhcp.conf Edit file dhcp.conf seperti konfigurasi dibawah ini yang bercetak tebal : # # Sample configuration file for ISC dhcpd for Debian # # $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $ # # The ddns-updates-style parameter controls whether or not the server will # attempt to do a DNS update when a lease is confirmed. We default to the # behavior of the version 2 packages (none, since DHCP v2 didnt # have support for DDNS.) ddns-update-style none; # option definitions common to all supported networks option domain-name imron17.com ; option domain-name-servers imron17.com, 208.67.222.222; default-lease-time 600; max-lease-time 7200; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. #authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. #subnet 10.152.187.0 netmask 255.255.255.0 { #} # This is a very basic subnet declaration. #subnet 10.254.239.0 netmask 255.255.255.224 { # range 10.254.239.10 10.254.239.20; # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; #} # This declaration allows BOOTP clients to get dynamic addresses, # which we dont really recommend. #subnet 10.254.239.32 netmask 255.255.255.224 { # range dynamic-bootp 10.254.239.40 10.254.239.60; # option broadcast-address 10.254.239.31; # option routers rtr-239-32-1.example.org; #} # A slightly different configuration for an internal subnet. subnet 192.168.17.0 netmask 255.255.255.0 {

range 192.168.17.2 192.168.17.254; # option domain-name-servers imron17.com; # option domain-name imron17.com ; option routers 192.168.17.1; option broadcast-address 192.168.17.255; default-lease-time 600; max-lease-time 7200; } # Hosts which require special configuration options can be listed in # host statements. If no address is specified, the address will be # allocated dynamically (if possible), but the host-specific information # will still come from the host declaration. #host passacaglia { # hardware ethernet 0:0:c0:5d:bd:95; # filename vmunix.passacaglia; # server-name toccata.fugue.com; #} # Fixed IP addresses can also be specified for hosts. These addresses # should not also be listed as being available for dynamic assignment. # Hosts for which fixed IP addresses have been specified can boot using # BOOTP or DHCP. Hosts for which no fixed address is specified can only # be booted with DHCP, unless there is an address range on the subnet # to which a BOOTP client is connected which has the dynamic-bootp flag # set. #host fantasia { # hardware ethernet 08:00:07:26:c0:a5; # fixed-address fantasia.fugue.com; #} # You can declare a class of clients and then do address allocation # based on that. The example below shows a case where all clients # in a certain class get addresses on the 10.17.224/24 subnet, and all # other clients get addresses on the 10.0.29/24 subnet. #class foo { # match if substring (option vendor-class-identifier, 0, 4) = SUNW; #} #shared-network 224-29 { # subnet 10.17.224.0 netmask 255.255.255.0 { # option routers rtr-224.example.org; #} # subnet 10.0.29.0 netmask 255.255.255.0 { # option routers rtr-29.example.org; #} # pool { # allow members of foo; # range 10.17.224.10 10.17.224.250; #} # pool { # deny members of foo; # range 10.0.29.10 10.0.29.230; #}

#} Simpan konfigurasi tersebut. Restart dhcp3-server: imron@debian:/# /etc/init.d/dhcp3-server restart Jika tidak keluar failed, maka dhcp3-server sudah berhasil 3.Install DNS Server

Install bind9 dengan perintah imron@debian:/# apt-get install bind9 masukkan cd sesuai yang diminta Masuk pada direktori /etc/bind9, Setelah itu, kita copy file db.127, file db.local, dan file named.conf Dengan cara sebagai berikut : imron@debian:/# cp db.127 db.192 imron@debian:/# cp db.local db.imron17 imron@debian:/# cp named.conf named.conf.backup Edit file pico db.192 seperti konfigurasi dibawah ini: ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA imron17.com. root. imron17.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS imron17.com. 1.17.168 IN PTR imron17.com. www IN PTR imron17.com. Edit file pico named.conf seperti konfigurasi dibawah ini yang bercetak tebal : // This is the primary configuration file for the BIND DNS server named. // // Please read /usr/share/doc/bind9/README.Debian.gz for information on the // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file. // // If you are just adding zones, please do that in /etc/bind/named.conf.local include /etc/bind/named.conf.options; // prime the server with knowledge of the root servers zone . { type hint; file /etc/bind/db.root; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone imron17.com { type master;

file /etc/bind/db. imron17; }; zone 192.in-addr.arpa { type master; file /etc/bind/db.192; }; zone 0.in-addr.arpa { type master; file /etc/bind/db.0; }; Edit file pico db. imron17 seperti konfigurasi dibawah ini : ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA imron17.com. root. imron17.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS imron17.com. @ IN A 192.168.17.1 www IN A 192.168.17.1 Restart bind9, imron@debian:/# /etc/init.d/bind9 restart Ping http://www.imron17.com apabila reply, DNS sudah berhasil 4.Install FTP Server Install ftp dengan perintah imron@debian:/# apt-get install vsftpd masukkan cd sesuai yang diminta kemudian masuk pada pico /etc/vsftpd.conf Setelah itu, kita konfigurasikan sesuai dengan file dibawah ini : # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpds # capabilities. # # # Run standalone? vsftpd can run either from an inetd or as a standalone # daemon started from an initscript.

listen=YES # # Run standalone with IPv6? # Like the listen parameter, except vsftpd will listen on an IPv6 socket # instead of an IPv4 one. This parameter and the listen parameter are mutually # exclusive. #listen_ipv6=YES # # Allow anonymous FTP? (Beware allowed by default if you comment this out). anonymous_enable=YES # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpds) #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 originate from port 20 (ftp-data). connect_from_port_20=YES Hapus tanda # pada yang bercetak tebal di atas Simpan konfigurasi tersebut Restart ftp Server dengan perintah imron@debian:/# /etc/init.d/vsftpd restart Untuk mencobannya kita ketikkan ; imron@debian:/# ftp 192.168.17.0 ketik username => password dan apabila login sudah successful maka ftp suda berhasil. 5.Install Samba Server Install samba dengan perintah imron@debian:/# apt-get install samba masukkan cd sesuai yang diminta kemudian masuk pada pico /etc/smb.conf Tambahkan file berikut ;

[global] workgroup = debian netbios name = imron17 security = share [imron17] comment = imron17 path = /home/imron17/ public = yes read only = yes write list = yes valid users = nobody 4.Restart Samba server : imron@debian:/# /etc/init.d/samba restart Tambahan buat konfigurasi samba server ; [imron] > menentukan nama filesharing security = user> hanya untuk user yang terdaftar. path = /media/repo/> path tempat folder dishare guest ol = no> akses guest ditolak, untuk menghidupkan ganti dengan yes browseable = yes> bisa dibrowsing read-only = no> read-only memiliki opsi yes atau no valid-users = yodi, root-> list user yang memiliki akses writeable = yes> bisa ditulis. create mask = 700-> hak membuat file directory mask = 700-> hak membuat direktori 5.Selamat mencoba 6.Install squid server Install squid dengan perintah imron@debian:/# apt-get install squid masukkan cd sesuai yang diminta kemudian masuk pada ; imron@debian:/# pico /etc/squid/squid.conf Setelah itu, konfigurasikan sesuai dengan file dibawah ini : Tambahkan beberapa script seperti di bawah ini : acl all src 0.0.0.0/0.0.0.0 acl labl src 192.168.17.0/255.255.255.0 acl tidak dstdomain http://www.google.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 Kemudian ctrl+w,tuliskan http_access ; Tambahkan Script berikut ini ; # INSERT YOUR OWN RULE (S) HERE TO ALLOE ACCESS FROM YOUR CLIENTS # Example rule allowing access from your local networks. Adapt # to list your (internal) IP network from where browsing should # be allowed #acl our_networks src 192.168.1.0/24 192.168.2.0/24 #http_access allow localhost http_access allow localhost http_access deny tidak http_access allow labl ctrl+w lagi,tuliskan visible_hostname ; Tambahkan juga script dibawah ini,huruf yang bercetak tebal ; visible_hostname imron17.com Save konfigurasi tersebut ; Kemudian kita restart : imron@debian:/# /etc/init.d/squid restart Bila tidak terdapat tulisan error berarti squid insaallah sudah berhasil. 7.Install Mail Server Install postfix : imron@debian:/# apt-get install postfix Intall imap : imron@debian:/# apt-get install courier-imap Install pop : imron@debian:/# apt-get install courier-pop Install squirrelmail : imron@debian:/# apt-get install squirrelmail courier-authdaemon : imron@debian:/# apt-get install courier-authdaemon Edit file default,Tambahkan script pada file default : imron@debian:/# pico /etc/apache2/sites-available/default Alias /mail /usr/share/squirrelmail/ Options Indexes Multiviews FollowSymLinks AllowOverride None Order deny, allow Deny from all Allow from all

Simpan konfigurasi tersebut ; Setelah itu Edit file main.cf,tambahkan script seperti file dibawah ini ; imron@debian:/# pico /etc/postfix/main.cf myhostname = imron17.com mydomain = imron17.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = $mydomain mydestination = imron17.com, imron, localhost.localdomain, localhost.localdomain, localhost home_mailbox = Maildir/ relayhost = mynetworks = 127.0.0.0/8 192.168.17.1/24 mailbox_command = procmail a $EXTENSION mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all Simpan konfigurasi tersebut ; Setelah itu Konfigurasi squirrelmail imron@debian:/# squirrelmail-configure Ketik 2,server setting Ketik A,Imap Server software, ganti dengan courier Membuat folder Maildir dengan cara ; imron@debian:/# cd /home/imron imron@debian:/# maildirmake Maildir imron@debian:/#chown imron.imron Maildir/ -Rf Restart semua aplikasi nya; imron@debian:/# /etc/init.d/postfix restart imron@debian:/# /etc/init.d/courier-imap restart imron@debian:/# /etc/init.d/courier-pop restart imron@debian:/# /etc/init.d/courier-authdaemon restart imron@debian:/# /etc/init.d/squirrelmail restart Dan Mail server sudah selesai. 8.WEB SERVER Install apache dengan perintah : imron@debian:/# apt-get install apache2 Edit file untuk tampilan webNya : imron@debian:/# pico /var/www/apache-default/index.html Simpan konfigurasi tersebut. Restart apache dengan perintah : imron@debian:/# /etc/init.d/apache2 restart

Anda mungkin juga menyukai