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
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
does removing tty[1-6] from /etc/event.d work?
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
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
Sorry,
I misread that. Unfortunately, it still doesn't help me, /etc/event.d doesn't exist in Fedora 13.
Vraile
Hi,
See the last line in
/etc/sysconfig/init
WWell,
+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
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.
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
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.