FedoraForum.org - Fedora Support Forums and Community
Results 1 to 12 of 12
  1. #1
    Join Date
    Sep 2010
    Location
    Brampton, ON Canada
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    F13: How do I disable virtual consoles

    Hi Folks,

    I'm building a web kiosk and I'm trying to figure out how to disable the ability to switch to tty2-6. All the references I've found refer to a process on older versions of Fedora. Any assistance greatly appreciated.

    Vraile

  2. #2
    Join Date
    Aug 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    does removing tty[1-6] from /etc/event.d work?

  3. #3
    Join Date
    Sep 2010
    Location
    Brampton, ON Canada
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Quote Originally Posted by dathho
    does removing tty[1-6] from /etc/event.d work?
    No,

    You used to be able to remark them out in /etc/init but recent changes in Fedora have changed the function of that file.

    /etc/init.d is a directory and doesn't contain anything related to the TTY's that I can see. Not that I'm much of an expert.

    Vraile

  4. #4
    Join Date
    Jul 2009
    Location
    England, UK
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    I think dathho is right: look at the files tty[2-6] in /etc/event.d (not /etc/init.d).
    Last edited by marriedto51; 23rd September 2010 at 09:31 AM. Reason: Grammar

  5. #5
    Join Date
    Aug 2009
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Quote Originally Posted by marriedto51
    I think dathho is right: look at the files tty[2-6] in /etc/event.d (not /etc/init.d).
    Concur with dathho and marriedto51, 100%.

    The following is an example of what I do via the command line:
    =======================
    [root@localhost event.d]# initctl list|grep tty
    tty1 (stop) waiting
    tty2 (start) running, process 1361
    tty3 (start) running, process 1362
    tty4 (start) running, process 1359
    tty5 (start) running, process 1360
    tty6 (start) running, process 1363


    [root@localhost event.d]# initctl stop tty6
    tty6 (stop) running, process 1363
    tty6 (stop) pre-stop, (main) process 1363
    tty6 (stop) stopping, process 1363
    tty6 (stop) killed, process 1363
    tty6 (stop) post-stop
    tty6 (stop) waiting

    [root@localhost event.d]# initctl list|grep tty
    tty1 (stop) waiting
    tty2 (start) running, process 1361
    tty3 (start) running, process 1362
    tty4 (start) running, process 1359
    tty5 (start) running, process 1360
    tty6 (stop) waiting

    [root@localhost event.d]# initctl start tty6
    tty6 (start) waiting
    tty6 (start) starting
    tty6 (start) pre-start
    tty6 (start) spawned, process 3942
    tty6 (start) post-start, (main) process 3942
    tty6 (start) running, process 3942

    [root@localhost event.d]# initctl list|grep tty
    tty1 (stop) waiting
    tty2 (start) running, process 1361
    tty3 (start) running, process 1362
    tty4 (start) running, process 1359
    tty5 (start) running, process 1360
    tty6 (start) running, process 3942
    =======================
    When you do your modification, a good peruse of the initctl command is useful, too. For verifying what's up and what's not.

    [root@localhost event.d]# man initctl
    =======================
    Hope this helps.
    Last edited by diamond_ramsey; 23rd September 2010 at 11:14 AM.
    2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
    2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.25-100.fc19.x86_64 / i686
    2 dual cores, 11 GB RAM, F20 Heisenbug - 3.17.4-200.fc20.x86_64 / i686
    2 dual cores, 11 GB RAM, F21 - 3.17.4-300.fc21.x86_64 / i686
    80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks

  6. #6
    Join Date
    Sep 2010
    Location
    Brampton, ON Canada
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Sorry,

    I misread that. Unfortunately, it still doesn't help me, /etc/event.d doesn't exist in Fedora 13.

    Vraile

  7. #7
    Join Date
    Oct 2008
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Hi,

    See the last line in

    /etc/sysconfig/init

    WWell,

  8. #8
    Join Date
    Aug 2009
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Quote Originally Posted by assen
    ...See the last line in

    /etc/sysconfig/init...
    +1!

    From my /etc/sysconfig/init file contents -
    ===================================
    [root@localhost ~]# more /etc/sysconfig/init
    "...
    # What ttys should gettys be started on?
    ACTIVE_CONSOLES=/dev/tty[1-6]
    ..."
    ===================================
    Additional information for deltaing tty within the /etc/init/tty.conf file, too.

    From my /etc/init/tty.conf file contents -

    [root@localhost lib]# more /etc/init/tty.conf
    # tty - getty
    #
    # This service maintains a getty on the sepcified device.

    stop on runlevel [016]

    respawn
    instance $TTY
    exec /sbin/mingetty $TTY
    ===================================
    Hope this helps.
    Last edited by diamond_ramsey; 27th September 2010 at 01:10 AM. Reason: Added the /etc/init/tty.conf file reference. :)
    2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
    2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.25-100.fc19.x86_64 / i686
    2 dual cores, 11 GB RAM, F20 Heisenbug - 3.17.4-200.fc20.x86_64 / i686
    2 dual cores, 11 GB RAM, F21 - 3.17.4-300.fc21.x86_64 / i686
    80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks

  9. #9
    stevea Guest

    Re: F13: How do I disable virtual consoles

    The control for starting the mingetty's is in
    /etc/init/tty.conf
    The /etc/sysconfig/init ACTIVE_CONSOLES term is used in /etc/init/start-ttys.conf whic hcalls the tty.conf above.

  10. #10
    Join Date
    Sep 2010
    Location
    Brampton, ON Canada
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    OK,

    I already modified the /etc/sysconfig/init file. This disables the ability to do anything with the virtual consoles but doesn't disable the ability to use CTRL-ALT-F2 thru F6 (even though all you get is a blank screen.)

    I've looked at the /etc/init/tty.conf file but I don't understand Linux scripting well enough to know what to do to the file in order to make it do what I want.

    Sorry for being such a pain. All the help is very much appreciated.

    Vraile

  11. #11
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    I think you are asking for a custom kernel that has only one (unused) console for
    display purposes only.

    I haven't found a way to specify the number of vertual tty devices, but there is a
    warning that doing such means you can't log in to fix things when/if the display
    driver gets "funky" except over the network.

    You can, I believe, disable the ctrl-alt-fxx in the Xorg configuration.

  12. #12
    Join Date
    Jul 2009
    Location
    England, UK
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F13: How do I disable virtual consoles

    Quote Originally Posted by jpollard
    You can, I believe, disable the ctrl-alt-fxx in the Xorg configuration.
    Following jpollard's pointer, I looked at the manpage xorg.conf(5). Adding
    Code:
            Option      "DontVTSwitch" "True"
    to the "ServerFlags" section of /etc/X11/xorg.conf disabled ctrl-alt-Fn completely for me (Fedora 12, xorg-x11 1.7.6).

Similar Threads

  1. Virtual Consoles
    By primo_larry in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 21st October 2006, 02:04 AM
  2. virtual consoles - gnome treminal
    By phil-fedora-5 in forum Using Fedora
    Replies: 5
    Last Post: 21st October 2006, 12:07 AM
  3. No text in virtual consoles
    By boback0 in forum Using Fedora
    Replies: 0
    Last Post: 22nd February 2006, 12:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •