What determines {default} location of :0, :1 & :2?

Felix Miata mrmazda at earthlink.net
Sun Jul 7 23:09:23 PDT 2013


On 2013-07-07 14:28 (GMT-0400) Thomas Lübking composed:

> On Sonntag, 7. Juli 2013 18:46:12 CEST, Felix Miata wrote:
>
>> only care that the first session started, whether by KDM or not,
>> go on vt7; that the second, whether that be :0 or :1 or :2, go
>> on vt8, and that the third, whether :0 or :1 or :2, go on vt9. I

> Occupy vt1-6
> https://wiki.archlinux.org/index.php/Systemd_FAQ#Q:_How_do_I_change_the_number_of_gettys_running_by_default.3F

It helps. I don't use Arch. Based on what I found there, I built this repair 
script:

# /bin/sh
  cp -a /usr/lib/systemd/system/getty at .service 
/usr/lib/systemd/system/getty at tty1.service
  sed -i 's/TTYVTDisallocate=yes/TTYVTDisallocate=no/' 
/usr/lib/systemd/system/getty at tty1.service
  ln -sf /usr/lib/systemd/system/getty at tty1.service 
/etc/systemd/system/getty.target.wants/getty at tty1.service
  systemctl start getty at tty1.service
  ln -sf /usr/lib/systemd/system/getty at .service 
/etc/systemd/system/getty.target.wants/getty at tty2.service
  systemctl start getty at tty2.service
  ln -sf /usr/lib/systemd/system/getty at .service 
/etc/systemd/system/getty.target.wants/getty at tty3.service
  systemctl start getty at tty3.service
  ln -sf /usr/lib/systemd/system/getty at .service 
/etc/systemd/system/getty.target.wants/getty at tty4.service
  systemctl start getty at tty4.service
  ln -sf /usr/lib/systemd/system/getty at .service 
/etc/systemd/system/getty.target.wants/getty at tty5.service
  systemctl start getty at tty5.service
  ln -sf /usr/lib/systemd/system/getty at .service 
/etc/systemd/system/getty.target.wants/getty at tty6.service
  systemctl start getty at tty6.service

In openSUSE 13.1 I get the result I want, first two X sessions opened goto 
vt7 & vt8. vt1 keeps its boot messages. Login prompts appear on vts 2,3,5,6, 
and the login on vt4 where I ran startx -- :1 is full of expected Xorg messages.

In Fedora 19 and Mageia 3, prompts get started on vts 1-6, KDM goes to vt7, 
but on vt4, where I login to run startx -- :1, is where the 2nd X session is 
found instead of as expected on vt8.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

  Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the xorg mailing list