LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't startx as ordinary user (https://www.linuxquestions.org/questions/slackware-14/cant-startx-as-ordinary-user-303372/)

WoodLark 03-18-2005 09:05 PM

Can't startx as ordinary user
 
I'm using Slackware 10.1 with KDE. As root, I can startx with no problem. However as an ordinary user x starts up then immediately shuts down. The following is an exercpt from the log file /var/log/X.org.log:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/jupiter:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.4.29 i686 [ELF]
Current Operating System: Linux jupiter 2.4.29 #6 Thu Jan 20 16:30:37 PST 2005 i686
Build Date: 23 January 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar 18 18:01:40 2005
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) | |-->Monitor "My Monitor"
(**) | |-->Device "VESA Framebuffer"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(WW) `fonts.dir' not found (or not valid) in "/usr/X11R6/lib/X11/fonts/local/".
Entry deleted from font path.
(Run 'mkfontdir' on "/usr/X11R6/lib/X11/fonts/local/").

Does anyone have a suggestion as to what the problem might be?

acidjuice 03-18-2005 10:49 PM

might be a permission problem.

well, did you Run 'mkfontdir' on "/usr/X11R6/lib/X11/fonts/local as suggested?

linuxLuser 03-18-2005 11:03 PM

Permissions is what I'm thinking too.

I don't know much about Slackware, but it is common for distro to have groups for all kinds of activities for the system. You might have like a "network" or "net" group which a user must be a member of to use network stuff. The reason I'm thinking this is because X server uses some networking stuff (like the loopback) so the user just might need to have network access to use X.

Also (kind of a random thought), does X need to be "suid" or something? I don't enough about it to know. Maybe check that. Mine gives me
Code:

$ ll /usr/bin/X
lrwxrwxrwx  1 root root 4 Mar 16 09:19 /usr/bin/X -> Xorg
 $ file /usr/bin/Xorg
/usr/bin/Xorg: setuid writable, executable, regular file, no read permission

I don't think I'm any help beyond that.
Can you maybe do
Code:

$ cat /var/log/Xorg.0.log | grep \(EE\)
This should show all the lines that contain error messages.

-- the dudeman

WoodLark 03-19-2005 11:49 AM

Thanks to you both for your help. I did finally find the solution and it was a permissions issue as you suspected. The
executable startkde was not being found because the user had no rights to the /opt directory and startkde was located
in /opt/kde/bin/.

ambelos 03-19-2005 02:00 PM

hi...i've just installed slackware 10.1 on an older computer of mine. this is my first time using slackware...i kinda didn't like the cmd base installation, no gui?

anyways, i'm having the same trouble, in that X wont start. i'm getting a warning saying:
VESA(0): Failed to set up write-combining range (0xd4000000, 0x7f0000)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing form list!

does this mean it's got a problem with my monitor? or does this seem to be similar to the previous posters problem?

thnx

linuxLuser 03-20-2005 08:35 AM

run xf86config
 
Seems like your monitor was not correctly detected and/or setup. What I would do is configure X until you get it right:
Code:

# xf86config
This can be launched from the console and you can run it as many times as you need until you get the options right.

It might be good if you printed out all the error messages you get from the log file (see what I posted above)...that is, if you wanted to be more explicit.

A lot of times, though, xf86config won't get everything, so you'll have to look through the config file yourself and make sure everything's the way it should be. But try reconfiguring it first.

-- the dudeman

calcon 03-20-2005 09:33 AM

I think that for slackware the command to setup x is actually xorgconfig

calcon

ambelos 03-20-2005 10:04 AM

it is xorgconfig...but i don't know how to setup a monitor. I am using what i think is a samtron 75v. i looked up online for the refreshrates and stuff, but i kinda got confused. what should i put for the refresh rate values? also, how can i figure out what kind of video card i have. This is an OLD computer that used to be my sisters until i kicked her off so that i finaly have linux box to screw with.

thnx

linuxLuser 03-26-2005 04:40 PM

* When it asks for monitor type, choose "11. Enter your own horizontal sync range"
* Then type: "30-70"
* Choose "5. Enter your own vertical sync range"
* Type: "50-160"
* For identification, you can put whatever you want. So, to be a little descriptive, put something like "Samtron 75v"

At this point, you'd choose your video card, which you're saying that you don't know yet.

Most (IMHO any good) distro will have the "pciutils" package installed, which gives you a nice little command:
Code:

# lspci
This will spit out a lot of hardware info. Don't worry, the relivent parts are human-readable. You'll probably find what you're looking for that way. You can use the -v and -vv switches to get even more info if you REALLY need to (you don't need to unless you're trying to make a driver or something).

Hope that helps out.

DISCLAIMER: I got the horizontal and vertical sync rates from http://www.samtron.com/product/75v_spec.html. Check this site to make sure that I am looking at the specs for your monitor (and not somebody else's).

-- the dudeman


All times are GMT -5. The time now is 03:11 AM.