Difference between revisions of "Linux Wireless"
(→Reboot) |
(→Setting up Ubuntu 14.04) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
== WPA Config == | == WPA Config == | ||
− | Created the /etc/wpa_supplicant/wpa_supplicant.conf WPA authentication | + | Created the /etc/wpa_supplicant/wpa_supplicant.conf WPA authentication. TBD: did this help me? |
+ | |||
+ | gksu gedit /etc/wpa_supplicant.conf | ||
+ | |||
+ | Enter the following | ||
network={ | network={ | ||
Line 19: | Line 23: | ||
psk="********" | psk="********" | ||
} | } | ||
+ | |||
+ | == Name Server == | ||
+ | |||
+ | Add the following to the end of /etc/network/interfaces | ||
+ | |||
+ | auto wlan0 | ||
+ | iface wlan0 inet dhcp | ||
+ | wpa-ssid zdome | ||
+ | wpa-psk ****** | ||
+ | |||
+ | After a reboot I see | ||
+ | |||
+ | cat /etc/resolv.conf# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) | ||
+ | # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | ||
+ | nameserver 10.0.0.1 | ||
+ | nameserver 205.171.2.65 | ||
+ | search PK5001Z | ||
+ | |||
+ | == Also See == | ||
+ | |||
+ | /etc/NetworkManager/system-connections/zdome | ||
== Reboot == | == Reboot == | ||
Wireless was up after reboot. Tried a lot of things on the command line but a reboot may have been the key to getting wireless to come up. See next command line attempts. | Wireless was up after reboot. Tried a lot of things on the command line but a reboot may have been the key to getting wireless to come up. See next command line attempts. | ||
+ | |||
+ | == References == | ||
+ | |||
+ | * [http://askubuntu.com/questions/138472/how-do-i-connect-to-a-wpa-wifi-network-using-the-command-line WPA Confiuring] | ||
+ | * [http://askubuntu.com/questions/346838/how-do-i-configure-my-dns-settings-in-ubuntu-server Configure my DNS settings] | ||
== Command Line Failures == | == Command Line Failures == |
Latest revision as of 20:42, 27 June 2016
Contents
Setting up Ubuntu 14.04
Installation
The following capabilities were already installed.
- wpasupplicant - client support for WPA and WPA2
- wireless-tools - Tools for manipulating Linux Wireless Extensions
WPA Config
Created the /etc/wpa_supplicant/wpa_supplicant.conf WPA authentication. TBD: did this help me?
gksu gedit /etc/wpa_supplicant.conf
Enter the following
network={ ssid="zdome" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="********" }
Name Server
Add the following to the end of /etc/network/interfaces
auto wlan0 iface wlan0 inet dhcp wpa-ssid zdome wpa-psk ******
After a reboot I see
cat /etc/resolv.conf# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.0.0.1 nameserver 205.171.2.65 search PK5001Z
Also See
/etc/NetworkManager/system-connections/zdome
Reboot
Wireless was up after reboot. Tried a lot of things on the command line but a reboot may have been the key to getting wireless to come up. See next command line attempts.
References
Command Line Failures
None of these worked to bring up wireless on the command line.
Example 1
sudo iwconfig wlan0 essid "zdome" key "********" sudo iwconfig wlan0 essid "zdome" key s:********
Example 2
The following did not work.
sudo ifconfig wlan0 down sudo iwconfig wlan0 essid "zdome" sudo iwconfig wlan0 mode Managed sudo ifconfig wlan0 up iwconfig sudo dhclient wlan0
freezes
Example 3
sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext Successfully initialized wpa_supplicant ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument sudo dhclient wlan0
freezes
Old
At the Command Line
Initial Setup
Based on a problem reported in /var/log/messages. (See resources below.)
sudo mkdir -p /etc/Wireless/RT2860STA sudo touch /etc/Wireless/RT2860STA/RT2860STA.dat sudo service network-manager restart
Status
ifconfig iwconfig iwlist wlan0 scan lspci | grep Network sudo lshw -C network
Configure
sudo ifconfig wlan0 up
The following didn't work. According to some of the resources cited below, the issue may be the the driver was not compiled with the command line option. The GUI option works.
eepp@tabor:~$ sudo iwconfig wlan0 essid "zdomeWLAN" key xxxxxxxxxx [sudo] password for eepp: eepp@tabor:~$ iwconfig lo no wireless extensions. eth0 no wireless extensions. wlan0 RT2860 Wireless ESSID:"" Nickname:"RT2860STA" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Bit Rate:1 Mb/s RTS thr:off Fragment thr:off Link Quality=70/100 Signal level:-75 dBm Noise level:-115 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
At the GUI
In the upper right menu <uparror downarrow menu> and selected zdomeWLAN. Followed through with the setup. This worked.