Difference between revisions of "NetworkManager (简体中文)"

From ArchWiki
Jump to navigation Jump to search
(New page: Category:Networking (简体中文) Category:Internet and Email (简体中文) Category:HOWTOs (简体中文) {{i18n_links_start}} {{i18n_entry|Deutsch|:Networkmanager (Deutsch...)
 
Line 10: Line 10:
 
{{i18n_links_end}}
 
{{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.
+
网络管理器(NetworkManager)是一个先进的网络连接工具。它试图使网络连接对最终用户透明化,比如当你进入一个你以前到过的区域时,网络管理器会自动帮你连接到你上一次连接过的网络。
  
= Installation =
+
= 安装 =
Check that '''wireless_tools''' is installed first, otherwise Networkmanager won't work.
+
请确定你已经安装了 '''wireless_tools'''这个软件包,否则网络管理器不会工作
  
Also check that HAL[[http://wiki.archlinux.org/index.php/HAL]] is installed, and loaded as a daemon in rc.conf.
+
同时确保hal[[http://wiki.archlinux.org/index.php/HAL]]也已经安装了,并且作为一个守护进程启动(写在了rc.conf的DAEMONS里).
  
==Gnome==
+
==Gnome环境==
 
  # pacman -S gnome-network-manager
 
  # pacman -S gnome-network-manager
  
==KDE==
+
==KDE环境==
 
  # pacman -S knetworkmanager
 
  # pacman -S knetworkmanager
  
==Xfce==
+
==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:
+
环境下同样使用GNOME的软件包,但是需要xfapplet插件,其作用是允许GNOME里的的那些小程序显示在xfce4面板上:
 
  # pacman -S gnome-network-manager xfce4-xfapplet-plugin
 
  # pacman -S gnome-network-manager xfce4-xfapplet-plugin
  
==Fluxbox and Other WM's==
+
==Fluxbox以及其它窗口管理器==
You will need the hicolor theme to be able to run nm-applet:
+
你需要高色彩的主题来运行nm-applet:
  
 
  # pacman -S gnome-network-manager hicolor-icon-theme
 
  # 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
+
调整好系统后,通过打开“设置”-->“自动运行程序”,并添加"nm-applet --sm-disable",使网络管理器能在启动时自动加载。其中"--sm-disable option"选项用于防止多个nm-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.
 
  
=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:
 
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)
 
  INTERFACES=(lo !eth0 !ath0)

Revision as of 03:39, 25 February 2008


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

简介

网络管理器(NetworkManager)是一个先进的网络连接工具。它试图使网络连接对最终用户透明化,比如当你进入一个你以前到过的区域时,网络管理器会自动帮你连接到你上一次连接过的网络。

安装

请确定你已经安装了 wireless_tools这个软件包,否则网络管理器不会工作

同时确保hal[[1]]也已经安装了,并且作为一个守护进程启动(写在了rc.conf的DAEMONS里).

Gnome环境

# pacman -S gnome-network-manager

KDE环境

# pacman -S knetworkmanager

Xfce环境

环境下同样使用GNOME的软件包,但是需要xfapplet插件,其作用是允许GNOME里的的那些小程序显示在xfce4面板上:

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

Fluxbox以及其它窗口管理器

你需要高色彩的主题来运行nm-applet:

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

调整好系统后,通过打开“设置”-->“自动运行程序”,并添加"nm-applet --sm-disable",使网络管理器能在启动时自动加载。其中"--sm-disable option"选项用于防止多个nm-applet同时运行。

配置

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