How to keep processes running over SSH without being connected - using GNU screen

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 65

  • @jeremiebeaulieu8501
    @jeremiebeaulieu8501 2 роки тому +2

    Omg I love this tutorial. It's straight to the point, easy to follow and clear. I was working on a minecraft server using an old computer and while I was working on it I was wondering how I would be able to let it run on the machine without keeping the ssh client opened on my computer. after installing screen in order to do other stuff while the server ran using your tutorial, I see this popping in my recommandations. This is awesome, massive thank you for that

  • @Mat383
    @Mat383 6 років тому +8

    Thank you SO MUCH. Now I can keep my Terraria server running 24/7 without other machines needing to support it!

  • @eyez141
    @eyez141 3 роки тому

    Thanks friend, before I had to consume 500mb of RAM to have to install a desktop environment to keep the VPS on in a terminal, but with this tip now it is no longer necessary to have installed anything from a desktop environment or anything like that, thanks a lot!

  • @Mr.Coldfire421
    @Mr.Coldfire421 4 роки тому +1

    How do you stop or terminate the process on running on screen?

  • @juniordon9701
    @juniordon9701 2 роки тому +1

    Very helpful🤠🤠🤠

  • @ps.9599
    @ps.9599 8 років тому +2

    Wow! Finding something new everyday!
    I was just using nohup a lot

    • @linuxleech
      @linuxleech  8 років тому +1

      Nohup is a valid way, but a multiplexer like screen or tmux increases your resilience against unexpected hangups i.e an unstable internet connection. Plus you have the ability to have multiple windows open without having to create multiple SSH connections. Check out this ua-cam.com/video/I4xVn6Io5Nw/v-deo.html video for more info on screen usage.

    • @ps.9599
      @ps.9599 8 років тому +1

      That's going to be really handy as while nohup works fine it's definitely two steps behind the features the GNU screen provides.
      Thanks again, kudos to you :)

  • @percentexz6412
    @percentexz6412 7 років тому +5

    Bro you the man. A god daym Indian trying to speak English was above you on my search with a like ratio of 1-2 :|

  • @VeluPandian
    @VeluPandian 7 років тому +6

    Simple, direct to point. Thanks!

  • @edwinvargas8682
    @edwinvargas8682 4 роки тому

    Super useful tip bro!... I was getting crazy to keep running an Angular project on a server remotely

  • @johnwmartinez
    @johnwmartinez 2 роки тому

    What a great video. You help me to do this so easy. Very useful.

  • @avatarcybertronics2584
    @avatarcybertronics2584 5 років тому

    Will this work to this task: correspond with terminal with python interactive console running from another script, send and recieve messages, like function or chat?

  • @rahulsinghgulia6666
    @rahulsinghgulia6666 Рік тому

    Can we also run jupyter notebook using screen in the background?

  • @vel7280
    @vel7280 4 роки тому

    how do you save

  • @jitheshkuyyalil
    @jitheshkuyyalil 9 місяців тому

    Wonderful! Thank you so much! 🙏

  • @deepschoolai
    @deepschoolai 8 років тому +1

    How did you do the splitting screen and the switching to vim part? Awesome vid btw!

    • @linuxleech
      @linuxleech  8 років тому

      Hi, I have done other videos that explain exactly that. If you have used screen before and just want to know about splitting this video will show you that: ua-cam.com/video/bTbDxaGo4tA/v-deo.html
      I would recommend that you watch the screen basics video that I did : ua-cam.com/video/I4xVn6Io5Nw/v-deo.html first as it will give you a much clearer understanding of screen. Thanks for commenting.

    • @sanzhar.danybayev
      @sanzhar.danybayev 3 роки тому

      Just wanted to ask the same question. Thanks for answering!

  • @bernardmillet4708
    @bernardmillet4708 8 років тому +1

    Perfect tutorial. Super useful. Thanks a lot mate!

    • @linuxleech
      @linuxleech  8 років тому

      Thanks for commenting. Happy you found it useful.

  • @Neon-hc8dx
    @Neon-hc8dx 3 роки тому

    i am trying to run a minecraft server with aws and i tried this methid to run the server even when i close the command propt, does this work for minecraft

  • @XavierSoriaPoma
    @XavierSoriaPoma 2 роки тому

    Thank you, it was super helpful

  • @yudhasetyanugroho5105
    @yudhasetyanugroho5105 3 роки тому

    Very Usefull..You save my time.. thanks so much

  • @greob
    @greob 8 років тому +26

    Moral of the story: whenever you use SSH, first thing to type is "screen"! (or tmux...)

    • @linuxleech
      @linuxleech  8 років тому +1

      Or Byobu, or have your multiplexer launch whenever you login over SSH.

    • @magimagi607
      @magimagi607 4 роки тому +6

      Nope! Whenever you use SSH, first thing to type is "sssh"

    • @vela7447
      @vela7447 4 роки тому

      @@magimagi607 be like me and "shh aadmin@192..168.11."

    • @jaggerowen4148
      @jaggerowen4148 3 роки тому

      You probably dont care at all but does anybody know a way to log back into an instagram account??
      I was dumb forgot my login password. I love any assistance you can give me.

  • @BrunoAlves-em9mt
    @BrunoAlves-em9mt 3 роки тому

    Thanks! Now I will be able to run a migration script without worry

  • @nazmulahsan2216
    @nazmulahsan2216 5 років тому

    I have Vulrt.com server where reserve data save here,
    but I connect to my server by PUtty,
    But previous day my server is work still alive every time
    But now For server open I need to commend
    "python run.py runserver"
    After few things its kick out me by few mints
    when i closed my PUTTY apps ,after that My server shows 502 Badgateway.That means not run.
    so How can i fixed this.please tell me anyone kindly

  • @hotsky786
    @hotsky786 2 роки тому

    Thanks a lot mann.... really ❤️❤️❤️❤️❤️❤️❤️🔥🔥🔥🔥🔥🔥

  • @lefterismantas437
    @lefterismantas437 3 роки тому

    Very helpful video! Thanks a lot mate

  • @deepasharma130
    @deepasharma130 4 роки тому

    I am using tmux but it gets disconnected automatically if ssh drops. Is this normal for tmux?

  • @kostasapostolopoulos_yt
    @kostasapostolopoulos_yt 7 років тому +2

    Also "nohup" could do the work

  • @PrisonYT
    @PrisonYT 5 років тому +5

    ik its old. but tysm, saved my ass my dude
    You got a sub buh!

  • @JerryHammster
    @JerryHammster Рік тому

    Thanks a lot this really helped mate

  • @autumnxolito
    @autumnxolito 6 років тому

    Great tutorial!! If I turn off my pc would it still work?

    • @linuxleech
      @linuxleech  6 років тому

      Yes you could turn off your PC. It will have no effect on the remote screen session.

  • @serazummunirz
    @serazummunirz 6 років тому +1

    Life saving. Thank you so much.

  • @FKLinguista
    @FKLinguista 8 років тому +2

    Nice tutorial!

  • @Christopher-ew7jw
    @Christopher-ew7jw 4 роки тому

    Thank you! This is exactly what I needed to do.

  • @CoolGuy-bj3qm
    @CoolGuy-bj3qm 7 років тому

    Why I cannot go to graphic user after press ctrl+alt+F7
    After log in tty? Anyone tell me its urgent.

  • @libardomm.trasimaco
    @libardomm.trasimaco 7 років тому +1

    Thanks. Very useful!

  • @Kovaelin
    @Kovaelin 7 років тому

    Will this run forever or will it timeout after a long time?

    • @linuxleech
      @linuxleech  7 років тому

      I have personally used screen to keep a utility running for 4 months straight. Over the 4 months I would ssh into the machine every now and then to check progress and do some other task. It was a quick and dirty approach but screen worked without issue.

  • @octaviomartinavilessanchez2456
    @octaviomartinavilessanchez2456 3 роки тому

    You are a Hero! Thanks!

  • @blakebaze5517
    @blakebaze5517 5 років тому

    very good video, thx for the help

  • @dream-8512
    @dream-8512 7 років тому +1

    Thank you .

  • @Parthiban_Straight_Edge
    @Parthiban_Straight_Edge 7 років тому +1

    Thanks a lot...!!

  • @afifsyaifullah7116
    @afifsyaifullah7116 4 роки тому

    THANK YOU SO MUCH

  • @vedangeepandharpurkar6457
    @vedangeepandharpurkar6457 4 роки тому +1

    Thanks a lot dude. i know it;s a bit old but it is saving my ass dude. You got a sub.... Naaicee

  • @thanlong2009
    @thanlong2009 6 років тому

    thank. it's useful

  • @timucin4220
    @timucin4220 6 років тому

    it doesn't work on centos 7 x64

    • @linuxleech
      @linuxleech  6 років тому

      You probably need to yum install screen first.

    • @timucin4220
      @timucin4220 6 років тому

      it works! Thank you so much

  • @webdeveloper7994
    @webdeveloper7994 6 років тому

    Awesome, you are 👍 great

  • @alvarorodriguezgomez8716
    @alvarorodriguezgomez8716 2 роки тому

    i like more tmux, but screen is ok, good vid

  • @trumpetaa07
    @trumpetaa07 4 роки тому +1

    Ok

  • @heshananupama3409
    @heshananupama3409 4 роки тому

    great

  • @proxy7362
    @proxy7362 5 років тому +1

    Doesn't work for what I'm wanting to do, sadly.

  • @Sayori25
    @Sayori25 2 роки тому

    Thanks a lot !