switching networks arco & cbpp11
good day
i have two WiFi networks one is exceed the other is starlink.
usually i work from my laptop so switching networks is a pain.
until now !
above in the two code blocks are the workings, when either one of the bash scripts are run it will
switch to that network.
will give you list of you network connections.
in your two bash scripts you create, just replace the uuid's from nmcli con show.
depending on you system, i use openbox just creat a launcher.
be advised!!!!!
if you change networks and run thunar sftp://xxx.xxx.xxx.xxx/
then change to another network without unmounting thunar sftp://xxx.xxx.xxx.xxx/.
thunar will not start. vnc works without a problem.
remember unmount you sftp before changing networks.
i have two WiFi networks one is exceed the other is starlink.
usually i work from my laptop so switching networks is a pain.
until now !
Code:
#!/bin/bash # # nmcli c up uuid 9ae4dfae-fghj-4c14-qwer-a52e5c64619a #<<<< dd-wrt_24ghz exit 0
Code:
#!/bin/bash # # nmcli c up uuid 653db75c-zxcv-47c6-8320-d81e0eb6753b #<<<< starlink-001 exit 0
above in the two code blocks are the workings, when either one of the bash scripts are run it will
switch to that network.
Code:
$nmcli con show
Code:
NAME UUID TYPE DEVICE starlink-001 653db75c-xcvb-47c6-hjkl-d81e0eb6753b wifi wlp6s0 dd-wrt_24ghz 9ae4dfae-9062-sdfg-bc05-a52e5c64619a wifi -- Wired connection 1 0fefdb06-wert-3220-8eca-1532f0b2a578 ethernet --
depending on you system, i use openbox just creat a launcher.
be advised!!!!!
if you change networks and run thunar sftp://xxx.xxx.xxx.xxx/
then change to another network without unmounting thunar sftp://xxx.xxx.xxx.xxx/.
thunar will not start. vnc works without a problem.
remember unmount you sftp before changing networks.
Total Comments 1
Comments
-
Very cool. Will save this. The closest I came to using nmcli was mntui, which has an ncurses interface.
Posted 01-10-2023 at 11:18 AM by jr_bob_dobbs