{"id":1930,"date":"2015-08-12T11:14:52","date_gmt":"2015-08-12T09:14:52","guid":{"rendered":"http:\/\/srvcnthpc001.uct.ac.za\/?page_id=1930"},"modified":"2025-06-24T17:05:04","modified_gmt":"2025-06-24T15:05:04","slug":"graphical-applications","status":"publish","type":"page","link":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/","title":{"rendered":"Graphical applications"},"content":{"rendered":"<section class=\"l-section wpb_row height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>If your application does not have a command line interface, or if it has a graphical interface that you would prefer to use then you can make use of X to export this interface back to your computer.<\/p>\n<p>You will need to install an X client on your computer, such as Xming for windows or Xquartz for Mac. If Xming does not work for your application you can try an alternative such as MobaXterm.<\/p>\n<p>Before logging in you need to enable X11 forwarding in your ssh client, for example in PuTTY:<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1931\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-300x287.jpg\" alt=\"X1\" width=\"300\" height=\"287\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-300x287.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-150x143.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-418x400.jpg 418w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1.jpg 454w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>It is recommended that you save a ssh session in PuTTY with this option enabled to avoid repeating this each time you login.<\/p>\n<p>You then need to run a X client on your computer, we recommend <a href=\"http:\/\/sourceforge.net\/projects\/xming\/\" target=\"_blank\" rel=\"noopener\">Xming <\/a>which is free. This needs to be running each time you want to connect a graphical application to your computer from the cluster.<\/p>\n<p>Run Xlaunch.exe<\/p>\n<p>Select &#8220;Multiple windows&#8221; and &#8220;Start no client&#8221;.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1936\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x2-300x229.jpg\" alt=\"x2\" width=\"300\" height=\"229\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x2-300x229.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x2-150x115.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x2.jpg 502w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\u00a0 \u00a0<\/a><a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x3.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1939 size-medium\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x3-300x229.jpg\" alt=\"x3\" width=\"300\" height=\"229\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x3-300x229.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x3-150x115.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x3.jpg 502w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>To do a brief test ensure that No Access Control is selected, then click Finish. For future use you will need to add all hpc nodes to the\u00a0C:\\Program Files (x86)\\X0.hosts config file on your computer to enable secure access only. <strong>Selecting No Access Control is a security risk!<\/strong> To protect your computer do not run jobs with No Access Control selected.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x4.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1943 size-medium\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x4-300x229.jpg\" alt=\"x4\" width=\"300\" height=\"229\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x4-300x229.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x4-150x115.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x4.jpg 502w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u00a0 \u00a0<a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x5.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1944\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x5-300x229.jpg\" alt=\"x5\" width=\"300\" height=\"229\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x5-300x229.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x5-150x115.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x5.jpg 502w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The cluster needs an environment variable to let the application know where to stream the graphic interface to. If you do not set X11 forwarding as described above then you will need to set this variable manually with:<\/p>\n<p>export DISPLAY=my.ip.addr:0.0<\/p>\n<p><strong>NB:<\/strong> there are no spaces around the = sign and the IP address is your computer. The 0.0 is the default display number on your computer.<\/p>\n<h4><strong>Graphical interactive jobs<\/strong><\/h4>\n<p>The command\u00a0<em>sintx<\/em>\u00a0automatically sets up the DISPLAY environment and launches an interactive job for you.<\/p>\n<p>To do a brief test run an interactive job by typing sintx, wait for the job to start and then type xclock.\u00a0 A clock should now appear on your desktop. Close the clock and then type exit to end your interactive job.<\/p>\n<p>Below is an example of sintx. The user initiates an interactive session with the sintx command and launches the application, in this case CASA. The application is controlled via the user&#8217;s desktop.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1948\" src=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-300x288.jpg\" alt=\"x6\" width=\"300\" height=\"288\" srcset=\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-300x288.jpg 300w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-1024x983.jpg 1024w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-600x576.jpg 600w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-150x144.jpg 150w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6-417x400.jpg 417w, https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/x6.jpg 1050w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h4><strong>Graphical sbatch jobs<\/strong><\/h4>\n<p>To send the graphical output of a job to your desktop first ensure you have started a local X client.<\/p>\n<p>Create a normal sbatch script, however it should have the command &#8220;source setx&#8221;\u00a0prior to the graphical command in the script, for example:<\/p>\n<pre>#!\/bin\/sh\r\n#SBATCH --ntasks=1\r\nsource setx\r\nxclock<\/pre>\n<p>The above example will launch a graphical clock on your desktop.<\/p>\n<h4><strong>Security<\/strong><\/h4>\n<p>Once again you are reminded to set up the\u00a0X0.hosts config file on your computer for security reasons and not to run Xming with No Access Control ticked. Create a\u00a0X0.hosts file in the following format:<\/p>\n<pre>localhost\r\nsrvrochpc001.uct.ac.za\r\nsrvrochpc100.uct.ac.za\r\nsrvrochpc101.uct.ac.za\r\nsrvrochpc102.uct.ac.za\r\nsrvrochpc103.uct.ac.za\r\nsrvrochpc104.uct.ac.za\r\nsrvrochpc105.uct.ac.za\r\nsrvrochpc106.uct.ac.za\r\nsrvrochpc207.uct.ac.za\r\nsrvrochpc108.uct.ac.za\r\nsrvrochpc109.uct.ac.za\r\nsrvrochpc110.uct.ac.za\r\nsrvrochpc111.uct.ac.za\r\nsrvrochpc112.uct.ac.za\r\nsrvrochpc213.uct.ac.za\r\nsrvrochpc214.uct.ac.za\r\nsrvrochpc215.uct.ac.za\r\nsrvrochpc216.uct.ac.za\r\nsrvrochpc217.uct.ac.za\r\nsrvrochpc218.uct.ac.za\r\nsrvrochpc219.uct.ac.za\r\nsrvrochpc220.uct.ac.za\r\nsrvrochpc221.uct.ac.za\r\nsrvrochpc222.uct.ac.za\r\nsrvrochpc223.uct.ac.za\r\nsrvrochpc224.uct.ac.za\r\nsrvrochpc225.uct.ac.za\r\nsrvrochpc226.uct.ac.za\r\nsrvrochpc227.uct.ac.za\r\nsrvrochpc228.uct.ac.za\r\nsrvrochpc229.uct.ac.za\r\nsrvrochpc230.uct.ac.za\r\nsrvrochpc231.uct.ac.za\r\nsrvrochpc232.uct.ac.za\r\nsrvrcohpc233.uct.ac.za\r\nsrvrochpc234.uct.ac.za\r\nsrvrochpc235.uct.ac.za\r\nsrvrochpc100.uct.ac.za\r\nsrvrochpc101.uct.ac.za\r\nsrvrochpc102.uct.ac.za\r\nsrvrochpc103.uct.ac.za\r\nsrvrochpc104.uct.ac.za\r\nsrvrochpc105.uct.ac.za\r\nsrvrochpc106.uct.ac.za\r\nsrvrochpc107.uct.ac.za\r\nsrvrochpc108.uct.ac.za\r\nsrvrochpc109.uct.ac.za\r\nsrvrochpc110.uct.ac.za\r\nsrvrochpc111.uct.ac.za\r\nsrvrochpc112.uct.ac.za\r\nsrvrochpc113.uct.ac.za\r\nsrvrochpc114.uct.ac.za\r\nsrvrochpc115.uct.ac.za\r\nsrvrocgpu005.uct.ac.za\r\nsrvrocgpu006.uct.ac.za\r\nsrvrocgpu007.uct.ac.za\r\nsrvrocgpu008.uct.ac.za\r\nsrvrocgpu009.uct.ac.za\r\nsrvrocgpu010.uct.ac.za\r\nsrvrocgpu011.uct.ac.za\r\nsrvrocgpu012.uct.ac.za\r\nsrvrocgpu013.uct.ac.za\r\nsrvrocgpu014.uct.ac.za\r\nsrvrocgpu015.uct.ac.za<\/pre>\n<p>And copy this to\u00a0C:\\Program Files (x86)\\Xming.\u00a0 Ensure No Access Control is <span style=\"text-decoration: underline;\">not<\/span> ticked when launching Xming.<\/p>\n<p>You may need to add additional hosts to this file if you are running jobs on the GPU or high memory nodes etc. See our <a href=\"http:\/\/hpc.uct.ac.za\/db\/crm.html#worker\" target=\"_blank\" rel=\"noopener\">worker node list<\/a> for more details.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"If your application does not have a command line interface, or if it has a graphical interface that you would prefer to use then you can make use of X to export this interface back to your computer. You will need to install an X client on your computer, such as Xming for windows or...","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Graphical applications - UCT HPC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Graphical applications - UCT HPC\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/\" \/>\n<meta property=\"og:site_name\" content=\"UCT HPC\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-24T15:05:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-300x287.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/\",\"name\":\"Graphical applications - UCT HPC\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\"},\"datePublished\":\"2015-08-12T09:14:52+00:00\",\"dateModified\":\"2025-06-24T15:05:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/#breadcrumb\"},\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucthpc.uct.ac.za\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Graphical applications\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"name\":\"UCT HPC\",\"description\":\"University of Cape Town High Performance Computing\",\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-ZA\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\",\"name\":\"University of Cape Town High Performance Computing\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"contentUrl\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"width\":450,\"height\":423,\"caption\":\"University of Cape Town High Performance Computing\"},\"image\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Graphical applications - UCT HPC","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/","og_locale":"en_US","og_type":"article","og_title":"Graphical applications - UCT HPC","og_url":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/","og_site_name":"UCT HPC","article_modified_time":"2025-06-24T15:05:04+00:00","og_image":[{"url":"http:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/08\/X1-300x287.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/","url":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/","name":"Graphical applications - UCT HPC","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/#website"},"datePublished":"2015-08-12T09:14:52+00:00","dateModified":"2025-06-24T15:05:04+00:00","breadcrumb":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/#breadcrumb"},"inLanguage":"en-ZA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/graphical-applications\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucthpc.uct.ac.za\/"},{"@type":"ListItem","position":2,"name":"Graphical applications"}]},{"@type":"WebSite","@id":"https:\/\/ucthpc.uct.ac.za\/#website","url":"https:\/\/ucthpc.uct.ac.za\/","name":"UCT HPC","description":"University of Cape Town High Performance Computing","publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-ZA"},{"@type":"Organization","@id":"https:\/\/ucthpc.uct.ac.za\/#organization","name":"University of Cape Town High Performance Computing","url":"https:\/\/ucthpc.uct.ac.za\/","logo":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/","url":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","contentUrl":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","width":450,"height":423,"caption":"University of Cape Town High Performance Computing"},"image":{"@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/pages\/1930"}],"collection":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/comments?post=1930"}],"version-history":[{"count":32,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/pages\/1930\/revisions"}],"predecessor-version":[{"id":5012,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/pages\/1930\/revisions\/5012"}],"wp:attachment":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/media?parent=1930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}