{"id":26,"date":"2008-05-08T21:23:31","date_gmt":"2008-05-08T21:23:31","guid":{"rendered":"http:\/\/clayb.net\/blog\/?p=26"},"modified":"2012-05-04T19:38:52","modified_gmt":"2012-05-04T19:38:52","slug":"basic-tasks-on-opensolaris-2008-05-for-many-a-sun-employee","status":"publish","type":"post","link":"https:\/\/clayb.net\/blog\/basic-tasks-on-opensolaris-2008-05-for-many-a-sun-employee\/","title":{"rendered":"Basic Tasks On OpenSolaris 2008.05 For Many A Sun Employee"},"content":{"rendered":"<p>At Sun there are tools which we&#8217;ve distributed with Solaris internally through NIS auto mount maps and other things which all depended on NIS. Now with the new OpenSolaris installer a number of us are finding we&#8217;ve forgotten how to get NIS setup on a machine and have never setup Real Media RealPlayer, Adobe Flash, or even OpenOffice.<\/p>\n<p><!--more--><\/p>\n<h1>Setting up NIS<\/h1>\n<p>On OpenSolaris, since much of the independent developer community uses the domain name system (DNS) for host resolution, etc we have that as the default and didn&#8217;t implement a pretty wrapper to setup a system for NIS as has been done in the past. However, the steps aren&#8217;t too onerous.<\/p>\n<h2>Remove All the &#8220;Helpful&#8221; Bits<\/h2>\n<h3>Disable Network Automagic (NWAM) if it doesn&#8217;t get along with your system<\/h3>\n<dl>\n<dt><b>Disabling NWAM<\/b><\/dt>\n<dd>Run <tt>svcadm disable physical:nwam; svcadm enable physical:default<\/tt><\/dd>\n<dt><b>Setup <tt>\/etc\/hostname.<\/tt>&lt;interface&gt;<\/b><\/dt>\n<dd>Put the hostname of your machine in a file called <tt>\/etc\/hostname.<\/tt>&lt;interface&gt; where interface is your <tt>ifconfig<\/tt>(1) interface name (i.e. <tt>bge0<\/tt>, <tt>yukonx0<\/tt>, etc.)<\/dd>\n<dt><b>Setup <tt>\/etc\/defaultrouter<\/tt><\/b><\/dt>\n<dd>Put the router&#8217;s IP address in <tt>\/etc\/defaultrouter<\/tt><\/dd>\n<dt><b>Setup your <tt>\/etc\/netmasks<\/tt> file if you have a non class-C network (non 255.255.255.0 netmask)<\/b><\/dt>\n<dd>Put in an entry following the form &lt;network&gt; &lt;netmask&gt; (e.g. <tt>172.16.24.0 255.255.252.0<\/tt>)<\/dd>\n<\/dl>\n<h2>Configure NIS<\/h2>\n<dl>\n<dt><b>Setup <tt>\/etc\/hosts<\/tt><\/b><\/dt>\n<dd>Enter your:<\/p>\n<ul>\n<li>NIS Server&#8217;s IP Address and name(s)<\/li>\n<li>Your system&#8217;s IP Address and nodename (if you also disabled NWAM)<\/li>\n<\/ul>\n<\/dd>\n<dt><b>Setup <tt>\/detc\/defaultdomain<\/b><\/dt>\n<dd>Put your domain name in the file but remember it is case sensitive (i.e. clay.Boulder.Co.US)<\/dd>\n<dt><b>Setup <tt>\/etc\/nsswitch.conf<\/tt><\/b><\/dt>\n<dd>Ensure the following lines have <tt>nis<\/tt> in them, so NIS is used to resolve (of course some of these are site specific too, so pick as appropriate):<\/p>\n<ul>\n<li>passwd<\/li>\n<li>group<\/li>\n<li>hosts<\/li>\n<li>ipnodes<\/li>\n<li>ethers<\/li>\n<li>netgroup<\/li>\n<li>automount<\/li>\n<li>printers<\/li>\n<li>auth_attr<\/li>\n<li>prof_attr<\/li>\n<\/ul>\n<\/dd>\n<dt><b>Change <tt>\/etc\/auto_master<\/tt> for the full IPS experience<\/b><\/dt>\n<dd>To prevent mounting certain directories through a NIS auto.master map add the following to the end of <tt>\/etc\/auto_master<\/tt> (of course changing the mountpoint as appropriate):<br \/>\n<verbatim>\/usr\/local\t\t\t-null<\/verbatim><\/dd>\n<dt><b>Now turn on NIS<\/b><\/dt>\n<dd>To enable and finish configuring NIS one should now only need to run <tt>ypinit -c<\/tt> and follow the prompts:<\/p>\n<ol>\n<li>Enter the domain name (as entered in <tt>\/etc\/defaultdomain<\/tt><\/li>\n<li>Enter the NIS server\u00c2\u00b4s name (as entered into <tt>\/etc\/hosts<\/tt>)<\/li>\n<\/ol>\n<\/dd>\n<dt><b>Ensure the NIS client service is enabled<\/b><\/dt>\n<dd>To turn on NIS all one should need to do is run <tt>svcadm enable nis\/client<\/tt><\/dd>\n<dt><b>Now to check everything<\/b><\/dt>\n<dd>Everything should be setup and running now, but to make sure run <tt>svcs -x nis\/client<\/tt> and if in the maintenance state there is a couple of possible reasons:<\/p>\n<dl>\n<dt><i>The log file says directory <tt>\/var\/yp\/bindings\/<\/tt>&lt;domainname&gt; not setup<\/i><\/dt>\n<dd>Run <tt>mkdir \/var\/yp\/bindings<\/tt>&lt;domainname&gt; and (for good measure) add <tt>\/var\/yp\/binding\/<\/tt>&lt;domainname&gt;<tt>\/ypservers<\/tt> with the name of your NIS server (same as the entry in <tt>\/etc\/hosts<\/tt> in it<\/dd>\n<dt><i>Things don't seem to resolve correctly<\/i><\/dt>\n<dd>Run <tt>ypwhich<\/tt>(1) to see if you are binding to the correct server<\/dd>\n<dt><i>Ensure <tt>\/var\/yp\/aliases<\/tt> has your domain name and the keyword <tt>ypservers<\/tt> in it<\/i><\/dt>\n<dd>The correct format for the aliases file is:<br \/>\n<verbatim>&lt;domainname&gt;       &lt;domainname&gt;<\/verbatim><br \/>\n<verbatim>ypservers                ypservers<\/verbatim>\n<\/dl>\n<p>After trying any of these restart NIS with <tt>svcadm restart nis\/client<\/tt>\n<\/dd>\n<\/dl>\n<h1>Installing OpenOffice<\/h1>\n<p>Installing OpenOffice demonstrates the beauty of the <a href=\"http:\/\/www.opensolaris.org\/os\/project\/pkg\/\">Image Packaging System (IPS)<\/a>. As long as you have a working network connection and can resolve and connect to pkg.OpenSolaris.ORG then all one needs do is enter <tt>pfexec pkg install openoffice<\/tt> (or omit <tt>pfexec<\/tt> if root), and in a few minutes OpenOffice will be installed into <tt>\/usr\/bin\/soffice<\/tt>.<\/p>\n<h1>Installing Real Player<\/h1>\n<p>Real Media's RealPlayer is very easy to install. Simply go to <a href=\"http:\/\/Real.COM\">Real.COM<\/a> and at this time the option on their main page should be \"Download RealPlayer\" and you'll want your architecture (for 2008.05 X86). Save the file and then run <tt>chmod 755 <\/tt>&lt;filename&gt; and execute the file by typing the full path or <tt>.\/<\/tt>&lt;filename&gt; to execute it. I've found (if installing as root) that trying to answer Y to \"Make Symlinks?\" is a bad idea on OpenSolaris. Afterwards, to start RealPlayer just run &lt;your install locations&gt;<tt>\/realplay<\/tt>.<\/p>\n<h1>Installing Adobe Flash<\/h1>\n<p>Making the operating system easier to use and having a full web-browsing experience available are two goals we had in mind while creating the Indiana project (the ancestor to OpenSolaris 2008.5), however due to license restriction we could not bundle Adobe Flash. But, the Mozilla project already had an awesome answer to this: If you need to install Adobe Flash go to a website which uses Flash. That's it, click the \"Download Plug-in\" Option and answer the prompts. It's super simple!<\/p>\n<p>Although if you need to have Flash available for the entire system (as downloading through Firefox's easy way is only for your particular user) then go to <a href=\"http:\/\/www.Adobe.COM\">Adobe<\/a>'s web-site, click \"Get Flash Player\" and download Flash for Solaris X86. Then (after expanding the archive -- e.g. <tt>bzip2 -dc \/tmp\/<\/tt>&lt;filename&gt;<tt> | tar -xf <\/tt>) copy the two files (one shared library -- <tt>.so<\/tt> -- one Firefox <tt>.xpt<\/tt> file) to <tt>\/usr\/lib\/firefox\/plugins\/<\/tt>. Then, you are done; if you really want you can check if it installed correctly by putting <tt>about:plugins<\/tt> in your Firefox URL bar and pressing return.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick refresher on how to setup a machine as a NIS client, use IPS to install OpenOffice, install Adobe\u00c2\u00b4s Flash player, install Real Media\u00c2\u00b4s RealPlayer all under OpenSolaris 2008.05.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":0,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}