You are not logged in.
Pages: 1
I am using:
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower January 15 2023
And I have a panel plugin with a network icon.
When I right click on the icon I get options for activating or deactivating Network and wi-fi network.
I can activate or deactivate just with a mouse click. No password is needed, very mouse convenient.
I am looking for a simple Terminal command that can do the same without password but I can't find one.
Does it not exist, and if not what can be the explanation.?
nmcli works very well for the connection in specific but not for activation, and I want that deeper level included.
I am working on a script for closing down a profile as much as possible before logout.
Therefore if you have further hints about that I will be happy to read it.
For instance a command or a script that can unmount all USB-drives.
Thank you in advance.
Offline
I am using:
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower January 15 2023And I have a panel plugin with a network icon.
When I right click on the icon I get options for activating or deactivating Network and wi-fi network.
I can activate or deactivate just with a mouse click. No password is needed, very mouse convenient.
I am looking for a simple Terminal command that can do the same without password but I can't find one.
Does it not exist, and if not what can be the explanation.?
Greetings to you!
While your question is not directly related to the xfce desktop per se, you may take note of the fact that you are using your system's "network manager" app, and get desktop-access to its nm-client icon that appears on the panel. The nm-client generally saves your connection's password and settings unless told not to do that. Yes, convenient, but also insecure.
For the function you are looking for, I ususally use the
ifconfig {interface} {action}
command. To find out the name of the connection, just run
ifconfig -a
. The action you want would be `up` or `down`. You may do some testing, though, some network hardware doesn't play nice with this toggling...
Cheers, m4a
Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support
Offline
Edit: Sorry, my answer was too fresh for comfort. Time to meditate.
Last edited by Jakob77 (2023-08-21 11:35:24)
Offline
Pages: 1
[ Generated in 0.012 seconds, 9 queries executed - Memory usage: 519.94 KiB (Peak: 520.56 KiB) ]