RaspbmcCrystalbuntu

Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[how to] Configure Networkmanager for wifi
06-23-2012, 10:46 PM (This post was last modified: 06-24-2012 08:46 PM by mxpwr.)
Post: #1
[how to] Configure Networkmanager for wifi
I m having troubles getting my wifi dongle working with RC3.

For the installation I followed this guide.
http://omer.me/2012/04/setting-up-wirele...pberry-pi/
This works perfectly fine with RC2 and doing a manual kernel update (however XBMC py scripts don't work).

When I do the same under RC3 I run into the following problem.
When I restart the network, it always deauthenticates. "dmesg" gives:
Code:
wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3)

I managed to get it working by killing the networkmanager with "killall".
Restarting network then brings up wifi working.

However, I would have to do that after each reboot. I am most likely just too unexperienced and missing something. Some help would be appreciated.
Find all posts by this user
Quote this message in a reply
06-24-2012, 08:17 PM (This post was last modified: 06-26-2012 02:31 PM by mxpwr.)
Post: #2
RE: Configure Networkmanager for wifi
Here is how i got my wifi dongle working under RC3 (thanks to s7mx1 and http://omer.me/2012/04/setting-up-wirele...pberry-pi/). There might be errors or stupid things, I am not experienced with debian.

SSH into PI

Code:
sudo -s
nano /etc/apt/sources.list

Change its content to:

Code:
#!/bin/bash
deb http://ftp.debian.org/debian stable main non-free
deb http://ftp.debian.org/debian/ squeeze-updates main non-free
deb http://security.debian.org/ squeeze/updates main non-free

then find out what drivers you need for your wifi-adapter (http://wiki.debian.org/WiFi#USB_Devices). For my dongle it is "firmware-ralink".

Code:
apt-get update
apt-get install wireless-tools firmware-ralink

then create a file in
Quote:/etc/NetworkManager/system-connections
with a filename in the form of
Quote:name.ini

Code:
cd /etc/NetworkManager/system-connections/
nano name.ini

with content of

Code:
[connection]
id=WIFI
uuid=11111111-1111-1111-1111-111111111111
type=802-11-wireless
autoconnect=true
timestamp=0

[802-11-wireless]
ssid= ssid in byte array separated by ; (i used matlab to convert)
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=plain text wpa-key phrase

restrict fileaccess of name.ini to root:root

Code:
chmod 0600 name.ini

Reboot and be happy!
Find all posts by this user
Quote this message in a reply
06-24-2012, 08:43 PM (This post was last modified: 06-26-2012 09:50 PM by s7mx1.)
Post: #3
RE: Configure Networkmanager for wifi
Great. Here is the small python script that can generate the ssid for you

Code:
wget http://db.tt/tcFXKYeU -O /tmp/ssid.py
python /tmp/ssid.py "Simple"

Replace Simple by what ever SSID you use.

Also a quick note that the commands in mxpwr's original should be run under root or add sudo.

(06-24-2012 08:17 PM)mxpwr Wrote:  Here is how i got my wifi dongle working under RC3 (thanks to s7mx1 and http://omer.me/2012/04/setting-up-wirele...pberry-pi/). There might be errors or stupid things, I am not experienced with debian.

SSH into PI

Code:
sudo -s
nano /etc/apt/sources.list

Change its content to:

Code:
#!/bin/bash
deb http://ftp.debian.org/debian stable main non-free
deb http://ftp.debian.org/debian/ squeeze-updates main non-free
deb http://security.debian.org/ squeeze/updates main non-free

then find out what drivers you need for your wifi-adapter (http://wiki.debian.org/WiFi#USB_Devices)

Code:
apt-get update
apt-get install wireless-tools firmware-ralink

then create a file in
Quote:/etc/NetworkManager/system-connections
with a filename in the form of
Quote:name.ini

Code:
cd /etc/NetworkManager/system-connections/
nano name.ini

with content of

Code:
[connection]
id=WIFI
uuid=11111111-1111-1111-1111-111111111111
type=802-11-wireless
autoconnect=true
timestamp=0

[802-11-wireless]
ssid= ssid in byte array separated by ; (i used matlab to convert)
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=plain text wpa-key phrase

restrict fileaccess of name.ini to root:root

Code:
chmod 0600 name.ini

Reboot and be happy!
Find all posts by this user
Quote this message in a reply
06-24-2012, 10:04 PM (This post was last modified: 06-24-2012 10:06 PM by NodeDeploy.)
Post: #4
RE: [how to] Configure Networkmanager for wifi
Active Connection State: Activating
Active Connection PathL /org/freedesktop/NetworkManager/ActiveConnection/0

It just sits on that and doesn't connect, any ideas?

Oh wait, after that, I get

Error: Timeout 90 sec expired.
Find all posts by this user
Quote this message in a reply
06-24-2012, 10:12 PM
Post: #5
RE: Configure Networkmanager for wifi
(06-24-2012 08:43 PM)s7mx1 Wrote:  Great. Here is the small python script that can generate the ssid for you

Code:
wget http://db.tt/tcFXKYeU -O /tmp/ssid.py
python /tmp/ssid.py Simple

Replace Simple by what ever SSID you use.

Also a quick note that the commands in mxpwr's original should be run under root or add sudo.

(06-24-2012 08:17 PM)mxpwr Wrote:  Here is how i got my wifi dongle working under RC3 (thanks to s7mx1 and http://omer.me/2012/04/setting-up-wirele...pberry-pi/). There might be errors or stupid things, I am not experienced with debian.

SSH into PI

Code:
sudo -s
nano /etc/apt/sources.list

Change its content to:

Code:
#!/bin/bash
deb http://ftp.debian.org/debian stable main non-free
deb http://ftp.debian.org/debian/ squeeze-updates main non-free
deb http://security.debian.org/ squeeze/updates main non-free

then find out what drivers you need for your wifi-adapter (http://wiki.debian.org/WiFi#USB_Devices)

Code:
apt-get update
apt-get install wireless-tools firmware-ralink

then create a file in
Quote:/etc/NetworkManager/system-connections
with a filename in the form of
Quote:name.ini

Code:
cd /etc/NetworkManager/system-connections/
nano name.ini

with content of

Code:
[connection]
id=WIFI
uuid=11111111-1111-1111-1111-111111111111
type=802-11-wireless
autoconnect=true
timestamp=0

[802-11-wireless]
ssid= ssid in byte array separated by ; (i used matlab to convert)
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=plain text wpa-key phrase

restrict fileaccess of name.ini to root:root

Code:
chmod 0600 name.ini

Reboot and be happy!

Thanks for the clear instructions, I followed them but still no wireless access.

if I iwconfig I get :

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

which is more than I was getting.

I have a RALINK RT5370 chipset dongle

Any ideas? Thanks Joss
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 10:12 PM
Post: #6
RE: [how to] Configure Networkmanager for wifi
Reboot?

(06-24-2012 10:04 PM)NodeDeploy Wrote:  Active Connection State: Activating
Active Connection PathL /org/freedesktop/NetworkManager/ActiveConnection/0

It just sits on that and doesn't connect, any ideas?

Oh wait, after that, I get

Error: Timeout 90 sec expired.
Find all posts by this user
Quote this message in a reply
06-24-2012, 10:14 PM
Post: #7
RE: [how to] Configure Networkmanager for wifi
(06-24-2012 10:12 PM)s7mx1 Wrote:  Reboot?

(06-24-2012 10:04 PM)NodeDeploy Wrote:  Active Connection State: Activating
Active Connection PathL /org/freedesktop/NetworkManager/ActiveConnection/0

It just sits on that and doesn't connect, any ideas?

Oh wait, after that, I get

Error: Timeout 90 sec expired.

Nothing.
Find all posts by this user
Quote this message in a reply
06-25-2012, 04:05 PM
Post: #8
RE: Configure Networkmanager for wifi
Would this work with a WEP passkey for wifi - I would like to change to WPA, but its not my router etc...

Could I just change key-mgmt=wpa-psk to key-mgmt=wep ?

(06-24-2012 08:17 PM)mxpwr Wrote:  Here is how i got my wifi dongle working under RC3 (thanks to s7mx1 and http://omer.me/2012/04/setting-up-wirele...pberry-pi/). There might be errors or stupid things, I am not experienced with debian.

SSH into PI

Code:
sudo -s
nano /etc/apt/sources.list

Change its content to:

Code:
#!/bin/bash
deb http://ftp.debian.org/debian stable main non-free
deb http://ftp.debian.org/debian/ squeeze-updates main non-free
deb http://security.debian.org/ squeeze/updates main non-free

then find out what drivers you need for your wifi-adapter (http://wiki.debian.org/WiFi#USB_Devices)

Code:
apt-get update
apt-get install wireless-tools firmware-ralink

then create a file in
Quote:/etc/NetworkManager/system-connections
with a filename in the form of
Quote:name.ini

Code:
cd /etc/NetworkManager/system-connections/
nano name.ini

with content of

Code:
[connection]
id=WIFI
uuid=11111111-1111-1111-1111-111111111111
type=802-11-wireless
autoconnect=true
timestamp=0

[802-11-wireless]
ssid= ssid in byte array separated by ; (i used matlab to convert)
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=plain text wpa-key phrase

restrict fileaccess of name.ini to root:root

Code:
chmod 0600 name.ini

Reboot and be happy!
Find all posts by this user
Quote this message in a reply
06-25-2012, 04:14 PM
Post: #9
RE: Configure Networkmanager for wifi
Try key-mgmt=none or key-mgmt=ieee8021x

Code:
Key management used for the connection. One of 'none' (WEP), 'ieee8021x' (Dynamic WEP), 'wpa-none' (WPA-PSK Ad-Hoc), 'wpa-psk' (infrastructure WPA-PSK), or 'wpa-eap' (WPA-Enterprise).

(06-25-2012 04:05 PM)vermontia Wrote:  Would this work with a WEP passkey for wifi - I would like to change to WPA, but its not my router etc...

Could I just change key-mgmt=wpa-psk to key-mgmt=wep ?
Find all posts by this user
Quote this message in a reply
06-25-2012, 08:38 PM
Post: #10
RE: Configure Networkmanager for wifi
I have tried the above, created the name.ini file, and rebooted. Should it automatically connect to my wireless network now on reboot? This is not happening. If I search for networks, I can see my network, so its the final step I have a problem with, connecting to the wifi. Any suggestions?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Sponsored Advertisement