{"id":1176,"date":"2015-02-17T14:45:48","date_gmt":"2015-02-17T19:45:48","guid":{"rendered":"https:\/\/unixed.com\/blog\/?p=297"},"modified":"2018-02-17T14:10:01","modified_gmt":"2018-02-17T19:10:01","slug":"console-mode-in-solaris-11-gnome-desktop","status":"publish","type":"post","link":"https:\/\/unixed.com\/index.php\/2015\/02\/17\/console-mode-in-solaris-11-gnome-desktop\/","title":{"rendered":"Console Mode in Solaris 11 Gnome Desktop"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1176\" class=\"elementor elementor-1176 elementor-bc-flex-widget\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-739ffd62 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"739ffd62\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-19c38e44\" data-id=\"19c38e44\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5a2ca6fb elementor-widget elementor-widget-text-editor\" data-id=\"5a2ca6fb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tHow do I open a console window in the Solaris 11 Gnome Desktop?\r\n\r\nThis question comes up occasionally- especially in my transition courses where I have administrators migrating from previous version of Solaris.\u00a0 In those versions of Solaris, administrators used the Java Desktop (Solaris 10) and the Common Desktop Environment also called\u00a0CDE (Solaris 9).\u00a0 The console window was a special window where system generated messages were displayed.\u00a0 Any messages sent to <code>\/dev\/console<\/code> by <code>syslogd<\/code> appeared in this window.\r\n\r\nWhen using the Gnome Desktop in Solaris 11, there is an option to open a terminal\u00a0window, but not a console\u00a0window.\u00a0\u00a0 To view the console messages from the Gnome Desktop, use these keystrokes:\r\n\r\nPress Ctrl+Alt+F1 and the screen switches out of the GUI environment into console mode\r\n<pre><code>solaris console login:<\/code><\/pre>\r\nYou can switch to several different consoles by pressing Alt+F1 (F2, F6)\u00a0\u00a0 The login prompt will change for each console\r\n<pre><code>solaris vt2 login:<\/code><\/pre>\r\nPress Alt F3\r\n<pre><code>solaris vt3 login:<\/code><\/pre>\r\nWhen you want to return back to the Gnome Desktop environment, press Alt+F7\r\n\r\n<em>Note:\u00a0 The Ctrl+Alt_F# also works for servers installed with the Text Installer that do not have Gnome desktop installed. When using the Text console, sometimes you want to open another console window.\u00a0 USe the Ctrl+Alt+F# to open a new console window while the other window is busy.\u00a0 It does NOT work for Putty sessions though.<\/em>\r\n\r\nRemember, the Gnome Desktop is not just for x86 users, it&#8217;s also available on the SPARC platform. \u00a0If you want more details on how to setup and access the Gnome Desktop on the SPARC platform, <a title=\"Setup Access to the Gnome Desktop\" href=\"http:\/\/unixed.com\/blog\/2014\/09\/setup-x11-access-to-the-solaris-gui-gnome-desktop\/\" target=\"_blank\" rel=\"noopener\">go to my blog entry on this topic<\/a>.\r\n<h4>Viewing the Console During the Boot Process<\/h4>\r\nOn Solaris x86 systems, when the Gnome Desktop is installed, you don&#8217;t see the console messages displayed during the boot process. \u00a0You only see the white splash screen shown in figure 1:\r\n<p style=\"text-align: center;\">\u00a0<a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/bootscreen.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\" size-full wp-image-311 alignnone\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/bootscreen.jpg?resize=514%2C287\" alt=\"bootscreen\" width=\"514\" height=\"287\" data-recalc-dims=\"1\" \/><\/a><a href=\"http:\/\/unixed.com\/blog\/wp-content\/uploads\/bootscreen.png\">\r\n<\/a>Figure 1<\/p>\r\n&nbsp;\r\n\r\nYou could simply press Ctrl+Alt+F1 when you see the splash screen and the console screen will be shown. \u00a0The Ctrl+Alt+F1 toggles the screen from the GUI mode to the console mode. \u00a0 But, the system will boot in a quiescent mode and the detailed boot messages will still not be displayed.\r\n\r\nTo change the configuration, so that boot messages are displayed during the boot process, edit the GRUB menu. \u00a0 The GRUB menu can be changed either temporarily or permanently.\r\n\r\nMake a temporary change to the boot screen by pressing the &#8220;e&#8221; key when the GRUB menu is displayed during the boot process as shown in figure 2\r\n\r\n<a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/Grub.png\"><img decoding=\"async\" class=\"aligncenter wp-image-314\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/Grub.png?resize=737%2C130\" alt=\"Grub\" width=\"737\" height=\"130\" data-recalc-dims=\"1\" \/><\/a>\r\n<p style=\"text-align: center;\">\u00a0Figure 2<\/p>\r\n&nbsp;\r\n\r\nThe edit screen will open as shown in Figure 3:\r\n\r\n<a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/edit_grub.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-315\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/edit_grub.png?resize=681%2C472\" alt=\"edit_grub\" width=\"681\" height=\"472\" data-recalc-dims=\"1\" \/><\/a>\r\n<p style=\"text-align: center;\">Figure 3<\/p>\r\nChange the following line from &#8220;<code>graphics<\/code>&#8220;:\r\n<pre style=\"text-align: left;\"><code>$multiboot \/ROOT\/solaris\/@\/$kern -B console=<strong>graphics<\/strong> -B $zfs_bootfs<\/code><\/pre>\r\n<p style=\"text-align: left; padding-left: 60px;\">to &#8220;<code>text<\/code>&#8221; as follows:<\/p>\r\n\r\n<pre style=\"text-align: left;\"><code>$multiboot \/ROOT\/solaris\/@\/$kern -B console=<strong>text<\/strong>\u00a0-B $zfs_bootfs<\/code><\/pre>\r\nAfter making the edit, press Ctrl+x to start the boot process in text mode.\r\n\r\nBy default, the system boots in a quiescent mode. \u00a0You can specify which messages you want to view during bootup. \u00a0 Add <code>-m verbose<\/code> \u00a0to the end of the line as shown next,\u00a0to\u00a0display all of the SMF services as they start:\r\n<pre><code>$multiboot \/ROOT\/solaris\/@\/$kern -B console=<strong>text<\/strong> -B $zfs_bootfs <strong>-m verbose<\/strong><\/code><\/pre>\r\nThe following SMF messages will be displayed, showing all f the services starting up:\r\n\r\n<a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/m_verbose.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-316\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/m_verbose.png?resize=768%2C296\" alt=\"m_verbose\" width=\"768\" height=\"296\" data-recalc-dims=\"1\" \/><\/a>\r\n\r\nAdd <code>-v<\/code> to the end of the line to display the kernel messages, but not the SMF service messages:\r\n<pre><code>$multiboot \/ROOT\/solaris\/@\/$kern -B console=<strong>text<\/strong> -B $zfs_bootfs <strong>-v<\/strong><\/code><\/pre>\r\n<a href=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/kernel_msgs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-317\" src=\"https:\/\/i0.wp.com\/unixed.com\/blog\/wp-content\/uploads\/kernel_msgs.png?resize=777%2C199\" alt=\"kernel_msgs\" width=\"777\" height=\"199\" data-recalc-dims=\"1\" \/><\/a>\r\n\r\nOr view ALL of the boot messages by specifying both options as follows:\r\n<pre><code>$multiboot \/ROOT\/solaris\/@\/$kern -B console=<strong>text<\/strong> -B $zfs_bootfs <strong>-m verbose -v<\/strong><\/code><\/pre>\r\nTo make a permanent change to the boot process on the x86 platform, you&#8217;ll need to use the <code>bootadm<\/code> utility from the command line to modify the GRUB menu. \u00a0First display the current GRUB configuration as follows:\r\n<pre><code># <strong>bootadm list-menu<\/strong><\/code> <code>the location of the boot loader configuration files is: \/rpool\/boot\/grub<\/code> <code>default 0<\/code> <code>console graphics<\/code> <code>timeout 30<\/code> <code>0 Oracle Solaris 11.1<\/code><\/pre>\r\nIn the above example, the GRUB menu has one entry, entry <code>0<\/code> with a title of &#8220;<code>Oracle Solaris 11.1.\" \u00a0 \u00a0<\/code>To permanently change entry <code>0<\/code> in the GRUB menu so that it boots in verbose mode, type:\r\n<pre><code># <strong>bootadm change-entry -i 0 kargs=\"-v\"<\/strong><\/code><\/pre>\r\nAlso, you need to change the console to <code>text<\/code> as follows:\r\n<pre><code># <strong>bootadm set-menu console=text<\/strong><\/code><\/pre>\r\nNow, display the change:\r\n<pre><code># <strong>bootadm list-menu<\/strong><\/code> <code>the location of the boot loader configuration files is: \/rpool\/boot\/grub<\/code> <code>default 0<\/code> <code>console text<\/code> <code>timeout 30<\/code> <code>0 Oracle Solaris 11.1<\/code><\/pre>\r\nThe above list shows that the console is set to <code>text<\/code>, but it does not display the <code>-v<\/code> option which was also set. \u00a0 You&#8217;ll need to list the details for entry <code>0<\/code> in the GRUB menu to see the boot string for that entry as follows:\r\n<pre><code># <strong>bootadm list-menu \"Oracle Solaris 11.1\"<\/strong><\/code> <code>the location of the boot loader configuration files is: \/rpool\/boot\/grub<\/code> <code>title: Oracle Solaris 11.1<\/code> <code>kernel: \/platform\/i86pc\/kernel\/amd64\/unix<\/code> <code>kernel arguments: -v<\/code> <code>boot archive: \/platform\/i86pc\/amd64\/boot_archive<\/code> <code>bootfs: rpool\/ROOT\/solaris<\/code><\/pre>\r\nNow, every\u00a0time the system boots, you&#8217;ll see the kernel boot messages displayed. \u00a0After the system boots, the Gnome Desktop login will be displayed.\r\n\r\nI hope this helps out and if you have questions, please submit them in the comment section at the bottom of this page. \u00a0Be sure to check out one of my <a title=\"Course Schedule\" href=\"http:\/\/unixed.com\/schedule.html\" target=\"_blank\" rel=\"noopener\">online courses <\/a>too!\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How do I open a console window in the Solaris 11 Gnome Desktop? This question comes up occasionally- especially in my transition courses where I have administrators migrating from previous [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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":[13,48],"tags":[55,56],"class_list":["post-1176","post","type-post","status-publish","format-standard","hentry","category-solaris-11","category-solaris-gui-desktop","tag-gnome-console","tag-solaris-11"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9J8F7-iY","_links":{"self":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1176","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=1176"}],"version-history":[{"count":4,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1176\/revisions"}],"predecessor-version":[{"id":2154,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/posts\/1176\/revisions\/2154"}],"wp:attachment":[{"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/media?parent=1176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/categories?post=1176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unixed.com\/index.php\/wp-json\/wp\/v2\/tags?post=1176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}