On Wed, Mar 11, 2015 at 2:35 PM, Jc GarcĂa <jyo.gar...@gmail.com> wrote: > > If you want an easy way of configuring wirless without GUI use wicd > and the wicd curses client(enabled via USE flag), NetworkManager is > simpler to use with a GUI, the CLI client is not so easy to use, but > if you want to, make sure none of the GUI related use flags are set > e.g. gtk qt X emerge it, and then read and search info(man, google) > about nmcli.
I've never used nmcli except to get ip information (see below) but setting up NM without a gui is simple. This is my home wifi setup: # cat /etc/NetworkManager/system-connections/thsky [connection] id=thsky uuid=e03d75e4-043a-4276-bf03-3995270ec891 type=802-11-wireless [802-11-wireless] ssid=myssidname mode=infrastructure security=802-11-wireless-security [802-11-wireless-security] key-mgmt=wpa-psk psk=myssidpassword [ipv4] method=manual address1=192.168.1.11/24,192.168.1.1 dns=192.168.1.111 [ipv6] method=link-local If you want to use dhcp, you simply replace the three lines in the "[ipv4]" stanza with "method=auto". I have a script that uses nmcli and does the following: # nmcli -f ip4 -m tabular -t c s id $(nmcli -t -f name c s --active) IP4:ip = 192.168.1.11/24, gw = 192.168.1.1::192.168.1.111:--:-- "nmcli -t -f name c s --active" outputs the name of the active connection, "thsky". "nmcli -f ip4 c s id thsky" ouputs its ipv4 settings.