|
I installed an Edimax wifi usb adapter the ew-7811un and got it working on WPA2 with hidden SSID support .
I was just wondering if the steps I took to accomplish it was just enough or a few to many.
INTRO
All of this needs to be done as a privileged user, so you can prefix all the editing commands with sudo or just run “sudo su” to turn yourself into an administrator.
Install
Install the wpa_supplicant utility
- apt-get install wpasupplicant
Copy the Code This release supports Realtek RTL8188CE, RTL8188CUS, RTL8188DE, RTL8188SU, RTL8191SE, RTL8191SU, RTL8192CE, RTL8192CU, RTL8192DE, RTL8192E, RTL8192SE, RTL8192SU and RTL8192U-based devices.
Add a "non-free" component to /etc/apt/sources.list, for example:
- # Debian 7 "Wheezy"
- deb http://http.debian.net/debian/ wheezy main contrib non-free
Copy the Code Update the list of available packages and install the firmware-realtek package:
- # apt-get update && apt-get install firmware-realtek
Copy the Code Configuration
This step can be skipped for fresh install. Delete anything in this file about wlan0 or wlan1. This file is used to remember the physical characteristics of USB adapters and may well contain incorrect or misleading information, and should be empty apart from comments unless you have added other USB devices.
Edit /etc/udev/rules.d/70-persistent-net.rules
Update /etc/network/interfaces to add the wlan0 section, so that it looks like this.
- # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
- # /usr/share/doc/ifupdown/examples for more information.
- auto lo
- iface lo inet loopback
- iface eth0 inet dhcp
- auto wlan0
- iface wlan0 inet dhcp
- pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
Copy the Code Create the file wpa_supplicant.conf
- sudo nano /etc/wpa_supplicant.conf
Copy the Code WPA2-PSK with Hidden SSID support Make it look like this:
- ctrl_interface=/var/run/wpa_supplicant
- ctrl_interface_group=0
- ap_scan=2
- network={
- ssid="SSID_Name"
- scan_ssid=1
- proto=RSN
- key_mgmt=WPA-PSK
- pairwise=CCMP
- group=CCMP
- psk="this is my secret phrase"
- }
Copy the Code in the nano editor hit keys Ctrl+x then y then Enter to save the new file.
Security
Restrict the permissions of /etc/network/interfaces, to prevent disclosure:
- chmod 0600 /etc/network/interfaces
Copy the Code Restrict the permissions of /etc/wpa_supplicant.conf, to prevent pre-shared key (PSK) disclosure:
- chmod 0600 /etc/wpa_supplicant.conf
Copy the Code Clean
Remove the "non-free" component from /etc/apt/sources.list, for example:
- # Debian 7 "Wheezy"
- #deb http://http.debian.net/debian/ wheezy main contrib non-free
Copy the Code Update the list of available packages: |
|