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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-29-2004, 12:50 AM
|
#1
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Rep:
|
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
|
|
|
10-29-2004, 08:25 PM
|
#2
|
Member
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720
Rep:
|
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
|
|
|
10-31-2004, 11:10 PM
|
#3
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Original Poster
Rep:
|
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.
|
|
|
12-10-2004, 11:04 PM
|
#4
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Original Poster
Rep:
|
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
|
|
|
12-12-2004, 05:57 AM
|
#5
|
Member
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388
Rep:
|
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.
|
|
|
12-12-2004, 11:55 PM
|
#6
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Original Poster
Rep:
|
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
|
|
|
01-28-2005, 05:30 AM
|
#7
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 06:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|