LinuxQuestions.org
Review your favorite Linux distribution.
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 01-10-2008, 10:05 PM   #1
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Rep: Reputation: 30
how to exit x server


I have been looking around and found some info on how to exit x server but i still keep getting into problems

First my problem

I am trying to install Nivida I have downloaded the file but when I do the sh (filename) it gives me this (you need to exit x server)

ok one person says to vi /etc/inittab and to change the runlevel to 3 and after i install the stuff to change it back to 5

the problem is I can not see any thing there that says runlevel 5

Code:
etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
"/etc/inittab" 69 lines, 2008 characters
ok if it is there i do not see it

some one else said to do this

CTRL+ALT+F1 problem is i still get the same err message even when I type
telinit 3

and at times it does nothing and at times it ask for the root pass and then i am in my username code eg

omeg~9#>

and i cant even get directory or the installation done

i try cd /home/myname/desktop/downloads (enter)
and nothing happens

Bascialy what i need is to exit x server to install the program
How do I do it?

Thank you
 
Old 01-10-2008, 11:36 PM   #2
zeeshanhayat
Member
 
Registered: Oct 2004
Distribution: Fedora, Debian, Free BSD
Posts: 71

Rep: Reputation: 15
Quote:
id:2:initdefault:
change the 2 to 3 and then logout or reboot..


After doing the needful, type startx to start the XServer
 
Old 01-10-2008, 11:44 PM   #3
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Phoenix_wolf-

The advice given by 'zeeshanhayat' is correct. How your run-level became set to a '2' is interesting.

Once you have installed the nvidia driver and verified that X11 works (per zeeshanhayat's advice), restore the init-level in the /etc/inittab to level 5. In other words, when all is done, ensure that you see:

Code:
# The default runlevel.
id:5:initdefault:
Afterwards, each time you reboot, your system will launch X11, and hence, your window manager (Gnome, KDE, or ?).
 
Old 01-11-2008, 12:33 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
On Debian there is not need to tinker with runlevels in order to shutdown X. You can do
Code:
#/etc/init.d/gdm stop
Substitute gdm with kdm, xdm or whatever login manager you prefer. Once you have installed the drivers, you can restart X by doing
Code:
#/etc/init.d/gdm start
 
Old 01-11-2008, 12:48 AM   #5
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Yep, that'll work too.
 
Old 01-11-2008, 01:42 AM   #6
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
ok got it up on runing but came up on another problem


Code:
Error: Unable to find the kernel source tree for the current running kernel. Please make 
sure you have installed the kernel source files for your kernel and that they are properly 
configured; on RED Hat lunux system, for example be sure you have the "kernel-source or 
kernel-devel" RPM installed. if you know the correct kernel source files are 
installed you may specify the kernel source path 
'--kernel-source-path' command line

ok i thought the kerenel was installed at first (i have no idea what it wants me to do (pluse i am using debian so i cant use rpm files)

what do i need to do to get the kernel

befor it give me this it aske if i want to download the kernel package from neivida website but it does not find it.

Last edited by phoenix_wolf; 01-11-2008 at 02:23 AM.
 
Old 01-11-2008, 05:30 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You already have the kernel installed. What the error message is saying is that you do not have the kernel source installed. You can use apt, aptitude or synaptic to install the kernel source that matches the version of the kernel you are running (you can find this out by doing "uname -r".
 
Old 01-11-2008, 05:32 AM   #8
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
The kernel's installed, but that doesn't mean the kernel's source is installed. Google for using apt-get to get the kernel source. I use an RPM distro, so I can't tell you how it's done with apt.
 
Old 01-11-2008, 09:35 AM   #9
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Is this not the command?

Code:
$ sudo apt-get install kernel-devel
 
Old 01-11-2008, 11:41 AM   #10
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
ok I did uname -r and it showed
2.6.18-5-amd64

but I can't seem to find the source what do i do next i tried
apt-get install 2.6.18-5-amd64
apt-get install kernel-source-2.6.18-5-amd64
I aslo did the
apt-get install kernel-devel

but nothing
 
Old 01-11-2008, 11:46 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try
Code:
#apt-get install kernel-source
 
Old 01-11-2008, 11:53 AM   #12
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
yea i did that also here is what it says

Code:
Reading package lists... Done
Building dependency tree... Done
Package kernel-source is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package kernel-source has no installation candidate
 
Old 01-11-2008, 11:56 AM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian 11
Posts: 6,135

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Do you have a GUI to access your package manager (Synaptic, Adept, whatever)?
Use that to search for your your distro calls the appropriate kernel-headers.
The command for me (kubuntu) is apt-get install linux-headers-2.6.15-29-386

Edit: you can't just apt-get install kernel-source you need to say which kernel-source and you need the headers! /Edit

Last edited by tredegar; 01-11-2008 at 12:00 PM.
 
Old 01-11-2008, 11:58 AM   #14
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
1 thing to note I had to do the noapic installation) if that makes a dif.
 
Old 01-11-2008, 12:06 PM   #15
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
ok i did a serch for kernel headers in synaptic it shows

kernel-package 10.067 installed
linux-kernel-headers 2.6.18-7 installed
rt2400-source not installed
rt2500-source not installed
rt2570-source not installed
rt2x00-source not installed
but all of the (not installed are wirless network drivers)
 
  


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
how do i exit out of X Server Rangerboy567 Linux - Hardware 5 04-25-2005 11:44 PM
How do I exit the X server dimsun Linux - Newbie 5 11-17-2004 03:07 PM
simple but i don't know--exit the X server jrembold Fedora 4 07-25-2004 09:49 AM
trying to exit x server HOW Abvolt Linux - Newbie 7 07-06-2003 03:18 AM
Exit the X Server DaDdY SnEb Linux - Newbie 3 10-26-2002 03:10 PM

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

All times are GMT -5. The time now is 05:40 AM.

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