You are not logged in.

#1 2011-12-04 22:08:35

arcc
Member
From: ger
Registered: 2011-05-02
Posts: 47

[Solved] Close virtual X session?

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)

Offline

#2 2011-12-04 22:14:50

echo.unity
Member
Registered: 2011-11-14
Posts: 68

Re: [Solved] Close virtual X session?

If you launched it from a term from :0, just go back to :0 and ctrl-c - X will properly shutdown.

Offline

#3 2011-12-04 22:17:16

arcc
Member
From: ger
Registered: 2011-05-02
Posts: 47

Re: [Solved] Close virtual X session?

That works theoretically. But I run the startx command in the background, because it's a part of a script.

Offline

#4 2011-12-04 22:22:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Close virtual X session?

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)

Offline

#5 2011-12-04 22:30:29

arcc
Member
From: ger
Registered: 2011-05-02
Posts: 47

Re: [Solved] Close virtual X session?

pkill -t tty8

works.

Thanks!

Offline

Board footer

Powered by FluxBB