Debian This forum is for the discussion of Debian Linux.
|
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-13-2004, 10:10 AM
|
#1
|
Member
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284
Rep:
|
How to avoid xdm login at startup?
OK, I am a Slackware user and I have to configure a friend's machine to work with Debian. I have some experience (though I'm not experienced) with Slackware but I don't know much for Debian. So:
I was able to do a network install, booting the install process form DOS&Loadlin. I upgraded some of the packages with apt-get and after a lot of troubles, I installed the X packages. But on the next boot it loaded xdm instead of the console login.
The big problem is that X doesn't work properly and shows one wide white bar on a black background. From this moment the machine stops responding, and I can only restart it, damaging the filesystem(ext2). The same repeats on every boot. I can't break the execution of the startup scripts, so I can't change anything.
I can use the installation files to boot the system from Loadlin and I can mount the root filesystem, but I don't know how to make it not load X at startup.
/etc/inittab shows default runlevel 2. I thought this isn't graphical login, but I'm not sure. lso the videocard and monitor ARE properly configured and it's strange that they doesn't work.
Sure, I'll stay with Slackware on my machine.
The post seems too long, but I can't explain it shorter.
|
|
|
12-13-2004, 10:18 AM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
When you boot into X, just press crtl+alt+f1, this will take to a command line.
Then edit your /etc/inittab file. The first config option you come too should look like this:
id:4:initdefault:
Then change the 4 to a 3. I hvaen't used Debian, but I think that is the right runlevel to use. It should say in the comment above the option.
|
|
|
12-13-2004, 10:24 AM
|
#3
|
Member
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284
Original Poster
Rep:
|
Thank you for your fast reply, I know how to get to the console from X when the machine is responsible, but the keyboard doesn't work, nor the mouse.None of Ctrl-Alt-F1,F2, Ctrl-Alt-Backspace, Ctrl-Alt-plus/minus works.
And as I said inittab shows default runlevel to be 2. (not 4)
|
|
|
12-13-2004, 10:31 AM
|
#4
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
Using LILO? Hold down the CTRL key during boot. That'll force LILO to show the boot menu. Then you can force it to boot into a specific runlevel with imagename runlevel. For example, boot with Linux 1 will force it into runlevel 1.
I'm not 100% sure with Debian, since I'm having issues getting it working on my system, but I do know that CLI is runlevel 2 in Slackware, and was runlevel 3 in RedHat back when I was running that. (think back to RedHat 4... )
|
|
|
12-13-2004, 10:35 AM
|
#5
|
Member
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284
Original Poster
Rep:
|
But, how can I know if I should go to runlevel 3 or runlevel 4 or other?
For now I'll try them one by one to see which should work. thanks.
|
|
|
12-13-2004, 10:40 AM
|
#6
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
4 and 5 are usually X. 2 and 3 are usually CLI multi-user. 1 is CLI single-user.
|
|
|
12-13-2004, 12:36 PM
|
#7
|
Member
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284
Original Poster
Rep:
|
My Debian loads xdm in all of the runlevels I tried. However I readed the scripts one by one to find out what is what and I removed from /etc/rc2.d/ a file with xdm in the name and made the default runlevel to be 2. Then I booted the normal system and I had the normal text-mode login.
But I still have the feel that this is not the normal way.
|
|
|
12-13-2004, 05:53 PM
|
#8
|
Senior Member
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034
Rep:
|
HOWTO INSTALL DEBIAN
i know you slakies don't like to read, but this will solve your menial problems and tell you the 'why' of things.
HOWTO install Debian with the net-installer-rc2
http://www.linuxquestions.org/questi...hreadid=261506
|
|
|
12-13-2004, 07:11 PM
|
#9
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Re: HOWTO INSTALL DEBIAN
Nah, we really do like to read. Just that we don't want to read a 100 page doc on how to install a OS.
We do have to read the config files to configure stuff. Just makes more sense to do this:
vi /etc/inittab
<change run level>
:wq
And the problem is if fixed. Everything should be as easy as Slack.
|
|
|
12-13-2004, 08:44 PM
|
#10
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
FYI, in Debian runlevels 2-5 are identical after installation -- it's left for the admin to decide which runlevel to use for text mode and which one for GUI. So, tweaking /etc/inittab does little to no good unless you edit the symlinks in /etc/rc{2-5}.d/ , like iZvi has already noticed. BTW, I have also chosen in my Debian system runlevel 2 for text mode and runlevel 3 for GUI, but it's really up to yourself how you wish to set them.
You can add/remove/modify these symlinks with any means you wish -- there are even GUIs available for this, but Debian provides a command line tool called update-rc.d, that is quite handy if you know the syntax (it's documented in "man update-rc.d").
And Debian has also a tool for configuring X, "dpkg-reconfigure xserver-xfree86".
Please read the instructions before you try to install Debian, use the Debian tools for setting up Debian, and tell what version of Debian you are installing when you ask for help. This makes things easier for all of us.
|
|
|
12-13-2004, 11:40 PM
|
#11
|
LQ Newbie
Registered: Sep 2004
Location: China
Distribution: Debian 3.0r2 unstable
Posts: 28
Rep:
|
Why so traditional?
Just remove /etc/rc2.d/S99xdm.
If you want start it again, create a link from /etc/init.d/xdm:
ln -s /etc/init.d/xdm /etc/rc2.d/S99xdm
Or you can chmod -x /etc/init.d/xdm to disable xdm auto start.
|
|
|
12-14-2004, 05:50 AM
|
#12
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
Quote:
Just remove /etc/rc2.d/S99xdm.
If you want start it again, create a link from /etc/init.d/xdm:
ln -s /etc/init.d/xdm /etc/rc2.d/S99xdm
Or you can chmod -x /etc/init.d/xdm to disable xdm auto start.
|
Yes, these are the traditional methods and they should work just fine. However, you should stick to only one method (whichever you happen to choose) and not mix chmod'ing some services and manipulating others via symlinks, or you might end up in confusion.
To disable xdm the Debian way you'd first remove symlinks to /etc/init.d/xdm from all runlevels with "update-rc.d -f xdm remove". Then, if you wish, you can make xdm to start only when you enter runlevel 3 and to stop when you shutdown or reboot with "update-rc.d xdm start 99 3 . stop 01 0 6 .". There, now that was easy.
The Debian method, update-rc.d, is most useful on computers where the runlevels 2-5 are all customized to start different services. The more you edit different runlevels, the more you'll want to use a simple and efficient tool like update-rc.d. But if disabling xdm is about the only service tweak you're ever going to make, then by all means use any old method that you happen to know.
|
|
|
12-14-2004, 08:27 AM
|
#13
|
Member
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284
Original Poster
Rep:
|
Quote:
Originally posted by macondo
i know you slakies don't like to read, but this will solve your menial problems and tell you the 'why' of things.
|
I am not going to learn the "why of things" for the moment, but I like to read about Linux and progs, however the Debian docs are quite big and make sense when you read from the beginning to the end.
So in a case when time is important factor it is not apropriate to read enormouse docs. Also Slackware isn't that kind of distro, coming with GUI install and hardware autodetection, so a Slackware user should read a lot to configure everything and I wonder why you mentioned this about us not liking to read.
Thanks for the replies. The first running of debian was disappointing, but I see one needs to understand it (basically package management and its tools seem most important to be understood) in order to use and enjoy it. So the feel of disappointment disappeared after some hours with it.
It is complicated for unexperienced/first users with Debian and that's all.
One last thing I'll ask for is some links to good readings (docs,tuts, and books) for Debian to pass to my friend (It's early for me to dive in the deep waters of Debian ).
Last edited by iZvi; 12-14-2004 at 08:28 AM.
|
|
|
12-14-2004, 10:50 AM
|
#14
|
Senior Member
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034
Rep:
|
LOL! you prove my point...
"I am not going to learn the "why of things" for the moment, but I like to read about Linux and progs, however the Debian docs are quite big and make sense when you read from the beginning to the end."
Hehe! i can see you never clicked on the url, i gave you, it only takes 15 minutes to read, but you are not going to read it, because it's simpler to hack, and when something comes out wrong it's debian's fault.
The secret is in the installation. If you do it correctly, there's nothing to hack!
|
|
|
All times are GMT -5. The time now is 11:06 AM.
|
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
|
|