Boot to Text in Debian
I have installed the latest stable version of Debian on my DEC Alpha with a network install using debian-40r0-alpha-netinst.iso. When the computer boots it automatically goes in to the GUI login shown here. I would like for it to boot to a command line text interface. Can anyone tell me how to do this?
When it does get setup to boot to a text interface, I would like to be able to start the GUI manually. How would I do this? Once the GUI is started how can I exit the GUI and go back to the text interface? On this topic I have gotten the suggestion to use Ctrl-Alt-F1 to go from the GUI to text, but from what I understand when using Ctrl-Alt-F1 the GUI is still running. I want to actually exit the GUI so that it is no longer running and be at a command line. I used to use CentOS in which there was a key sequence (that I cannot recall) that could be used to exit the GUI, then to get back in to the GUI you would just enter "startx" at the command line and that would start the GUI. Trying to find out how to do this in Debian has been like beating my head against a wall. Please advise if you can. |
The easiest way to deactivate the gdm graphical login manager is to just uninstall it (apt-get remove gdm).
I can think of several ways to only have gdm not start, but I'm not sure what the prefered method is. I'd guess the prefered method is to remove s21gdm from /etc/rc5.d. I don't know if there's a magic key combination to kill gdm. I know that if you log in to a command prompt, you can gracefully stop gdm with "/etc/init.d/gdm stop". |
mv /etc/rc2.d/S21gdm /etc/rc2.d/K21gdm
That will prevent gdm from starting automatically and leave the link if you want to change it back later. to easily manage services in Debian you can install sysv-rc-conf it will give you a nice curses interface for enabling and disabling services. |
IsaacKuo
1st you suggested uninstalling gdm. I do not want to get rid of the GUI, I just to be able to choose whether or not I am using it. 2nd you suggest removing s21gdm from /etc/rc5.d. OK. So if this action will lead to booting to the command line, how would I start the GUI from the command line should I wish to do so? 3rd, with regard to going from GUI to text you suggest "/etc/init.d/gdm stop" When I tried entering "/etc/init.d/gdm stop" I received the error "Stopping GNOME Display Manager: gdmstart-stop-daemon: warning: failed to kill 22" "13: Operation not permitted" farslayer You suggest using mv /etc/rc2.d/S21gdm /etc/rc2.d/K21gdm to boot to text. OK. So if this action will lead to booting to the command line, how would I start the GUI from the command line should I wish to do so? You also mention installing sysv-rc-conf. I found this website that provides instructions for installing sysv-rc-conf. When I try to follow the instructions I receive the errors: E: Could not open lock file /var/lib/dpkg/lock - open (13 permission denied) E: Unable to lock the administrative directory (/var/lib/dpkg/), are you root? When I logout and try to log in as root I get the message "The system administrator is not allowed to login from this screen." WTF? |
use the command su to log in as root at a terminal
|
You can prevent automatic running of the GUI by disabling your login manager be it KDM, GDM or XDM from running at boot time. To disable the login manager from automatically running at boot up, do
Code:
#update-rc.d -f gdm remove To start X manually, you would then have to login at the command prompt and enter the command "startx". To reset your login manager so that it runs at boot up, do Code:
#update-rc.d -f gdm defaults |
Quote:
Other than that, I think you have the basics of your answer: sysv-rc-conf will allow you to chose what init scripts start at each runlevel. One way to do what you want is to remove GDM from runlevel two (Debian's default). After boot, you should be at a text-only console. Then to get to a gui login, you simply enter (as root or with sudo) telinit 3, and to get back to the text only, you enter (from a gui terminal as root or with sudo) telinit 2. I think that would work, though it might require further tweaking to make sure that when you go back to the text-only runlevel GDM brings down all parts of Gnome (or whatever gui you use). |
You can also log in as root at a text console using ctrl-alt-f1. It takes less time than logging in to gdm, and if you stop gdm then your terminal session doesn't get yanked down along with the rest of X.
|
Hej
I use sid so i install a base system to start with. but i think you can do the same. then i install wat i need or wat the box can run. wenn you do it this way, you will boot up to user. then you start x. no kdm or gdm if you downt need it. bertil |
Quote:
startx as a normal user will launch the gui. Quote:
switch to the root user, you can not install system software unless you have root user permissions. Quote:
Quote:
|
Hej
This is wat i mean.(sory for bad english). I use use deb sid amd 64 and gentoo 86. and wen you install the base system you make root and a user mode. so if your box is p11 with 128 ram you su to root in textmood and apt-get. then you downt use gnome or kde. is to havy. Dam smal and all the rest of dist for old box with ram < then 128 is based on deb. and gentoo. so keeb on learning and hav fun. Bertil |
I executed "mv /etc/rc2.d/S21gdm /etc/rc2.d/K21gdm" at the command line and from that point I booted to the command line. It worked perfectly until I decided to make things more complicated. I decided to install KDE. KDE installed surprisingly easy, just "aptitude install kde" and it was in. I ran "mv /etc/rc2.d/K21gdm /etc/rc2.d/S21gdm" to switch back to booting to the GUI. Then I selected "Session" at the log in manager and chose KDE. A window popped up asking if I wanted to use KDE as the default desktop and I selected yes. From within KDE I ran "mv /etc/rc2.d/S21gdm /etc/rc2.d/K21gdm" to go back to booting to the command line. When I next booted the computer it correctly came up to the command line, but when I entered startx the gnome desktop loaded instead of the KDE desktop.
How can I change the default desktop for startx to display to kde? |
Quote:
|
Quote:
http://img256.imageshack.us/my.php?i...mserverpz0.jpg |
What about
xinit /usr/bin/startkde |
All times are GMT -5. The time now is 08:51 PM. |