注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:NetworkManager"

From Funtoo
Jump to navigation Jump to search
m (more details)
(incorrect info)
 
(14 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|Summary=Universal network configuration daemon for laptops, desktops, servers and virtualization hosts
|Summary=Universal network configuration daemon for laptops, desktops, servers and virtualization hosts
|CatPkg=net-misc/networkmanager
|CatPkg=net-misc/networkmanager
|Maintainer=
|Homepage=https://wiki.gnome.org/Projects/NetworkManager
|Homepage=https://wiki.gnome.org/Projects/NetworkManager
}}
}}
{{PageNeedsUpdates}}
{{PageNeedsUpdates}}
NetworkManager is the defacto network connection system for many linux distributions. NetworkManager supports mobile phone, wireless, and wired connections.  NetworkManager is intended to make configuring, and connecting easy.
NetworkManager is the de-facto network connection system for many Linux distributions. NetworkManager supports mobile phone, wireless, and wired connections.  NetworkManager is intended to make configuring, and connecting easy.


=== installation ===
=== Installation ===
{{note|disable wicd, wpa_supplicant, net.ethX, & net.wlanX prior to starting network manager.}}
 
{{important|disable wicd, wpa_supplicant, net.ethX, & net.wlanX and dhcpcd prior to starting network manager.}}
 
To install, emerge networkmanager and add it to the default runlevel:


{{console|body=###i## emerge networkmanager
{{console|body=###i## emerge networkmanager
###i## rc-update add NetworkManager
###i## rc-update add NetworkManager default
###i## rc
###i## rc
}}
}}
To list visible access points:
{{console|body=###i## nmcli dev wifi list
*  SSID                    MODE  CHAN  RATE      SIGNAL  BARS  SECURITY 
  derp1                    Infra  6    54 Mbit/s  30      ▂___  WPA2     
  derp2                    Infra  7    54 Mbit/s  29      ▂___  WPA2     
  derp3                    Infra  1    54 Mbit/s  27      ▂___  WPA1 WPA2
*  connectedap              Infra  1    54 Mbit/s  52      ▂▄__  WPA1 WPA2 }}
It is also possible to add WiFi access point login information from the command-line:
{{console|body=
# ##i##nmtui
}}
{{c|nmtui}} has a very nice console-based interface. Network configuration entries are stored in {{f|/etc/NetworkManager/system-connections}} so that it will be remembered in the future.
{{Note|The following command will not work as long as you are in an install chroot environment. The reason for this is that {{c|nmtui}} will need to be booted into your new Funtoo Linux environment. So run this command after you have rebooted into Funtoo Linux.}}
Any users besides root will need to be added to the plugdev group to modify connections:


=== configuration ===
{{console|body=###i## gpasswd -a $USER plugdev}}
==== console ====
{{note|If you're experiencing troubles, losing connection after a 45-second timeout with NetworkManager and dhcpcd, switch the dhcp backend to dhclient (net-misc/dhcp).}}
{{note|as of right now 17:52, April 12, 2015 (UTC) nmtui's not suitable for wifi configurations because it will not save pass phrases}}
{{console|body=###i## nmtui}}


==== gui ====
=== Gtk ===
===== gtk =====
{{note|Sessions for users may need ck-launch-session in .xinitrc to use nm-applet, or have sessions launched from a display manager.}}
{{note|sessions for users may need ck-launch-session in .xinitrc to use nm-applet, or have sessions launched from a display manager.}}
{{console|body=###i## emerge nm-applet}}
{{console|body=###i## emerge nm-applet}}


===== kde =====
=== Kde ===
{{console|body=###i## emerge networkmanagement}}
{{console|body=###i## emerge plasma-nm}}


=== MAC spoofing ===
NetworkManager supports spoofing MAC addresses out of the box.  Supply an arbitrary MAC address to the cloned address field.
{{EbuildFooter}}
{{EbuildFooter}}

Latest revision as of 05:01, March 19, 2016

NetworkManager

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

NetworkManager is the de-facto network connection system for many Linux distributions. NetworkManager supports mobile phone, wireless, and wired connections. NetworkManager is intended to make configuring, and connecting easy.

Installation

   Important

disable wicd, wpa_supplicant, net.ethX, & net.wlanX and dhcpcd prior to starting network manager.

To install, emerge networkmanager and add it to the default runlevel:

root # emerge networkmanager
root # rc-update add NetworkManager default
root # rc

To list visible access points:

root # nmcli dev wifi list
*  SSID                     MODE   CHAN  RATE       SIGNAL  BARS  SECURITY  
   derp1                    Infra  6     54 Mbit/s  30      ▂___  WPA2      
   derp2                    Infra  7     54 Mbit/s  29      ▂___  WPA2      
   derp3                    Infra  1     54 Mbit/s  27      ▂___  WPA1 WPA2 
*  connectedap              Infra  1     54 Mbit/s  52      ▂▄__  WPA1 WPA2

It is also possible to add WiFi access point login information from the command-line:

root # nmtui

nmtui has a very nice console-based interface. Network configuration entries are stored in /etc/NetworkManager/system-connections so that it will be remembered in the future.

   Note

The following command will not work as long as you are in an install chroot environment. The reason for this is that nmtui will need to be booted into your new Funtoo Linux environment. So run this command after you have rebooted into Funtoo Linux.

Any users besides root will need to be added to the plugdev group to modify connections:

root # gpasswd -a $USER plugdev
   Note

If you're experiencing troubles, losing connection after a 45-second timeout with NetworkManager and dhcpcd, switch the dhcp backend to dhclient (net-misc/dhcp).

Gtk

   Note

Sessions for users may need ck-launch-session in .xinitrc to use nm-applet, or have sessions launched from a display manager.

root # emerge nm-applet

Kde

root # emerge plasma-nm

MAC spoofing

NetworkManager supports spoofing MAC addresses out of the box. Supply an arbitrary MAC address to the cloned address field.