Hi,
If I call correctly you can not run a X-server inside the container as
you do not have a graphical display device in OpenVZ.
But you are able to export your display to an external machine. If xauth
is in your PATH it will create or update .Xauthority upon login invoked
by the ssh daemon. xauth only needed then tunneling X over SSH. You can
always invoke X programs directly by using the parameter "-display" or
better yet settting the DISPLAY environment variable to point to your
remote X-server.
Regards,
Bjorn
On 02/02/2013 08:48 PM, Linpeng Tang wrote:
Hi, recently I have installed a Ubuntu 12.04 machine inside OpenVZ on
a CentOS 5 server, almost everything works fine except that I can't
use X11 forwarding.
I have installed xauth, and enabled X11forwarding in ssh_config, but
it still doesn't work.
Specifically, I find that I don't have ~/.Xauthority file generated,
and running startx results in:
/Fatal server error:/
/xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)/
More curiously,/when I run "who" command, the ouput is empty/. while I
have logged in via ssh at the time.
Does any one have any clues what's causing the problem?
Thanks in advance.
--
-----------------------------------
Princeton University
Computer Science Department
Linpeng Tang
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users