Anda di halaman 1dari 9

Windows 7

Debian Server
DNS Server

Web Server

Mail Server

Samba Server

FTP Server

Ip 192.168.18.200

PARTISI MINIMAL ADA 2


1. PARTISI ROOT /  UNTUK
MENYIMPAN SELURUH FILE.
KAPASITAS TERGANTUNG KEBUTUHAN
2. PARTISI SWAP  MENYIMPAN PADA
SAAT KOMPUTER BEKERJA  MEMBANTU
KINERJA MEMORI
KAPASITAS  MINIMAL 2 X UKURAN
MEMORI FISIK
PERINTAH DASAR LINUX
Ls  list Menampilkan isi folder/direktori
cd (change direktori  berpindah direktori
pico  editor
nano  editor
vi  editor
vim  editor
cat  menampilkan isi file
mkdir  Make direktori (membuat folder
/direktori baru
cp  copy
mv  move (rename) (cut)
sudo /su  perintah masuk ke super
user(ROOT)
reboot  restart pada debian
halt  shutdown pada debian
ifconfig  Melihat konfigurasi network
ping  mengecek konektifitas jaringan
konfigurasi network /ip address pada debian
masuk ke direktori network dan interfaces
#cd /etc/network
#pico interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface


allow-hotplug eth0
iface eth0 inet static
address 192.168.18.200
network 192.168.18.0
broadcast 192.168.18.255
netmask 255.255.255.0
gateway 192.168.18.254
nameserver 192.168.18.200

Cetak biru di sesuaikan


setelah selesai simpan dengan menekan tombol
CTRL + x  y  tekan enter
ifconfig  melihat Konfigurasi interfaces.
Restart konfigurasi network dengan perintah
#/etc/init.d/networking restart
#Ifconfig
#ping 192.168.18.200
Jika Replay seperti dibawah konfigurasi benar
root@wani:/etc/network# ping 192.168.18.200
PING 192.168.18.200 (192.168.18.200) 56(84) bytes of data.
64 bytes from 192.168.18.200: icmp_seq=1 ttl=64 time=0.107 ms
64 bytes from 192.168.18.200: icmp_seq=2 ttl=64 time=0.045 ms
64 bytes from 192.168.18.200: icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from 192.168.18.200: icmp_seq=4 ttl=64 time=0.050 ms
64 bytes from 192.168.18.200: icmp_seq=5 ttl=64 time=0.078 ms
64 bytes from 192.168.18.200: icmp_seq=6 ttl=64 time=0.054 ms
64 bytes from 192.168.18.200: icmp_seq=7 ttl=64 time=0.073 ms
64 bytes from 192.168.18.200: icmp_seq=8 ttl=64 time=0.054 ms

Tekan tombol CTRL+C  untuk menghentikan

DNS SERVER
Agar domain dapat berjalan harus konfigurasi
dns terlebih dahulu, dns server pada linux
dikenal dengan bind
Langkah nya
1. Install bind9 pada debian
Perintahnya
# apt-get install bind9
konfigurasi dns server
masuk direktori bind
# cd /etc/bind
#pico named.conf.local
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used
in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "nachwani.com" {
type master;
file "/etc/bind/db.wani";
};
zone "200.in-addr.arpa" {
type master;
file "/etc/bind/db.200";
};
MMMM M M M MM M M
.
Blok Biru sesuaikan
# cp db.local db.wani
# cp db.127 db.200
# ls
# pico db.wani

; BIND data file for local loopback interface


;
$TTL 604800
@ IN SOA nachwani.com. root.nachwani.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS nachwani.com.
IN A 192.168.18.200
# ls
# pico db.200
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA nachwani.com. root.nachwani.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS nachwani.com.
200.18.168.192 IN PTR nachwani.com.
# /etc/init.d/bind9 restart
# pico /etc/resolv.conf

nameserver 192.168.18.200

# ping nachwani.com
# /etc/init.d/networking restart
# ping nachwani.com
Kalau replay konfigurasi DNS sukses
root@wani:/etc/bind# ping nachwani.com
PING nachwani.com (192.168.18.200) 56(84) bytes of data.
64 bytes from 192.168.18.200: icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from 192.168.18.200: icmp_seq=2 ttl=64 time=0.051 ms
64 bytes from 192.168.18.200: icmp_seq=3 ttl=64 time=0.051 ms

# dig nachwani.com (konfigurasi benar)

; <<>> DiG 9.9.5-9-Debian <<>> nachwani.com


;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37211
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;nachwani.com. IN A

;; ANSWER SECTION:
nachwani.com. 604800 IN A 192.168.18.200

Troubelshooting BIND
# named -g -p 53
Jika ada konfigurasi yang salah akan keluar missing.

09-Aug-2018 01:12:42.371 couldn't add command channel 127.0.0.1#953: permission denied


09-Aug-2018 01:12:42.371 open: /etc/bind/rndc.key: permission denied
09-Aug-2018 01:12:42.371 couldn't add command channel ::1#953: permission denied
09-Aug-2018 01:12:42.371 not using config file logging statement for logging due to -g option
09-Aug-2018 01:12:42.372 managed-keys-zone: journal file is out of date: removing journal file
09-Aug-2018 01:12:42.373 managed-keys-zone: loaded serial 3
09-Aug-2018 01:12:42.373 zone 0.in-addr.arpa/IN: loaded serial 1
09-Aug-2018 01:12:42.383 zone 127.in-addr.arpa/IN: loaded serial 1
09-Aug-2018 01:12:42.385 zone 200.in-addr.arpa/IN: loaded serial 1
09-Aug-2018 01:12:42.394 zone 255.in-addr.arpa/IN: loaded serial 1
09-Aug-2018 01:12:42.395 zone nachwani.com/IN: loaded serial 2
09-Aug-2018 01:12:42.396 zone localhost/IN: loaded serial 2
09-Aug-2018 01:12:42.396 all zones loaded
09-Aug-2018 01:12:42.398 running
Instalasi Web Server
Paket Web Server
1. Apache  apache2  fungsi sebagai server
2. PHP  bahasa pemrograman Web
3. Mysql server  aplikasi Database

Cara instalasi
#apt-get install apache2 php5 mysql-server

Setelah instalasi selesai kita restart pada apache


#/etc/init.d/apache2 restart
Test dengan perintah
#www-browser nacwani.com

Jika keluar halaman diatas web server telah berkerja


Tekan tombol Q untuk keluar kemudian Y

Cek browser dan masukan dns pada halaman browser

Konfigurasi halaman web


Buka file html di debian
<html>
#cd /var/www/html
<head>
#mkdir wani
<title>latihan Administrasi Jaringan</title>
#cd wani </head>
#pico index.html <body>
Simpan CTRL + X  Y  enter <h1> Latihan Administrasi Jaringan</h1><br>
<h2>1. Instalasi Sistem Operasi <br>
2. Konfigurasi Networking <br>
3. Instalasi dan Konfigurasi DNS (bind9)<br>
4. Instalasi dan Konfigurasi web server (apache2, php5, mysql-server)<br>
</h2>
</body>
</html>
Konfigurasi virtual host
Masuk ke direktori apache
# cd /etc/apache2/
# ls
Amati Seluruh folder
Masuk ke direktori sites-available
#cd sites-available
#cp 000-default.conf wani.conf
#ls
#pico wani.conf

Perhatikan yang di beri lingkaran merah di atas


ServerName www.nachwani.com   Nama Servernya
ServerAlias nachwani.com   Nama Server Alias
ServerAdmin n.wani@nachwani.com   Email Administrator
DocumentRoot /var/www/html/wani/   Letak dokumen Web (halaman web)

Setelah selesai
SIMPAN CTRL + X  Y  enter
Aktifkan konfigursai yang dibuat dengan perintah
# a2ensite wani.conf
Restart apache
# /etc/init.d/apache2 restart
Cek melalui
#www-browser nachwani.com  kalau keluar halaman yang kita buat
Cek melalui browser mozila/crome

-------------------------------------------------------------------------IIIIII-------------------------------------------------------------

Anda mungkin juga menyukai