tag:blogger.com,1999:blog-53318258479124967492024-11-23T14:39:37.886-08:00Solaris DesktopLife with Sun Solaris on the desktop, from the angles of an entrepreneur, musician, programmer, architect, hacker, manager and end user.Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.comBlogger44125tag:blogger.com,1999:blog-5331825847912496749.post-1208082847361445832014-02-03T19:38:00.000-08:002014-02-03T19:52:44.703-08:00Pycharm 3.02 on OpenIndiana<h2> The IDE</h2> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTK44-9lorDxyerUjCh01j-fD8Y8TwOBF01qe0ejDddZhLbp-grOcRVe9MNXvYA3ixDe-X7Ex2k4tYQAXgN4fFkw8rVXg4UmpaZ_Hh1sGJRcuroeA9KtCmJxrz0LlEDcBDmXgrMK8MmA/s1600/pycharm3.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTK44-9lorDxyerUjCh01j-fD8Y8TwOBF01qe0ejDddZhLbp-grOcRVe9MNXvYA3ixDe-X7Ex2k4tYQAXgN4fFkw8rVXg4UmpaZ_Hh1sGJRcuroeA9KtCmJxrz0LlEDcBDmXgrMK8MmA/s1600/pycharm3.png" height="444" width="640" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Working on the Ajax module of <a href="http://www.brython.info/">Brython</a> (and multilingual documentation)</td></tr> </tbody></table> <br /> <h2> Requirements</h2> <br /> PyCharm, the free community edition and the professional versions simply require a Java JDK. I use the Oracle (Sun) JDK7 on OpenIndiana.<br /> <br /> <h2> Installation</h2> <br /> The only challenge is downloading the tar.gz file. By faking the user agent to firefox for linux, the download link appears:<br /> <br /> <b><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0</span></b> <br /> <br /> Then it's a matter of gunzip and tar -xvf and moving the directory to /opt and running pycharm.sh in the bin folder.<br /> <br /> Francois<br /> <a href="http://www.twitter.com/f_dion">@f_dion</a>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-62762954262761755322014-01-17T08:45:00.001-08:002014-01-17T11:06:15.598-08:00Repair, Upgrade or Replace<i>[I had decided to not publish this, but with the LX brand revived, I thought it would be an interesting story post]</i><br /> <h2> The perpetual question</h2> <br /> Repair, upgrade or replace? It doesn't matter if we are talking about an appliance, a car, furniture or a laptop. Whatever it is, it will break or become obsolete. It's all a question of scale and time, and outside pressures.<br /> <br /> What do I mean by outside pressures? Let's say you have a car, it is yours and it is working fine. You drive it 30,000 miles each year. It does 20mpg (US). Let's say gas price is $3.50 a US gallon, that's a tad over $5000 a year to make it run (not counting normal maintenance). A lot of money to go from point A to point B, but still within reason. The outside pressure is minor. But let's bump up gas price to $9.00 a gallon, and we are now talking over $13,000 a year. $27,000 over two years. ROI on getting a new car with twice the mpg is now pretty obvious.<br /> <br /> <h2> But what if there are no options</h2> <br /> In our example above we assume there is such a thing as a 40mpg vehicule that can replace the one you have. But what if I told you it has to be able to tow 6000lbs? There might not be any option that fit the bill. So you have to compromise in one way or another. And that is where it gets complicated.<br /> <br /> <h2> Lightweight, but not lightweight</h2> <br /> If you spend times going from one place to another doing presentations, no doubt you've welcomed tablets and ultra portable laptops. To be able to demo a specific n-tier setup or even a whole datacenter directly on a 13" laptop that weighs less than 3.5 lbs is definitely a great thing.<br /> <br /> I've been using for a few years a Sony Vaio Z that is totally custom. Large SSD, large drive, multi core. Ram was the limitation back then, 8GB. But anybody familiar with Solaris or (open source solaris) IllumOS based OSes knows that thanks to cpu and memory sharing between each zones and the full virtual networking capability of crossbow, you can simulate a lot of machines within that 8GB.<br /> <h2> My outside pressure</h2> <br /> Linux zones are no longer available, so I have to rely on virtualbox or other similar solutions. They dont share ressources such as memory and are not lightweight solutions like zones. 8GB is no longer acceptable. CPU or disk is not a problem (not dealing with big data, just terabyte scale).<br /> <br /> <h2> Lack of solutions</h2> <br /> For some reason there are very few lightweight laptops with &gt; 8GB. 16GB seems to be the next barrier, but typically with a very low screen resolution. Why is that? I don't know. So, for right now I have to choice but to wait on technology to catch up, assuming market demand. <i>[Or, now, hope to get LX branded zones back. If somebody was looking for a good business case, I'm giving you one]</i><br /> <i><br /></i> <i><br /></i> <br /> François<br /> <a href="http://www.twitter.com/f_dion">@f_dion</a>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-55663297368007462912014-01-17T06:48:00.000-08:002014-01-17T06:48:11.449-08:00LX zones back in illumos and OpenIndiana?<h2> <br /></h2> <h2> Branded Zones</h2> <br /> If you've used Solaris and typed man lx, you saw:<br /> <br /> <em>Standards, Environments, and Macros lx(5)</em><strong>NAME</strong><br /><br /> lx - Linux branded zone<br /><strong><br />DESCRIPTION</strong><br /><br /><br /> The lx brand uses the branded zones framework described in<br /> brands(5) to enable Linux binary applications to run unmodi-<br /> fied on a machine with a Solaris Operating System kernel.<br /><br /> The lx brand includes the tools necessary to install a Cen-<br /> tOS 3.x or Red Hat Enterprise Linux 3.x distribution inside<br /> a non-global zone. The brand supports the execution of 32-<br /> bit Linux applications on x86/x64 machines running the<br /> Solaris system in either 32-bit or 64-bit mode.<br /><br /> <strong>Supported Linux Distributions</strong><br /> The lx brand emulates the system call interfaces provided by<br /> the Linux 2.4.21 kernel, as modified by Red Hat in the RHEL<br /> 3.x distributions. This kernel provides the system call<br /> interfaces consumed by the glibc version 2.3.2 released by<br /> Red Hat.<br /><br /> In addition, the lx brand partially emulates the Linux /dev<br /> and /proc interfaces.<br /> <br /> <br /> But if you've followed the story, lx branded zones became a mere historical reference. Until now.<br /> <br /> <h2> Reintroduction</h2> David Mackay posted the following webrev to the illumos developer mailing list:<br /> <br /> http://cr.illumos.org/~webrev/DavidJX8P/lx-zones-restoration/<br /> <br /> <br /> This is great, and I hope this gets reintegrated and pushed in the next openindiana!<br /> <br /> François<br /><a href="http://www.twitter.com/f_dion">@f_dion</a>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-9903085910280346202013-10-14T19:03:00.001-07:002013-10-14T19:05:22.340-07:00The wrong OSI always cringe when I see a crashed display in an airport, a store etc. That's what happens when you run a PC and Windows for a digital signage solution:<br /> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbWcAbyQiNgVrZQPPP6X2xp17rTiWFT-Of42qnxk135kCgrpOpbvl5a1ZQrSInhxjYjQyjuZcwVPd4ChlZNKNCfjHUzdAu8_1SwDZ49Agmc2rIacL2T5BADnSaHG1qepNjLa9yrY1Csw/s1600/ds.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbWcAbyQiNgVrZQPPP6X2xp17rTiWFT-Of42qnxk135kCgrpOpbvl5a1ZQrSInhxjYjQyjuZcwVPd4ChlZNKNCfjHUzdAu8_1SwDZ49Agmc2rIacL2T5BADnSaHG1qepNjLa9yrY1Csw/s320/ds.png" width="239" /></a></div> <br /> <br /> You can see the windows 7 start bar at the left side...<br /> <br /> <br />Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-16997334647277211462013-07-26T08:45:00.003-07:002013-07-26T08:45:55.054-07:00Bluetooth btms_installer.sh<h3> Blast from the past </h3> Not an article today, just a question:<br /> <br /> Does anybody know where I can find a copy of btms_installer.sh?<br /> <br /> It used to be at:<br /> <br /> <a href="http://www.opensolaris.org/os/project/bluetooth/btms_installer.sh" rel="nofollow" target="_blank">http://www.opensolaris.org/os/project/bluetooth/btms_installer.sh</a><br /> <br /> François<br /> <a href="http://www.twitter.com/f_dion">@f_dion</a><br /> Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-72711546054975559172013-07-23T14:27:00.001-07:002013-07-23T14:27:57.975-07:00OI: Python modules that need cc<h2> Tempting</h2> <br /> So, it is always tempting to be at the latest greatest of some software. For example, Sun (Solaris) Studio 12 update 3 is freely available to download. But sometimes the latest will leave you with some head scratching.<br /> <br /> <h2> Python modules</h2> <br /> Some Python modules require a C compiler in order to provide a faster runtime, or even to install at all. Numpy is one such module. It provides superb capabilities in Python, but even doing:<br /> <br /> # pip install numpy<br /> <br /> It will still invoke the C compiler. Due to how the Python interpreter was compiled on OpenIndiana, by using the latest compiler (installed, say, in <b>/opt/solarisstudio12.3</b>), your install will fail. Using the Sun Studio in the opensolaris.org repository (yes, the old 12.1), things work great, as it is installed in <b>/opt/sunstudio12.1</b><br /> <br /> So if you encounter a failed install of a Python module under OpenIndiana, there is a good chance you hit the above problem.<br /> <br /> François<br /> <a href="http://www.twitter.com/f_dion">@f_dion</a><br /> <br /> <b> </b><br /> <b> </b>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-7928570246859076962013-06-14T15:55:00.000-07:002013-06-14T15:55:31.348-07:00dtrace with Python<h3 class="post-title entry-title" itemprop="name"> dtrace: Python instrumentation </h3> <div class="post-header"> </div> <h3> ...where time becomes a loop</h3> Last year, I <a href="http://raspberry-python.blogspot.com/2012/12/python-and-raspberrypi-in-2012.html">mentionned</a> that it was time for the Python community to embrace <a href="http://dtrace.org/">dtrace</a>. I've gotten questions left and right, at user groups, through email etc as to what is dtrace and how it ties in with Python.<br /> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="http://dev.mysql.com/img/Dtrace-architecture.gif" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="262" src="http://dev.mysql.com/img/Dtrace-architecture.gif" width="320" /></a></div> <br /> This week, a few posts on the Argentinian and Venezuelan Python lists on debugging Python and a total absence of a mention of dtrace and I knew I had to do a writeup. But before we get into the details, let's step back a bit.<br /> <br /> <a href="http://raspberry-python.blogspot.com/2013/06/dtrace-python-instrumentation.html">Head over to my Python blog</a> to read the rest of the article. <br /> <br /> François<br /> <a href="http://www.twitter.com/f_dion">@f_dion</a>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-60395645023240680932013-02-01T10:50:00.003-08:002013-02-01T10:50:57.463-08:00Illumos on RaspberryPi<h2> Starting point</h2> <br /> I have now dedicated two Raspberry Pi to work on some bare metal (C, assembler, no operating system) code. I'm hoping that publishing some of this work will help to start somekind of an effort to get the OpenSolaris ARM code out of the mothballs.<br /> <br /> <h2> IllumOS</h2> <br /> Obviously, long term will be to get the IllumOS kernel booting, but there is a lot of work between now and then.<br /> <br /> <h2> On this blog</h2> <br /> So, usually I post all the Raspberry Pi stuff on the <a href="http://raspberry-python.blogspot.com/">Raspberry Pi Python Adventures</a> blog, but I want to keep it mostly Python, with the occasional C code (swig etc). Since we are going bare metal, I think it'll be better if I track this stuff here.<br /> <br /> <br /> <a href="http://www.twitter.com/f_dion">@f_dion</a>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com2tag:blogger.com,1999:blog-5331825847912496749.post-43939404259520124112013-01-30T15:07:00.002-08:002013-02-01T13:37:29.674-08:00OpenSXCE<h2> Mystery solved</h2> The new open sourced solaris / illumos distribution is called OpenSXCE (as in Open Solaris Express Community Edition - a clin d'oeil to the original open sourcing done by Sun and the Express program)<br /> <h2> OpenSXCE</h2> brought to you by <a href="mailto:martin@martux.org">Martin Bochnig</a> 30 January 2013<br /> Here is the first release of OpenSXCE for SPARC.<br /> <a href="http://dist.opensxce.org/OpenSXCE_2013.01_Live_SPARC.iso">OpenSXCE 2013.01 Live for SPARC</a> (1.2GB) -- 30 January 2013<br /> <br /> The site is <a href="http://www.opensxce.org">www.opensxce.org</a><br /> <br /> Note the <i>md5sum</i> : <b>330a82654405c77c8cea903ed18117f2</b><br /> <br /> <br /> <a href="http://www.twitter.com/f_dion">@f_dion</a> <br /> <br />Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-62103940104107861612013-01-28T09:22:00.000-08:002013-01-28T09:22:30.014-08:00Mysterious post<h2> Hint</h2> It has to do with illumos, solaris and sparc <br /> <br /> <h2> What he said</h2> <blockquote class="tr_bq"> <table cellpadding="0" class="cf gJ" style="font-family: &quot;Courier New&quot;,Courier,monospace;"><tbody> <tr class="acZ"><td class="gF gK"><table cellpadding="0" class="cf ix"><tbody> <tr><td><div class="iw"> <span class="gD" name="Martin Bochnig" style="font-size: small;">Martin Bochnig</span><span style="font-size: small;"> </span><span class="go" style="font-size: small;"><a class="acP" href="http://support.google.com/mail/bin/answer.py?hl=en&amp;ctx=mail&amp;answer=1311182" target="_blank">via</a>&nbsp;jeeves.archives.listbox.com</span></div> </td></tr> </tbody></table> </td><td class="gH"><div class="gK"> <div class="zd" role="checkbox" style="outline: 0px none;" tabindex="-1"> <span class="T-KT" style="font-size: small;"><img alt="" class="f T-KT-JX" src="https://mail.google.com/mail/images/cleardot.gif" /></span></div> </div> </td><td class="gH"><span style="font-size: small;"><br /></span></td><td class="gH acX" rowspan="2"><span style="font-size: small;"><br /></span></td></tr> <tr class="acZ xD"><td colspan="3"><table cellpadding="0" class="cf adz"><tbody> <tr><td class="ady"><div class="iw ajw"> <span class="hb" style="font-size: small;">to <span class="g2" name="discuss">discuss</span>, <span class="g2" name="developer">developer</span></span><br /> <br /> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: small;">Hi Garrett,</span><span class="hb" style="font-size: small;"><span class="g2" name="developer"> </span></span><span style="font-size: small;">&nbsp;</span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: small;">Release tomorrow.</span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: small;">Status: <a href="http://twitter.com/MartinBochnig" target="_blank">http://twitter.com/<wbr></wbr>MartinBochnig</a></span></div> </div> </td></tr> </tbody></table> </td></tr> </tbody></table> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: small;">Till then.</span></div> <span style="font-size: small;"><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">Martin</span></span> </blockquote> <br />Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-70376860706944044382013-01-21T18:09:00.001-08:002013-01-21T18:09:14.830-08:00Git error setting certificate verify location<h2> Problem</h2> Under OpenIndiana, you might have&nbsp; tried a git clone https://github.com/something....<br /> <br /> and got this:<br /> <br /> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">Cloning into something...<br />error: error setting certificate verify locations:<br />&nbsp; CAfile: /etc/curl/curlCA<br />&nbsp; CApath: none<br />&nbsp;while accessing https://github.com/something....</span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;"><br /></span></div> <span style="font-size: x-small;"><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">fatal: HTTP request failed</span></span><br /> <h2> Solution</h2> The&nbsp; fix is easy:<br /> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;"><br /></span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">su<br />Password: </span></div> <pre style="font-family: &quot;Courier New&quot;,Courier,monospace;"><span style="font-size: x-small;">mkdir -p /etc/curl &amp;&amp; cat /etc/certs/CA/*.pem &gt; /etc/curl/curlCA</span></pre> Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-65289580711911939842013-01-17T07:38:00.000-08:002013-01-17T07:38:18.989-08:00LZ4 for ZFS<h2> IllumOS update</h2> <br /> Look what just happened last night:<br /> <br /> <a href="https://www.illumos.org/issues/3035">https://www.illumos.org/issues/3035</a><br /> <br /> <b>Description</b><br /> <div class="wiki"> LZ4 is a new high-speed BSD-licensed compression algorithm written by Yann Collet that delivers very high compression and decompression performance compared to lzjb (&gt;50% faster on compression, &gt;80% faster on decompression and around 3x faster on compression of incompressible data), while giving better compression ratio. For detailed benchmark numbers see the attached spreadsheet.</div> <h4> Updated by <a href="https://www.illumos.org/users/1754">Christopher Siden</a> <a href="https://www.illumos.org/projects/illumos-gate/activity?from=2013-01-16" title="01/16/2013 11:15 pm">about 16 hours</a> ago</h4> <ul class="details"> <li><b>Status</b> changed from <i>New</i> to <i>Closed</i></li> </ul> <div class="wiki" id="journal-8810-notes"> <pre></pre> <pre></pre> <br /> <h2> What does it mean? </h2> In plain english, the latest <a href="http://www.illumos.org/">IllumOS</a> kernel has LZ4 compression available for the ZFS filesystem.</div> Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-56535231021657064772012-12-12T16:28:00.003-08:002012-12-12T16:28:32.107-08:00Bonjour / avahi / zeroconfI use a few Raspberry Pi on my network. I gave them proper hostnames. I could map the DNS and all that, but I simply have avahi running on them, so I can access them with <i>hostname.local</i>.<br /> <br /> <h2> Multicast</h2> For OpenIndiana to support zeronconf, all that is needed is this:<br /> <br /> <blockquote class="tr_bq"> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">fdion@p490s:~$ <b>su</b><br />Password: <br />fdion@p490s:~# <b>vi /etc/nsswitch.conf </b></span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">[here, I just added mdns:</span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">hosts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; files mdns dns<br />ipnodes:&nbsp;&nbsp;&nbsp; files mdns dns</span></div> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">]<br />fdion@p490s:~# <b>svcadm enable svc:/network/dns/multicast:default</b><br />fdion@p490s:~# <b>exit</b></span></div> </blockquote> From that point on, I can simply use:<br /> <br /> <blockquote class="tr_bq"> <div style="font-family: &quot;Courier New&quot;,Courier,monospace;"> <span style="font-size: x-small;">fdion@p490s:~$ <b>ssh -X rpi01.local</b></span></div> </blockquote> <br /> And of course, I had to configure Avahi on the Raspberry Pi.<br /> <br /> This also works with my Macs, I can use <i>ssh mac01.local</i> for example.Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-40595671904760901342012-11-09T08:57:00.003-08:002012-11-09T08:58:23.886-08:00Virtual Box with SMF control<h2> SMF</h2> The Service Management Facility (SMF), first introduced in Solaris Nevada, as project Greeline, and then later in the commercial Sun Solaris, is the modern way to manage system and application services in a self healing, fault tolerant way. It replaces the old init mechanism.<br /> <br /> Some historical background information (including all the PSARCs) on SMF is still available at <a href="http://hub.opensolaris.org/bin/view/Community+Group+arc/SMF-policy">opensolaris.org</a>.<br /> <br /> Another good read is the <a href="http://wiki.joyent.com/wiki/display/jpc2/Using+the+Service+Management+Facility">Joyent wiki</a>. <br /> <h2> VirtualBox</h2> <br /> Alexandre Dumont published some scripts for <a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a>, to integrate with SMF. That was in 2009. Not too long ago, I was trying to find his blog and it was down.<br /> <br /> I just stumbled upon:<br /> <a href="https://forums.virtualbox.org/viewtopic.php?f=11&amp;t=33249">https://forums.virtualbox.org/viewtopic.php?f=11&amp;t=33249</a><br /> <br /> And there is a sourceforge project for it, here: <br /> <a href="http://sourceforge.net/projects/vboxsvc/">http://sourceforge.net/projects/vboxsvc/</a><br /> <h2> Installation</h2> <br /> From the README, using the pkgadd in a global zone:<br /> <br /> <pre> # gzcat COSvboxsvc-0.16.pkg.gz &gt; /tmp/x # pkgadd -d /tmp/x -G You probably want the -G flag. It doesn't block you from manually installing the same package in a certain local zone where you'd use VirtualBox, but it blocks automatic package propagation to those local zones which are not expected to use and run VirtualBox. For us these zones are rare, zero or one per machine (there is no definite/hardcoded limit though). YMMV. To update the package you can simply remove the old version and install anew, i.e.: # gzcat COSvboxsvc-0.16.pkg.gz &gt; /tmp/x # pkgrm COSvboxsvc # pkgadd -d /tmp/x -G A cleaner way is to use an admin file to overwrite an existing package, i.e. one from LiveUpgrade: # gzcat COSvboxsvc-0.16.pkg.gz &gt; /tmp/x # pkgadd -d /tmp/x -G -a /etc/lu/zones_pkgadd_admin Also note that this package "depends" on SUNWvbox, so that should be installed beforehand.</pre> Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-5244318128902236482012-11-08T10:14:00.000-08:002012-11-08T10:14:24.840-08:00Tribblix<h2> &nbsp;</h2> <h2> &nbsp;</h2> <h2> OpenSolaris</h2> <br /> When Solaris was open sourced, several distributions came to life from the OpenSolaris source code. Most of them however relied on closed bits provided by Sun. Then Oracle came and put Han Solo in a carbonite... err, wrong story. But you get the point.<br /> <br /> With the emergence of Illumos (opensolaris with 100% open bits), we are starting to see again a surge in number of distributions based on it, and this is great news.<br /> <br /> Now, there are several focusing on storage, and of course that is a natural application for an operating system based on Solaris technologies, such as ZFS.<br /> <br /> But I want a desktop. I'm currently using <a href="http://solarisdesktop.blogspot.com/2012/09/openindiana-workstation-oi151-year-later.html">OpenIndiana, and it works fine for my needs</a>, better than any other OS on the planet, due to the fact I need to manage largish projects on my desktop. One in particular has over 3/4 million lines of code. Zones (clones) and snapshots are a must to tackle that. And dtrace to debug. But if you've ever used Solaris 10 or above you already know that.<br /> <br /> <h2> Tribblix</h2> <br /> Today, we are looking briefly at Tribblix.<br /> <br /> The homepage is at <a href="http://www.tribblix.org/">http://www.tribblix.org/</a><br /> <br /> What's in the name? Peter Tribble answers: "<br /> <blockquote class="tr_bq"> Well, while it may seem rather vain, if I were to choose a name from scratch I would probably have come up with some obscure solar-powered pun. But at one of the OpenSolaris summits we took part in a Go Game, and one of the questions was:</blockquote> <blockquote class="tr_bq"> Which of the following is not an OpenSolaris-derived distribution: </blockquote> <ul> <li>Schillix</li> <li>Tribblix</li> <li>Belenix</li> <li>OpenSolaris 2009.06</li> </ul> <blockquote class="tr_bq"> I'm not sure that whoever set the question knew how close that was to the name of someone on the project, but that was how the name became planted in my consciousness."</blockquote> <br /> Pretty funny... At that time, there was no Tribblix, but it sparked something, and Peter has now released Tribblix.<br /> <br /> <h2> Speaking of Sparc</h2> <br /> When asked on the illumos discussion list about availability of a Sparc version (Tribblix is x86), Peter indicated the following:<br /> <blockquote class="tr_bq"> "<br /> <div class="im"> <blockquote class="gmail_quote" style="border-left: 1px #ccc solid; margin: 0 0 0 .8ex; padding-left: 1ex;"> Do you have a <span class="il">SPARC</span> ISO for your SVR4 distro, Peter?</blockquote> </div> <br /> Not yet. That shouldn't be too difficult. (It's much easier to develop<br /> and test on x86, as I can repeatedly spin something up in VirtualBox<br /> until I get it right. The differences in building the ISOs for <span class="il">sparc</span> are<br /> relatively small.)<br /> <br /> As I recall, though, Martin said he had stripped out the IPS packaging<br /> from his DVD, which I would need in order to convert all the packages."</blockquote> <br /> Peter is referring to Martin Bochnig's own distribution that runs on Sparc systems. I will cover that one in the next blog post.<br /> <br /> <h2> ISO Please</h2> <br /> It is to be found here: http://www.tribblix.org/tribblix-0m1.iso<br /> <br /> From OpenIndiana, it is a simple matter of issuing:<br /> <br /> <blockquote class="tr_bq"> $ cdrw -i tribblix-0m1.iso</blockquote> <br /> From any other OS, use your favorite method to burn an ISO. This is a CD image, btw, something rare nowadays.<br /> <br /> <h2> Install</h2> <br /> The installation process is relatively quick, but it is for people who are well versed in the Solaris OS. After choosing your country and language, you'll have to play with format and fdisk before starting the install process.<br /> <br /> Instead of going through the steps here I will point you to <a href="http://www.tribblix.org/install.html">Peter's install guide.</a><br /> <br /> One thing I'll point out, when you are about to run the install script, make sure you type the following:<br /> <br /> <blockquote class="tr_bq"> <pre>/.cdrom/live_install.sh c1t0d0s0 x11 retro-desktop develop xfce</pre> </blockquote> That way, you install x11 etc. Else, you are 100% command line.<br /> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqh3mFIM6bAuHBwPY-LRNn-QPgcrMFwl4sdFhyphenhyphenKIJG_E8FS_CbfeN44fGe1MIJ1wZ47HWbO5QbHoqfbKiSG57WcolqB6F4Qola-TWx-ht-YEs9plDpdscKCxtcsxY0_LbjDmZomI4CCQ/s1600/first_boot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="222" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqh3mFIM6bAuHBwPY-LRNn-QPgcrMFwl4sdFhyphenhyphenKIJG_E8FS_CbfeN44fGe1MIJ1wZ47HWbO5QbHoqfbKiSG57WcolqB6F4Qola-TWx-ht-YEs9plDpdscKCxtcsxY0_LbjDmZomI4CCQ/s400/first_boot.png" width="400" /></a></div> <br /> <br /> <br /> <br /> <h2> </h2> <h2> Desktop</h2> <br /> When you boot Tribblix, you end up with a text login prompt. This is also the approach Raspbian are taking for the Raspberry Pi. I like that.<br /> <br /> You login as jack initially (just as you would login as pi on a Raspbian distro). Then you can either startx, which will give you a spartan desktop called TWM. For some that might be enough.<br /> <h2> </h2> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikutlTLj0m1o0qY36U2bXaEToE3RVQsRY0-qabO1twE15e9qWGVkhyphenhyphenoUSU2TmYOSHhipw_OwPtaPtAIGYFtpWNBHalJd52AbzsyhcRMqW4DHHhPL8jB7D4CzH4QwuY5iO7UOWNHAEW_A/s1600/twm.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikutlTLj0m1o0qY36U2bXaEToE3RVQsRY0-qabO1twE15e9qWGVkhyphenhyphenoUSU2TmYOSHhipw_OwPtaPtAIGYFtpWNBHalJd52AbzsyhcRMqW4DHHhPL8jB7D4CzH4QwuY5iO7UOWNHAEW_A/s400/twm.png" width="400" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">TWM: Spartan and fast</td></tr> </tbody></table> You can also run wmaker.inst to modify your startx to use WindowMaker. I ran this with 512MB of ram, and it runs, a little tight.<br /> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0kfxp9BvYCXFVjeyGbuLOHN1oIb8n425O-QrmQFybNN8azQvlWKI80MIlCgKCNjux181Lvz5ZbO9VB9WKQTsVDGRClO-EzminCpte0VqsEeWo26fm-GuWc5_ZYgtRxJETFCReWzghQg/s1600/windowmaker.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0kfxp9BvYCXFVjeyGbuLOHN1oIb8n425O-QrmQFybNN8azQvlWKI80MIlCgKCNjux181Lvz5ZbO9VB9WKQTsVDGRClO-EzminCpte0VqsEeWo26fm-GuWc5_ZYgtRxJETFCReWzghQg/s400/windowmaker.png" width="400" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">WindowMaker</td></tr> </tbody></table> <h2> &nbsp;XFCE</h2> <br /> Peter did set it up so you could also start XFCE effortlessly. Instead of typing the typical startx,you would:<br /> <br /> <blockquote class="tr_bq"> $ startxfce4</blockquote> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga6ulDIecJN_SDLMhn8cgr3ujyGBWZ22LqfflUjIoRm3HLfigMQioXqVbd7Ap823hhCHpZvFI4Or09tMMSC_7C5cfCp986LBYjW_A_rlIfIZCn4hPwVEd7jGmjcQsKMHj4PLBxJ57lzA/s1600/xfce4.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga6ulDIecJN_SDLMhn8cgr3ujyGBWZ22LqfflUjIoRm3HLfigMQioXqVbd7Ap823hhCHpZvFI4Or09tMMSC_7C5cfCp986LBYjW_A_rlIfIZCn4hPwVEd7jGmjcQsKMHj4PLBxJ57lzA/s400/xfce4.png" width="400" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">XFCE4: light yet full featured</td></tr> </tbody></table> <br /> What is interesting is that with 512MB of RAM, I still have 108MB free on the above screenshot.<br /> <br /> There is potential thus to port this over to the <a href="http://raspberry-python.blogspot.com/">Raspberry Pi</a>. The Pi uses an ARM11 (ARM V6) processor, but OpenSolaris had been ported to ARM in the past: <a href="http://hub.opensolaris.org/bin/view/Project+osarm/installation">http://hub.opensolaris.org/bin/view/Project+osarm/installation</a>. Another real plus to a port to the Raspberry Pi is that the hardware is pretty much set in stone, so no need for a bazillion sound and video drivers, for example.<br /> <br /> Anyway, this concludes our brief review of Tribblix. It is very much a work in progress, but it shows that some interesting stuff can happen still with regards to Solaris and derived distributions. Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-34107063973225632522012-11-03T17:58:00.001-07:002012-11-03T17:58:09.680-07:00That is so wrong...At some point, somehow, somebody thought this would be a good idea...<br /> <br /> <div class="separator"style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOtrUHom9VOSSePSIZDsMXHRAvQaxH3sYsMQEgBNuzJIUGMlbEjAXeIbbCGW2YaeWi01LvJsD_Byip0R2fwmAb_w_zOqV0zcN7faa46MOFhUWg9w934I-ZsiqeGtMS57JUuj_cUgRUiw/s640/blogger-image--991496643.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOtrUHom9VOSSePSIZDsMXHRAvQaxH3sYsMQEgBNuzJIUGMlbEjAXeIbbCGW2YaeWi01LvJsD_Byip0R2fwmAb_w_zOqV0zcN7faa46MOFhUWg9w934I-ZsiqeGtMS57JUuj_cUgRUiw/s640/blogger-image--991496643.jpg" /></a></div>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-87390395035516981132012-10-31T05:55:00.004-07:002012-10-31T05:55:46.231-07:00Lots of new solaris<h3> Oracle Solaris 11.1</h3> <br /> First off, we will start with Oracle's new Solaris: Solaris 11.1<br /> <br /> So, OK, it is not a brand spanking new OS, but it is an update.<br /> <br /> According to Oracle, the new key features are:<br /> <ul> <li>8x faster database startup and shutdown and online resizing of the database SGA&nbsp;</li> <li>Kernel Mode Acceleration for Oracle Real Application Clusters (Oracle RAC)</li> <li>4x faster Oracle Solaris Zones updates</li> <li>Oracle Solaris Zones on Shared Storage</li> </ul> <br /> Also, some other new features:<br /> <br /> <h4> New Logging Daemon</h4> rsyslog, the popular daemon for message logging, has been included in Oracle Solaris 11.1. It is not enabled by default, but administrators can switch to this new logging daemon by disabling <i>svc:/system/system-log:default</i> and enabling <i>svc:/system/system-log:rsyslog</i> using SMF administrative utilities.<br /><br /> <h4> Simple SMF Manifest Creation Tool</h4> The svcbundle(1M) command makes it easier to generate SMF manifests and profiles. By providing a few options on the command line, the user can generate a wide variety of manifests and profiles. This relieves the user from the burden of writing XML files.<br /> <br /> <br /> <h4> File System Statistics for Oracle Solaris Zones</h4> Until now, global zone administrators had no way of monitoring activity in a particular zone, nor could non-global zone administrators monitor fstype activity in their own zones. This update provides a per-fstype kstat (kernel statistic) for each zone. The global zone also has a kstat exclusively reporting its activity.<br /> <br /> But most of the new features of interest are in the networking stack:<br /> <br /> <h4> Edge Virtual Bridging (EVB)</h4> EVB extends network virtualization features into the physical network infrastructure allowing users to manage bandwidth and to increase utilization of network resources. EVB is an IEEE standard that defines new protocols and mechanisms for exchanging information about virtual<br />links between hosts/stations and a switch/bridge. Support for the EVB Virtual Station Interface (VSI) Discovery and Configuration Protocol (VDP) and the Edge Control Protocol (ECP) are new in this release.<br /> <br />Using EVB, properties (such as the bandwidth limit) of the Oracle Solaris Virtual NIC (VNIC) can be exchanged with the switch so that the switch can be configured accordingly for the VNIC.<br /> <br />The standard is defined in the IEEE 802.1Qbg specification. Additional information can be obtained from <i>evb(7P), vdpd(1M), and dladm(1M)</i>.<br /> <br /> <h4> Data Center Bridging (DCB)</h4> DCB allows the same network fabric to be used for both Ethernet and storage traffic reducing overall infrastructure costs in a datacenter. Support for enhanced transmission selection (ETS) based on IEEE 802.1Qaz has been added to the DCB functionality introduced in Oracle Solaris 11 11/11. This will provide guaranteed bandwidth and lossless Ethernet transport for<br />converged network environments where storage protocols share the same fabric as regular network traffic.<br /> <br /> <h4> Oracle Solaris Link Aggregation to Span Across Multiple Switches</h4> Link aggregation support in Oracle Solaris 11, being 802.3ad–compliant, does not allow aggregations to span across multiple switches. Thus, an administrator can either work with a single switch configuration (availability might suffer since the switch becomes a single point of failure) or use vendor-specific mechanisms to explicitly configure switches. This feature extends Oracle Solaris link aggregation to provide for a solution that is<br />independent of the switch vendor to span aggregations across multiple switches.<br /> <br /> <h4> VNIC Migration</h4> Associations between Physical NICs (PNICs) and Virtual NICs (VNICs) can now be changed without an outage in the network configuration. For example, if a PNIC becomes saturated, a VNIC associated with one key application can be migrated across to another PNIC (one with available bandwidth) without taking an outage. <br /> <br /> But, I'm not here to just talk about the now closed source Solaris. There is a lot going on in the open source front too. The next two articles will demonstrate that clearly.<br /> <br />Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-9206514053460682532012-10-02T10:41:00.001-07:002012-10-02T10:41:55.802-07:00The SidekickWrapping up the week, I just wanted to mention The Sidekick. No, not that phone thing. This <a href="http://raspberry-python.blogspot.com/2012/09/sidekick.html">one (raspberry-python blog)</a>. And the <a href="http://raspberry-python.blogspot.com/2012/09/sidekick-2.html">follow up article</a>.<br /> <br /> The sidekick is my desktop's sidekick. A secondary computer that complements my workstation. Not in term of speed or anything like that. But in term of adding a whole world of possibilities to interface with all kinds of stuff. Like a vinyl cutter, or a barometer. <br /> <br /> <h2> Pi. Raspberry Pi </h2> Quite the sidekick this little computer. If you've never heard of it, head out to <a href="http://raspberrypi.org/">Raspberrypi.org</a> and read up on it, check the FAQ. Then come back to the <a href="http://raspberry-python.blogspot.com/">Raspberry Pi Python Adventures</a> to learn more.<br /> <br /> <br /> [edit] forgot to publish this, so here you go. Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-44968653917103143312012-10-02T10:21:00.000-07:002012-10-02T10:21:05.833-07:00ZFS send with built in buffer ( mbuffer ?)Currently attending the live video feed from ZFS day. Somebody made the suggestion to add buffering to zfs send to resolve performance and mismatch issues.<br /> <br /> Sounds like a great idea to me.<br /> <br /> Over the years, in the past, mbuffer has been suggested as the solution, but not everyone is getting success with that:<br /> <br /> <br /> <a href="http://comments.gmane.org/gmane.os.solaris.opensolaris.zfs/40996">[zfs-discuss] zfs send to remote any ideas for a faster way than ssh?</a><br /> <br /> Alasdair offers <a href="http://blogs.everycity.co.uk/alasdair/2010/07/using-mbuffer-to-speed-up-slow-zfs-send-zfs-receive/">this recipe</a> with mbuffer that works for some. I'm thinking OpenIndiana specific, because it aborts using some other OSes.<br /> <br /> <br /> Anyway, zfs send / receive should just work out of the box, so again, a great idea.Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-8437252665383128972012-09-16T11:56:00.000-07:002012-09-16T11:56:19.385-07:00NTFS for OpenIndianaIn case you weren't aware, check out <a href="http://jp-andre.pagesperso-orange.fr/openindiana-ntfs-3g.html">NTFS-3G on OpenIndiana</a>. The support forum is <a href="http://tuxera.com/forum/">here</a> if you have any issues to report. It should just work, though. Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-89531392144986411512012-09-14T14:00:00.003-07:002012-09-14T14:17:58.673-07:00OpenIndiana workstation, OI_151 a year later<br /> Well, coincidentally, I just noticed that I've had OpenIndiana (OI 151) on my main workstation for a whole year exactly today (September 14th 2011, and today is September 14th 2012).<br /> <br /> I also find that although it can multiboot (from the OI grub) Windows 7 and Linux Mint beside OI, I've not really spent any time in these other OSes. Just no need. I'll spend some time on the Mac workstation (my 8th Mac since the 80s), but mostly for XCode.<br /> <br /> Outside of XCode though, I get back to OI almost immediately. The Mac, like my VMWare server (with various OSes) is used mostly as part of my build system, driven by <a href="http://jenkins-ci.org/">Jenkins CI</a>. And I got lazy to walk to the Mac, so I actually access it with VNC:<br /> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQHMhhll2VSy7EWyIedrkQSAy-bDoU4fTT4y1DtNlReHXrEMNo1tgbI6N6CLprg6mvo50v5Mnp1Y8sLmiQuBRNVAUwTkUzBYggZhnAl_SrEI_XxRDYLfUnOnIxRH0rSWFFXtmI0O6mg/s1600/desktop2560_1440.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQHMhhll2VSy7EWyIedrkQSAy-bDoU4fTT4y1DtNlReHXrEMNo1tgbI6N6CLprg6mvo50v5Mnp1Y8sLmiQuBRNVAUwTkUzBYggZhnAl_SrEI_XxRDYLfUnOnIxRH0rSWFFXtmI0O6mg/s320/desktop2560_1440.png" width="320" /></a></div> <br /> <br /> <br /> The VNC window is 1600x1200, that gives an idea of how spacious a 2560 x 1440 desktop really is. The monitor on the OpenIndiana workstation is a Catleap Q270 which uses the same LG IPS panel as the Apple 27", but without the awful super glossy. It still has a bit of reflection, but it is low gloss (I dont know of any matte version of that panel). It replaced two 20" 1600x1200 in a xinerama 3200x1200 desktop. I needed more vertical space, I can see more code at once like that.<br /> <br /> In case anybody needs it, the Q270 doesn't provide the correct edid info, so you have to hardwire one in the /etc/X11/xorg.conf:<br /> <br /> <pre><code> Section "Screen" Option "CustomEDID" "DFP-0: /etc/X11/edid-q270.bin" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 # Option "UseEdid" "False" # Option "ExactModeTimingsDVI" "True" Option "TwinView" "0" Option "metamodes" "nvidia-auto-select +0+0" SubSection "Display" Depth 24 Modes "2560x1440" EndSubSection EndSection </code> </pre> and the edid as a hex dump: <br /> <pre><code> 00 FF FF FF FF FF FF 00 04 62 9B 04 00 00 00 00 28 15 01 03 A5 3C 22 78 22 6F B1 A7 55 4C 9E 25 0C 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 56 5E 00 A0 A0 A0 29 50 30 20 35 00 55 50 21 00 00 1A 00 00 00 FC 00 51 48 44 32 37 30 0A 20 20 20 20 20 20 00 00 00 FC 00 0A 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 FC 00 0A 20 20 20 20 20 20 20 20 20 20 20 20 00 7E 0A </code> </pre> You'll have to convert the hexdump back to bin and put it in /etc/X11/edid-q270.bin (or whatever you put in the xorg.conf). Bug me in the comments if you need the actual bin file, I'll post it somewhere.<br /> <br /> I'll leave you with one of my favorite wallpapers (I have a bunch of wallpapers on autorotation, and different for each workspace):<br /> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpfsVdXgL7CsTDUkEWlwD3W5YNSUaWJpEdh9rEQb-k2eT-ZTuhgoRSfal3aGfwgUh6fw0oBdGwmWQqPnpy_UZz0CHQGiWsiGb5Edg2rR8_QTDR2gAtxsqWYJdUJdg7Pa3TITd_yuOixA/s1600/rockies.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpfsVdXgL7CsTDUkEWlwD3W5YNSUaWJpEdh9rEQb-k2eT-ZTuhgoRSfal3aGfwgUh6fw0oBdGwmWQqPnpy_UZz0CHQGiWsiGb5Edg2rR8_QTDR2gAtxsqWYJdUJdg7Pa3TITd_yuOixA/s320/rockies.png" width="320" /></a></div> Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-28809772883977048252012-09-14T12:55:00.001-07:002012-09-14T18:35:36.652-07:00Netscape, Sun, Oracle. No, Heliod web serverBack in the days, the netscape web server (at some point branded iPlanet) was the reference for web serving. Of course, came Apache (a collection of patches to NSCA's HTTPs hence: a "patchy" server...). We are talking the 90s here to put things in perspective. I stuck to Apache for a while while IIS was being deployed all around me.<br /> <br /> <h2> iPlanet</h2> Although I felt a special attachment to Apache, knowing personally some of the original contributors (like Brian Behlendorf), I started doing speed comparisons, benchmarks, and the best performance I could get on my servers was from the iPlanet server. In the early 2000s this was known as Sun One Web Server and that's when I switched. Then the Java buzzword started infecting everything, including that web server, and ended up with the name Sun Java System Web Server. The web server part had no Java in it, but the bundled app server module did of course, along with the fancy web interface that was generated by that module.<br /> <br /> The story doesn't end there however. Somebody (thank you, whoever you are) figured that before something bad happened to Sun, it would be wise to open source the server. Hence appeared the Open Web Server. You can read Joerg's blog comment on this <a href="http://www.c0t0d0s0.org/archives/5203-Open-Web-Server.html">here at c0t0d0s0.org</a><br /> <br /> I grabbed all the resources that I could related to it, in case, tried to compile it, but the barrier to entry was high in term of the number of libraries. Still, I figured that I'd wait for the project to get some momentum before switching.<br /> <br /> How wise that proved to be to open source the server... Soon after, Oracle bought Sun, closed most open source projects, and rebranded yet again the web server, now calling it Oracle iPlanet Web Server. It is now almost impossible to download, as it is hidden in the Fusion middleware cluster on Oracle's cloud delivery. It is mostly pushed by Oracle as a simple reverse proxy for weblogic.<br /> <br /> <h2> Performance</h2> <br /> Of course, with Oracle's approach, one would probably be wise to jump ship. But on a server with sufficient RAM (if you have a very low RAM scenario, lighttpd works well), it is the best performing of the current breed. I'm not talking about Apache. After all, it is 20 years old, so I expect something more recent to be faster. No, I'm talking about faster than lighttpd, faster than Cherokee. So I started again down the path of getting a stable build of Open Web Server last month. I want the performance, but I'd like the flexibility of having the source to figure out specific issues.<br /> <br /> <h2> Made my day</h2> Today, I got a nice surprise in my email from Dave Koelmeyer to the OpenIndiana discussion list: <br /> <pre><code> Not related to OpenIndiana, but I thought it interesting stumbling across this today: the open source guts of the "Sun Java System" web server product which Oracle apparently swept under the carpet (the open source bits that is, not the proprietary, rebranded offering). <a href="http://173.255.252.27/jyri/articles/index.php/web-server/">http://173.255.252.27/jyri/articles/index.php/web-server/</a> </code> </pre> That's pretty exciting news! There's even a sourceforge page: <a href="http://sourceforge.net/projects/heliod/">http://sourceforge.net/projects/heliod/</a> The name is Heliod<br /> <br /> <h2> The future</h2> I think I'll be running this web server pretty soon. A web interface to manage the complex configuration would probably be a good addition to it for those that are new to it, and if I get some time, I'll write one in Python (with web.py). I'll probably propose that project to our local Python User Group (PYPTUG).Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com1tag:blogger.com,1999:blog-5331825847912496749.post-3316180586782881792012-08-17T12:25:00.000-07:002012-08-17T12:25:00.897-07:00Glassfish 3.1.2Have you installed Glassfish 3.1.2 on a Solaris variant? For one thing, it has SMF integration, that is, it creates (optionally) a service that can be controlled by svcadm. And then there are the functionalities that are available on all platforms. For example, clustering (both on the open source edition and oracle supported versions). So, basically, it is just a matter of downloading the file and then, as root (or sudo or pfexec depending how you are set up): <br /> <blockquote> # sh glassfish-3.1.2-unix-ml.sh </blockquote> <blockquote> Extracting the installer archive... </blockquote> <blockquote> Extracting the installer runtime... </blockquote> <blockquote> Extracting the installer resources... </blockquote> <blockquote> Extracting the installer metadata... </blockquote> <blockquote> Welcome to GlassFish installer </blockquote> <blockquote> Using the user defined JAVA_HOME : / </blockquote> <blockquote> Entering setup... SwixML 1.5 (#144) </blockquote> This will bring up the usual GUI installer (assuming you are installing in the global zone, or you ssh -X to your zone). Make sure you select custom instead of express install. Now, this is pretty straightforward, and wouldn't merit a blog entry, but I wanted to bring up at least one thing that might stump you if you are installing in a solaris container / zone. The web admin (port 4848) expects localhost, as in http://localhost:4848, else it will error out. If we are in a zone, it is not too convenient. Sure, you could do an ssh -X zone_name and then run firefox from the zone: <br /> <blockquote> # ssh -X server1 </blockquote> <blockquote> Oracle Corporation SunOS 5.11 11.0 May 2012 </blockquote> <blockquote> user@server1:~$ firefox -no-remote </blockquote> This will launch firefox from the zone. Without the -no-remote, firefox will run in the global zone, and the login to the admin console will fail: <b>Error Configuration Error Secure Admin must be enabled to access the DAS remotely.</b> Again, you could do that... A better approach is to enable access through the host (zone) name instead of localhost. How? <br /> <blockquote> cd /opt/glassfish3/bin </blockquote> <blockquote> ./asadmin --host server1 --port 4848 enable-secure-admin </blockquote> Replace server1 by the hostname of the zone and you are almost there. For the change to take place, a restart of the app server is required. Easiest is reboot of the zone, but hold on! We have to make sure the service is enabled: <br /> <blockquote> user@server1:~$ svcs domain1Service </blockquote> <blockquote> STATE STIME FMRI disabled 13:35:17 svc:/application/GlassFish/domain1Service:default </blockquote> <blockquote> user@server1:~$ su </blockquote> <blockquote> root@server1:~# svcadm enable domain1Service </blockquote> <blockquote> root@server1:~# svcs domain1Service </blockquote> <blockquote> STATE STIME FMRI offline* 15:15:10 svc:/application/GlassFish/domain1Service:default </blockquote> <blockquote> root@server1:~# svcs domain1Service </blockquote> <blockquote> STATE STIME FMRI maintenance 15:15:19 svc:/application/GlassFish/domain1Service:default </blockquote> The first time around it will be in maintenance, because glassfish is already running. We issue a reboot command in the zone and once it comes back up: <br /> <blockquote> user@server1:~$ svcs domain1Service </blockquote> <blockquote> STATE STIME FMRI online 15:18:11 svc:/application/GlassFish/domain1Service:default </blockquote> That is it. We can now access http://server1:4848Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0tag:blogger.com,1999:blog-5331825847912496749.post-85042453792136802642011-10-08T05:44:00.001-07:002011-10-08T05:44:04.136-07:00My Laptop (sxce or solex)I never did post this, but last year i installed Solaris 11 express on my laptop (an older dell m4400 with 8 gb of ram and Intel quad core extreme), and missed the look and feel of SXDE (the most productive os out of the box from sun/oracle to this day) and SXCE. You can see the result. Hard to tell it is solaris 11 express (solex).<br /> <br /> <div class="separator"style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXOVXwutfaVMTYGsKhN8MovyVnX71Hw3oR0oryhPe7B5h21-_CqpNnlO3l7t-rn4kxk_n79r6LpFF5Blq4gy17ArDK4fHyV4YHr4mok-Qs3iwTBGplr3xH31qPpyHYWmsdqn-dmceDmw/s640/blogger-image--746787088.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXOVXwutfaVMTYGsKhN8MovyVnX71Hw3oR0oryhPe7B5h21-_CqpNnlO3l7t-rn4kxk_n79r6LpFF5Blq4gy17ArDK4fHyV4YHr4mok-Qs3iwTBGplr3xH31qPpyHYWmsdqn-dmceDmw/s640/blogger-image--746787088.jpg" /></a></div>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com3tag:blogger.com,1999:blog-5331825847912496749.post-18685975061037925182011-10-03T18:11:00.001-07:002011-10-03T18:26:49.388-07:00Solaris Desktop on the move (ipad)So as seen here in the picture, i'm still using solaris as my desktop. Big deal, right?<br /><br />But this is on an Apple ipad 2. Using Oracle virtual desktop, served from a solaris 10 sun ray server, and to top it all off, from a vmware server. Oh yeah, and off verizon 3g or public wifi access points and VPN. What the Sun Microsystems sunray laptop could have been, plus relatively inexpensive<br /><br />Since Apple will be making some announcements in a few hours (and who knows what will they announce- new ios or new iphone or just software ), I thought it might be a good time to mention this, for those that do not know about this solution. Granted, there are so many applications for the ipad / iphone and ipod, that it is easy to never see or hear about them.<br /><br />Shortly, Solaris 11 fcs should be available, and SRS 5.2 will hopefully function properly on it, giving this a more modern desktop.<br /><br />And now back to your regular programming... (no pun intended)<div class="separator"style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNCH_OrekSmlZ-5GJCYIyn-mhVg7MGBx1yByct3NvAqMNxF-ebufkmXg1M9APJysHDSLJBDgni2mR-TUqcJ9ynqzs5jSlmIzhEbBR8BZ_8Z_h60Jd30aZ4WAxHTlqwf86Sf0vt_F-86g/s640/blogger-image-555144005.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNCH_OrekSmlZ-5GJCYIyn-mhVg7MGBx1yByct3NvAqMNxF-ebufkmXg1M9APJysHDSLJBDgni2mR-TUqcJ9ynqzs5jSlmIzhEbBR8BZ_8Z_h60Jd30aZ4WAxHTlqwf86Sf0vt_F-86g/s640/blogger-image-555144005.jpg" /></a></div>Francois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.com0