You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.8 KiB

<h4>Setting up X11 forwarding on SDF</h4>
<h4>Contents</h4>
<ul>
<li> <a href="#ssh">X11 forwarding through ssh </a>
<li> <a href="#direct">Sending X11 directly</a>
<li> <a href="#metaarray">X11 On The MetaArray</a>
</ul>
<i>Please note that MetaARPA membership is required to run X11 applications</i>
<p>
<h4 id="ssh">X11 forwarding through ssh</h4>
This should be the preferred method of running X. By tunneling
through an existing ssh connection, extra firewall ports or
port forwarding is not needed. The traffic is also protected
by ssh.
Note that this tutorial references <i>sverige.freeshell.org</i>
however <i>iceland.freeshell.org</i> is also available to MetaARPA
members and supports X forwarding.
<ul>
<li>Install and run an X server such
as <a href="http://sourceforge.net/projects/xming/">Xming</a>.</li>
<li>ssh to sverige.freeshell.org with "ssh -X
<i>user</i>@sverige.freeshell.org".</li>
<li><b>Note:</b> If you see an error just after connecting
that <i>xauth</i> is missing, try adding an option to the ssh command:
"ssh -o XAuthLocation=`which xauth`
-X <i>user</i>@sverige.freeshell.org".</li>
<li><a
href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">Putty</a>
users should use sverige.freeshell.org as the Host Name and
change the Port to 443: <p><img
src="/tutorials/images/puttyx1.png"/></p></li>
<li> Then click on the little "+" besides "SSH" on the left list, click on "X11" and tick the
"Enable X11 forwarding" box:
<p><img src="/tutorials/images/puttyx2.png"/></p></li>
<li> Click Open, login then run <i>xeyes</i> and play</li>
<li> Running "xhost +localhost" on the local machine may be needed.
</ul>
<h4 id="direct">Direct X11</h4>
The advantage of sending X11 traffic directly is performance
(screen updates) should be slightly faster because the data is
not encrypted first.
The disadvantage of sending X11 traffic directly is the data
is not encrypted first.
The X client will send the traffic directly to the local X
server, so care must be taken to open up firewalls and forward
the ports 6000/TCP - 6063/TCP as necessary.
<h5><u>On your side</u>:</h5>
<li>Open an xterm on your computer
<li>Run '<i>xhost +</i>' to enable server access
<li>Run '<i>ssh -X -p443 userid@sverige.sdf.org</i>' where 'userid' is your SDF user id<p>
<h5><u>On the SDF side</u>:</h5>
<li>Run <i>export DISPLAY=`echo $SSH_CLIENT|awk '{print $1}'`:0.0</i>
<li>Run <i>xeyes</i> and play
<h4 id="ssh">X11 On The MetaArray</h4>
The above methods no longer seem to be working, but you can still use x11 via SSH on the MetaArray. The command to do this is "ssh -Y <i>userid</i>@ma.sdf.org", where <i>userid</i> is your SDF user id.
<hr>
<div id="rcs_tag">$Id: x11_forwarding.html,v 1.9 2016/04/19 20:53:21 sethkush Exp $</div>