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 --- .cheat/nmcli | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 .cheat/nmcli (limited to '.cheat/nmcli') diff --git a/.cheat/nmcli b/.cheat/nmcli new file mode 100755 index 0000000..cd38bf4 --- /dev/null +++ b/.cheat/nmcli @@ -0,0 +1,52 @@ +# Desc: Command line interface to NetworkManager + +# Connect to a wireless access point - Parameters: +# -- the name of your wireless interface +# -- the SSID of the access point +# -- the WiFi password +nmcli d wifi connect password iface + +# Disconnect from WiFi - Parameters: +# -- the name of your wireless interface +nmcli d wifi disconnect iface + +# Get WiFi status (enabled / disabled) +nmcli radio wifi + +# Enable / Disable WiFi +nmcli radio wifi + +# Show all available WiFi access points +nmcli dev wifi list + +# Refresh the available WiFi connection list +nmcli dev wifi rescan + +# Show all available connections +nmcli con + +# Show only active connections +nmcli con show --active + +# Review the available devices +nmcli dev status + +# Add a dynamic ethernet connection - parameters: +# -- the name of the connection +# -- the name of the interface +ncmli con add type ethernet con-name ifname + +# Bring up the ethernet connection +nmcli con up + +# Bring Wifi radio up, connect to SSID, switch on vpn +nmcli radio wifi on +nmcli con up +vpn__up + + +# Switch off vpn, disconnect from SSID, bring Wifi radio down +vpn__dn +nmcli con down +nmcli radio wifi off + -- cgit v1.2.3