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 CD2FF138CBD for ; Wed, 11 Mar 2015 22:11:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3295CE09E0; Wed, 11 Mar 2015 22:11:17 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) (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 E1338E09A4 for ; Wed, 11 Mar 2015 22:11:15 +0000 (UTC) Received: by labge10 with SMTP id ge10so11498103lab.10 for ; Wed, 11 Mar 2015 15:11:14 -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; bh=ajCdCR3oV0oD81jOhd2n7lM+EnDzu3IDV+A2qEnIvIg=; b=x1QbnlGdnILSWyhInkHxqlGNnE4WbSaarGAbUAYecVz23PDhmm8BAGHVrZoIXjSVSw hYWwVSHdBsWImuVnKmF3jNLmzT8ympyhHfKzoDKd0fAGACA+YZHT9DEyUFPnsEKmgxWY RIhsOz9xhhEHpJ0Qdxxsi/ZUQPm6FpECg/l/HFWsYD1RDbrLI49gUh7++3M6Yc0vKdXp xcZDPccw/hRU/3CxZf3kgzicMqmpt47b/iJAzF2xnSgTwZdryViVjljCxLGFdRJg4vjt 8QXNthKF7x1YUZUA+/FC7Y2z2mAweZXByvxqPAMb+g1fJGvngA7cc8vFtEDp8swDbbpg KmoQ== 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.2.105 with SMTP id 9mr14836180lat.16.1426111874401; Wed, 11 Mar 2015 15:11:14 -0700 (PDT) Received: by 10.152.115.104 with HTTP; Wed, 11 Mar 2015 15:11:14 -0700 (PDT) In-Reply-To: <1717438.lgrjPnUM43@navi> References: <20150311051932.28eaa67098f3a97064353fcf@gmail.com> <1717438.lgrjPnUM43@navi> Date: Wed, 11 Mar 2015 18:11:14 -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 X-Archives-Salt: 3a08a649-aa19-4992-918b-4be624d32edd X-Archives-Hash: b08c137b5d502bceea727fbeb8517b54 On Wed, Mar 11, 2015 at 5:18 PM, Fernando Rodriguez wrote: > On Wednesday, March 11, 2015 4:15:53 PM Tom H wrote: >> >> 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 > > Did you find that documented somewhere or did you use an UI to create the file > originally? What about when you need one of the many features that this simple > example doesn't cover (like permissions)? what is the guid? It is hard. I first started creating these connections by reading a page on freedesktop.org that had the same info as what you now get with "man nm-settings". The latter might even have existed at the time... I haven't tested this in a while but in the past you needed one of id and uuid. The uuid is easily generated with "uuidgen". > When I started using NetworkManager I had hell trying to modify that file > manually because plasma-nm ask for root password when modifying system wide > connections but it doesn't save the changes (the solution was to run nm- > connection-editor manually as root). The same applies to nmtui and it only > covers a few options. I don't remember exactly what needed to be changed in > the file but it wasn't intuitive. There's a famous rant by Linus about having to provide the root password in order to join a network. I've never used KDE so I have no idea about which gui applet to use and how/why settings are saved and I've never used nmtui but I suspect (unless it was a specific NM bug at the time) that it was a problem with the polkit settings like Linus' problem.