Wicd
From ArchWiki
i18n |
---|
English |
Italiano |
简体中文 |
Türkçe |
Wicd is a network connection manager that can manage wireless and wired interfaces, similar and an alternative to NetworkManager. Wicd is written in Python and GTK+, requiring fewer dependencies than other network managers.
Contents |
Installation
If you are not using gnome (or its notification-daemon), you might want to install xfce4-notifyd from extra before you install wicd, or you will most likely end up with the standard notification-daemon pulling a lot of unnecessary packages.
# pacman -S xfce4-notifyd
Wicd also is available from the standard repositories:
# pacman -S wicd
This will install Wicd and all the necessary dependencies, including dbus, python and gtk2.
Alternative
The wicd-bzr buildscript is available from AUR, which should build the latest development branch.
If you need an alternative version or you just want to roll your own package, you can easily build it using ABS.
Getting Started
Initial Setup
Wicd provides a daemon that must be started.
First, stop all previously running network daemons:
# /etc/rc.d/network stop # /etc/rc.d/dhcdbd stop # /etc/rc.d/networkmanager stop
Now, edit /etc/rc.conf as root:
# nano /etc/rc.conf
Disable (!) any devices in the INTERFACES array that you wish to manage with Wicd. For example:
INTERFACES=(!eth0 !wlan0)
Disable (!) any existing network management daemons in the DAEMONS array, including network, dhcdbd, and networkmanager.
Now, add dbus (if not already present) and wicd to the DAEMONS array, in that order. The DAEMONS array should now look something like this:
DAEMONS=(syslog-ng dbus !network !dhcdbd !networkmanager wicd ...)
Save and close.
Add your account to network group:
# gpasswd -a USERNAME network
Lastly, reboot your or start the daemons:
# /etc/rc.d/dbus or hal start
If you added your user to a new group, logout and then login.
Running Wicd
To load Wicd, run:
$ wicd-client
Or if your desktop environment does not have a notification area, run:
$ wicd-client -n
You can add wicd-client to your DE/WM startup to have the application start when you log in.
Trouble-shooting
Importing pynotify failed, notifications disabled
In case the package did not get installed automatically -- the package's name is "python-notify":
# pacman -S python-notify
Dbus connection error message
Make sure to use the following command for your .xinitrc:
exec ck-launch-session [your environment here]
As an example, mine reads:
exec ck-launch-session openbox-session
Otherwise you will get dbus error messages and not be able to connect to networks.
- NOTE: If wicd suddenly stopped working and it complains about dbus, it is quite like that your solution is as simple and to remove wicd fully, including and all its configuration files, and re-install it from scratch:
pacman -R wicd rm -rf /etc/wicd /var/log/wicd /etc/dbus-1/system.d/wicd* pacman -S wicd
Please, check this link for more details: http://bbs.archlinux.org/viewtopic.php?pid=577141#p577141
Problems after package update
Sometimes wicd client doesn't load after a package update due to dbus errors or the Preferences buttons are not working. A solution is to remove the config files in the /etc/wicd/ directory.
sudo /etc/rc.d/wicd stop sudo rm /etc/wicd/*.conf sudo /etc/rc.d/wicd start
Note about graphical sudo programs
If you are receiving an error about wicd failing to find a graphical sudo program, run one of the following commands:
$ ktsuss wicd-client -n
$ gksudo wicd-client -n
$ kdesu wicd-client -n
These programs require the ktsuss (found in the AUR), gksu, and kdesu packages, respectively.