plusieurs tty avec la slackware - Linux et OS Alternatifs
Marsh Posté le 03-10-2001 à 17:13:45
Vas voir dans /etc/inittab, tu devrais avoir un truc dans ce genre là à un endroit :
1:2345:respawn
sbin/mingetty --noclear tty1
2:235:respawn
sbin/mingetty tty2
3:235:respawn
sbin/mingetty tty3
4:235:respawn
sbin/mingetty tty4
5:235:respawn
sbin/mingetty tty5
6:235:respawn
sbin/mingetty tty6
Il suffit que tu mettes 2345 pour tous les terminaux et pas seulement le tty1
Marsh Posté le 03-10-2001 à 18:28:32
Ah, oui, évidemment, j'avais pas vu le smiley
'faut lire ça, hein :
4:235:respawn:/bin/mingetty tty4
Marsh Posté le 03-10-2001 à 18:40:42
bon ben ca marche pas, j'ai pas mingetty
voila mon inittab :
# 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 -rf 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 (shutdown to single user).
pf::powerfail
sbin/shutdown -f +5 "THE POWER IS FAILING"
# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait
sbin/shutdown -c "THE POWER IS BACK"
# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait
sbin/init 3
# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
# able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:1235:respawn
sbin/agetty 38400 tty1 linux
c2:1235:respawn
sbin/agetty 38400 tty2 linux
c3:1235:respawn
sbin/agetty 38400 tty3 linux
c4:1235:respawn
sbin/agetty 38400 tty4 linux
c5:1235:respawn
sbin/agetty 38400 tty5 linux
c6:12345:respawn
sbin/agetty 38400 tty6 linux
# Serial lines
#s1:12345:respawn
sbin/agetty 19200 ttyS0 vt100
#s2:12345:respawn
sbin/agetty 19200 ttyS1 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 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait
etc/rc.d/rc.4
# End of /etc/inittab
en fait quand mets en runlevel 4, j'ai le tty 1 pour l'affichage des messages de X, le tty 2 pour X et le 6 pour le mode console
Marsh Posté le 03-10-2001 à 21:08:23
oups je viens de comprendre ce que disat Jak en voyant ce qu'a ecrit Jowile
bon merci a tous les deux, ca marche !
Marsh Posté le 04-10-2001 à 09:09:41
Oui, désolé, j'avais que l'inittab d'une Suse sous la main, qui utilise mingetty, alors que la Slack utilise agetty.
'tain, c'est chiant ces smiley pour écrire des lignes d'inittab
Marsh Posté le 03-10-2001 à 15:55:25
salut
j'ai un souci avec la slack
quand je mets le runlevel a 3 (multiuser mode (default Slackware runlevel)), je dispose de tous les tty dispos (de 1 a 7) meme apres avoir lance X avec startx
par contre, quand je mets le runlevel a 4 (X11 with KDM/GDM/XDM (session managers)), je n'en ai plus que deux : le 1 affiche les messages du demarrage de X et le 2 affiche le window manager
comment changer ca ?