BlackWidower
December 19th, 2011, 01:22 AM
So I have a server running Ubuntu that I tried installing a GUI on. LXDE to be precise. My goal here was to use as few packages as possible to get a lightwieght OS, leaving more room for media. So I installed the minimal components, lxde-core and initx, and ran startx.
I think you know what's coming.
X: user not authorized to run the X server, aborting.
Natch. So I tried using xauth to get full authorization for the required user using the following command...
generate :0 . trusted
...and I get another error.
unable to open display ":0".
Of course I can open the display using root in another session, and it appears to work fine, as I get the following message:
authorization id is 265
...doesn't look like an error. But when I start X server using my user account, I get the same old error.
X: user not authorized to run the X server, aborting.
Now, of course I could just install lxdm and start X that way. But I don't want to do that for two reasons. One, I'll have to log in through vnc every time I reboot, which is annoying; and two, it means I'll need to run X all the time, even when I don't need it. Which is a waste in my mind.
So here's my question: How do I give a user authority to start X?
It seems like it should be a pretty simple task. But it appears not. Am I using the wrong command?
I think you know what's coming.
X: user not authorized to run the X server, aborting.
Natch. So I tried using xauth to get full authorization for the required user using the following command...
generate :0 . trusted
...and I get another error.
unable to open display ":0".
Of course I can open the display using root in another session, and it appears to work fine, as I get the following message:
authorization id is 265
...doesn't look like an error. But when I start X server using my user account, I get the same old error.
X: user not authorized to run the X server, aborting.
Now, of course I could just install lxdm and start X that way. But I don't want to do that for two reasons. One, I'll have to log in through vnc every time I reboot, which is annoying; and two, it means I'll need to run X all the time, even when I don't need it. Which is a waste in my mind.
So here's my question: How do I give a user authority to start X?
It seems like it should be a pretty simple task. But it appears not. Am I using the wrong command?