From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- vimwiki/Network Manager from CLI.md | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vimwiki/Network Manager from CLI.md (limited to 'vimwiki/Network Manager from CLI.md') diff --git a/vimwiki/Network Manager from CLI.md b/vimwiki/Network Manager from CLI.md new file mode 100644 index 0000000..902cfdf --- /dev/null +++ b/vimwiki/Network Manager from CLI.md @@ -0,0 +1,39 @@ +[Full](Full) article go [here:](https://arstechnica.com/civis/viewtopic.php?t=1163023) + +* To see the status of a connection: + + `# nmcli con status id 'Wired connection 1'` + +* To bring down the interface and disconnect: + + `# nmcli con down id 'Wired connection 1'` + `# nmcli dev disconnect iface eth0` + +* to bring it back up: + + `# nmcli con up id 'Wired connection 1'`` + + +* To get syntax reminders: + + `# nmcli help` + `# nmcli con help` + `# nmcli dev help` + +* Import OpenVPN config from CLI + + `# sudo nmcli connection import type openvpn file OpenVPNFile-config.ovpn` + +* To see a list of wireless APs + + `# sudo nmcli device wifi rescan` + `# sudo nmcli device wifi list` + +* To conncect to wireless AP + + `# sudo nmcli device wifi connect {SSID-Name} password {password}` + +* If Network manager is running but having problems connecting to wireless AP, + stop the nm-watcher service. This script is taken from the nm-examples man + page and checks to make sure that the ethernet connection goes down when a + wifi connection is sought. -- cgit v1.2.3