Moving gdm from vt7 to vt12

Tom H tomh0665 at gmail.com
Sat Feb 19 16:36:54 UTC 2011


On Sat, Feb 19, 2011 at 11:24 AM, Shentino <shentino at gmail.com> wrote:
> On Sat, Feb 19, 2011 at 8:20 AM, Tom H <tomh0665 at gmail.com> wrote:
>> On Sat, Feb 19, 2011 at 11:12 AM, Shentino <shentino at gmail.com> wrote:
>> > On Fri, Feb 18, 2011 at 7:27 AM, Tom H <tomh0665 at gmail.com> wrote:
>> >> On Fri, Feb 18, 2011 at 8:42 AM, Shentino <shentino at gmail.com> wrote:
>> >> > On Sun, Feb 13, 2011 at 7:25 PM, Tom H <tomh0665 at gmail.com> wrote:
>> >> >> On Sun, Feb 13, 2011 at 5:06 PM, Shentino <shentino at gmail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> > I've been googling for awhile and snooping around in config, but
>> >> >> > I'm
>> >> >> > stumped.
>> >> >> >
>> >> >> > How do I have gdm/X/desktop whatever start on vt12 instead of vt7?
>> >> >> > I need more vt's and I find it more pleasant to scoot the desktop
>> >> >> > over
>> >> >> > to 12
>> >> >> > so that I can have gettys on 1-10 and a secure top on 11.
>> >> >>
>> >> >> I'm not sure what you mean by "secure top" but have you tried
>> >> >> creating
>> >> >> tty7 through tty10/tty11 in "/etc/init"?
>> >> >>
>> >> >> AFAIK, GDM'll use the next available vt.
>> >> >
>> >> > Silly me, forgot to mention that I'm on maverick which uses upstart.
>> >> > Also, I have upstart scripts that slap ttys on 1-10, and gdm still
>> >> > takes
>> >> > on
>> >> > 7 even though it already has a getty on it.
>> >>
>> >> There's one thing that I forgot. Sorry!
>> >>
>> >> You also have to edit the "ACTIVE_CONSOLES" line in
>> >> "/etc/default/console-setup".
>> >
>> > Strangely enough I already did this.
>> >>
>> >> I think that this'll be enough but there may be some gdm.conf settings
>> >> to change too. I only have X-less Ubuntu installs so I can't check
>> >> this. Does one of the files in "/etc/gdm/" have a "FirstVT" variable
>> >> set (for example the standard "FirstVT=7"? If it does, you'll have to
>> >> change it to 12. It wouldn't hurt to set it though.
>> >
>> > You might be onto something here.
>> > I have grepped /etc up and down left and right for the keywords vt,
>> > maybe
>> > I'll try VT.
>> > A bit of detective work appears to indicate that the "vt7" bit that gdm
>> > passes to the X server is very very stubborn, almost as if hardcoded
>> > into
>> > the gdm binary.
>>
>> I've found a Debian Sid VM and I did the above (inittab,
>> console-setup, and FirstVT) and GDM's starting on vt12.Unless
>> something's been seriously modified in Ubuntu, it should work for you
>> too.
>
> I'm inclined to blame the "seriously modified"
> There is no FirstVT setting anywhere under /etc at all, let alone /etc/gdm.
>  A recursive grep shows this.
> Maybe vt7 happens to be a hard coded default.  Could you tell me the exact
> filename that FirstVT is in on your system?  I might try injecting it
> manually on my end.

Sorry. Create either "gdm.conf", "custom.conf", or "daemon.conf" (only
the latter works in sid) in "/etc/gdm/" with
---<begin>---
[daemon]
FirstVT = 12
---<end>---
as its contents.




More information about the ubuntu-users mailing list