this post was submitted on 25 Jan 2025
31 points (100.0% liked)
Linux
49393 readers
1474 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You might be able to prepare a bag accept that does the switch and run that inside a tmux session. The connection would get lost, but don't the tmux session did not care the script would finish. Although that would require to have the exact working commands. If anything goes wrong you would have to plug directly into the server.
All I ever used was nmcli and I think it should work for this purpose. It was mostly pre installed. Rasbien as well as Debian had it or installed (the most used distros by me).
tmux has been on my to-learn list forever now. Seems it should be bumped up in priority.
NetworkManager was not installed on my system, but I will look into this later and check out nmcli and nmtui (as suggested below) to get familiar with these tools.
Even if you do not use or like this approach, learning tmux is quite easy and quick and super useful. Just that you executed commands do not end when your ssh session crashes, that you can collaborate. Just attach multiple ssh sessions to one tmux session and everything, even the input, will be sync. In advance you get windows and split screen in any terminal.
That sounds awesome