The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Package:NetworkManager
NetworkManager
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 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.
Installation
disable wicd, wpa_supplicant, net.ethX, & net.wlanX and dhcpcd prior to starting network manager.
root # emerge networkmanager root # rc-update add NetworkManager root # rc
Any users besides root will need to be added to the plugdev group to modify connections:
root # gpasswd -a $USER plugdev
If you're experiencing troubles, loosing connection after a 45-second timeout with NetworkManager and dhcpcd, switch the dhcp backend to dhclient (net-misc/dhcp).
Configuration
Gui
Gtk
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
Console
As of 17:52, April 12, 2015 (UTC) nmtui's not suitable for wifi configurations because it will not save pass phrases.
root # nmtui
command line
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
The following command will not work as long as you are in chroot environment. The reason for this is that addwifi will need dbus and rfkill to be set up. So don't forget to reboot!
root # addwifi -S wpa -K 'wifipassword' mywifinetwork
The addwifi
command is used to configure and connect to a WPA/WPA2 Wi-Fi network connections. Network configuration entries are stored in /etc/NetworkManager/system-connections
so that it will be remembered in the future.