Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

X inside VE

4 bytes removed, 11:00, 29 June 2006
m
VPS->VE
After login to VE check that <code>$DISPLAY</code> variable is set and X11 forwarding is enabled:
<pre>
vpsve# echo $DISPLAY
localhost:10.0
</pre>
In case <code>$DISPLAY</code> is not set, make sure that X forwarding is enabled in <code>sshd</code> config inside VE. In most Linux distros sshd configuration is stored in <code>/etc/ssh/sshd_config</code>. You should set parameter <code>X11Forwarding</code> to <code>yes</code>. After that, restart your sshd daemon:
<pre>
vpsve# /etc/init.d/sshd restart
</pre>
Now you can run X applications from your VE:
<pre>
vpsve# firefox
</pre>
<pre>
vpsve# vncserver -name mydesktop
New 'mydekstop' desktop is vps:1