Page 1 of 1

What to install to auto-detect WLAN + Connect to 1

Posted: Thu May 26, 2011 2:44 pm
by jiewmeng
I have a Minimal Ubuntu setup + LXDE. Currently I have troubles with WLAN. I used to use something like below

Code: Select all

ifconfig wlan0 down
dhclient -r wlan0
ifconfig wlan0 up
iwconfig wlan0 essid "ESSID_HERE"
iwconfig wlan0 key 1234567890
iwconfig wlan0 mode Managed
dhclient wlan0 
But its not working now. I don't see any errors either. How do I troubleshoot?

Also I will like to know of a WLAN applet/tool to allow beginners like me to easily connect to Wireless networks. Hopefully it will autoconnect to a "default" WLAN network on reboot? like what the default in Ubuntu does?

I found I need nm-applet, but how do I add it to the taskbar? Or I think I need to auto start it isit? How do i do that?

Re: What to install to auto-detect WLAN + Connect to 1

Posted: Fri May 27, 2011 11:42 am
by sportscliche
A good place to start is nm-applet and network-manager for the GUI.

Re: What to install to auto-detect WLAN + Connect to 1

Posted: Fri May 27, 2011 2:58 pm
by jiewmeng
sportscliche wrote:A good place to start is nm-applet and network-manager for the GUI.
Ok, It works, just that I cant get it to auto start

After some research, I edited /etc/xdg/autostart/nm-applet.desktop

Code: Select all

[Desktop Entry]
Name=Network Manager
Comment=Control your network connections
Icon=nm-device-wireless
Exec=nm-applet --sm-disable
Terminal=false
Type=Application
OnlyShowIn=LXDE;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-enabled=true
X-Ubuntu-Gettext-Domain=nm-applet
Then,

Code: Select all

sudo cp /etc/xdg/autostart/nm-applet.desktop ~/.config/autostart
Reboot, no nm-applet ...

Re: What to install to auto-detect WLAN + Connect to 1

Posted: Fri May 27, 2011 8:19 pm
by sportscliche

Re: What to install to auto-detect WLAN + Connect to 1

Posted: Sun May 29, 2011 12:09 pm
by jiewmeng
Hmm, I dont see anything telling me how to auto start it?

Re: What to install to auto-detect WLAN + Connect to 1

Posted: Sun May 29, 2011 2:50 pm
by sportscliche
If not, you will need to edit the file /etc/rc.conf as root. Add networkmanager to the list of daemons.