Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm wondering why is it I only have one terminal on one of my machines.
Isn't this configured in /etc/inittab where the getty's are called? Maybe you are only calling up one getty. You could change this so that more would be called:
Here's mine:
Quote:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by Mandrakelinux are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
Quote:
on top of it, when X is started, I can get back to tty1 with Ctrl+Alt+F1, but then I can't get back to X anymore
This would probably be because you only have one terminal! ;-) Try typing startx and see what happens.
I checked, and noticed that although all 6 ttys are written down, only the first one had "2345:respawn". #2-6 had "23:respawn" and were therefore missing the "45".
why ? I don't know. I chaged this and will check next time I reboot (or is there another way to do it?)
typing startx will get me "x server already started"
Well you, could drop to runlevel 3 and then go back up to runlevel 5. It seems terminals 2-6 are only set to be activated in runlevels 2 and 3, whereas you're probably in runlevel 5 (boot to GUI). That's a weird setup, but I guess some distros do it that way.
Originally posted by lopette I checked, and noticed that although all 6 ttys are written down, only the first one had "2345:respawn". #2-6 had "23:respawn" and were therefore missing the "45".
why ? I don't know. I chaged this and will check next time I reboot (or is there another way to do it?)
typing startx will get me "x server already started"
thanks for the tip
the numbers refer to runlevels. you can just add/remove whichever you want. the default runlevel should be at the top (of /etc/inittab). you can just edit that file to change it.
you can also use "telinit #" - where # is desired runlevel - as root to switch runlevels without rebooting. but the value in inittab will be read upon your next boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.