Changes

Jump to: navigation, search

X inside VE

1,447 bytes added, 09:14, 27 June 2006
no edit summary
= running X applications inside VE =

To run application inside VE one need simply to connect to VE with '''ssh -X''':
<pre>
host# ssh -X user@address
</pre>

After login to VE check that $DISPLAY variable is set and X11 forwarding is enabled:
<pre>
vps# echo $DISPLAY
localhost:10.0
</pre>

if $DISPLAY is not set, make sure that X forwarding is enabled in sshd config inside VE.
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>
vps# /etc/init.d/sshd restart
</pre>

Don't forget to reconnect then.

== Using VNC for X desktop ==
First, one need to run Xvnc server inside VE. The easiest way for this is to run

== Connecting with VNC from firewalled network ==
VNC uses 590x TCP ports for its connections. These ports can be firewalled in
many networks so in order to be able to connect to remote side one need to tunnel VNC connections somehow.
A usuall '''ssh''' can be used for tunneling VNC connections as described below.

<pre>
localhost# ssh -L 5900:localhost:5900 <remote host>
</pre>

where my-server.psi.ch is the name of the system you want to connect to. When you are asked for a username and password enter your normal username and password. Then start the vnc session to localhost, i.e.

<pre>
localhost# vncviewer localhost
</pre>

== External links ==
http://forum.openvz.org/index.php?t=tree&th=235&mid=1115&&rev=&reveal=

Navigation menu