Rully's Blog

05 April 2007

WPA di GNU/Linux Debian

Assalamu'alaikum Warahmatullahi Wabarakatuh


Nyoba WPA di Sid, susah-susah gampang. Kurang lebih gini lah:

1. Cari dulu
:~# apt-cache search wpa
wpasupplicant - Client support for WPA and WPA2 (IEEE 802.11i)

2. Install
:~# apt-get install wpasupplicant

3. Copy contoh file konfigurasi
:~# cp /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.template /etc/wpa_supplicant.conf

4. Edit file konfigurasi
:~# vim /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="SSID-nya"
psk="KEY-nya"
key_mgmt=WPA-PSK
}

5. Coba ah ...
~# wpa_supplicant -ieth1 -Dipw -B -c/etc/wpa_supplicant.conf
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.

Walah, gagal. Gugling. Wah, ipw gak support. Ganti sama wext.

6. Coba ganti driver
:~# wpa_supplicant -ieth1 -Dwext -B -c/etc/wpa_supplicant.conf
Berhasil. Tapi belum dapet IP nih dari dhcp server. Tanya ke yang lain, dikasih tau sama pak Budi.

7. Jalanin dhcp client.
:~# dhclient
Berhasil dapet IP & connect ke Internet.

8. Baca dulu.
:~# less /usr/share/doc/wpasupplicant/README.Debian

9. Copy file daemon-nya.
:~# cp /usr/share/doc/wpasupplicant/examples/wpa_supplicant.init-daemon /etc/init.d/wparoamd

10. Buat jadi executable.
:~# chmod +x /etc/init.d/wparoamd

11. Edit sesuai kebutuhan.
:~# vim /etc/init.d/wparoamd
CONFIG="/etc/wpa_supplicant.conf"
INTERFACE="eth1"
DRIVER="wext"

12. :~# update-rc.d wparoamd start 15 2 3 4 5 . stop 90 0 1 6 .
:~# invoke-rc.d wparoamd start


13. Expand dulu, terus baca.
:~# gunzip /usr/share/doc/wpasupplicant/README.modes.gz
:~# less /usr/share/doc/wpasupplicant/README.modes


14. Set interfaces seperlunya.
:~# vim /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf

15. :~# /etc/init.d/networking stop
:~# /etc/init.d/networking start


Beres.


Wassalamu'alaikum Warahmatullahi Wabarakatuh

8 Comments:

  • Apa nggak ada tools yang window-based? Tinggal klik sana dan sini. Beres. Harusnya gitu kan?

    By Blogger Budi Rahardjo, at 5:11 AM  

  • kalo di windows, tinggal klak connect, masukkan WPA key, klik connect. :D

    blog ini kan debian based, justru susah & bingung kalo install lewat klak klik. :D

    By Anonymous Anonymous, at 2:16 PM  

  • usaha laundry , bisnis laundry , deterjen laundry , waralaba laundry , franchise laundry , softener laundry , pewangi laundry

    By Anonymous usaha laundry, at 6:24 PM  

  • usaha laundry , bisnis laundry , deterjen laundry , waralaba laundry , franchise laundry , softener laundry , pewangi laundry

    By Anonymous usaha laundry, at 6:25 PM  

  • Nice blog and article, thanks for sharing i like your blog

    By Anonymous Vimax Pills, at 3:12 AM  

  • pakai linux belum lama, ternyata susah-susah gampang ya, gan

    By Anonymous walidin, at 5:51 AM  

  • makasih gan atas infonya, sukses selalu

    By Anonymous Vimax Canada, at 6:56 AM  

  • sangat bagus dan menarik infonya, thanks you

    By Anonymous Bio Slim Herbal, at 6:57 AM  

Post a Comment

<< Home