Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-08-2005, 01:10 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Distribution: Debian
Posts: 15
Rep:
|
debian logon gui
Hi,
when I start debian, I get a graphical gui where I can log in my username nd password. What I would like to get is just the terminal login. Anybody knows how to do that. Thanks
Amish
|
|
|
12-09-2005, 06:02 AM
|
#2
|
Member
Registered: Aug 2002
Posts: 41
Rep:
|
|
|
|
12-09-2005, 08:13 AM
|
#3
|
LQ Newbie
Registered: Mar 2004
Distribution: Debian
Posts: 15
Original Poster
Rep:
|
cool thanks,
Amish
|
|
|
12-09-2005, 08:16 AM
|
#4
|
Member
Registered: Dec 2005
Posts: 36
Rep:
|
OK.
open a terminal window
change to root
in the command prompt type
# cd /boot/grub
# cp menu.lst menu.lst.bak
# kwrite menu.lst
wait till kwite opens your grub configuration file.
then edit
where it reads
title Debian GNU/Linux, Kernel 2.6.*-*-386
root (hd0,*)
Kernel /boot/vmlinuz-2.6.*-*-386 root=/dev/hd** ro init 3
initrd /boot/initrd.img-2.6.*-*-386
savedefault
boot
add the words exactly as given above in red (do not edit or alter anything else)
save and exit
close your terminal window
from now on it will boot to a terminal screen.
if you want to revert
type
# cp /boot/grub/menu.lst.bak /boot/grub/menu.lst
it will ask whether to overwrite
type yes
thats it
Hope this helped.
Last edited by philipvarghese; 12-09-2005 at 08:18 AM.
|
|
|
12-09-2005, 08:27 AM
|
#5
|
LQ Newbie
Registered: Mar 2004
Distribution: Debian
Posts: 15
Original Poster
Rep:
|
Hi,
quick question does run level 3 provide me with the multi user console?
Amish
|
|
|
12-09-2005, 08:33 AM
|
#6
|
Member
Registered: Dec 2005
Posts: 36
Rep:
|
hi axr0284
the answer is yes
|
|
|
12-09-2005, 08:36 AM
|
#7
|
Member
Registered: Aug 2002
Posts: 41
Rep:
|
Is the 'init 3' method same as setting default runlevel to 3 from /etc/inittab?
|
|
|
12-09-2005, 08:49 AM
|
#8
|
Member
Registered: Dec 2005
Posts: 36
Rep:
|
Is the 'init 3' method same as setting default runlevel to 3 from /etc/inittab?
yes it is.
This would be more safe
and lets not play with configuration files unless we know what we are doing.
|
|
|
12-09-2005, 09:04 AM
|
#9
|
LQ Newbie
Registered: Mar 2004
Distribution: Debian
Posts: 15
Original Poster
Rep:
|
Hi,
I just tried what you said but it still logged on to the gui prompt. This is the content of my menu.lst. NOTE: the init 3 is on the same line as boot/vmlinuz...
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.4.27-2-386
root (hd0,1)
kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hda2 ro init 3
initrd /boot/initrd.img-2.4.27-2-386
savedefault
boot
I also changed inittab to id:3:initdefault: but that still sould not work. It would seem from what I read in another thread that debian starts the gdm in every run level so you have to disable the gdm to get a prompt.
Amish
|
|
|
12-09-2005, 02:35 PM
|
#10
|
Member
Registered: Aug 2002
Posts: 41
Rep:
|
Yes, reading the other thread says that runlevels 2-5 are essentially the same. So to be sure, if your runlevel is now 3, just remove /etc/rc3.d/S99?dm, where ? is x,k and g
|
|
|
12-09-2005, 02:38 PM
|
#11
|
Member
Registered: Aug 2002
Posts: 41
Rep:
|
Or, comment the line from /etc/X11/default-display-manager which has /usr/bin/kdm (or xdm or gdm)
comment = just add # to the beginning of the line
|
|
|
12-09-2005, 05:15 PM
|
#12
|
LQ Newbie
Registered: Mar 2004
Distribution: Debian
Posts: 15
Original Poster
Rep:
|
Ok so here is what worked for me.
Did "update-rc.d -f gdm remove".
This removed all the links to gdm in init.d from rc*.d directories. Now when I restart it goes to the console prompt
But then if I typed startkde, it would give me all theses errors about display="" and locked file and that something had to be started for this to work. I searched a little online and
I eventually resorted in using startx with .xinitrc file in my ~ directory with the word startkde in it.
I sincerely don't know why it would work this way but it did. If anybody can explain, I'd be grateful.
Amish
|
|
|
12-09-2005, 05:55 PM
|
#13
|
Member
Registered: Dec 2005
Posts: 36
Rep:
|
Dear Amish
Since this is Debian lets start over again
Debian Boot scripts are handed over to rc.sysvint at the run level 3 and or controlled by it from what to start and what not.
Since this is the case
the edited menu.lst file is correct.
but you will have to set one more thing
that is when you are logged in to gui, goto system open SysV-initeditor
it will ask for root password.
then you will be presented with a dialog box with all init levels
check levels, at init 3
if there are any window managers listed
just drag and drop them in the litter box (left corner of the same box) do not alter any thing else, save and exit,
then reboot.
if you want to enter gui just type your favorite WM name.
Like said do not play with rc.d files
because it can put your system down.
Last edited by philipvarghese; 12-09-2005 at 06:29 PM.
|
|
|
All times are GMT -5. The time now is 10:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|