Click to See Complete Forum and Search --> : forgot how to log out of x...


animex2
08-22-2003, 06:05 PM
Hey all! i havnt used linux in awhile, due to i got my new comp, this comp has a GeForce, so im installing the GeForce drivers from the Nvidia site. It tells me how to log out of X server... How in the world do i do that =P i used to know how... but i forgot... This time i hope to keep with Linux for awhile!!!

hard candy
08-22-2003, 06:15 PM
CTRL-ALT-Backspace

bosox79
08-22-2003, 06:19 PM
Originally posted by animex2
Hey all! i havnt used linux in awhile, due to i got my new comp, this comp has a GeForce, so im installing the GeForce drivers from the Nvidia site. It tells me how to log out of X server... How in the world do i do that =P i used to know how... but i forgot... This time i hope to keep with Linux for awhile!!!

do you want to boot into the CL rather then X or do you just need to restart xwindows?

if you want to boot to a command prompt then you will need to edit your /etc/inittab to be runlevel 3 it is most likley set to boot into run level 5 right now

if you want to restart X press Cetl+alt+backspace:cool:

animex2
08-22-2003, 06:31 PM
if you want to boot to a command prompt then you will need to edit your /etc/inittab to be runlevel 3 it is most likley set to boot into run level 5 right now

Yes, i want to boot to a command prompt... I edited the file to go from 5 to 3, i saved it, now i got no clue what to do =P i guess ill try restarting... that should be the logical thing...

animex2
08-22-2003, 06:41 PM
Yep, ty!! One more problem, i dont know how to edit the file again without being in X so i log back into X, either that or is there a command that logs me back into X? Ty for the help so far!

bosox79
08-22-2003, 07:01 PM
Originally posted by animex2
Yep, ty!! One more problem, i dont know how to edit the file again without being in X so i log back into X, either that or is there a command that logs me back into X? Ty for the help so far!

to edit your /etc/inittab from the CLP you could use vi
make sure you are at a root prompt. root#
eg vi /etc/inittab

you can then edit it via vi & this will save you from having to boot into X each time
:D

for help with vi check this out http://www.ibiblio.org/gferg/ldp/practical_linux_guide/x360.html

keep me posted :cool:

SuperNu
08-23-2003, 01:39 AM
You could also use init or telinit command to change the runlevel from the command line. Ok, here are the directions. Hit CTRL+ALT+F<1-6> to get yourself to a command line. Next enter root and your root password to login under the command line. Type init 3 or whatever runlevel your distro defined as full multiuser mode without X11. Now, you can work with the NVidia drivers without X11 constantly bothering you. Plus, you don't have to bother with vi or rebooting.

On a side note, whenever I install a new kernel or NVidia releases a new version of their drivers and my PC isn't booted up, I go into single user mode and then init 3 to get into command line mode without X11.

--SN

o0zi
08-23-2003, 02:27 AM
Or if you want to get into X from the commandline, type "startx".
If you want to be able to edit files from the commandline, you might want to look at nano or joe, two easy-to-use text editors.

bosox79
08-23-2003, 02:40 AM
Originally posted by o0zi
Or if you want to get into X from the commandline, type "startx".
If you want to be able to edit files from the commandline, you might want to look at nano or joe, two easy-to-use text editors.

If you want to be able to edit files from the commandline, you might want to look at nano or joe, two easy-to-use text editors. good call o0zi, I suggusted vi becuse it is pretty much a standered

animex2
08-23-2003, 11:44 AM
Ah! ty, what is the command in VIM (i guess its called) to save? Im stuck on that screen on my comp, now im on sisters comp :o I changed run level from 3 to 5, just need to know how to save =P

tucolino
08-23-2003, 11:54 AM
to save:
:save /path/to/file/initab
to quit:
:q

bosox79
08-23-2003, 03:32 PM
Originally posted by tucolino
to save:

to quit:

you can do what tucolino
suggusted or you can try using the :wq command while in command mode
just make sure you are at the end of the file eg a blank line. then while in command mode type wq