DebianThis 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.
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.
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.
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)
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... )
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.
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.
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.
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 ).
"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!
Yes, Debian package management with apt-get (or Aptitude or Synaptic) is perhaps the most important part to learn if your friend wants to enjoy his/her ride with Debian. (Although I agree with macondo that a clean install makes the rest of the journey much smoother.) Here's the official APT HOWTO: http://www.debian.org/doc/manuals/ap.../index.en.html
And, finally, here's a useful tip: Don't forget to install the apt-listbugs package. It will warn about packages that are reported to be buggy. Perhaps I need not emphasize that it is NOT recommendable to install the packages that apt-listbugs warns about, unless your friend decidedly wants to break his/her Debian system.
I hope you got the X startup problem solved. The X log file in /var/log/ often helps to locate such problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.