Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
09-20-2005, 07:52 PM
|
#1
|
Member
Registered: Feb 2005
Location: USA
Distribution: Gentoo
Posts: 72
Rep:
|
xdm doesn't login
First off, I'm running Slackware 10.2. It defaults to starting up to runlevel 3, but I edited my /etc/inittab file so it starts up to runlevel 4 (X login manager runlevel for Slack). I rebooted and it brought up XDM, which I expected since I haven't installed GDM yet. Here's the problem:
I enter my username and password. The screen goes blank, the hard drive does some stuff and it brings XDM back up! I know it's the right name/password (also tried root), but it just doesn't work. If I hit Ctrl+Alt+Backspace once, it half quits out of X, but then brings back XDM. If I hit it a second time, it brings me back to the console, but it doesn't echo anything I type. The only thing I know works it Ctrl+Alt+Delete to restart (and start the whole process over again).
I'm kinda in limbo right now because I have no way (that I know of) to change back my /etc/inittab file to runlevel 3! Please, is there a way to bypass X during startup or something so I can edit that darn file? I'd really not have to reinstall, ya know. Hope it's not one of those mistakes..
Last edited by Tylerious; 09-20-2005 at 07:54 PM.
|
|
|
09-20-2005, 10:50 PM
|
#2
|
Member
Registered: Dec 2003
Location: Roc City (Rochester-NY)
Distribution: Slacker 4 Life
Posts: 125
Rep:
|
Tylerious,
Here are a few things you should know:
1) You can choose the runleve you wish to boot to at the lilo boot prompt. So if you don't want to go to graphical user mode (runlevel four) you can simply type '3' after the lilo boot choice and it should boot up into runlevel 3. I would look like this
boot: linux 3
2) You can switch to another tty from the XDM login screen Simply press Ctrl + Alt + F6 and that should do the trick. To get back to the XDM login screen press Ctrl + Alt + F2.
3) If you have the Slack install disk, or an emergency disk, or any disk that you can boot off of and can read the file system type of your installation you can boot off of that, mount the partition with your /etc/inittab file on it, edit the inittab, umount, and reboot.
As for your actual problem, it sounds as if XDM doesn't know what window manager to hand things off to. Did you install a window manager/desktop environment?? If you did you should check the files in /etc/X11/xdm to make sure everything is as it should be. Especially the /etc/X11/xdm/Xresources file (make sure your window manager is listed there). If those files are OK, make sure your [homedir]/.xsession file is as it should be (again, make sure the command to load your window manager is present). If that file also contains what it should ... check the permissions on it. If that doesn't set you straight it's beyond my ability. Good luck.
-Tomaczar
|
|
|
09-21-2005, 09:48 AM
|
#3
|
Member
Registered: Feb 2005
Location: USA
Distribution: Gentoo
Posts: 72
Original Poster
Rep:
|
I tried switching tty. It didn't work.
You can specify runlevel with LILO? That's a very good thing to remember, just in case it happens again.
I booted from the install disk, started up with its basic kernel, mounted the partition, edited /etc/inittab with vi (gawd, I hate that program), etc. Just like you say, actually. Whoohoo..
Yes, I built Openbox. I had installed TWM and Blackbox with the install, but decided to uninstall Blackbox. However, I think it still tries to link to some its nonexistant files. I'll check the /etc/X11/xdm/Xresources file because I doubt Openbox is listed. Will the .Xsession file be the same as my .xinitrc file?
And thanks for the first bit. Got it back to runlevel 3 until I get things fixed.
|
|
|
09-21-2005, 12:42 PM
|
#4
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,214
|
Last edited by teckk; 09-21-2005 at 12:43 PM.
|
|
|
09-22-2005, 07:40 AM
|
#5
|
Member
Registered: Dec 2003
Location: Roc City (Rochester-NY)
Distribution: Slacker 4 Life
Posts: 125
Rep:
|
Tylerious,
Happy that you're up and running again. teckk's links are to an awesome resource that I didn't even know was out there and available for free. Also, if you haven't already, you'll probably want to check out Shilo's thread for a quick n' dirty on many of the things you'll need/want to do as a Slack admin. Remember the bounds of your abilities are defined by your willingness to research.
The file in your home directory is .xsession, not .Xsession (not sure if it would still work, but I doubt it). Yes, .xsession works similarly to .xinitrc with one major difference being .xinitrc is called when you initiate X from the command line (startx) however .xsession is called when you login using a runlevel 4 gui. /etc/X11/xdm/Xresources is simply an example file to give you a base of some of the things you'll need in your ~/.xsession.
I'm not quite sure why the tty switch didn't work, you may wish to try all the F# keys and see if you have a different combination/configuration. It's a great ability to have when you make harmless little changes to things like font directories, vid card drivers, /etc/X11/xorg.conf and the like and for on reason or another X doesn't appreciate your efforts.
Also, keep the boot disk/mount option on the top of your brain. I don't know what types of mistakes you've made that you've had to reinstall before however when I first came over to Slack I was reinstalling unnecessarily a couple times a week (kernel compiling is only fun when it works!!). After a while of that I figured there had to be a better way and started researching recovery options for some of my more common foul-ups. Turns out there were plenty of them and now I only re-install if I need to modify partitions (and there's ways around that as well, but I just miss re-installing from time to time *SMILE*). Best of Luck.
-Tomaczar
P.S. You should get used to vi (and even proficient if you can). Being a linux admin and hating vi is like being an auto mechanic and hating ratchets.
|
|
|
09-22-2005, 08:30 AM
|
#6
|
Member
Registered: Feb 2005
Location: USA
Distribution: Gentoo
Posts: 72
Original Poster
Rep:
|
Oh, xsession, not Xsession. I'll fix that. I couldn't see anyplace to list my window manager in the Xresources file, but there was a list in the /etc/X11/xdm/Xsession. I added it there; didn't work, but maybe it will once I get the xsession file renamed.
I'll remember the Slackware book, but I won't try loading it on that box again until I get some more memory installed, heh.
I've always been changing tty with Alt+Fwhatever, not Ctrl+Alt+Fwhatever. Wow, I swear I'll get the hang of this sooner or later.
I haven't had to reinstall yet due to mistakes. Besides the mistake of Debian, that is. I've gotten better with vi, but it doesn't help that the documentation is so confusing. I prefer GNU's Nano personally, since I don't need to perform all sorts of funky commands on my stuff.
Edit:
Oops, didn't make it executable. All better now, thanks.
Last edited by Tylerious; 09-23-2005 at 10:05 AM.
|
|
|
All times are GMT -5. The time now is 04:12 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
|
|