LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   WIFI with NetworkManager in Slackware 14 (http://www.linuxquestions.org/questions/slackware-14/wifi-with-networkmanager-in-slackware-14-a-4175457936/)

staus 04-12-2013 02:22 PM

WIFI with NetworkManager in Slackware 14
 
Iuse blackbox on my laptops, and I have discovered that wicd will grab an ip address, but not connect to the internet. If I use Linux Mint with network manager, it will connect correctly. I do not want to use kde if possible. Any ideas why wicd won't work? Or, any ideas how to get network manager to work with blackbox. (I tried docker, but can't find info on how to get it to play correctly with network manager).
Any help is appreciated.

rich442 04-12-2013 06:05 PM

I only have some suggestions:


network manager works with systray which is specifically available for GNOME and XFCE. Unfortunately, network manager relies heavily on systems with a system tray feature.

Your old Mint setup probably used the nm-applet package. The same exists in slackbuilds under a slightly different name.

The slackware package is called network-manager-applet.txz and is available in the slackbuild repository under

Network SlackBuild 0.8.6 (Slackware 13.37).


Builds for Slackware 14.0 are the network-manager-openconnect, Network-manager-openvpn, and network-manager-pptp packages. These are the builds you might like to look into.

I hope this helps. AFAIK, this is the easiest way to get an attractive solution to wireless connections without using KDE, GNOME, systray or docky. Best wishes and good luck. :)

Lilgamesh 04-12-2013 06:12 PM

Quote:

Originally Posted by staus (Post 4930486)
Iuse blackbox on my laptops, and I have discovered that wicd will grab an ip address, but not connect to the internet. If I use Linux Mint with network manager, it will connect correctly. I do not want to use kde if possible. Any ideas why wicd won't work? Or, any ideas how to get network manager to work with blackbox. (I tried docker, but can't find info on how to get it to play correctly with network manager).
Any help is appreciated.

If you have NM installed,

$ nmcli dev wifi connect 'SSID' password 'password'

this should work. I got this from gentoo forums and never tried on slackware as i always used xfce and now mate. Please let me know if it work.

allend 04-12-2013 10:35 PM

To use NetworkManager instead of wicd, you will need to:
'chmod -x /etc/rc.d/rc.wicd' and
'chmod +x /etc/rc.d/rc.networkmanager'
I also suggest that you change your /etc/rc.d/rc.inet1.conf to the initial default if you have made changes there. This can be done by running netconfig and choosing loopback.
Probably easiest to reboot after doing this.

As I understand it, docker acts as a system tray, so if you run nm-applet it should appear. I do this in Windowmaker using the wmsystemtray dockapp.
You will need to configure your connection using nm-applet.

Quote:

nmcli dev wifi connect 'SSID' password 'password'
This will not work for a WPA2 only connection. nmcli cannot handle the secrets required. You need to use wpa_supplicant directly.

rich442 04-13-2013 12:19 AM

Hello again. I just wanted to confirm that "nm-applet" is the name of the Mint/Ubuntu package. While it performs the same function, the slackware build is called network-manager-*. I hope I didn't confuse the issue by using the Ubuntu name. I know my answer was long and rambling. :)

staus 04-14-2013 05:12 PM

Thanks for all the help. Wicd worked OK before the last (unknown) current updates.
I even recompiled wicd using Alien Bob's slackbuild with a minor change. Still the same result.
All wifi routers issue an ip address, but a ping for www.google.com comes up with 'unknown host'.

I guess I'm stuck with network manager, so I'll give it another try.

STDOUBT 04-14-2013 07:30 PM

staus,
Maybe the way you're running wicd has something to do with the problem.
I run xmonad with no "dock" or systray feature (only dmenu which has nothing to do with wicd),
and I just run wicd-curses. Works great. I have no DE even installed.
HTH

staus 04-14-2013 10:21 PM

I've been running wicd for many months, and it always worked on my two laptops.
I'm thoroughly confused about KDE now. I've installed the entire Slackware dvd and I'm currently running 14-current (64 bit). Why does kde come with kde-wicd and networkmanager?
I was going to investigate networkmanager on KDE, but it's using kde-wicd.
And as of now, it won't connect to a wifi router. Now I can't figure out how to get rid of kde-wicd and use networkmanager for KDE.

I really don't want to use KDE. I'm a long time blackbox user, but not having wireless capability puts a real damper on using my laptops.

STDOUBT 04-14-2013 10:27 PM

staus,
If you don't want to use KDE, you should remove it. That will remove kde-wicd. NetworkManager will work in KDE just fine as long as /etc/rc.d/rc.networkmanager is executable. In that case you'd want to have /etc/rc.d/rc.wicd be non-executable.
I'd be interested to know if using "wicd-curses" (in a terminal) alone in blackbox works for you.
Quote:

I've been running wicd for many months, and it always worked on my two laptops.
Wait, now I'm confused...I thought wicd didn't connect for you. Or was it working fine on 13.37 and now fails on 14.0?

staus 04-15-2013 02:26 PM

wicd worked fine in Slack 14 64 bit, until recently after many current upgrades.

I deleted the wicd program and made rc.networkmanager executable, but it didn't run. kde-wicd still worked in kde, and also failed to do wifi connections.

I've decided to reinstall the latest current version of 64 bit Slack, just to see if networkmanager will work. Then I will try wicd from /extra again.

If they fail to function, I will revert to the officially released 14 version and give it another try.

I may be at fault by always upgrading to Slack current as if it a 'rolling release'.
My Slack 14 current is actually a continuously upgraded version of 13.37.

Didier Spaier 04-15-2013 02:51 PM

Well, actually there is no need for neither KDE nor XFCE to use Network Manager, you can use it with Fluxbox as well for instance.

Just run:
Code:

netconfig
and, when asked, choose Network Manager, regardless of the Desktop or Windows Manager you use.

Then if the network manager applet doesn't shows on a tray, just run as a regular user:
Code:

nm-applet
After that if you left-click on the widget you can choose your wifi connexion. It will ask for the password or passphrase if need be.

That's all there is to it, no need for wicd or alien software.

staus 04-15-2013 10:30 PM

I just reinstalled the latest and greatest current 64 bit Slackware. Once again wicd worked perfectly with the blackbox desktop.

So I'm guessing the constant upgrades broke something, but I don't know what it was.

Now, I'll have to reinstall my complete system over again - virtualbox VMs and all.


All times are GMT -5. The time now is 03:31 AM.