Saturday, May 21, 2011

Membangun Intranet dengan Ubuntu

Konfigurasi IP Address


nano /etc/network/interfaces (enter)

auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 192.168.
3.10
network 192.168.3.0
netmask 255.255.255.0
broadcast 192.168.3.255
gateway 192.168.
3.1

auto eth1
iface eth
1 inet static
address 192.168.
4.10
network 192.168.
4.0
netmask 255.255.255.0
broadcast 192.168.
4.255
gateway 192.168.
4.1

#Bila buat Virtual harus mengikuti eth0 gung, bila mau ganti ip harus teliti#

up ip addr add 192.168.3.11/24 brd 192.168.3.255 dev eth0 label eth0:0

up ip addr add 192.168.3.12/24 brd 192.168.3.255 dev eth0 label eth0:1

up ip addr add 192.168.3.13/24 brd 192.168.3.255 dev eth0 label eth0:2

up ip addr add 192.168.3.14/24 brd 192.168.3.255 dev eth0 label eth0:3

(bila selesai Ctrl+O enter Ctrl+X)

/etc/init.d/networking restart

reboot

Konfigurasi Virtual Host

nano /etc/apache2/sites-available/default /etc/apache2/sites-available/agung

(Sebelum di edit)

ServerAdmin webmaster@localhost

DocumentRoot /var/www

Options FollowSymLinks

AllowOverride None

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

(Sesudah di edit)

ServerAdmin webmaster@agung.com

ServerName agung.com

DocumentRoot /var/www /agung

Options FollowSymLinks

AllowOverride None

Options Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

allow from all

(Ctrl+O enter Ctrl+X)

mkdir /var/www/agung

nano /var/www/agung/agung.index

Agung Sandi

(Ctrl+O enter Ctrl+X)

a2dissite default

a2ensite agung

/etc/init.d/apache2 restart

#lalu coba di browser dengan mengetikan Agung.com pada address bar.#



Konfigurasi DNS



nano /etc/bind/named.conf.local

#isikan dipaling terbawah pada kolom#

zone “agung.com”{

type master;

file “/etc/bind/db.agung.zone”;

};

zone “3.168.192.in-addr.arpa”;{

type master;

file “/etc/bind/db.agung.rev”;

};

(Ctrl+O enter Ctrl+X)

cp /etc/bind/db.local /etc/bind/db.agung.zone

cp /etc/bind/db.127 /etc/bind/db.agung.rev

nano /etc/bind/db.agung.zone

#akan tampil halaman seperti ini lalu tinggal kamu edit

;

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA localhost. root.localhost. (

2 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS localhost.

@ IN A 127.0.0.1

@ IN AAAA ::1



#ubah seperti yang ada di bawah#



;

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA ns.agung.com. root.agung.com. (

2 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS agung.com.

@ IN A 192.168.3.10

@ IN AAAA ::1

@ IN MX 10 mail.agung.com



www IN A 192.168.3.11

mail IN A 192.168.3.12

ftp IN A 192.168.3.13

proxy IN A 192.168.3.14

(Ctrl+O enter Ctrl+X)

nano /etc/bind/db.agung.rev

#Sebelum#

;

; BIND reverse data file for local loopback interface

;

$TTL 604800

@ IN SOA localhost. root.localhost. (

1 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS localhost.

1.0.0 IN PTR localhost.

#ubah seperti yang ada di bawah#

#Sesudah#

;

; BIND reverse data file for local loopback interface

;

$TTL 604800

@ IN SOA ns.agung.com. root.agung.com. (

1 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS agung.com.

1.0.0 IN PTR agung.com.

(Ctrl+O enter Ctrl +X)

/etc/init.d/bind9 restart

#langsung test dengan sintax di bawah#

nslookup agung.com

Konfigurasi Samba



cp /etc/samba/smb.conf /etc/samba/agung

mv /etc/samba/agung smb.conf

nano /etc/samba/smb.conf

#Bila sudah masuk pada kolom tersebut coba agung delete semua huruf-huruf di dalamnya sehingga tidak bersisa. Lalu ketikkan sintax di bawah:#

[myshare]

path = /home/agung/myshare

available = yes

valid users = agung

read only = no

browseable = yes

public = yes

writeable = yes

(Ctrl+O enter Ctrl+X)

#lalu kamu buat directory dan user#

mkdir /home/agung/myshare

adduser agung

smbpasswd -a agung

nano /etc/samba/smbusers

#karna kosong coba agung isikan sintak di bawah ini#

system nameuser = agung

(Ctrl+O enter Ctrl+X)

smbd restart

testparm #lalu enter 2x#

Konfigurasi FTP

nano /etc/vsftpd.conf

#Hilangkan tanda crash pada kedua syntax ini coba anda cari.#

Sebelum di edit

#local_enable=YES



#write_enable=YES

Setelah di edit

local_enable=YES



write_enable=YES

(Ctrl+O enter Ctrl+X)

/etc/init.d/vsftpd restart

#setelah itu test#

netstat -tapn

ftp ftp.agung.com

Installasi dan Membangun jaringan dari Linux Debian

DOWNLOAD belajar Linux dari installasi dan membangun............

Tutorial Paket Tracert

Buat TKJ yang lagi bingung ngerjain paket tracert kamu bisa dapetin tutorialnya di bawah:
http://goo.gl/BGVrJP

MY Motto

My photo
giving amenity to all visitor.

Total Pageviews