Advertisement
dkeg

wpa_supplicant

Apr 16th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. DEBIAN SQUEEZE 6.XX WPA_SUPPLICANT SET UP
  2. FORGET NETWORK MANAGER OR WICD.
  3. THIS TYPE OF SET UP IS HELPFUL WHEN USING VARIOUS WM's SUCH AS SCROTWM, DWM, AWESOME, etc
  4.  
  5. # reference
  6. http://crunchbanglinux.org/forums/topic/16624/howto-connect-and-roam-wifi-networks-with-wpasupplicant/
  7.  
  8. # will prove helpful with roaming
  9. sudo apt-get install wpagui
  10.  
  11. # set wpa_supplicant to utilize roam file
  12.  
  13. # in /etc/network/interfaces
  14.  
  15. auto lo
  16. iface lo inet loopback
  17.  
  18. auto eth0
  19. iface eth0 inet dhcp
  20.  
  21. allow-hotplug wlan0
  22. iface wlan0 inet manual
  23. wpa-roam /etc/wpa_supplicant/wpa-roam.conf
  24.  
  25. # create the /etc/wpa_supplicant/wpa-roam.conf file, and add some options and out networks:
  26.  
  27. update_config=1
  28. ctrl_interface=DIR=/var/run/wpa_supplicant
  29. GROUP=netdev
  30.  
  31. iface default inet dhcp
  32. iface work inet dhcp
  33. iface School inet dhcp
  34. #iface home inet dhcp
  35. #iface xyz inet dhcp
  36.  
  37. # This one is for connecting to any unsecured network your machine comes into contect with, just comment out if you don't like this:
  38.  
  39. network={
  40. key_mgmt=NONE
  41. }
  42.  
  43. # The actual roaming settings go here:
  44.  
  45. network={
  46. ssid="YOUR SSID AT HOME"
  47. psk="PASSWORD"
  48. id_str="home"
  49. }
  50.  
  51. network={
  52. ssid="YOUR SSID AT WORK"
  53. psk="PASSOWRD"
  54. id_str="school"
  55. }
  56.  
  57.  
  58. # when confident everything is working as you want it
  59. sudo update-rc.d network-manager remove
  60.  
  61. # not ready for that yet? other options
  62. sudo update-rc.d network-manager disable
  63. sudo update-rc.d network-manager defaults
  64.  
  65. # Oh, one more thing to do? -> remove nm-applet from autostart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement