LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2009, 10:41 PM   #1
mcbenus
LQ Newbie
 
Registered: Feb 2007
Posts: 24

Rep: Reputation: 15
Cannot load X for user


Hi,

I had Linux/XP dual boot working well on my PC. I then upgraded the PC, but instead of installing the OS again, I simply swapped the hard drives. My Linux seem to not like the new hardware -

First, when I login as a user, the Desktop (Gnome) doesn't start. I then switched to shell (alt+ctrl+F1) and tried 'startx', but got an error that the file /tmp/X0-lock is the problem. I was able to remove the X0-lock file only after I logged in as Admin. Then 'startx' works fine. But the next time I restart the computer, the same problem happens again.

The question: What is th /tmp/X0-lock file? why is it there? How can I solve this for good?

Additionally, Linux doesn't recognize some of the hardware. For example, the internet isn't working.

My question: Can I make Linux to try and reconfigure all the hardware, as if it was the first time installation? Specifically, how do I configure the internet to work? (on the first compuetr it just worked as soon as I plugged it in).

Thanks!
 
Old 08-31-2009, 10:50 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,229

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
WHAT linux distro are you using ???
are the hard drives in the same ORDER , as they were ?
 
Old 09-01-2009, 07:48 AM   #3
mcbenus
LQ Newbie
 
Registered: Feb 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for helping.

I am using Red Hat Enterprise 9. I have only one hard drive which is partitioned. I don't remember how was the previous order, but I am assuming that this is not the problem, because I can log in as root, the file system looks fine, etc. It is only this one user which the Desktop isn't loading (but works fine in shell), and when I delete the /tmp/X0-lock file (as admin), I can also 'startx' and everything works perfect. Any ideas??

Quote:
Originally Posted by John VV View Post
WHAT linux distro are you using ???
are the hard drives in the same ORDER , as they were ?
 
Old 09-01-2009, 08:23 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I did not know that there is already a RH Enterprise 9. Sure it's not the old RedHat 9 (from 2002 or so) ? If it's that version, it's no longer supported so if there is no strong reason to stick with it I would considering getting a more recent distro. This is both for security as well as for hardware support (your network card).

The lock file is there because X has probably crashed during the boot. You can check the logs (probably /var/log/Xorg.0.log). I can not say why a second start of X (using startx) does not show the issue.

When swapping, what did change? New video card? Probably a bit to new


And yes, there is a tool to reconfigure some of the hardware. From my RH8 book, you can try XFREE86 -configure on the command line. Or system settings -> display in the GUI. Both only apply to the graphics part.
First make a backup of /etc/X11/XF86Config (or maybe /etc/X11/xorg.conf) !

Last edited by Wim Sturkenboom; 09-01-2009 at 08:24 AM.
 
Old 09-01-2009, 09:29 AM   #5
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Remove /tmp/X0-lock file manually, then try to start x-server with startx. Then check /var/log/Xorg.0.log for errors (grep 'EE' /var/log/Xorg.0.log).
 
Old 09-01-2009, 01:41 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,229

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
rh9 is SO OLD -- VERY OLD that it will NOT RUN ON NEW HARDWARE

if you want to stick with red hat then install the current RHEL 5.3 ( red hat did a name change after rh9 )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load a user from LiveCD Cichlid Linux - Software 3 06-01-2009 08:43 PM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 04:00 PM
Can't Load KDE for USER ClericPreston Linux - Newbie 6 07-01-2004 11:51 PM
startx does not load when logged in as a normal user? xunzi Linux - Newbie 0 06-29-2004 09:37 AM
Squirrelmail: How can I load user defined themes? DJ_Cyberdance Linux - Software 0 12-12-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration