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

Please post all general support questions for LXDE here.
Locked
jiewmeng
Posts: 11
Joined: Sun May 22, 2011 3:52 am

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

Post 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?
sportscliche
Posts: 24
Joined: Fri Feb 11, 2011 12:39 am

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

Post by sportscliche »

A good place to start is nm-applet and network-manager for the GUI.
jiewmeng
Posts: 11
Joined: Sun May 22, 2011 3:52 am

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

Post 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 ...
jiewmeng
Posts: 11
Joined: Sun May 22, 2011 3:52 am

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

Post by jiewmeng »

Hmm, I dont see anything telling me how to auto start it?
sportscliche
Posts: 24
Joined: Fri Feb 11, 2011 12:39 am

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

Post by sportscliche »

If not, you will need to edit the file /etc/rc.conf as root. Add networkmanager to the list of daemons.
Locked