Tux

...making Linux just a little more fun!

Two-cent tip: Starting XWindow at certain virtual terminal

Mulyadi Santosa [mulyadi.santosa at gmail.com]


Sun, 24 Aug 2008 13:08:05 +0700

X is always running at VT 7? Not really. For example, here's how to start it on VT 8: startx -- vt08

Replace "08" with your preferred VT number (2 digits). IIRC nowadays Linux distro opens 12 VT. Also please notice that we put double dash ("--") here, meaning we actually passing "vt" parameter to X server.

regards,

Mulyadi.


Top    Back


Thomas Adam [thomas.adam22 at gmail.com]


Sun, 24 Aug 2008 12:19:40 +0100

2008/8/24 Mulyadi Santosa <mulyadi.santosa@gmail.com>:

> X is always running at VT 7? Not really. For example, here's how to
> start it on VT 8:
> startx -- vt08
>
> Replace "08" with your preferred VT number (2 digits). IIRC nowadays
> Linux distro opens 12 VT. Also please notice that we put double dash
> ("--") here, meaning we actually passing "vt" parameter to X server.

What about those people who don't use startx? The actual file in question here is:

/etc/X11/xinit/xserverrc

But also confer with /etc/inittab -- some installations might have already have a getty running on some random tty, not to mention they might also be spawning X from there (Redhat used to do that -- ArchLinux still does, for instance.)

I wonder what the point of this tip was? If all you wanted was another Xsession, use Xephyr (a nicer replacement for Xnest.)

-- Thomas Adam


Top    Back


Mulyadi Santosa [mulyadi.santosa at gmail.com]


Mon, 25 Aug 2008 11:38:34 +0700

Hi

On Sun, Aug 24, 2008 at 6:19 PM, Thomas Adam <thomas.adam22@gmail.com> wrote:

> 2008/8/24 Mulyadi Santosa <mulyadi.santosa@gmail.com>:
>> X is always running at VT 7? Not really. For example, here's how to
>> start it on VT 8:
>> startx -- vt08
>>
>> Replace "08" with your preferred VT number (2 digits). IIRC nowadays
>> Linux distro opens 12 VT. Also please notice that we put double dash
>> ("--") here, meaning we actually passing "vt" parameter to X server.
>
> What about those people who don't use startx?  The actual file in
> question here is:
>
> ``
> /etc/X11/xinit/xserverrc
> ''
>
> But also confer with /etc/inittab -- some installations might have
> already have a getty running on some random tty, not to mention they
> might also be spawning X from there (Redhat used to do that --
> ArchLinux still does, for instance.)
>
> I wonder what the point of this tip was?  If all you wanted was
> another Xsession, use Xephyr (a nicer replacement for Xnest.)

I missed further explanation actually. By doing this, user can start multiple X sessions (first in VT 7, then VT 8 and so on). But it can also serve for fun too :)

NB: Never try Xephyr before, thanks for the clue.

regards,

Mulyadi.


Top    Back


Thomas Adam [thomas.adam22 at gmail.com]


Mon, 25 Aug 2008 06:29:23 +0100

2008/8/25 Mulyadi Santosa <mulyadi.santosa@gmail.com>:

> I missed further explanation actually. By doing this, user can start
> multiple X sessions (first in VT 7, then VT 8 and so on). But it can
> also serve for fun too :)

In which case, you really don't want to worry about a specific VT at all and just use:

xinit -- :n

Where "n" is a display number (1,2,3, etc.) The specific VT that uses is irrelevant and ultimately any applications you might then want to start up will need the $DISPLAY number anyway.

-- Thomas Adam


Top    Back