{"id":6040,"date":"2016-07-14T11:44:45","date_gmt":"2016-07-14T03:44:45","guid":{"rendered":"http:\/\/rmohan.com\/?p=6040"},"modified":"2016-07-14T11:44:45","modified_gmt":"2016-07-14T03:44:45","slug":"after-solaris-10-installation","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6040","title":{"rendered":"after Solaris 10 installation"},"content":{"rendered":"<p> after Solaris 10 installation<\/p>\n<p>1. Set BASH as default shell for root:<br \/>\nThis is first thing I really do! Because bash has multiple advantages for day to day use and scripting too, over other shells.<br \/>\nFor this you can simply edit \/etc\/passwd file and change the shell from very first line.<br \/>\nBy default it is \/sbin\/sh, you can change it to \/bin\/bash<\/p>\n<p>2. Change the hostname from &#8220;unknown&#8221;<br \/>\nTo change the hostname temporarily:<br \/>\n hostname SERVER01<br \/>\nTo change the hostname so that it is persistent across reboots:<br \/>\n echo SERVER01 > \/etc\/nodename<br \/>\nHowever, the changed hostname is re-set when you run sys-unconfig command to reset the configuration of the system.<\/p>\n<p>3. Disable GUI Login:<br \/>\n \/usr\/dt\/bin\/dtconfig -d<br \/>\nFor more, see here about disabling and enabling GUI login in Solaris<\/p>\n<p>4. Configure loghost:<br \/>\nYou might get messages such as &#8220;loghost could not be resolved.&#8221;. To be able to resolve loghost you must configure DNS Server or you can add entry in \/etc\/hosts such as &#8220;127.0.0.1  loghost&#8221;.<\/p>\n<p>5. Disable sendmail:<br \/>\nYou can disable sendmail by issuing a simple command,<br \/>\n svcadm disable sendmail<br \/>\nHmm&#8230; not everybody uses sendmail&#8230; <\/p>\n<p>6. Set PS1 variable (This is only for people using BASH):<br \/>\nIt is solely user&#8217;s choice to set this variable. Solaris has it as PS1=&#8217;\\s-\\v\\$ &#8216; by default.<br \/>\nHowever, I set it as PS1=&#8221;$LOGNAME@$HOSTNAME# &#8221; so that it will be displayed as:<br \/>\n root@SERVER01# _<br \/>\nFor more information on PS1 environment variable check<\/p>\n<p>Read more at http:\/\/kaustubhghanekar.blogspot.com\/2012\/08\/5-things-you-probably-want-to-do-after.html#tdpUO6dXDOIeo9jA.99<\/p>\n","protected":false},"excerpt":{"rendered":"<p> after Solaris 10 installation<\/p>\n<p>1. Set BASH as default shell for root: This is first thing I really do! Because bash has multiple advantages for day to day use and scripting too, over other shells. For this you can simply edit \/etc\/passwd file and change the shell from very first line. By default it [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6040"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6040"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6040\/revisions"}],"predecessor-version":[{"id":6041,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6040\/revisions\/6041"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}