From: Tom H <tomh0665@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
Date: Wed, 11 Mar 2015 16:15:53 -0400 [thread overview]
Message-ID: <CAOdo=SwhAcoDJVnTMLK757m8_9GgXY-uHN_8B03DRaeAaJ+r7g@mail.gmail.com> (raw)
In-Reply-To: <CAGQH77eLim=0kxaDvhDvggEH4oEEWjtGTE3-qSRJBLSKOuY5mw@mail.gmail.com>
On Wed, Mar 11, 2015 at 2:35 PM, Jc García <jyo.garcia@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.
next prev parent reply other threads:[~2015-03-11 20:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 9:19 [gentoo-user] Network manager [ control of wireless and wired interafaces] German
2015-03-11 9:48 ` Fernando Rodriguez
2015-03-11 11:15 ` Neil Bothwick
2015-03-11 11:40 ` German
2015-03-11 11:52 ` Alan McKinnon
2015-03-11 12:03 ` German
2015-03-11 12:12 ` Paul Klos
2015-03-11 12:14 ` German
2015-03-11 12:38 ` Neil Bothwick
2015-03-11 13:16 ` German
2015-03-11 14:40 ` Neil Bothwick
2015-03-11 18:35 ` Jc García
2015-03-11 18:51 ` Jc García
2015-03-11 19:27 ` German
2015-03-11 21:46 ` Tom H
2015-03-11 20:15 ` Tom H [this message]
2015-03-11 21:18 ` Fernando Rodriguez
2015-03-11 22:11 ` Tom H
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOdo=SwhAcoDJVnTMLK757m8_9GgXY-uHN_8B03DRaeAaJ+r7g@mail.gmail.com' \
--to=tomh0665@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox