View Single Post
Old 08-25-04, 07:22 PM   #2
Registered User
Join Date: Aug 2004
Posts: 2
Default Re: what is x and how do i close it ?

I can see you posted twice in this forum... don't do that. (i'm not a moderator, but it's just not right). To answer your fist question, you have to install your kernel's source before you can do any of this. Go to the Mandrake Control Center (or type 'drakconf' in the console), and the box icon is for installing it. Type 'kernel source' in the search box, and install it.

X is your graphical display manager. KDE (or GNOME if you use that) runs on the X server to make linux graphical. Make sure you download the driver first, before doing this, and save it somewhere convenient (such as /home/yourusername/). To boot up into text mode, open up a console, and browse to /etc/, to edit the inittab file. Commands:

$ cd /etc/
$ su (then enter the root password)
# vi inittab

($ is the short terminology for [user@localhost folder]$, and # for [root@localhost folder]#)
once you have it opened up, press the Insert key once. Then look for this (basically at the top of the file):

# 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:3:initdefault: <-- this is the line you are looking at

This is the list of "runlevels". Runlevels are just how the computer will boot/shutdown. It enters runlevel 6 when rebooting, and 0 when it shutsdown (simple isn't it?). Remember what number is there as you will be changing the file again after you install the driver (yours should be a 5, if i'm correct). Move the cursor over that number, delete it, and put a 3 (as is above). I use Mandrake 10.0 official and have used 9.2 so i know what i'm talking about.

Once you have done that, press the following:

:wq (<--here you are actually typing the ":")

you are now out of the text editor Vi... then type:

# reboot

this should get you into the non-graphical startup. From there you just follow what it says on the nvidia site to install the driver and edit you Xserver configuration file (most likely this: /etc/X11/XF86Config-4). Here is the link to their instructions:

Click the README link there once you are done installing it, and scroll to section: sec--03 to follow their instructions as how to go about editing your XF86Config file.

BEFORE EDITING IT I STRONGLY RECOMMEND YOU BACK IT UP! You can do this just by copying it to your home folder:

$ cp /etc/X11/XF86Config-4 ~/

I can state shortly how to get into the configuration file:
# cd /etc/X11/
# vi XF86Config-4
Insert (=the insert key)

then just go about editing the file as nvidia states.

Once that is all done, you must edit your inittab file again.

$ su (enter password again, as above)
# cd /etc/
# vi inittab

Now you must change that "3" back into that number that was there before (namely a "5"). Press the Insert key to edit the file, move the cursor to where the number is, replace it, and type


to save and quit. Then reboot the machine, and all is done! Enjoy.

Note: if you mess up in the file while editing any file in Vi, and you don't remember what was there, just type:


This exits the Vi editor, and does NOT save any changes you made, so you may try it over again.

Also, if you have any trouble in the future with linux, an excellent site (a forum) to find answers to basically everything is . That site has so many users that you will get a reply within half an hour to an hour (just an estimate).


Last edited by student04; 08-25-04 at 07:36 PM.
student04 is offline   Reply With Quote