LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2012, 05:04 PM   #1
haziz
Member
 
Registered: Jan 2012
Location: /dev/null
Distribution: Slackware, Fedora, Debian, Arch, Ubuntu
Posts: 101

Rep: Reputation: 4
Startx works for root but freezes for user?


While using Slackware 13.37 startx (which invokes xfce) failed (it did work in the past) and produces a black screen when started as a regular user (it gives a black screen, I hard rebooted the machine but this behavior continues).

If I startx however as root it continues to work normally.

Machine is an Asus EEE Box B202 (Intel Atom N270 processor).

Worst case scenario, I likely can generate a second user (where startx presumably works) and migrate some of my home subdirectories to that, but this is a pain since I finally have tweaked my setup to my satisfaction. I usually work most of the time at the command line, and invoke startx only when needed.

Thanks.
 
Old 04-15-2012, 05:13 PM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Ok so if you didn't have this problem in the past I'm going to assume your user is part of the necessary groups. With that assumption, does a cursor show up (like an X for a cursor instead of an arrow?)

From the description I'd say just run "xwmconfig" as the user who's having problems and select the <gui>.xinitrc file and see if startx works after that.
 
Old 04-16-2012, 02:23 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
What did you do before this happened ? Did you upgrade any packages like xorg-server ? Sometimes the suid root is not set on /usr/bin/Xorg.

Code:
bash-4.1$ ls -l /usr/bin/Xorg
-rwsr-xr-x 1 root root 1934344 Mar 18  2011 /usr/bin/Xorg
Don't restart if it fails, press Ctrl-Alt-Backspace and read what it says. Also check /var/log/Xorg.0.log.
 
Old 04-16-2012, 08:59 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I had a similar issue a few days back, for some reason when starting X as my user it didn't work. The reason was that it had problems with the .Xauthority files in my home-directory. After deleting them it worked again. May be you just try that.
 
1 members found this post helpful.
Old 04-16-2012, 06:47 PM   #5
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
had same here, thanks TobiSGD

I have slackware 64 current running in vbox current on a couple different computers.

On one computer after upgrades couple weeks ago I was only able to get into KDE via root, someone else said something about not using xorg.conf, I renamed it to something other and was able to get in KDE as regular user. Other computer everything worked fine no problem.

After all the stuff with current today, I removed .Xauthority files in my home-directory and put back xorg.conf now I can get in as regular user.
 
  


Reply



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
startx works as root but not as regular user Retne Slackware 14 07-04-2009 06:19 PM
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 03:41 PM
startx works for root but not users aldenfuchs Red Hat 3 04-01-2005 10:28 AM
Can startx as root, not as User Swampy Debian 4 03-19-2005 05:04 AM
startx only works as root rbrasil Debian 3 12-10-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:25 PM.

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
Open Source Consulting | Domain Registration