Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto dont kill remote started kde/xorg by closing ssh conn.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Sun Sep 24, 2017 12:32 am    Post subject: howto dont kill remote started kde/xorg by closing ssh conn. Reply with quote

from work i log me remote by ssh into my machine at home in, and then i type "startx".
how can i start by this way kde/xorg-server so that they will not be killed if i close my ssh seassion.
later at home i will use kde/xorg-server.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Sep 24, 2017 1:04 am    Post subject: Reply with quote

This might be what you are looking for :
https://packages.gentoo.org/packages/app-misc/screen
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Sun Sep 24, 2017 1:36 am    Post subject: Reply with quote

This might also be a problem of systemd (if you're using it) default of killing all processes when one logs out of all seats.
Adding KillUserProcesses=no to /etc/systemd/logind.conf will get rid of this behavior.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Sun Sep 24, 2017 5:16 pm    Post subject: Reply with quote

No, i dont use systemd.
Is there no spezial-command like <command> "&" or so??? dont know ...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13509

PostPosted: Sun Sep 24, 2017 5:31 pm    Post subject: Reply with quote

The suggestion from cyrillic looks fine to me (and tmux is an alternate to GNU screen that should also work). Please explain why using one of those two does not satisfy your requirement.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Sun Sep 24, 2017 5:44 pm    Post subject: Reply with quote

You can try disowning the process after backgrounding it with command & ; but using screen or tmux is the better method.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
kharitonow
n00b
n00b


Joined: 10 Dec 2015
Posts: 38

PostPosted: Sun Sep 24, 2017 5:55 pm    Post subject: Reply with quote

Did you try nohup command ?
Code:
nohup command
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5802

PostPosted: Mon Sep 25, 2017 6:03 am    Post subject: Reply with quote

Something like nomachine nx or x2go might be worth looking at.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum