Virtual consoles

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
gezley
Posts: 2
Joined: 7. May 2011, 19:55

Virtual consoles

Post by gezley »

Hi
I use virtual terminals to log in to virtual machines on Salix KVM. For example, I start a virtual machine and then do Ctrl+Alt+F2. I log in, and then:
X -query 172.16.1.3 -- :1
This starts a new X session on display :1
How do I change Salix64 (13.1) so that TTYs F1-F6 are for getty and TTYs F7-F12 for X, so that I can have 6 X sessions?
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Virtual consoles

Post by gapan »

If you want to add more virtual consoles, all you have to do is edit /etc/inittab and add more entries like the ones already there:

Code: Select all

# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux


but you don't have to add more virtual consoles to do what you want. You can do that from just a single console. Just run the command by adding a & at the end:

Code: Select all

X -query 172.16.1.3 -- :1 &
and then you'll be able to go back to the same console and start another X session in the same manner and so on...
Image
Image
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Virtual consoles

Post by witek »

gezley wrote: X -query 172.16.1.3 -- :1
By the way, what "-query" means? I`ve been trying to find an explanation for this option in manuals but surprisingly I cannot :(
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Virtual consoles

Post by laprjns »

From "X -h"
-query host-name contact named host for XDMCP
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
gezley
Posts: 2
Joined: 7. May 2011, 19:55

Re: Virtual consoles

Post by gezley »

gapan wrote:If you want to add more virtual consoles, all you have to do is edit /etc/inittab and add more entries like the ones already there ... but you don't have to add more virtual consoles to do what you want. You can do that from just a single console. Just run the command by adding a & at the end:

Code: Select all

X -query 172.16.1.3 -- :1 &
and then you'll be able to go back to the same console and start another X session in the same manner and so on...
Excellent. Thank you very much.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Virtual consoles

Post by witek »

laprjns wrote:From "X -h"
-query host-name contact named host for XDMCP
Thanks a lot. I tried "X -h | grep query" but that didn`t work as expected :(
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Virtual consoles

Post by witek »

By the way can anybody give me short tutorial or a link to one that describes how to configure xdmcp login on Salix?
[EDIT] It looks I finally managed to login via xdmcp. I think I might describe this in the wiki:
http://www.salixos.org/wiki/index.php/H ... s_remotely
Post Reply