summaryrefslogtreecommitdiff
path: root/vimwiki/Network Manager from CLI.md
diff options
context:
space:
mode:
authorVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
committerVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
commit3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch)
tree2116c49a845dfc0945778f2aa3e2118d72be428b /vimwiki/Network Manager from CLI.md
parent8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff)
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to 'vimwiki/Network Manager from CLI.md')
-rw-r--r--vimwiki/Network Manager from CLI.md39
1 files changed, 39 insertions, 0 deletions
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.