LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2007, 12:22 PM   #1
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Rep: Reputation: 0
X Login - Is this possible


Sometimes when I do something on the system, my xorg.conf file gets somehow changed back to the original using the nv for graphics.

Here is what I want. If I reboot the system sometimes, the xorg might be overwritten to the orig configuration, one using the nv driver. If that happens and I boot in X, I can't see anything on the screen. It's waiting for me to login.

Is it possible to have the login, timeout after so many seconds and have it boot back to a console login?


thanks
 
Old 04-28-2007, 05:02 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
How is your original xorg.conf being overwritten? It should be left alone during a reboot. I'm pretty sure that the only time it should even be messed with is when you startx or modify it by hand. When it's waiting for you to login, is it giving you an actual login screen? You may want to just try setting your init to go to a text login runlevel, not sure how to do it on your distro.

Last edited by manwichmakesameal; 04-28-2007 at 05:04 PM.
 
Old 04-28-2007, 05:19 PM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
First, that's strange that your xorg.conf file gets modified. Can't you fix this?
And then, for the timeout, how do "boot in X"?
 
Old 04-28-2007, 07:37 PM   #4
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Original Poster
Rep: Reputation: 0
don't rightly know

I don't know how it got changed, only that it did. I'm wondering if the FAM service has something to do with it.

How I boot to X, is that after everything loads in via the kernel, it runs KDM.
 
Old 04-29-2007, 11:59 AM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
rc.local

Well, you could always do something like
Code:
#!/bin/bash\ cp -v /path/to/xorg/that/you/want.conf /etc/X11/xorg.conf
In your /etc/rc.local or whatever your distro uses. And you could modify it to check timestamps to see if you actually need to replace it or not.
 
Old 04-29-2007, 12:53 PM   #6
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by manwichmakesameal
How is your original xorg.conf being overwritten? It should be left alone during a reboot. I'm pretty sure that the only time it should even be messed with is when you startx or modify it by hand. When it's waiting for you to login, is it giving you an actual login screen? You may want to just try setting your init to go to a text login runlevel, not sure how to do it on your distro.
to boot into the command line interface you change the default run levle to 3
in the /etc/inittab file in all distros
MAKE A BACK UP COPY AND A BOOT DISK BEFOR YOU EVEN THINK ABOUT TOUCHING /etc/inittab
be extreemly careful with /etc/inittab ANY typo in this file could cause your system to NOT BOOT

Last edited by rob.rice; 04-29-2007 at 12:59 PM.
 
Old 04-29-2007, 01:02 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think what happened is you upgraded the distro somehow, probably intentionally, and when you added the new packages it reset xorg to use the nv driver. This can happen. If you are at the x terminal screen and you can't see anything, hit CTRL+ALT+F1 to get another terminal login. Then, fix the problem by reinstalling the nvidia driver using the xorg configuration tool for your distro. If you didn't change kernels you can edit /etc/X11/xorg.conf and switch to the nvidia driver everywhere it says nv in that file. Then:

ps aux | grep 'kdm'
kill <procid>

Where procid is the first number in the row listing kdm.

Or

ps aux | grep 'gdm'
kill <procid>

Then:

gdm

or

kdm

should start X.
 
Old 04-29-2007, 01:06 PM   #8
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
.. if you don't want your xorg.conf modified, why not just remove write permissions on it?

@ rob.rice:

It's just a configuration file .. don't be so dramatic

P.S.: I can boot runlevel 3 and *still* have XDM/KDM/GDM/whatever be brought up on boot up as a regular init script. So I think we should know more about the OP's distribution.

Last edited by reverse; 04-29-2007 at 01:07 PM.
 
Old 04-29-2007, 01:40 PM   #9
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by reverse
.. if you don't want your xorg.conf modified, why not just remove write permissions on it?

@ rob.rice:

It's just a configuration file .. don't be so dramatic

P.S.: I can boot runlevel 3 and *still* have XDM/KDM/GDM/whatever be brought up on boot up as a regular init script. So I think we should know more about the OP's distribution.
the system dosn't check permissions when it is running as root
at boot time the system is running as though root was running the scripts and the file could still be over written

try setting your default run levle to 3 unless you have changed the levle 3 part of the boot scripts or the levle 3 boot scripts it will boot to the CLI and what ever GDM,KDM and XDM can be run from the command line only after you login

there are some things that are standard in all distros

/etc/inittab is the root of all boot scripts and the one that can force you to have to reinstll should it get messed up if you don't have some other way to boot and a back up copy
I think there is way too little strees around here put on backing up the /etc files files befor they are chainged

AwesomeMachine
IF your running slackware you have only 1 vt you can log in to should something go wrong with
booting in to X it's on vt 6

Last edited by rob.rice; 04-29-2007 at 02:14 PM.
 
Old 04-30-2007, 12:56 AM   #10
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
@ rob.rice:

Look, grab Gentoo, emerge gdm/kdm/whatever you want. Make sure your system has the default runlevel set to "3". Then issue the following:

Code:
rc-update add gdm default
That will bring up gdm when you boot. Now reboot. Now see that you have GDM being brought up on boot AND you are in runlevel 3.
 
Old 05-01-2007, 06:37 AM   #11
kennybob
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Etch 4.0
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up Great Suggestions

Thanks for all the great suggestions. I think I will change the default boot up to runlevel 3.


Thanks again.
 
Old 05-01-2007, 09:03 AM   #12
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by reverse
@ rob.rice:

Look, grab Gentoo, emerge gdm/kdm/whatever you want. Make sure your system has the default runlevel set to "3". Then issue the following:

Code:
rc-update add gdm default
That will bring up gdm when you boot. Now reboot. Now see that you have GDM being brought up on boot AND you are in runlevel 3.
I run slackware-11.0 I don't have an rc-update file any where on my system
I checked as root I ran "find / -name rc-update -print "
But my best guess about what this command dose on a gentoo or a redhat like
distro would be to add gdm to one of the start up scripts or to add a script
to /etc/rc3.d or what ever I see no contradiction to what I sed the start up scripts are still being changed
Slack has just one set of start up scripts not one set for each run levle
so if the start up scripts get messed up for one run levle they are most likly messed up for all run levles so I quickly got in to the habit of backing up my files in /etc

there are times when run levle 3 is the place to be like builing a new kernel or some other large program let the compiller have the resources that X would use or reserve

Last edited by rob.rice; 05-01-2007 at 09:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Key repeat on graphical login screen is too fast, Its almost impossible to login. FC5 spacecoyote Fedora 8 05-13-2010 08:53 AM
Cannot login after upgrading to kde 3.4, brings me back to login screen whitelinux Linux - Software 1 08-23-2006 07:53 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
Computer freeze after graphical login and comand line login TheBrick Linux - Software 3 04-20-2006 10:53 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration