LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need to close x server, how? (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-to-close-x-server-how-226873/)

NoS Sr50 09-05-2004 03:30 AM

I need to close x server, how?
 
I need to close x server to install nvidia driver updates, any clue on how to do this

Mr.Bill.Gates 09-05-2004 04:34 AM

Go to the first virtual console with Ctrl+Alt+F1. Login as root and type

# init 3

to switch to single user command line mode. Update your driver (as
described in README or somewhere else, I don't know :)). Then type

# init 5

redjokerx 09-05-2004 04:34 AM

ctrl+alt+backspace. That will shutdown/restart the X server. If you booted into X, then it'll restart, but if you booted into command line, it'll drop you back to it. If you boot into X which i'll assume you do since you're running mandrake, change /etc/inittab line from

id:3:initdefault:
to
id:5:initdefault:

there should be a a guide at the top to help you out just in case 5's the wrong number.



Baldrick65 09-05-2004 04:36 AM

Press CTRL-ALT-F2, log in as root, then type in /sbin/init 3. That will put you in text mode ready for the nVidia install.

Baldrick

vasudevadas 09-05-2004 07:57 AM

You don't even need to press ctrl-alt-f2. If you type it in a terminal window (as root) that'll kill your X server just as well.

MobyTurbo 09-05-2004 08:06 AM

su to root inside of X and typing "/sbin/telinit 3" also works.

NoS Sr50 09-05-2004 01:06 PM

Quote:

Originally posted by MobyTurbo
su to root inside of X and typing "/sbin/telinit 3" also works.
Ok I did that and it brought me to this big terminal, and I need to CD to my home directory but dont know how... I triec cd root/robert/home...didnt work

NoS Sr50 09-05-2004 02:32 PM

If anyone knows how to CD to my home directory after shutting of the x server it would be nice :)

btmiller 09-05-2004 02:38 PM

If your user name is robert:

cd /home/robert

should do the trick.

gaviidae 09-05-2004 10:29 PM

you can just type
cd
and then type
pwd
that'll show you that you're at home.
Nice thing about UNIX... they make it easy sometimes for us lazy types :) typing "cd" automagically sends you home, like clickin your red shoe heels three times :))))


All times are GMT -5. The time now is 01:31 AM.