Wednesday, June 07, 2006

Istall DHCP Server di FreeBSD

1. Apa itu DHCP?
Dynamic Host Configuration Protocol (DHCP) adalah suatu protokol untuk mengotomatiskan tugas IP menunjuk ke suatu jaringan. Masing-Masing komputer yang dihubungkan ke suatu jaringan harus mempunyai suatu IP unik, dan tanpa DHCP TCP/IP informasi harus ditugaskan dengan cara manual pada masing-masing komputer.
2. Installing ISC DHCP
ISC DHCP Server adalah suatu implementasi gratis untuk DHCP protokol. Software tersebut dapat kita download di situs www.isc.org/products/DHCP.
Sebelum kita mulai installasi, pastikan bpf device sudah di-compile kedalam kernel. Jika kita sedang menggunakan kernel default (GENERIC), maka kita harus konfigur kedalam kernel secara default.
Langkah-langkahnya adalah :
Anda harus login sebagai root, download terlebih dahulu software untuk DHCPnya.
#wget http://ftp.isc.org/isc/dhcp/dhcp-3.0.4.tar.gz
Kemudian extract file tersebut dengan cara :
#tar -zxvf dhcp-3.0.4.tar.gz
Ok... selesai extract langkah selanjutnya adalah proses installasi.
# cd /usr/ports/net/isc-dhcp3-server
# make install clean
Satu langkah sudah selesai menginstall, kita pindah ke konfigurasi server. sebagai contoh konfigurasi pada file usr/local/etc/dhcpd.conf.sample anda dapat menyalin atau mengganti nama menjadi dhcpd.conf.
3. Konfigurasi
Kita dapat menggunakan editor teks favorit kita untuk mengedit dhcpd configuration file.
option domain-name "example.com";
# the domain-name option specifies the domain provided to clients as the default search domain.
option domain-name-servers dns1.example.com, dns2.example.com;

# the domain-name-servers provide clients with the DNS server.Replace this with your DNS server.
default-lease-time 86400;
max-lease-time 86400;

# The default lease expiry time in seconds
# This is the maximum length of time that the server will lease for.
authoritative;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
ddns-update-style none;
# 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;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.5 192.168.0.25;
option routers 192.168.0.1;
}
host pingpong {
hardware ethernet 00:00:00:00:00:00; [1]
fixed-address pingpong; [2]
default-lease-time 604800;
max-lease-time 604800;
}
# [1] You should change this to the hardware MAC address of the client
# [2] You should provide this with a valid hostname, and dhcp server will resolve the hostname before returning the lease to the client. I edited /etc/hosts and specify pingpong with my IP address.
4. Menjalankan DHCP pada starup
Edit file pada direktori /etc/rc.conf, isinya :
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_withumask="022"
dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_ifaces=”rl1”

Start DHCP dengan perintah berikut :
# /usr/local/etc/rc.d/isc-dhcpd.sh start

Ok... sekarang installasi sudah selesai. Semoga bermanfaat buat kita semua.
Selamat mencoba.

Thursday, June 01, 2006

Install xampp di Linux

Ok, yang pertama mungkin kita harus tahu dulu apa itu xampp? xampp yaitu suatu program untuk aplikasi Web Server yang berisi PHP, MySQL, Apache dan PHPMyAdmin. Dengan program ini kita tidak perlu susah payah install satu persatu. And........ langsung aja kita mulai langkah2 install-nya.......

1. Langkah Pertama Download xampp
Anda bisa mendownload xampp dengan cara :
#wget http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.5.3a.tar.gz
atau
#lynx http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.5.3a.tar.gz

2. Langkah Kedua Installasi
- masuk ke Linux Sell dan login sebagai root.
- extract file hasil download tersebut ke direktori /opt :
#tar xvfz xampp-linux-1.5.3.tar.gz -C /opt

3. Langkah Ketiga Start xampp
Untuk memulai XAMPP tinggal panggil melalui perintah :
#/opt/lampp/lampp start
Maka akan muncul tampilan :

Starting XAMPP 1.5.3...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running

4. Langkah Keempat adalah tinggal Test
Buka browser anda dan ketikan : http://localhost dan akan muncul tampilan pertama dari xampp.

And ....so install udah selesai........
Kalo anda ingin meng-uninstall program tersebut caranya :
#rm -rf /opt/lampp

---- Ok met mencoba ----