Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

X inside VE

696 bytes added, 09:22, 27 June 2006
no edit summary
if $DISPLAY is not set, make sure that X forwarding is enabled in sshd config inside VE.
<br>In most Linux distros sshd config can be found at '''/etc/ssh/sshd_config'''.
Set variable '''X11Forwarding''' to 'yes' and restart your sshd daemon:
<pre>
</pre>
Don't forget to reconnect thenafter thisNow you can run X applications from your VE:<pre>vps# firefox</pre>
== Using VNC for X desktop ==
First, one need to run '''Xvnc ''' server inside VE. The easiest way for this is to run'''vncserver''' script. This scripts starts all the required servicesand small http daemon which provides graphical web access to your desktop (via Java applet). <pre>vps# vncserver -name mydesktopNew 'mydekstop' desktop is vps:1Starting applications specified in ~/.vnc/xstartupLog file is ~/.vnc/vps:1.log</pre> Now when your desktop is up and running you can connect to itusing '''vncviewer''' command:<pre>host# vncviewer <vpsip>:1</pre> == Starting KDE desktop with VNC ==To start KDE desktop instead of default twm one replace 'twm &' line with 'startkde &' in user~/.vnc/xstartup file.
== Connecting with VNC from firewalled network ==