Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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).
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??
Originally Posted by John VV
WHAT linux distro are you using ???
are the hard drives in the same ORDER , as they were ?
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.