LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2004, 12:50 AM   #1
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Rep: Reputation: 30
Unable to activate XServer in a particular login.


When I try to run "startx" from my commandline, I am unable to start the application.

I am given the message "Waiting for XServer to shutdown" and sent to the command prompt.

The interesting thing is, when I do the same from another login, I am able to get it done without any difficulty.

Mufy
 
Old 10-29-2004, 08:25 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
It most likely has a temp file laying around.
I have no clue where they are, but with strace you can look to see what file it checks right before it gives you that message. Go, and delete it. Most likely something in /tmp
 
Old 10-31-2004, 11:10 PM   #3
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
I did the 'strace', but was not able to make anything out of it. My effort to get the screenshot into this post of mine did not succeed, as I was unable to copy-paste the contents.
 
Old 12-10-2004, 11:04 PM   #4
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
I noticed an interesting coincidence. All the logins from which I had used Yahoo! Chat had the problem. I wasn't able to execute startx again in those login names.

Mufy
 
Old 12-12-2004, 05:57 AM   #5
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Problem is probably caused by a lockfile or temp file, as mentioned.

Check what "ls -la" says... make sure there are no files owner by "root" in your homedir. Try
"find /home/yourhome -user root" and check what is found. Also check /tmp for useless tempfiles.

I once got one of my own tempfiles replaced by root's tempfile when I did "sudo <graphical_program>". Couldn't log in to Gnome from GDM before it was removed.
 
Old 12-12-2004, 11:55 PM   #6
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
This is all what I have done so far:

1) I changed all the ownership of directories and files in my home directory to my username.
2) Removed directories/file(s) from the /tmp folder that had my ownership.
3) Deleted .X0-lock file from the /tmp folder

Result:
No difference!!! I am still not able to run startx under my user name.

Regards,
Mufy
 
Old 01-28-2005, 05:30 AM   #7
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
Updates folks,

It is about time that I found a solution to my problem. I realized, or stumbled upon, to be more precise, on the solution. I was able to get back the GUI after deleting the file .Xauthority from all the logins where I had the problem.

Any idea why that particular file was causing this?
 
  


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
Unable to Activate FAM under YaST (SuSE 9.2) caesium5 SUSE / openSUSE 1 09-02-2005 01:22 AM
Unable to activate eri0 and ce0 interfaces Elec490 Linux - Networking 0 08-29-2005 05:14 PM
unable to activate HD DMA-modes WalGrom Linux - Hardware 2 04-30-2005 06:41 AM
Unable to activate eth0 sined Fedora 1 06-13-2004 12:00 AM
Unable to activate bcm 440x etho pbhat Linux - Networking 0 04-19-2004 12:27 AM


All times are GMT -5. The time now is 11:03 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