From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EC9E9138CBD for ; Wed, 11 Mar 2015 20:16:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA044E0900; Wed, 11 Mar 2015 20:15:55 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8BABCE08DC for ; Wed, 11 Mar 2015 20:15:54 +0000 (UTC) Received: by lbiw7 with SMTP id w7so11479005lbi.6 for ; Wed, 11 Mar 2015 13:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=NtvD5OQcK/2+WK/HCxjAb/l2kSaA+kWfwhbIZdyPEbY=; b=HC83+BL2/wrhBqWttD20OIulgEEdEpSq6bTvXfPOt4biwqyFPyHhMByD3O6NiGpwxw s4LQ+PuIexsaN7Tse4VcVbc9rYHltFYPS1nOvWtLICc7d4BAt5/mM25Fsn4FiWfriMFh i7u7EN4V6zGKUXqYwkTjhmfg1jTjOtTXFWZPhlMObIqpCbFJ+p4h8URJCHzZVLYHF+hp 0eTF5KhfEHVvgQkMe51mtwTrnPHRR6Winp08fj/drYoLcD92Rt0awkodq7QUV+KqQyX3 U6zUZkRJqrNE4oXcYTf3FDcW47SnjBWiH5WXXMcitfRS8AgQaV8NT8YJpnCzdbWlC2Qg noQA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.152.87.115 with SMTP id w19mr30899269laz.66.1426104953077; Wed, 11 Mar 2015 13:15:53 -0700 (PDT) Received: by 10.152.115.104 with HTTP; Wed, 11 Mar 2015 13:15:53 -0700 (PDT) In-Reply-To: References: <20150311051932.28eaa67098f3a97064353fcf@gmail.com> <55002C62.1050304@gmail.com> <20150311080306.083c3a104406ed7248b3ea76@gmail.com> <2643309.uUfhkQNWA2@paul-dev> <20150311081413.8a2810adf3bdd6c778c01dd7@gmail.com> <20150311123808.1695fb7e@digimed.co.uk> <20150311091604.9b2bcd501a7c950587f23b71@gmail.com> Date: Wed, 11 Mar 2015 16:15:53 -0400 Message-ID: Subject: Re: [gentoo-user] Network manager [ control of wireless and wired interafaces] From: Tom H To: Gentoo User Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a560744c-c577-4fd6-bca5-d7a49a1f3660 X-Archives-Hash: 512a126d4506c40b89a674ffb89c4f5a On Wed, Mar 11, 2015 at 2:35 PM, Jc Garc=C3=ADa wrot= e: > > 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=3Dthsky uuid=3De03d75e4-043a-4276-bf03-3995270ec891 type=3D802-11-wireless [802-11-wireless] ssid=3Dmyssidname mode=3Dinfrastructure security=3D802-11-wireless-security [802-11-wireless-security] key-mgmt=3Dwpa-psk psk=3Dmyssidpassword [ipv4] method=3Dmanual address1=3D192.168.1.11/24,192.168.1.1 dns=3D192.168.1.111 [ipv6] method=3Dlink-local If you want to use dhcp, you simply replace the three lines in the "[ipv4]" stanza with "method=3Dauto". 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 =3D 192.168.1.11/24, gw =3D 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.