{"id":6269,"date":"2016-09-14T17:47:13","date_gmt":"2016-09-14T17:47:13","guid":{"rendered":"http:\/\/www.cs.columbia.edu\/crf\/?page_id=6269"},"modified":"2016-09-14T17:47:27","modified_gmt":"2016-09-14T17:47:27","slug":"x-win32-how-to","status":"publish","type":"page","link":"https:\/\/www.cs.columbia.edu\/crf\/guide\/resources\/x-win32-how-to\/","title":{"rendered":"X-Win32 How-To"},"content":{"rendered":"<p>The Computer Science department license&#8217;s X-Win32 for use on department machines. X-Win32 is an X11R6 compatible X Windows client for Windows 95, 98, ME, NT4.0, 2000 and Windows XP. It supports multiple login mechanisims and can be combined with a Windows SSH client to support secure X11 sessions.<\/p>\n<h3>Installation<\/h3>\n<p>1. Download X-Win32 from <a href=\"http:\/\/www.starnet.com\/xwin32\" target=\"_blank\">here<\/a>.<\/p>\n<p>2. Contact CRF for a <b>license key<\/b> (CS affiliates only)<\/p>\n<p>3. Run X-Win32.<\/p>\n<p>3. You will be presented with the license dialog when you first run X-Win32.<\/p>\n<p>&#8212; Select &#8220;Floating&#8221;. On the next dialog type the license key in the box and select &#8220;next&#8221; then &#8220;finish&#8221; to activate the program.<\/p>\n<p>4. Go to X-Win32 configuration, in the Security Tab.<\/p>\n<p>5. Click on &#8220;Add&#8221; and type: <span style=\"font-family: 'Courier New', Courier, mono;\">127.0.0.1<\/span><\/p>\n<p>6. Check &#8220;Access Control&#8221;<\/p>\n<p>Now access control is enabled, which means nobody can connect to your X server without yoru permission.<\/p>\n<p><b>Note<\/b>: This copy of X-Win32 is restricted to the CS Department network and will not work elsewhere.<\/p>\n<p><b>Note<\/b>: We recommend using Xming, which is a X Windows System Server for Windows. You can check for more details and download it from <a href=\"http:\/\/www.straightrunning.com\/XmingNotes\/\" target=\"_blank\">here<\/a>.<\/p>\n<hr \/>\n<p>We provide instructions on how to use X-win32 with Putty or X-win32 with StarNetSSH. If you get an error using X-win32 with Putty, please follow the instruction below to use X-win32 with StarNetSSH.<\/p>\n<hr \/>\n<h3>X-win32 with Putty<\/h3>\n<ol>\n<li>Run X-Win32 on your PC (All Programs -&gt; X-Win32 8.0 -&gt; X-Win32)<\/li>\n<li>If you haven&#8217;t already, download putty from <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">here<\/a><\/li>\n<li>Run putty<\/li>\n<li>In putty, type: <span style=\"font-family: 'Courier New', Courier, mono;\">compute.cs.columbia.edu<\/span> in the &#8220;Host Name&#8221; field.<\/li>\n<li>Click on &#8220;Connection&#8221; -&gt; &#8220;SSH&#8221; -&gt; &#8220;Tunnels&#8221;<\/li>\n<li>Check the box for &#8220;Enable X11 forwarding&#8221;<\/li>\n<li>Go back to &#8220;Session&#8221;<\/li>\n<li>Type: <span style=\"font-family: 'Courier New', Courier, mono;\">CS Compute Cluster<\/span> into &#8220;Saved Sessions&#8221;<\/li>\n<li>Click &#8220;Save&#8221; to save it for subsequent use.<\/li>\n<li>Click: &#8220;Open&#8221; button. A new window should appear.<\/li>\n<li>Type in your username and password to log in<\/li>\n<li>Once you are logged into cluster, type: &#8220;xterm&amp;&#8221; and you should see the Xterm window open. (Sometimes the Xterm window opens in the behind all the other windows.)<\/li>\n<li>Any X GUI program such as Matlab or Mathematica will open a new window if you run it from the command line.<\/li>\n<\/ol>\n<hr \/>\n<h3>X-win32 with StarNetSSH<\/h3>\n<p>StarNetSSH will solve the remote connection problem as shown below.<br \/>\n<b>Xlib: connection to &#8220;localhost:12.0&#8221; refused by server<\/b><br \/>\n<b>Xlib: Can not connect to a host on a restricted network<\/b><\/p>\n<ol>\n<ol>\n<ol>\n<li>Select Star-&gt;All Programs-&gt;Xwin32-&gt;X-Config-&gt;Manual-&gt;StarNetSSH<\/li>\n<li>Fill in the information as below:<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<p>Session Name: CLIC (or any name of your choice)<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<ol>\u00a0\u00a0\u00a0Host: clic.cs.columbia.edu (or any CS host name you want to connect to)<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<ol>\u00a0\u00a0\u00a0Login: CS Unix account login<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<ol>\u00a0\u00a0\u00a0Command: xterm&amp;<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<ol>\u00a0\u00a0\u00a0Password: CS Unix account password<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li>Save your seesion and make a short cut for your desktop<\/li>\n<li>Click on the save icon on the desktop to get the first Xterm window<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The Computer Science department license&#8217;s X-Win32 for use on department machines. X-Win32 is an X11R6 compatible X Windows client for &hellip; <a href=\"https:\/\/www.cs.columbia.edu\/crf\/guide\/resources\/x-win32-how-to\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">X-Win32 How-To<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":11,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-crf.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-6269","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/pages\/6269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/comments?post=6269"}],"version-history":[{"count":1,"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/pages\/6269\/revisions"}],"predecessor-version":[{"id":6270,"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/pages\/6269\/revisions\/6270"}],"up":[{"embeddable":true,"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/pages\/11"}],"wp:attachment":[{"href":"https:\/\/www.cs.columbia.edu\/crf\/wp-json\/wp\/v2\/media?parent=6269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}