DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
**Note - this was originally posted in 'newbie' forum, and it was suggested that I post it here as well**
Some would think this a really easy question, and I hope that it is, but after scouring countless sites and threads, I have yet to find an answer. I have just installed Debian 'woody', and did so without any problems. On reboot, it automatically loads xwindows, then the gnome/sawfish GUI. The gnome/sawfish GUI does not allow me to login as 'root' (I'm assume for security reasons). So I login as a user, and it takes me to the GUI. But I need to exit out of the gnome/sawfish GUI, and login as root, to make sure I have loaded the right modules/devices + I want to play around with some commands to become more familiar.
1) How, step by step, do I exit out of Gnome/sawfish back to the command line to login as ROOT?
2) What are the steps, to stop Xwindows from automatically loading the Gnome/sawfish at bootup?
For the first question, you will need to change runlevels.............Open up a gnome terminal or xterm window, then su to root on the command line...................After logging in as root on the command line, run the command 'init 2' to change to runlevel 2.
That's it........If the desktop doesn't shut down automatically at this point, simply log out of Gnome, and you will then be taken to the command line............You can then logout as the current user, and log in as the root user.
For the second question, I'm still new to the Debian way of doing things, so I'm not sure...........I installed Knoppix to the hard drive, which uses KDE and I'm a big fan of KDE, so I haven't bothered to check how it determines the default desktop.........Some distros have a simple file to edit for the default desktop to use, and I know Slackware uses a symlink for /etc/X11/xinit/xinitrc which points to the rc script for the default desktop you want to use........
If you change the default runlevel you should make sure that the one that you change to won't start you in graphical mode as well. Even if I'm new to debian myself I read a bit and so far I understand that all the runlevels are the same. You should edit your runlevel configuration for this and get rid of GDM (or whatever you have) by stoping the service...
But I think that there is something else that you might try doing (This works fine for sarge but give it a try) follow the directions in the debian reference manual http://www.debian.org/doc/manuals/re...erence.en.html and go directly to point 9.4.12 Getting root in X
Hope it helps
Thanx to everyone that responded. I tried Xtermial, used the SU, and was able to initiate most commands, so that is fine. The problem which has not resolved itself is 'logout/shutdown' Logging out of the GUI, takes me back to the Gnome 'login' screen, and there is no option to shutdown from there. Funny, you cant login as the root, but when in the GUI and the option 'shutdown' is choosen, it says you must be 'root' - a perpetual catch 22
If you have installed the standard sarge normally by default you have installed both desktops ( kdm and gdm) and by default gdm runs at the boot time.
Now the gdm is running by default in level 2 ( unlike redhat for example) so if you want really disable the graphical interface in level 2 , delete the link from /etc/rc2.d.
If you want to log as root with graphical interface, in the log window you have button for preferences , go the security and disable the security for loging as root, and you have other preferences to change you log in.
you can do it ( I mean the configuration of the logging) from your desktop, pop the system menu you 'll find a boutton for customizing the looging window, ( you 'll asked for root pssword).
Originally posted by Naysayer13 ...The problem which has not resolved itself is 'logout/shutdown' Logging out of the GUI, takes me back to the Gnome 'login' screen, and there is no option to shutdown from there...
Do as ruddigger suggests, by changing the runlevel configuration in the /etc rc#.d directories, such as /etc/rc2.d or /etc/rc3.d. The number in the rc#.d directory correspond to the runlevel being used............You want to make sure there is no S99gdm or S99kdm or S99xdm symlinks (and in the case of a Knoppix installation, remove S90xsession) in the directory of the runlevel you don't want the xserver to start automatically.......Note, you want these links to stay in /etc/rc5.d, as runlevel 5 is the traditional runlevel to automatically start the xserver, while runlevels 2 and 3 are usually reserved for running Linux in text mode and need to be removed in these directories........
I've been digging around since my last post on the Debian way of initiating the startup scripts, and found that a lot of the deb packages will populate ALL the rc#.d directories with links to their startups scripts found in /etc/init.d without asking first.........Very annoying, to say the least, if you don't want to have a whole bunch of daemons started automatically during boot time (To be fair, there are a few packages that will ask first if you want its daemon to be started automatically during boot)....
KDE has a SysV-Init Editor, which allow you to add, remove and edit the startup scripts. I'm not sure what the Gnome equivalent is called, but I'm pretty sure Gnome will have one.............At any rate, by removing those S99 links I mentioned in /etc/rc2.d or /etc/rc3.d will allow you to change to runlevel 2 or 3, respectively, without having the xserver restarting automatically..