0% found this document useful (0 votes)
27 views

Ebian 2014: Teknik Komputer Dan Jaringan SMK Negeri 5 Semarang

This document provides instructions for configuring basic network services on a Debian server including network configuration, DNS, web server, and mail server setup. It describes configuring the server's IP address, hostname, installing and configuring Bind for DNS, the Apache web server, and a mail server using Postfix, Courier, and Squirrelmail. Testing commands are provided to validate the DNS and mail server configurations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Ebian 2014: Teknik Komputer Dan Jaringan SMK Negeri 5 Semarang

This document provides instructions for configuring basic network services on a Debian server including network configuration, DNS, web server, and mail server setup. It describes configuring the server's IP address, hostname, installing and configuring Bind for DNS, the Apache web server, and a mail server using Postfix, Courier, and Squirrelmail. Testing commands are provided to validate the DNS and mail server configurations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

Debian 2014

Nama
Kelas

: Danu Dwi Prasetyo


: XII / TKJ 1

Included :
1. Network Configuration
2. DNS Configuration
3. Web Configuration
4. Mail Configuration

TEKNIK KOMPUTER DAN JARINGAN


SMK NEGERI 5 SEMARANG
1

Network Configuration
TOPOLOGY
SERVER.----------------------------------------.MY PC
(Agar dapat terhubung SERVER dan MY PC harus dalam satu range
IP)
SERVER
MYPC

: 192.168.10.1/24
: 192.168.10.2/24

*Setelah menginstall debian hal pertama yg dilakukan adalah konfigurasi


network dahulu*
1.Konfigurasi Network
#nano /etc/network/interfaces
2.Tambah eth0 dibawah ip loopback
-------------------------------------------------------------------------------auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.252
network 192.168.10.0
broadcast 192.168.10.255
-------------------------------------------------------------------------------Save.
3.Restart network
#/etc/init.d/networking restart
4.Ubah hostname
#nano /etc/hostname
ganti dengan :
-------------------------------------------------------------------------------www
-------------------------------------------------------------------------------Save.
5.Restart komputer
#reboot

DNS Configuration
1.Install paket DNS-Server (bind9)
#apt-get install -y bind9
2.Konfigurasi DNS-Server
#cd /etc/bind
#nano named.conf.default-zones
3.Tambahkan zona db.kata dan db.angka di bawah ke zona localhost
-------------------------------------------------------------------------------zone "danoe.com" {
type master;
file "/etc/bind/db.danoe";
<-- db.kata
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.10";
<--db.angka
};
-------------------------------------------------------------------------------Save.
4.Copy db.local = db.kata | db.127 = db.angka
#cp db.local db.danoe
#cp db.127 db.192.168.10
5.Konfigurasi db.danoe
#nano db.danoe
-------------------------------------------------------------------------------;
; BIND data file for local loopback interface
;
$TTL 604800
danoe.com.
IN SOA danoe.com. root.danoe.com. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
danoe.com.
IN NS
danoe.com.
danoe.com.
IN A
192.168.10.1
www.danoe.com.
IN CNAME
danoe.com.
;

danoe.com.
IN MX 10
mail.danoe.com.
mail.danoe.com.
IN CNAME
danoe.com.
-------------------------------------------------------------------------------Save.
6.Konfigurasi db.192.168.10
#nano db.192.168.10
-------------------------------------------------------------------------------;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@
IN SOA danoe.com. root.danoe.com. (
1
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN NS
danoe.com.
1
IN PTR
danoe.com.
-------------------------------------------------------------------------------Save.
7.Tambahkan nameserver
#nano /etc/resolv.conf
-------------------------------------------------------------------------------search danoe.com
nameserver 192.168.10.1
-------------------------------------------------------------------------------Save.
8.Ubah konfigurasi hosts menjadi seperti ini : (# nano /etc/hosts)
-------------------------------------------------------------------------------127.0.0.1
localhost
192.168.10.1
danoe.com
-------------------------------------------------------------------------------9.Restart bind9
#/etc/init.d/bind9 restart
PERINTAH TES DNS
1.Untuk db.kata
#nslookup www.danoe.com
#nslookup mail.danoe.com
dll.
2.Untuk db.angka
#nslookup 192.168.10.1

* pastikan tidak ada tulisan yang mengandung error ya... ^_^*

WEB Configuration
1.Install Web-Server (apache2)
#apt-get install -y apache2
2.Tambahkan ServerName dibawah ServerAdmin seperti ini :
#nano /etc/apache2/sites-available/default
-------------------------------------------------------------------------------ServerAdmin webmaster@localhost
ServerName danoe.com
-------------------------------------------------------------------------------3.Restart Web
/etc/init.d/apache2 restart

MENUBAH HALAMAN WEB


1.Web berada di direktori /var/www
#cd /var/www
#nano index html
CATATAN :
*Apabila menginstall CMS=Wordpress,Joomla,dll harus menginstall phpmyadmin
dan mysql-server terlebih dahulu*

Mail Configuration
1.Masukan debian DVD 2 lalu masukan perintah :
#apt-cdrom add
2.Install Mail-Server (squirrelmail)
#apt-get install -y postfix courier-imap courier-pop squirrelmail
1.Internet Site
2.System Mail name
: danoe.com
3.Root and postmaster mail recipient : dikosongi
4.Other destination
: danoe.com, localhost
5.Force synchronous updates
: no
6.Local networks
: 127.0.0.0/8 192.168.10.0/24
7.Use procmail Local delivery
: no
8.Mailbox size limit
:0
9.Local address extension
:+
10.Internet protocols
: ipv4
3.Ubah apache squirrelmail
#nano /etc/squirrelmail/apache.conf
ubah <VirtualHost :1.2.3.4>menjadi :
-------------------------------------------------------------------------------<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.danoe.com

</VirtualHost>
-------------------------------------------------------------------------------Save.
4.Tambahkan apache squirrelmail ke apache web letakan paling bawah
#nano /etc/apache2/apache2.conf
-------------------------------------------------------------------------------Include /etc/squirrelmail/apache.conf
<-- dibawah include sites enabled/
-------------------------------------------------------------------------------Save.
5.Buat folder email
#maildirmake /etc/skel/Maildir
6.Tambahkan home_mailbox di main.cf
#nano /etc/postfix/main.cf
-------------------------------------------------------------------------------home_mailbox = Maildir/
<-- letakan di paling bawah sendiri
-------------------------------------------------------------------------------8.Langkah terakhir pakai perintah
#squirrelmail-configure
Command >> (2) Server Settings = (1) Domain = danoe.com (enter)
Command >> (d) Set pre-defided settings = Courier (enter)
Command >> (s) Save data
Command >> (q) Quit
8.Restart komputer ( #reboot )

10

11

You might also like