Difference between revisions of "NetworkManager"

From ArchWiki
Jump to: navigation, search
(Added a brief how-to for automatic unlocking GNOME's keyring)
(Fluxbox and Other WM's)
Line 36: Line 36:
 
After configuring your system for use with the network manager, to autostart the network manager applet, go to
 
After configuring your system for use with the network manager, to autostart the network manager applet, go to
 
settings --> Autostarted Applications then add, "nm-applet --sm-disable", This should start up the network manager applet
 
settings --> Autostarted Applications then add, "nm-applet --sm-disable", This should start up the network manager applet
on startup, the "--sm-disable option" is used to prevent multiple instances of the nm-applet, you should only need it if multiple instances are running when you startup.
+
on startup, the "--sm-disable" option is used to prevent multiple instances of the nm-applet, you should only need it if multiple instances are running when you startup.
  
 
=Configuration=
 
=Configuration=

Revision as of 20:52, 20 May 2008

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

Introduction

NetworkManager is an advanced network connection tool. It attempts to make networking invisible to the end user, so that when moving into areas you've been before, NetworkManager automatically connects to the last network you chose to connect to.

Installation

Check that wireless_tools is installed first, otherwise Networkmanager won't work.

Also check that HAL[[1]] is installed, and loaded as a daemon in rc.conf.

Gnome

# pacman -S gnome-network-manager

KDE

# pacman -S knetworkmanager

Xfce

Xfce uses the same package as GNOME, however it requires the xfapplet plugin as well, which allows GNOME applets to be displayed within the xfce4-panel:

# pacman -S gnome-network-manager xfce4-xfapplet-plugin

Fluxbox and Other WM's

You will need the hicolor theme to be able to run nm-applet:

# pacman -S gnome-network-manager hicolor-icon-theme

After configuring your system for use with the network manager, to autostart the network manager applet, go to settings --> Autostarted Applications then add, "nm-applet --sm-disable", This should start up the network manager applet on startup, the "--sm-disable" option is used to prevent multiple instances of the nm-applet, you should only need it if multiple instances are running when you startup.

Configuration

If you want to use NetworkManager on an interface you will have to disable it in /etc/rc.conf. You can do this by placing a '!' in front of the interface of your choice, for example:

INTERFACES=(lo !eth0 !ath0)

NetworkManager parses your /etc/rc.conf to see if you want to have a static or dynamic IP on your interfaces.

So just put your preferred config into it.

example for static IP:

 eth0="eth0 172.19.3.18 netmask 255.255.255.0 broadcast 172.19.3.255"

example for dynamic IP:

 eth0="dhcp"

You must also "disable" the default network daemon, and add the dhcdbd and networkmanager daemons in this order:

DAEMONS=( ... !network dhcdbd networkmanager ... )

Note: If you happen to specify the fam daemon in your array, it must appear after networkmanager. The same also applies to portmap if specified.

Finally, add yourself to the network group as shown below (replacing USERNAME with the appropriate username):

# gpasswd -a USERNAME network

Automatically unlock keyring in GNOME after login

This will prevent nm-applet from asking for your keyring password. Note that this will only work when logging in via GDM.

In /etc/pam.d/gdm, add these lines at the end of the 'auth', 'session' blocks:

auth            optional        pam_gnome_keyring.so
session         optional        pam_gnome_keyring.so  auto_start

In /etc/pam.d/passwd, add this line to the 'password' block:

password    optional    pam_gnome_keyring.so

Next time you log in, you should get asked if you want the password to be unlocked automatically on login.

See http://live.gnome.org/GnomeKeyring/Pam for reference.


Additional Resources