Changes

Jump to: navigation, search

X inside VE

183 bytes added, 15:23, 28 June 2006
m
minor rewording here and there
= running There are several ways to run X applications inside your [[VE =]].
== X forwarding == To run an X application inside a [[VE ]], one need simply to connect to a VE with '''ssh -X''':
<pre>
host# ssh -X user@address
</pre>
After login to VE check that <code>$DISPLAY </code> variable is set and X11 forwarding is enabled:
<pre>
vps# echo $DISPLAY
</pre>
if In case <code>$DISPLAY </code> is not set, make sure that X forwarding is enabled in <code>sshd </code> config inside VE.<br>In most Linux distros sshd config can be found at '''configuration is stored in <code>/etc/ssh/sshd_config'''</code>.Set variable '''You should set parameter <code>X11Forwarding''' </code> to '<code>yes' and </code>. After that, restart your sshd daemon:
<pre>
vps# /etc/init.d/sshd restart
</pre>
{{Note|Don't forget to reconnect after this.}}
Now you can run X applications from your VE:
</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 services
</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 ===
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.
[[Category: HOWTO]]
[[Category: Networking]]

Navigation menu