6,534
edits
Changes
m
vpsve# echo $DISPLAY
vpsve# /etc/init.d/sshd restart
vpsve# firefox
vpsve# vncserver -name mydesktop
VPS->VE
After login to VE check that <code>$DISPLAY</code> variable is set and X11 forwarding is enabled:
<pre>
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>
</pre>
Now you can run X applications from your VE:
<pre>
</pre>
<pre>
New 'mydekstop' desktop is vps:1