Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X server exits when closing shell
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Thu Nov 07, 2013 6:13 am    Post subject: X server exits when closing shell Reply with quote

I start my X server remotely after ssh'ing to the OS. That is I execute startx & and then 'x-out' of the terminal window on the remote computer. This stopped working for my userid after upgrading some packages however it still works when i do the above command as root user. I'm not certain what settings are different between the two accounts. Both seem to be executing the same xinitrc fine in X11 folder.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Thu Nov 07, 2013 3:39 pm    Post subject: Reply with quote

What happens if you use nohup startx ... ?

Depending on the sshd/login it may decide to kill all children of that shell with hangup to make sure no unexpected processes linger when it's abruptly disconnected. Root may be different because there may just be real programs meant to be left running?

I'm not exactly sure what you're trying to do here, as starting X11 from a remote terminal for an interactive X session is not normal... usually remote admin would get xdm, gdm, kdm or something like that running and the user then logs in through that...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Thu Nov 07, 2013 8:03 pm    Post subject: Reply with quote

eccerr0r wrote:
What happens if you use nohup startx ... ?

Depending on the sshd/login it may decide to kill all children of that shell with hangup to make sure no unexpected processes linger when it's abruptly disconnected. Root may be different because there may just be real programs meant to be left running?

I'm not exactly sure what you're trying to do here, as starting X11 from a remote terminal for an interactive X session is not normal... usually remote admin would get xdm, gdm, kdm or something like that running and the user then logs in through that...


The reason i want to start X remotely is because local computer doesnt have a functional keyboard. I ssh from a computer right next to it, start X and then start synergy so that I can control the mouse and keyboard. Then I exit the remote ssh terminal. This worked up until recently for regular user (and still works for root).
Back to top
View user's profile Send private message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sat Nov 09, 2013 5:31 am    Post subject: Reply with quote

eccerr0r wrote:
What happens if you use nohup startx ... ?

Depending on the sshd/login it may decide to kill all children of that shell with hangup to make sure no unexpected processes linger when it's abruptly disconnected. Root may be different because there may just be real programs meant to be left running?

I'm not exactly sure what you're trying to do here, as starting X11 from a remote terminal for an interactive X session is not normal... usually remote admin would get xdm, gdm, kdm or something like that running and the user then logs in through that...



same thing btw when i try nohup startx &
Back to top
View user's profile Send private message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sat Nov 09, 2013 5:39 am    Post subject: Reply with quote

[quote="pgb205"]
eccerr0r wrote:
What happens if you use nohup startx ... ?

Depending on the sshd/login it may decide to kill all children of that shell with hangup to make sure no unexpected processes linger when it's abruptly disconnected. Root may be different because there may just be real programs meant to be left running?

I'm not exactly sure what you're trying to do here, as starting X11 from a remote terminal for an interactive X session is not normal... usually remote admin would get xdm, gdm, kdm or something like that running and the user then logs in through that...


OK after more testing:

startx only terminates if I 'x-out' of the putty shell on windows box. If I type 'exit' thing continue running as expected.
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