Solved

Can't Always Start X-Windows Automatically

Posted on 2007-03-29
3
336 Views
Last Modified: 2013-12-27
I use my PC daily. For some strange reason, sometimes I end up at a black console screen with a text-based, localhost login just after booting up. While booting, the GUI seems to be working just fine, yet no GUI login. This problem occurs usually 1 to 2 times a week. When it happens, these are the steps that I must employ, in order to get the graphical interface working:

At the console, which comes up 1 to 2 times a week at boot-up, login as root.

Change my directory to /tmp

rm .X0-lock

Delete regular file .X0-lock [y], then tap ENTER.

CTRL-ALT-DEL to reboot WITHOUT logging-out.

If I follow the above EXACTLY, I'll get my GUI login at the next boot. What can I do, so that this problem no longer requires the above steps.

My os is Fedora 6.0.
SELinux = 'Enforcing.'
User mode = 'Single User.'
Processor = 3.2 GHz, Pentium 4, with EM64T (single core Prescott).
RAM = 2 GB.
Graphics card = NVidia NX6600GT, with 128 MB DDR3, DVI, and HDTV-ready.
200 GB Maxtor SATA, with 1 Vol Group (4 Volumes) on LVM.

Much thanks in advance for any help.
0
Comment
Question by:rgoff
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:_iskywalker_
_iskywalker_ earned 50 total points
ID: 18822080
what says your /var/log/Xorg.0.log
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 450 total points
ID: 18827061
X should always remove its lock file if shut down properly. How do you shut down your system? Next time it happens, if you restart X then you need to look at /var/log/Xorg.0.log.old, because /var/log/Xorg.0.log now refers to your current session
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 450 total points
ID: 18827082
If you find that /var/log/Xorg.0.log.old refers to the session that stopped because the lock file existed, you have to go back to the Xorg.0.log before that. When the problem occurs, from the text console (i.e. *before* CTRL-ALT-DEL), do this:

cd /var/log
mv Xorg.0.log.old Xorg.0.log.old.old

(choice of new name of Xorg.0.log.old is up to you). This log will tell you how X shut down when it didn't delete the lock file.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php ssh2_scp_send 1 61
High Bandwidth Usage 6 58
CentOS/RHEL 7 Linux maillog worldwide readable 2 67
Adding more CPU cores to a Linux VM 5 101
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question