Difference between revisions of "NetworkManager"

From ArchWiki
Jump to navigation Jump to search
m
Line 8: Line 8:
 
{{i18n_entry|Italiano|:NetworkManager (Italiano)}}
 
{{i18n_entry|Italiano|:NetworkManager (Italiano)}}
 
{{i18n_entry|Português do Brasil|:NetworkManager (Português)}}
 
{{i18n_entry|Português do Brasil|:NetworkManager (Português)}}
 +
{{i18n_entry|简体中文|:网络管理器}}
 
{{i18n_links_end}}
 
{{i18n_links_end}}
  

Revision as of 04:01, 25 February 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

Additional Resources