Sunteți pe pagina 1din 8

Dhcp3-server

#apt-get install dhcp3-server


Hilangkan tanda pagar # dan konfigurasi di bawah ini
#nano /etc/dhcp3/dhcpd.conf
…………………………………………………
# A slightly different configuration for an internal subnet.
subnet 2.2.2.0 netmask 255.255.255.0 {
range 2.2.2.2 2.2.2.254;
option domain-name-servers 2.2.2.1;
option domain-name "dini.com";
option routers 2.2.2.1;
option broadcast-address 2.2.2.255;
default-lease-time 600;
max-lease-time 7200;
}
……………………………………………………………………
……
#/etc/init.d/dhcp3-server
SSH
#apt-get install ssh
#nano /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd(Cool manpage for details
# What ports, IPs and protocols we listen for
Port 200
…………………………………………………………………….
# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
……………………………………………………………………..
/etc/init.d/ssh restart

SAMBA
#apt-get install samba
#mkdir /home/debian/dini
#nano /home/debian/dini/dini2.txt
#nano /etc/samba/smb.conf
#browsing/identification#
Workgroup = workgroup
Netbios = debian
#Autentication
Hilangkan tanda pagar (ubah menjadi Share)
……………………………………………………
[dini2] (folder yang kan disharing)
Path = /home/dini/dini2
Available = yes
Browseable = yes
Writable = yes
Public = yes
#/etc/init.d/samba restart
Smbclient
#apt-get install smbclient
Cara ngceknya
#Smbclient //ipclient/foldersharing

Contoh:
#smbclient //192.168.3.4/lkskab
DNS SERVER
# apt-get install bind
# cd /etc/bind
# cp named.conf{,.orig}
# nano named.conf
zone "lkskab09.co.id" {
type master;
file "/etc/bind/db.lkskab09.co.id";
};

zone "3.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};

# cp db.local db.lkskab09.co.id
# nano db.lkskab09.co.id
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.lkskab09.co.id. dini.lkskab09.co.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ns1.lkskab09.co.id.
IN MX 10 mail.lkskab09.co.id.
IN A 192.168.3.1
ns1 IN A 192.168.3.1
www IN A 192.168.3.1
mail IN A 192.168.3.1
ftp IN CNAME www
# cp db.127 db.192
#nano db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.lkskab09.co.id. agus.lkskab09.co.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ns1.lkskab09.co.id.
1 IN PTR ns1.lkskab09.co.id.
1 IN PTR www.lkskab09.co.id.
1 IN PTR mail.lkskab09.co.id.
1 IN PTR ftp.lkskab09.co.id.

# /etc/init.d/bind restart

WEB SERVER
1.root@server:# apt-get install apache2
2.nano /etc/apache2/sites-available/default,
# RedirectMatch ^/$ /apache2-default/ (kasih tanda
pagar)
3.:~# apt-get install php5
4 .nano /var/www/apache-default/index.html
<html>
<title> LKS Kabupaten Cianjur 2009 </title>
<h1> <marquee> My Biodata </marquee></h1>
<pre>
<b>
<blink>
Nama : Dini Rahayu Efendi
Kelas : 3 Tkj 1
Sekolah : SMK Bina Nusantara
</blink>
</b>
</pre>
</html>
6. :~# apt-get install php5-mysql
7. :~# apt-get install mysql-server
8. :~# apt-get install phpmyadmin
9.:# apt-get install mysql-server
10. ~# mysqlamin –u root password sasuke ( password login )
MAIL SERVER
Sebelum konfigurasi mailserver kita harus update dulu dvdnya
#apt-get update ( binary 1 )
Masukan dvd binary2
#apt-cdrom add ( binary 2 )
#apt-get update (binary2)
Setelah itu masukan dvdbinari1 lalu install paket yang di
bawah ini
1.:# apt-get install postfix
2. :# apt-get install courier-imap
3. :# apt-get install courier-pop
4. nano /etc/postfix/main.cf
myhostname = (jangan diganti)
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = lkskab09.com, mail.lkskab09.com,
debian.lkskab09.com, localhost.
relayhost =
mynetworks = 127.0.0.0/8 192.168.3.0/24
# mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
5. :# cd /etc/skel
6.:# maildirmake Maildir
7:# adduser ... ....
8 :# adduser .........(yang ke 2 )
9
root@server:# /etc/init.d/postfix restart
root@server:# /etc/init.d/courier-imap restart
root@server:# /etc/init.d/courier-pop restart
root@server:# /etc/init.d/courier-authdaemon restart
http://mail.tkj.com/squirrelmail
WEB MAIL
1. apt-get install mysql-server squirrelmail
2.nano /etc/squirrellmail/apache.conf
documentroot /usr/share/squirrelmail
servername debian.tkj.com
3. /etc/init.d/apache restart
4.nano/etc/apache2/apache2.conf
Tambahkan dibaris terakhir script di bawah ini :
Include /etc/squirrelmail/apache.conf
5. /etc/init.d/apache2 restart
6. Buka web Browser
PROXY SERVER
# apt-get install squid.conf
# cp /etc/squid.conf{,.orig}
# cd /etc/squid/
# nano squid.conf
(Ctrl+W) http_port 8080
(Ctrl+W) cache_mem 100 MB
# cari CONNECT method CONNECT (ctrl+w)
Tambahkan dibawahnya
acl LAN src 192.168.1.0/255.255.255.0
acl block url_regex -i “/home/sex”
(Ctrl+W) http_access deny block
http_access allow LAN
(Ctrl+W) visible_hostname proxy.tkj.com (pas Default)
cache_dir ufs /var/spool/squid 500 16 256 (100 diubah
menjadi 500)
# nano /home/sex
http://www.linux.com (situs yang akan diblock)
# /etc/init.d/squid restart
Setting browser (Internet Explorer, Mozilla Firefox) supaya
menggunakan Proxy Server. Buka web browser lau pilih
Setting.

Proftpd
#apt-get install proftpd
#nano /etc/proftpd/proftpd.conf
Hilangkan tanda # nya
Bagian anonymous
<anonymous>
……………………
…………………
…………………
</anonymous>

Telnet
#netstat -tnap
#apt-get install telnetd
#/etc/init.d/telnetd restart