Hello,
Is there a way to disable the console switching with ALT+F1, ALT+F2..... ALT+F6 in porteus, when I have booted to runlevel 3?
Any boot parameters that I need, or something like that?
Disable console switching with ALT-Fn in Runlevel 3?
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Disable console switching with ALT-Fn in Runlevel 3?
please edit /etc/inittab and hash out all terminals except for the first one:
Code: Select all
c1::respawn:/sbin/agetty 38400 tty1 linux
Please add [Solved] to your thread title if the solution was found.
Re: Disable console switching with ALT-Fn in Runlevel 3?
I did edit the /etc/inittab and copied the new version into my rootcopy directory.
However, Linux DOES NOT ignore the ALT-Fn keys. I can press ALT+F2, for example, and the text screen will change. Sure, I cannot login anymore. But the keypress "ALT+F2" is still recognized and not ignored.
I want that Porteus ignores it completely.
So what to do?
However, Linux DOES NOT ignore the ALT-Fn keys. I can press ALT+F2, for example, and the text screen will change. Sure, I cannot login anymore. But the keypress "ALT+F2" is still recognized and not ignored.
I want that Porteus ignores it completely.
So what to do?
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Disable console switching with ALT-Fn in Runlevel 3?
please double check you inittab as everything is ok here. here is my inittab which leaves only tty1 and tty2 active (ctrl+alt+F3-F6 wont work):
Code: Select all
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
# 13.37 2011-03-25 PJV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S
# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K
# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now
# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0
# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6
# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start
# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop
# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
#c3:12345:respawn:/sbin/agetty 38400 tty3 linux
#c4:12345:respawn:/sbin/agetty 38400 tty4 linux
#c5:12345:respawn:/sbin/agetty 38400 tty5 linux
#c6:12345:respawn:/sbin/agetty 38400 tty6 linux
# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100
# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
# Runlevel 4 also starts /etc/rc.d/rc.4 to run a display manager for X.
# Display managers are preferred in this order: gdm, kdm, xdm
x1:4:respawn:/etc/rc.d/rc.4
# End of /etc/inittab
Please add [Solved] to your thread title if the solution was found.
Re: Disable console switching with ALT-Fn in Runlevel 3?
fanthom: You are obviously in Runlevel 5 (graphical mode, KDE or whatever) since you mention CTRL+ALT+Fn.
I am in TEXTMODE, runlevel *3*, no GUI, and I can "only" use ALT+Fn, which I don't want.
Yes, I changed the inittab, but still, Porteus will not ignore when the user presses ALT+F2, for example.
I am in TEXTMODE, runlevel *3*, no GUI, and I can "only" use ALT+Fn, which I don't want.
Yes, I changed the inittab, but still, Porteus will not ignore when the user presses ALT+F2, for example.
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Disable console switching with ALT-Fn in Runlevel 3?
nope - i tested it in runlevel 3.You are obviously in Runlevel 5
btw: in Slackware runlevel 4 is for GUI and 5 is not used:
Code: Select all
# 5 = unused (but configured the same as runlevel 3)
on my system nothing happens when i press ctrl+alt+F3 (or alt+F3) with inittab posted above. what happens on your system? what do you see on the screen?Yes, I changed the inittab, but still, Porteus will not ignore when the user presses ALT+F2, for example.
Please add [Solved] to your thread title if the solution was found.