LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-17-2004, 01:13 PM   #1
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
only have one terminal...


hey all

I'm wondering why is it I only have one terminal on one of my machines.

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

as you can imagine it's quite annoying.. and if I can spare the hassle of installing a new system again that'd be cool...
 
Old 09-17-2004, 02:18 PM   #2
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Re: only have one terminal...

Quote:
Originally posted by lopette
[B]hey all

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

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# 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.
 
Old 09-17-2004, 02:33 PM   #3
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 09-17-2004, 03:56 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 09-17-2004, 04:49 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
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.
 
Old 09-17-2004, 05:45 PM   #6
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
Try ctrl-F7, that's where my X hangs out...

rjtucke
 
Old 11-20-2004, 07:11 AM   #7
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Original Poster
Rep: Reputation: 15
that didn't solve the problem

however, since my install was pretty messy, I did a new one and now it's all fine

cheap was to do it, but since I had so many problems I figured out it was quicker - and it was
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 11:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 03:45 PM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 09:36 AM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 06:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 04:59 AM


All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration