Solved

Can't Always Start X-Windows Automatically

Posted on 2007-03-29
3
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Time Sync Best Practice 13 74
regular expression help for sed command 5 62
Edit smb.conf-file in Samba om a ReadyNAS 3 75
unix shell script 4 39
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

739 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