LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-02-2004, 03:57 PM   #1
kulmis
Member
 
Registered: Aug 2003
Posts: 33

Rep: Reputation: 15
killing X server (and some more)


Hi,

How can I kill X server efficiently? When I boot up my Linux, xdm opens the graphical login screen. If I try to change to console (ie. ctrl-alt-1) the monitor just switches off (meaning there is no siganl from display adapter). Why is this, and how can I fix it? If I kill the X server, will there be console?

why I wan't to kill it?
Well, the problem is that I don't have any window manager installed and my mouse don't work,so it makes using the computer somewhat hard...
 
Old 09-02-2004, 05:02 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can kill the X server with ctrl+alt+backspace, but this won't necessarily make a text console appear on tty1-tty6 (ctrl+alt+f1-f6). For a text console to appear on a terminal there has to be a getty process listening on it. Usually this is set up by init.

Probably the easiest thing to do is edit your /etc/inittab file to boot into runlevel 3 instead of runlevel 5. There should be a line like:

id:5:initdefault:

in your /etc/inittab -- change that to a 3 and reboot. You can edit the inittab file in single user mode if you don't have any better way of doing it from your current set-up. There are lots of threads here describing how to go to signle user mode.
 
Old 09-02-2004, 06:21 PM   #3
kulmis
Member
 
Registered: Aug 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Yes, ctrl-alt-backspace kills X but it is restarted again right after.

Changing runlevel didn't help in my case. I'm using Debian (Woody) and so the default runlevel is 2. And isn't Debian's runlevels 2-5 all the same by default?

How can I get getty to listen a terminal?
 
Old 09-02-2004, 06:31 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I'll defer your runlevels question to somebody who knows Debian, but to get a getty process listening on tty1 add a line to your /etc/inittab that looks like:

c1:1235:respawn:/sbin/agetty 38400 tty1 linux

Replece /sbin/agetty with your systems getty program (some use mingetty or some other getty).
 
  


Reply



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
Killing X server and Installing Creative Soundcard. crillegs Linux - Hardware 2 11-24-2005 03:24 PM
Apache killing my server newlinuxnewbie Linux - General 4 10-11-2005 11:49 PM
killing the X server hangs my machine garba Linux - Software 1 08-28-2005 11:32 AM
Killing X Server in Lorma MadDogE134 Linux - Newbie 2 06-16-2004 02:27 AM
Apache Virtual Server is Killing Me... zuessh Linux - Software 4 12-04-2002 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 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
Open Source Consulting | Domain Registration