LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Probably Simple: startx > no devices found (https://www.linuxquestions.org/questions/linux-server-73/probably-simple-startx-no-devices-found-619622/)

Pyro In A Cage 02-08-2008 09:47 AM

(EE) AIGLX: Screen 0 is not DRI capable
 
I am getting the following output from startx

Quote:

hostname: Unknown host
xauth: creating new authority file /root/.serverauth.13085


X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN
Current Operating System: Linux bench 2.6.23-gentoo-r6 #1 SMP Mon Feb 4 15:42:07 Local time zone must be set--see zic m i686
Build Date: 05 February 2008
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 Feb 8 07:40:31 2008
(==) Using config file: "/etc/X11/xorg.conf"
(EE) No devices detected.

Fatal server error:
no screens found
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
I would post my configuration file but I can't figure out how to copy it.
I am using nano. What would be the equivalent of ^ac in windows for select_all+copy?

{BBI}Nexus{BBI} 02-08-2008 10:00 AM

You really should check the wiki.x.org as suggested! http://wiki.x.org/wiki/FAQErrorMessa...b4f1c2724244ed scroll down to: I keep getting the message: "no screens found".

Pyro In A Cage 02-08-2008 10:22 AM

Okay, thank you.

Now X starts, but it's just a gray screen with a black X in the middle.

Code:

X -fbbpp 8 -depth 8
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/bench:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN
Current Operating System: Linux bench 2.6.23-gentoo-r6 #1 SMP Mon Feb 4 15:42:07 Local time zone must be set--see zic m i686
Build Date: 05 February 2008
        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 Feb  8 08:20:11 2008
(==) Using config file: "/root/xorg.conf"
(II) Module already built-in
(II) Module already built-in
(EE) AIGLX: Screen 0 is not DRI capable
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc


{BBI}Nexus{BBI} 02-08-2008 12:10 PM

This AIGLX: Screen 0 is not DRI capable could be the problem. You could maybe try some of the suggestions in this thread: http://www.linuxquestions.org/questi...ver...-498247/ or google: AIGLX: Screen 0 is not DRI capable or do a search in this forum. If you're not bothered about using AIGLX then change your driver to vesa.

JimBass 02-08-2008 02:09 PM

Quote:

xauth: creating new authority file /root/.serverauth.13085
You should NEVER run X windows as root. That is the height of foolishness. Most distros don't even allow a root X session, unless you modify some configs. The reason for that is anything you do as root can affect the entire system. A large part of what makes linux so much more secure than certain other (Redmond based) systems is the longstanding security it has, including the use of non-root user accounts, which can't write or abuse system files. Running as user jim all I can mess up is /home/jim if I click on something malicious on a website. Running as root, your entire system can become compromised in a heartbeat. It is not worth it. Run as a user, and if you need root for a task, give the password.

Peace,
JimBass

rg.viza 02-08-2008 03:33 PM

Quote:

Originally Posted by JimBass (Post 3050688)
You should NEVER run X windows as root. That is the height of foolishness. Most distros don't even allow a root X session, unless you modify some configs. The reason for that is anything you do as root can affect the entire system. A large part of what makes linux so much more secure than certain other (Redmond based) systems is the longstanding security it has, including the use of non-root user accounts, which can't write or abuse system files. Running as user jim all I can mess up is /home/jim if I click on something malicious on a website. Running as root, your entire system can become compromised in a heartbeat. It is not worth it. Run as a user, and if you need root for a task, give the password.

Peace,
JimBass

Anyone that's ever done an
# rm -rf ./*
from a root shell knows this to be true. A malicious script can do this pretty easy. You shouldn't even unzip a file as root (unless you made the gz yourself) if you know what's good for you. That .05% chance that you will screw up hurts pretty bad when it actually happens on a system that matters.

I suggest you grab a distro install it and try this. Then imagine the server you just destroyed was your company's main db server ; )

-Viz

Pyro In A Cage 02-08-2008 07:05 PM

I'm about to leave but I will try using the vesa driver when I get back.

I will also switch to a normal user.
The reason I stayed root is because I thought the main reason non-root account usage was stressed so much was because of malware. Because of that, I remained root based on principle, since this will be a local server and there would be no reason for it to get any virii.
But I didn't think of the fact that I am fairly inexperienced with linux and might accidentally mess something up.


Thanks for your advice. If anyone else has any, please feel free to contribute and I will look at it when I get back.

Pyro In A Cage 02-09-2008 08:24 AM

K I did what was suggested, and fixed a couple more following errors by googling.

Now, I get the following output from a remote console, and a blank screen on the server.
Quote:

skyler@bench /etc/X11 $ startx
hostname: Unknown host
xauth: creating new authority file /home/skyler/.serverauth.10535


X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN
Current Operating System: Linux bench 2.6.23-gentoo-r6 #1 SMP Mon Feb 4 15:42:07 Local time zone must be set--see zic m i686
Build Date: 05 February 2008
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: Sat Feb 9 06:20:45 2008
(==) Using config file: "/etc/X11/xorg.conf"
(II) Module already built-in
(EE) AIGLX: Screen 0 is not DRI capable
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
xset: bad font path element (#62), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
startkde: Running kpersonalizer...
/usr/bin/iceauth: creating new authority file /home/skyler/.ICEauthority
Do you think it's the aiglx error causing this problem?

JimBass 02-09-2008 01:09 PM

Ok, two things. First off, when you say this:

Quote:

I get the following output from a remote console, and a blank screen on the server
do you mean that you issue the startx command over a ssh session and expect the X session to happen on the screen? That won't work. All linuxes are true multi-user machines. That means if you startx over an ssh session, it only exists for that session, not visible on the machine. Think of it this way, if 4 users ssh in and all startx, which one would the server show on a monitor connected to it? The answer is none of them. If you want an X session to be on a connected monitor, you have to sign in locally and startx that way, or play with exporting the display variable to have it appear on a monitor. It will not just magically happen. Also, you have to have xforwarding enabled in the sshd_config file to get an x session forwarded over ssh.

Secondly to that, you have 2 errors that happen during the startup. The only one that is listed as a major error is this:

Code:

(EE) AIGLX: Screen 0 is not DRI capable
I don't know what AIGLX is, but xorg doesn't like something about it. I suggest you do as the startup output says, and check http://wiki.x.org. Also you have a problem with fonts, it complains about the fonts not existing, but it can work around that.

Peace,
JimBass

Pyro In A Cage 02-09-2008 05:46 PM

Yes, that's what I mean. I know you know alot more about linux than I do, but I don't know what to tell you because when I issue the startx command from liquidfx, I get output on that console and a blank screen on the bench.
(liquidfx is this computer, and bench is the server I installed gentoo on)

The reason I do it that way is so that I can see what's going on. If I issue the startx command locally on bench, I can't see the output because of the blank screen. I'm sure there's some command to work around that, but I don't know what it is.


I know that the error is with AIGLX, but I don't know what it is either.
I have checked wiki.x.org, and also googled it. I always look around before asking for help, hence my small post count here.

I noticed the font errors, but that's another problem for another time; right now I just want to get this working. All of the non-fatal errors can wait.

JimBass 02-09-2008 08:53 PM

You have multiple sources of problems doing things that way. In addition to the problems getting X to run normally, you have the additional problem of getting it to run over a ssh session.

Everything that is appearing over the ssh session is also getting logged to /var/log/Xorg.0.log, so you don't need to worry about it not being logged. The entire output that you are finding over the ssh session will also be in that log file.

So in the first place, please issue the startx command on "the bench".

Also, I remember way back when the "startx" would give a graphical screen, but instead of starting gnome or KDE or whatever, it just gave you the bare minimum of X environments, which was a "blank" blue-green-grayish screen, no icons, no start button, or anything of that nature. IIRC, you had to right-click to get a choice of creating anything, like a terminal session.

Secondly, if startx fails on "the bench", then comment out the line in /etc/X11/xorg.conf that AIGLX, and see if that improves things any.

Peace,
JimBass

Pyro In A Cage 02-09-2008 10:07 PM

I'm doing it locally now.

There is nothing in xorg.conf that says AIGLX, so I can't comment it out.

Also, the blank screen is different when I use X instead of startx.

-startx results in just a black screen
-X results in a weird gray screen with a horizontal black bar about an inch away from the left edge of the screen.

JimBass 02-10-2008 10:40 AM

That is odd, what is AIGLX? The xorg.conf file must be finding it somewhere, or it wouldn't call it. Can you post the xorg.conf file so we can have a look at it?

Did you install either Gnome, KDE, or any of the other multitudes of X window dressings that exist? If so, have you tried starting them directly, like startkde or startgnome rather than startx? I had never even heard of X being a command. That's a new one on me.

Peace,
JimBass

Pyro In A Cage 02-10-2008 02:22 PM

Yes, I have KDE installed. No, I haven't tried that; I thought X had to be run first.
Yeah X is a command.
I can't post my config file, I have no way of uploading it. That's why I was askign what the linux equivalent of ^ac is.

This is the output of startkde:

Quote:

skyler@bench ~ $ startkde
xsetroot: unable to open display ''
xset: unable to open display ""
xset: unable to open display ""
xsetroot: unable to open display ''
startkde: Starting up...
ksplash: cannot connect to X server
xprop: unable to open display ''
usage: xprop [-options ...] [[format [dformat]] atom] ...

where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever

kdeinit: Aborting. $DISPLAY is not set.
Warning: connect() failed: : No such file or directory
ksmserver: cannot connect to X server
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
startkde: Running shutdown scripts...
xprop: unable to open display ''
usage: xprop [-options ...] [[format [dformat]] atom] ...

JimBass 02-10-2008 03:27 PM

Yes you can post it, by copying the file across a ssh session to a machine with functioning graphical environment.

This command (issued from the liquidfx computer) would copy the xorg.conf file I want to see onto the liquidfx machine. I'll use pyro_in_a_cage as your username on both machines, obviously replace that with your real username(s). Also, if "thebench" isn't resolved by name, but by IP, than replace thebench with the IP.

Code:

scp pyro_in_a_cage@thebench:/etc/X11/xorg.conf /home/pyro_in_a_cage/
That will put the file in your home directory on liquidfx, and from there you can open the file and copy/paste it into here.

I expect the problem is one line in xorg that needs to be edited out.

Peace,
JimBass


All times are GMT -5. The time now is 05:07 PM.