Difference between revisions of "Linux Wireless"

From wikidb
Jump to: navigation, search
(Command Line Attempts)
(Command Line Attempts)
Line 29: Line 29:
  
 
=== Example 1 ===
 
=== 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]
 +
 +
=== Example 2 ===
  
 
The following did not work.
 
The following did not work.
Line 43: Line 50:
 
* [http://askubuntu.com/questions/191836/wpa-supplicants-connection-issues Reference]
 
* [http://askubuntu.com/questions/191836/wpa-supplicants-connection-issues Reference]
  
=== Example 2 ===
+
=== Example 3 ===
  
 
   sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext
 
   sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext

Revision as of 00:41, 23 November 2015

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

 network={
   ssid="zdome"
   proto=RSN
   key_mgmt=WPA-PSK
   pairwise=CCMP TKIP
   group=CCMP TKIP
   psk="********"
 }

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.

Command Line Attempts

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

Example 3

 sudo iwconfig wlan0 essid "zdome" key "********"
 sudo iwconfig wlan0 essid "zdome" key s:********

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