Difference between revisions of "Linux Wireless"

From wikidb
Jump to: navigation, search
(At the Command Line)
(Setting up Ubuntu 14.04)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
= 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 ==
 +
 +
* [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 ==
 +
 +
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:********
 +
 +
* [http://unix.stackexchange.com/questions/92799/connecting-to-wifi-network-through-command-line Reference]
 +
* [https://www.linux.com/learn/tutorials/374514-control-wireless-on-the-linux-desktop-with-these-tools Reference]
 +
* [http://askubuntu.com/questions/138472/how-do-i-connect-to-a-wpa-wifi-network-using-the-command-line Reference]
 +
 +
=== 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
 +
 +
* [http://askubuntu.com/questions/191836/wpa-supplicants-connection-issues Reference]
 +
 +
=== 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
 +
 +
* [http://superuser.com/questions/454548/dhclient-does-not-work-on-wlan0-with-wep-how-do-i-fix-it Reference]
 +
 +
= Old =
 +
 
== At the Command Line ==
 
== At the Command Line ==
  
Line 8: Line 104:
 
  sudo touch /etc/Wireless/RT2860STA/RT2860STA.dat
 
  sudo touch /etc/Wireless/RT2860STA/RT2860STA.dat
 
  sudo service network-manager restart
 
  sudo service network-manager restart
 
sudo ifconfig wlan0 up
 
  
 
=== Status ===
 
=== Status ===
Line 20: Line 114:
  
 
=== Configure ===
 
=== 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.
 +
<pre>
 +
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
 +
</pre>
 +
 +
== At the GUI ==
 +
 +
In the upper right menu <uparror downarrow menu> and selected zdomeWLAN. Followed through with the setup. This worked.
  
 
== Resources ==
 
== Resources ==
Line 26: Line 145:
 
* [https://help.ubuntu.com/community/WifiDocs/WiFiHowTo WiFiHowTo]
 
* [https://help.ubuntu.com/community/WifiDocs/WiFiHowTo WiFiHowTo]
 
* [http://ubuntuforums.org/archive/index.php/t-1490123.html Wireless not Working]
 
* [http://ubuntuforums.org/archive/index.php/t-1490123.html Wireless not Working]
 +
* [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/356807 Bug report]
 +
* [http://www.fit-pc.com/forum/viewtopic.php?f=43&t=1856&hilit=iwconfig&sid=505e57d11f68e13503ea7eb76c6106c0 Fit PC forum]
 +
* [http://www.fit-pc.com/forum/viewtopic.php?f=44&t=1462&p=5220&hilit=iwconfig&sid=505e57d11f68e13503ea7eb76c6106c0#p5220 Fit PC Command Line]

Latest revision as of 20:42, 27 June 2016

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.

Resources