{"id":1175,"date":"2014-09-08T11:25:04","date_gmt":"2014-09-08T15:25:04","guid":{"rendered":"https:\/\/unixed.com\/blog\/?p=266"},"modified":"2014-09-08T11:25:04","modified_gmt":"2014-09-08T15:25:04","slug":"setup-x11-access-to-the-solaris-gui-gnome-desktop","status":"publish","type":"post","link":"https:\/\/unixed.com\/index.php\/2014\/09\/08\/setup-x11-access-to-the-solaris-gui-gnome-desktop\/","title":{"rendered":"Setup X11 Access to the Solaris GUI Gnome Desktop"},"content":{"rendered":"<p><span style=\"font-family: arial, helvetica, sans-serif;\">Many of my blog posts come from questions that I receive in the classroom as I travel around the world teaching Solaris, Linux, AIX and HP-UX. \u00a0I tell my students that I learn something in every class that I teach- even when I teach the\u00a0Fundamentals UNIX course. \u00a0 It&#8217;s because there are so many different ways to accomplish the same task\u00a0in Solaris. \u00a0Furthermore, those new to Solaris\u00a0system administration tend to ask questions that I may have never thought of. \u00a0Whenever students ask a question, I don&#8217;t usually just answer it off the cuff. \u00a0I create slides and write up a procedure on how to perform the task. \u00a0I guess it&#8217;s because I love to write, but also, I want to make myself perfectly clear. \u00a0I try to share some of those procedures in my blog postings. \u00a0How many times have you read documentation and that one important step is left out? \u00a0I&#8217;ll try not to do that to you in my blog entries and if I do, make sure you call me out on it.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">This question comes up quite often from new system admins:<\/span><\/p>\n<hr \/>\n<p><strong>How do I access the GUI desktop environment on a Solaris 11 SPARC server\u00a0from my Windows, MAC, Solaris or Linux desktop computer?<br \/>\n<\/strong><\/p>\n<hr \/>\n<p>Because SPARC based servers are installed using the Oracle Solaris 11 Text Installer (installing the solaris-large-server group of software packages), the desktop environment is not installed. \u00a0Therefore, the only option for connecting remotely to the server is with an SSH client and getting a command line prompt. \u00a0I typically use <a title=\"Putty Download\" href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\" target=\"_blank\">putty<\/a> for this. \u00a0Another great tool, and there&#8217;s a free version, is <a title=\"MobaXterm download\" href=\"http:\/\/mobaxterm.mobatek.net\/download-home-edition.html\" target=\"_blank\">MobaXterm<\/a>. \u00a0Setting up desktop access using <a title=\"MobaXterm\" href=\"http:\/\/mobaxterm.mobatek.net\/download-home-edition.html\" target=\"_blank\">MobaXterm<\/a> is the topic I&#8217;ll cover here.<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Students using SPARC servers, especially those new administrators, frequently ask how\u00a0to setup their Windows, MAC, Solaris or Linux desktop to display the Gnome GUI desktop environment when connecting to their SPARC server. \u00a0In otherwords, they want this this screen:<\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/gnome1.jpg?ssl=1\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter  wp-image-267\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/gnome1.jpg?resize=805%2C531&#038;ssl=1\" alt=\"gnome1\" width=\"805\" height=\"531\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Not this screen:<\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/ssh.jpg?ssl=1\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-281\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/ssh.jpg?resize=608%2C233&#038;ssl=1\" alt=\"ssh\" width=\"608\" height=\"233\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Here&#8217;s how to setup your Windows, MAC or Linux desktop to display the Solaris Gnome GUI environment.<\/span><\/p>\n<h3><strong><span style=\"text-decoration: underline; font-family: arial, helvetica, sans-serif;\">Overview of the Setup<\/span><\/strong><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">To accomplish this, you\u2019ll need to follow these three steps:<\/span><\/p>\n<ol>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Install the Gnome desktop environment on your SPARC server.<\/span><\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\"><span style=\"font-family: arial, helvetica, sans-serif;\">Note &#8211; If you use the text installation method, the Oracle Solaris Desktop package (solaris-desktop) is not installed on your system by default.<\/span><\/p>\n<ol start=\"2\">\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Enable XDMCP connections on the SPARC server.<\/span><\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\"><span style=\"font-family: arial, helvetica, sans-serif;\">XDMCP is a remote desktop protocol used by several UNIX systems, including Solaris. With XDMCP, your desktop computer running X11 can connect to the SPARC server \u00a0(also running X11) and interact with the SPARC server as if you were physically at the SPARC server.<\/span><\/p>\n<ol start=\"3\">\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Install an X Server program on your desktop.\u00a0 I\u2019ll use the free version of MobaXterm.\u00a0 Download and install MobaXterm (free) on your Windows, MAC, Solaris or Linux desktop from <a href=\"http:\/\/mobaxterm.mobatek.net\/\">http:\/\/mobaxterm.mobatek.net\/<\/a><\/span><\/li>\n<\/ol>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">\u00a0<\/span><\/p>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">Step 1 &#8211; Install the Gnome desktop environment on your SPARC server<\/span><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Log into the SPARC server as root.\u00a0\u00a0 The server needs to have access to a software repository so that you can install the solaris-desktop package as follows:<\/span><br \/>\n<code><\/code><\/p>\n<pre><span style=\"font-family: 'courier new', courier;\"># <strong>pkg install solaris-desktop<\/strong><\/span><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Note: If your system does not have access to a repository, that&#8217;s a topic for another time, but it is covered in my book. \u00a0Add a comment below this post if you would like me to post this procedure. \u00a0Another source of information is\u00a0<a title=\"Provide access to a repository\" href=\"http:\/\/docs.oracle.com\/cd\/E23824_01\/html\/E21803\/accessrepo.html#scrolltoc\" target=\"_blank\">Oracle explains how in their documentation<\/a>.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">The installation of the solaris-desktop will take several minutes.\u00a0 Here\u2019s a sample installation:<\/span><\/p>\n<pre><span style=\"font-family: 'courier new', courier;\"><code># <strong>pkg install solaris-desktop<\/strong><\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code> Packages to install: 337<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code> Create boot environment: No<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Create backup boot environment: Yes<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code> Services to change: 14<\/code><\/span><\/pre>\n<pre><span style=\"font-family: 'courier new', courier;\"><code>DOWNLOAD PKGS FILES XFER (MB) SPEED<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Completed 337\/337 50991\/50991 528.9\/528.9 0B\/s<\/code><\/span><\/pre>\n<pre><span style=\"font-family: 'courier new', courier;\"><code>PHASE ITEMS<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Installing new actions 82278\/82278<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Updating package state database Done<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Updating image state Done<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Creating fast lookup database working <\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>Creating fast lookup database Done<\/code><\/span>\n<span style=\"font-family: 'courier new', courier;\"> <code>You have new mail in \/var\/mail\/root<\/code><\/span><\/pre>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Step 2 &#8211; Enable XDMCP connections on the SPARC server<\/strong><\/span><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">When the installation is complete, enable XDMCP connections by editing the <span style=\"font-family: 'courier new', courier;\">\/etc\/gdm\/custom.conf<\/span> file. Add this line to the end of the file:<\/span><\/p>\n<pre>[xdmcp]\nEnable=true<\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Enable xvnc-inetd as follows:<\/span><\/p>\n<pre># <strong>inetadm -e xvnc-inetd<\/strong><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Restart the graphical login service (gdm) as follows:<\/span><\/p>\n<pre># <strong>svcadm restart svc:\/application\/graphical-login\/gdm:default<\/strong><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Check the state of the gdm service by typing:<\/span><\/p>\n<pre># <strong>svcs -vx<\/strong><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">The service might be in a maintenance state like this:<\/span><\/p>\n<pre>svc:\/system\/consolekit:default (ConsoleKit)\n State: maintenance since September 5, 2014 09:11:20 PM UTC\nReason: Restarting too quickly.\n See: http:\/\/support.oracle.com\/msg\/SMF-8000-L5\n See: man -M \/usr\/share\/man -s 1m console-kit-daemon\n See: \/var\/svc\/log\/system-consolekit:default.log\nImpact: 1 dependent service is not running:\n svc:\/application\/graphical-login\/gdm:default<\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Reboot the server<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Verify that all of the services are running normal by typing:<\/span><\/p>\n<pre># <strong>svcs -vx<\/strong><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">The following\u00a0output shows that the <span style=\"font-family: 'courier new', courier;\">svc:\/application\/texinfo-update:default<\/span> service is <span style=\"font-family: 'courier new', courier;\">offline*<\/span> \u00a0 This indicates that the service is still starting. Eventually, the <span style=\"font-family: 'courier new', courier;\">svcs \u2013vx<\/span> command should return only a shell prompt when everything is running:<\/span><\/p>\n<pre>svc:\/application\/texinfo-update:default (texinfo documentation directory update)\n State: offline* transitioning to online since September 5, 2014 09:26:33 PM UTC\nReason: Start method is running.\n See: http:\/\/support.oracle.com\/msg\/SMF-8000-C4\n See: man -M \/usr\/share\/man -s 1 install-info\n See: \/var\/svc\/log\/application-texinfo-update:default.log\nImpact: This service is not running.<\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">When the service is running, the <span style=\"font-family: 'courier new', courier;\">svcs -vx<\/span> command will return only a prompt as follows:<\/span><\/p>\n<pre># <strong>svcs -vx<\/strong>\n#<\/pre>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Step 3 &#8211; Install an X Server program on your desktop<\/strong><\/span><\/h3>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">I\u2019ll use the free version of MobaXterm to connect my PC to the Gnome desktop on the SPARC server.\u00a0 Download and install MobaXterm (free) on your Windows, MAC, Solaris or Linux desktop from <a href=\"http:\/\/mobaxterm.mobatek.net\/\">http:\/\/mobaxterm.mobatek.net\/<\/a><\/span><\/p>\n<p>Another popular free program is <a title=\"Xming website\" href=\"http:\/\/www.straightrunning.com\/XmingNotes\/\" target=\"_blank\">Xming<\/a>.<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">After installing MobaXterm, click on the MobaXterm icon to open the program.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Click on the Sessions Icon:<\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm1.png?ssl=1\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-274\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm1.png?resize=308%2C104&#038;ssl=1\" alt=\"mobaterm1\" width=\"308\" height=\"104\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Click on the Xdmcp icon:<\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm2.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-275 aligncenter\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm2.png?resize=371%2C120&#038;ssl=1\" alt=\"mobaterm2\" width=\"371\" height=\"120\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Select the \u201cSpecify server to connect to:\u201d radio button and enter the IP address of the SPARC server:<\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm3.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-276 alignnone\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/mobaterm3.png?resize=601%2C223&#038;ssl=1\" alt=\"mobaterm3\" width=\"601\" height=\"223\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Note: You can also select the radio button to \u201cConnect to any server\u201d and the login prompt should appear.<\/strong><\/span><br \/>\n<span style=\"font-family: arial, helvetica, sans-serif;\"> <strong>Once connected, the following login should appear:<\/strong><\/span><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/gnomelogin.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-277\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/gnomelogin.png?resize=327%2C191&#038;ssl=1\" alt=\"gnomelogin\" width=\"327\" height=\"191\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">This same procedure could be setup for providing GUI access to your non-global zones.\u00a0<\/span><\/p>\n<p>If you have any questions, please add them in the comments section below and I&#8217;ll try my best to address them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many of my blog posts come from questions that I receive in the classroom as I travel around the world teaching Solaris, Linux, AIX and HP-UX. \u00a0I tell my students [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":267,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[48],"tags":[44,45,46,47,49,50],"class_list":["post-1175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solaris-gui-desktop","tag-desktop","tag-gnome","tag-gui","tag-solaris","tag-vnc","tag-x11"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9J8F7-iX","_links":{"self":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/comments?post=1175"}],"version-history":[{"count":1,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1175\/revisions\/1178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/media?parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/categories?post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/tags?post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}