Subj : Re: Screen or tmux?
To   : Gamgee
From : paulie420
Date : Sun May 02 2021 12:44 pm

Ga> It's a terminal multiplexer.  It allows you to connect into a remote
Ga> system, open a screen session (terminal), and run something in that
Ga> terminal.  You can then "detach" from that screen session, close your
Ga> SSH connection, and go on with whatever else you might be doing.  Later,
Ga> you can SSH back to that machine, and "reconnect" to that open terminal
Ga> which is still running whatever you started in it.

Awesome; what I've learned so far is that I'm missing out by not using one or the other. I know screen a little, so I guess I'll start there.. stupid, too - its exactly what I've needed on many occasions. Derp.

Ga> Here's an example of one way that I use it.  I have an Raspberry Pi
Ga> running 24x7, which does various things for me (it does not run my BBS
Ga> though).  I SSH to it from my laptop (either from within the LAN, or
Ga> remotely from another state if I'm traveling).  I have opened a screen
Ga> session on it, and started the 'irssi' IRC client in that terminal.
Ga> This connects and idles in the Synchronet IRC channel.  I then can
Ga> detach from that session (with Ctrl-A, D), and close my SSH connection.
Ga> A few hours, or a few days later, I can SSH back to the RPi, restore my
Ga> screen session (with "screen -r"), and BAM! my irssi client is there
Ga> where I can scroll back and see what's been talked about while I was
Ga> gone.  Maybe I add some comments, whatever.  Then I detach and close
Ga> again, and the irssi client continues running while I'm gone.  This
Ga> allows me to maintain a "presence" in that channel even if I'm not
Ga> actively watching it for a while, and I can catch up when it's
Ga> convenient for me.  You can open as many screen sessions on a remote
Ga> host as you'd like, all doing something different, and all will keep on
Ga> working after you detach.  Pretty cool stuff.

Yep... awesome. :P I'll be doing the same exact thing shortly. Like I can have one Raspberry Pi that allows me access to my local network and screen around from there. Again, I'll brush up myself but... seems like I can have a few things 'screened' and ... I'm sure theres a way to get a list of whats open on what screens... :P

I should have investigated this long ago - as I've used it with irssi, too, to put the handle lists on the right hand side of the screen - but I didn't realize that it does much more for the type of computery stuff I do all the time. :P

(I'll admit that I've used VNC to do much the same... with a lot more resources that screen would take. Ugh.)



|07p|15AULIE|1142|07o
|08.........