169
dfox
3y

I use a lot of dev tools, but one of my favorites is the Linux screen utility. It's awesome to be able to keep shit running on servers whether my laptop stays connected tot he server or not. It's great for jobs that take a long time, can't get interrupted, etc.

If you haven't used screen definitely give it a try!

Comments
  • 5
    Well written sensei.
  • 28
    Tmux here ;)
  • 5
    You forgotten wk56 tag.
  • 10
    Speaking of laptops, I really recommend the mosh utility for mobile connections. It's like ssh + screen on steroids.

    What it does is allow you to go offline and change IP address while still keeping you connected to your server session. https://mosh.org
  • 6
    Whoops, thanks I added the tag.

    @dzil123 that looks pretty cool, I have to check it out some more.
  • 4
    Also used screen alot before I found tmux. Now I only use tmux :)
  • 2
    I use nohup...bc that's what I was taught to use many years ago by someone
  • 1
    @dzil123 so good if you use tor. Sounds like something a hacker would use 😁
  • 0
    @billgates ? It's something a power user would use. I use it to connect to my raspberry pi from my Android because it keeps the connection alive and provides local echo so I can see what I'm typing locally. It's a way to reduce lag. Seriously, the website goes really in depth about this.
  • 0
    @dzil123 tor keeps changing ips which I guess would be good for a hacker but with this, they wouldn't need to reconnect every time?
  • 0
    @billgates I guess, but TOR only works with TCP connections, but mosh is UDP.

    That's how mosh is able to do roaming: not every packet has to get through in order for mosh to work, so it uses UDP.

    Contrast that to ssh, where any interruption can close the session or break the connection, and every single packet needs to be delivered, so ssh uses TCP.
  • 1
    PREINSTALLED ON MACOS SUCKAS
  • 2
    If you need to keep some interactive command running on a server, screen/tmux is a good option.

    A better solution in many cases is often to create a systemd/launchd/upstart/openrc/etc service yourself, so you can start it on boot, and monitor more easily whether the process is still running.
  • 1
    I'm for tmux☝️
  • 0
    Doesn't sound a rant to
    me..
  • 3
    Poor man's daemon:
    Ctrl-Z
    bg
    disown

    :)
  • 1
    @dfox if you are working with screen you should definitily take a look at the tool named screenie. This removes the pain that comes by using long screen-names
Add Comment