Thanks, I got X to start this way (as root). It did take a very long time (almost half a minute) until the black screen came up. For some reason though the keyboard and mouse don't respond and I have an X for the mouse in the middle of the screen that won't move. It also means that I can't switch back to console from the current machine. I also tried running gedit from remote ssh to make sure that things work, it ran, but most of the interface was black. glxgears did work fine. Not sure if the resolution is correct though.
I would have preferred to be able to do this as a user as the machine is supposed to run headless as a production machine dedicated for this application, I guess that I can start the whole application as a daemon though.

BTW, I've been using linux for something like 14 years now, so it could have been a long time ago. It's definitely been long since I tried. It was at the days before gnome-session and such when you ran startx and had to setup the display manager and everything else yourself.

On 27/02/12 21:27, Shachar Shemesh wrote:
On 02/27/2012 09:05 PM, Micha wrote:

For a project I'm working on at the moment, I need to be able to log in remotely to a machine (via ssh) and start a blank x-server. That is, to just initialize the display, with not cursor or window manager, to allow for creating a single full screen window for display.
I seem to recall that just running X as a user used to do it, up to the no cursor part, leaving an empty (hetched) screen and running the content of .xsession or something like that.

As root, run "X". If there is a server already running on the machine, "X :1" would do it.

I don't know what you meant to run as a user. If it was "startx", that does not work, and has not work for some time now. In fact, I doubt it ever started an empty X server.

Bonus: X.org changed their default so that the default background is now black, meaning no flicker until your window opens.

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com




_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to