LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware + Wicd (https://www.linuxquestions.org/questions/slackware-14/slackware-wicd-584272/)

sparker 09-12-2007 05:50 PM

Slackware + Wicd
 
Does anyone have Wicd working in Slackware 12.0? I have put all the files that come with it in their correct places and the Wicd item appears under the menu in KDE but clicking it does not open the application.

I have tried to activate the system tray icon but to no avail. Do I need to be disabling something or does it just not function properly in Slackware?

cavalier 09-12-2007 06:12 PM

Have you tried running the executable from a terminal window? It might give you info about missing libraries or the like...

sparker 09-12-2007 09:10 PM

Okay I get this:
Code:

bash-3.1# ./tray.py
Traceback (most recent call last):
  File "./tray.py", line 5, in <module>
    import gtk
ImportError: No module named gtk

I installed everything with slack so it had gtk in it. This program is written in python.

Any ideas?

nawcom 02-25-2008 06:44 PM

let me know if you still need help. sounds like you didnt start up the wicd daemon "/opt/wicd/daemon.py" at boot time. if you use slackware you will also have to replace the networking.py with a modified one, for wicd is setup to use dhclient, while slackware uses dhcpcd to update the resol.conf realtime. oh wells, email me if you still need the help.

XGizzmo 02-25-2008 08:31 PM

Quote:

Originally Posted by sparker (Post 2890237)
Okay I
I installed everything with slack so it had gtk in it.

You need pygtk and maybe dbus-python
Everything you need can be found at http://slackbuilds.org/repository/12.0/network/wicd/

rworkman 02-25-2008 10:05 PM

nawcom:

Did you get my mail about this? I saw your modified networking.py with dhcpcd in it, and I'd like to discuss it further with you. Please contact me -- rworkman AT slackware.com

sparker 02-25-2008 11:15 PM

Wow, old thread. I have stopped using a network manager completely and just stick to a simple shell script. But, thanks for the offer to help anyways.

rworkman 02-25-2008 11:26 PM

sparker:
I wish I'd seen this thread back in September.
You just might want to give it a try with nawcom's modified networking.py script - it's working well here, and I think that's going to part of a larger changeset going upstream to the wicd devs.

sparker 02-26-2008 10:38 AM

I'll probably set it up on my laptop, since I do move around quite a bit. It might be simpler than adding to my script.

em21701 02-26-2008 03:23 PM

I have a similar problem with wicd, I started the daemon manually to make sure it works before adding it to the boot sequence when I try to start wicd from the command line I get :
Code:

/opt/wicd/gui.py
Missing GTK and gtk.glade. Aborting

I installed pygtk and dbus-python prior to compiling wicd, all of which I downloaded from slackbuilds.org I should already have GTK installed from the Slack install correct? What am I missing?

Thanks,
Eric

sparker 02-26-2008 09:02 PM

Did you do a full install? Otherwise, the only thing I can think of is you might need to upgrade to a newer version of gtk.

em21701 02-27-2008 06:02 AM

This is a brand new full installation of Slack 12. Installed a few days ago, downloaded about a week ago.

sparker 02-27-2008 04:50 PM

Do you start the wicd service? /etc/rc.d/rc.wicd start

I have it working fine and the only thing I did was upgrade gtk from current, but that was for a different purpose.

em21701 02-27-2008 04:54 PM

Yes I did start the service, I should have mentioned that. Does slack 12 ship with an older version of GTK? Why wouldn't wicd throw a build error if the GTK version was too old?

truthfatal 02-27-2008 06:19 PM

I just built this yesterday and have no problem with it in a relatively stock Slack 12...

mrclisdue 02-27-2008 07:16 PM

Ok.

So yesterday was the first that I'd heard of wicd, so I promptly dl'd the tarball, and installed from source, etc. Replaced the networking.py with the *proper* one for Slack. I stopped /etc/rc.d/rc.inet1; started the daemon, ran gui-py - entered the interface info, tried each wpa option (it's ralink, rt),...nothing. It simply doesn't find the interface. The wicd.log shows persistent attempts to find/start the interface, but no luck.

On a second box, I installed the package from slackbuilds.org, same results: nothing. Only difference is that this nic is Atheros.

Any advice/suggestions/direction?

Thanks,

sparker 02-27-2008 09:45 PM

Quote:

Originally Posted by em21701 (Post 3071924)
Yes I did start the service, I should have mentioned that. Does slack 12 ship with an older version of GTK? Why wouldn't wicd throw a build error if the GTK version was too old?

Did you install the dbus-python and pyGTK packages too? When I first built wicd I forgot the dbus-python and I didn't get any errors when building.

em21701 02-28-2008 03:16 PM

Quote:

Originally Posted by sparker (Post 3072178)
Did you install the dbus-python and pyGTK packages too? When I first built wicd I forgot the dbus-python and I didn't get any errors when building.

Yes, I downloaded both of them from slackbuilds.org ran the scripts and then the installers. Then I ran the build and install scripts for wicd (also from slackbuilds.org)

theoffset 02-28-2008 11:29 PM

Quote:

started the daemon, ran gui-py - entered the interface info, tried each wpa option (it's ralink, rt),...nothing. It simply doesn't find the interface. The wicd.log shows persistent attempts to find/start the interface, but no luck.
Did you try the "Preferences" menu in the GUI? IIRC ralink's interfaces are named "ra?"

I've been happily running WICD (with an Intel card. I'm also running -current, tho') for a couple of months now.

As for modifying networking.py, using dhclient seems to work for me at several places *EXCEPT* when using my home AP (for some reason dhclient doesn't update /etc/resolv.conf as it should... but only with this AP so far).

mrclisdue 02-29-2008 05:22 AM

Quote:

Originally Posted by theoffset (Post 3073487)
Did you try the "Preferences" menu in the GUI? IIRC ralink's interfaces are named "ra?"

Yes. The interface is wlan0, though when I used the nic in Fedora, it was rausb0. I'm going to do some serious playing around today to see if I can solve the issue.

I'm not overly concerned because both boxes work fine without wicd - my interest was piqued when this thread originated, and it's just a wee bit frustrating when what should be a fairly simple application doesn't behave as expected. I'll keep y'all posted...

cheers,

em21701 02-29-2008 06:42 AM

mrclisdue, what were you using before to connect to your wireless? Since this is a laptop I want to be able to see the networks availiable to me, I used wicd when Kubuntu was installed on this machine and it worked well.

mrclisdue 02-29-2008 07:42 AM

Quote:

Originally Posted by em21701 (Post 3073781)
mrclisdue, what were you using before to connect to your wireless? Since this is a laptop I want to be able to see the networks availiable to me, I used wicd when Kubuntu was installed on this machine and it worked well.

On the box with the Atheros card, I installed madwifi. I *believe* that I then made the appropriate modifications to /etc/rc.d/rc.inet1.conf, restarted /etc/rc.d/rc.inet1, et voila!

On the second box, I retrieved and installed the appropriate driver from serialmonkey, made the modifications to /etc/rc.d/rc.inet1.conf, etc..

I like the idea of wicd, tho', especially the gui, because I believe it simplifies the scanning for available networks, connecting, etc. processes (this is the point where someone will jump in with the cli commands in an attempt to prove to me how much simpler it is to do it from the command line - I *already* know how to connect from the cli - it's *everyone* else I'm concerned with. If I wish to spread the Linux gospel, I must do so on the "educated by MS" terms, not on my terms....)

cheers,

hemp4fuel 02-29-2008 10:00 PM

I have been having trouble when I am at home then suspend to ram, take my laptop to school and try to connect using wicd. Before I leave I use the "Disconnect" button(but I get the same result whether I do or not). When I try connecting to my schools network it won't get an ip until I reboot. I have tried doing it manually as well with dhcpcd and dhclient but I get the same result, no ip until I reboot then everything works fine. I am using a modified networking.py that uses dhcpcd. I have the same result if I then suspend to ram and return home, no ip until I reboot. I started using wicd hoping a tool such as this would be able to connect to different networks without the reboot but I can't seem to get it to work. It would seem that one should be able to connect to different networks without a reboot. My home network uses wpa2 and the school network is unencrypted.

em21701 03-01-2008 08:52 AM

I finally have it working. Since Slackware was a recent install I decided to go back to square 1 and reinstall Slack12.

Step1:

I setup my wireless adapter (broadcom). There are a lot of substeps to this, and it varies by wireless manufacturer. There are lots of posts and tutorials availiable.

Step2:

Install dbus-python
Install pygobject
Install pycairo
Install pygtk

Step3:

Install wicd

Step4:

start daemon (/etc/rc.d/rc/wicd start)
start wicd (sucess!)

Step5:

make it automatic, add:

Code:

if [ -x /etc/rc.d/rc.wicd ]; then
    /etc/rc.d/rc.wicd start
fi

into /etc/rc.d/rc.local

evilDagmar 03-01-2008 11:21 AM

Quote:

Originally Posted by nawcom (Post 3069641)
let me know if you still need help. sounds like you didnt start up the wicd daemon "/opt/wicd/daemon.py" at boot time. if you use slackware you will also have to replace the networking.py with a modified one, for wicd is setup to use dhclient, while slackware uses dhcpcd to update the resol.conf realtime. oh wells, email me if you still need the help.

No, actually so long as he didn't elect not to install the dhcp package, dhclient will work just fine.

The behaviours of dhclient and dhcpcd are also different enough that just replacing "dhclient" with "dhcpcd" in the script is not very likely to be a good (or working) solution.

mRgOBLIN 03-01-2008 03:06 PM

Actually in this case as long as you only replace the *word* "\<dhclient\>" with dhcpcd in daemon.py and networking.py it does appear to work fine. I've been using it this way for a few weeks with no issues.

Code:

cd /opt/wicd && sed -i 's/\<dhclient\>/dhcpcd/g' {networking,daemon}.py
Did the trick for me :)

evilDagmar 03-02-2008 01:20 AM

Either way it's not necessary. dhclient works fine.

nawcom 03-12-2008 05:11 PM

dhclient doesn't update resolv.conf without modifying the dhclient-script. slackware is set up to have dhcpcd deal with resolv.conf updates initially. thats why replacing dhclient with dhcpcd and the dhclient route commands with dhcpcd equivalent works. you can use dhclient just fine - you just wont be able to update your resolv.conf automatically with it without some changes in inet1.

I talked to the wicd developer; he plans on making the next major update to include support for what it has so far, plus dhcpcd and pump, along with others.

if you got dhclient to update the resolv.conf in slackware evilDagmar, that's great. It's just that if there is an easier route to solving the problem without making any changes, that's the best way to go. dhcpcd has resolv.conf control in slackware. which is why its better to use dhcpcd with wicd. make 2 line changes in networking.py - wallah. problem solved.

here is an updated package that will take care of the dirty work for you:
http://nawcom.com/files/slack/wicd-1.4.2-i486-3bpn.tgz

direct link to the wicd forum relating to this topic:
http://wicd.sourceforge.net/phpbb/vi...e1bbf7415070db

wicd bug report about this topic: https://bugs.launchpad.net/wicd/+bug/191091

nawcom 03-12-2008 05:13 PM

if there are problems with it email me at nawcom@nawcom.com; I seem to focus on the linuxquestions.org forums less and less these days.


All times are GMT -5. The time now is 02:28 AM.