I can start a virtual X session with
startx -- :1 &
Then I'm able to switch to tty8. When I'm done I want to close these X session on tty8.
Is there any console command to do this?
Last edited by arcc (2011-12-04 22:37:28)
If you launched it from a term from :0, just go back to :0 and ctrl-c - X will properly shutdown.
That works theoretically. But I run the startx command in the background, because it's a part of a script.
I'm running X on tty4 and it's the only process listed to run there:
[karol@black ~]$ pidof X 18850 [karol@black ~]$ pgrep -t tty4 18850
Have you tried killing it with pkill?
Last edited by karol (2011-12-04 22:23:20)
pkill -t tty8