<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-118955279609372537</id><updated>2012-02-13T05:57:48.534-08:00</updated><category term='openindiana'/><category term='rbac'/><category term='psarc'/><category term='sw-porters'/><category term='other'/><category term='opensolaris'/><category term='zfs'/><category term='bugs'/><category term='illumos'/><title type='text'>TrochejEN</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-7453074833012018512</id><published>2012-02-13T05:57:00.000-08:00</published><updated>2012-02-13T05:57:48.547-08:00</updated><title type='text'>illumian - debian-like distribution of illumos</title><content type='html'>Recently my attention got caught by &lt;a href="http://www.illumian.org/"&gt;illumian&lt;/a&gt;, a &lt;a href="http://www.debian.org/"&gt;Debian&lt;/a&gt;-like distribution of &lt;a href="http://www.illumos.org/"&gt;illumos&lt;/a&gt;. Since I come from Debian world, having administered Debian based servers for over ten years now, this distribution that uses .deb package format caught my eye. While I slowly get used to IPS, I find it far less friendly than apt- and friends. &lt;br /&gt;What is this illumian distribution? It's basically &lt;a href="http://www.openindiana.org/"&gt;OpenIndiana&lt;/a&gt; with IPS exchanged in favor of .deb packages. ISO file that you can grab from there contains installation media for server solution, which means that if you want to get graphical environment working, you have to install X and GNOME packages yourself. In short it comes down to installing x11 and gnome packages and enabling gdm service via svcadm.&lt;br /&gt;Have a nice testing. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-7453074833012018512?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/7453074833012018512/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=7453074833012018512' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7453074833012018512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7453074833012018512'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2012/02/illumian-debian-like-distribution-of.html' title='illumian - debian-like distribution of illumos'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3079321108535963600</id><published>2012-02-07T02:25:00.000-08:00</published><updated>2012-02-07T02:25:15.605-08:00</updated><title type='text'></title><content type='html'>&lt;a href="http://www.youtube.com/watch?v=9jy7xCru4kg&amp;amp;feature=BFa&amp;amp;list=PL7F0AECAD809040B9&amp;amp;lf=player_embedded"&gt;Experiences Starting an OpenSource Operating System&lt;/a&gt;. Garrett D'Amore speaks at SCALE10x about the genesis of illumos. Recorded by &lt;span class="fn"&gt;Deirdré Straughan on her &lt;a href="http://www.youtube.com/user/deirdres"&gt;Youtube channel&lt;/a&gt;.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3079321108535963600?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3079321108535963600/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3079321108535963600' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3079321108535963600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3079321108535963600'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2012/02/experiences-starting-opensource.html' title=''/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-5885744215240182806</id><published>2011-11-02T14:07:00.000-07:00</published><updated>2011-11-03T01:13:19.621-07:00</updated><title type='text'>OpenIndiana and ntfs-3g</title><content type='html'>&lt;b&gt;Update:&lt;/b&gt;&lt;br /&gt;I have patch ready to change unhelpful on OpenIndiana, SmartOS and other illumos distributions mention of modprobe to suggest:&lt;br /&gt;/usr/sbin/add_drv -m 'fuse 0666 root sys' fuse&lt;br /&gt;Still have to find out, why the heck link was not created in the first place. :/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------------------&lt;br /&gt;I recently had to use ntfs formatted USB drive under OpenIndiana and run into a small problem.&lt;br /&gt;I shamelessly used gparted to find which device maps to my usb disk. Then had following session with ntfs-3g binary:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;ntfs-3g /dev/dsk/c2t0d0p1 /mnt/&lt;/i&gt;&lt;br /&gt;&lt;i&gt;The disk contains an unclean file system (0, 0).&lt;/i&gt;&lt;br /&gt;&lt;i&gt;The file system wasn't safely closed on Windows. Fixing.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;fuse: device not found, try 'modprobe fuse' first&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Both fuse and ntfs-3g are installed from repositories:&lt;br /&gt;&lt;i&gt;sfe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; origin&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp; http://pkg.openindiana.org/sfe/&lt;br /&gt;sfe-encumbered&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; origin&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp; http://pkg.openindiana.org/sfe-encumbered/&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;After some digging around and asking on IRC I decided that either no one had this problem or no one bothered to post solution. modinfo showed me that fuse module is loaded, after all:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;258 fffffffff7edd000&amp;nbsp;&amp;nbsp; e680 290&amp;nbsp;&amp;nbsp; 1&amp;nbsp; fuse (fuse driver)&lt;br /&gt;258 fffffffff7edd000&amp;nbsp;&amp;nbsp; e680&amp;nbsp; 28&amp;nbsp;&amp;nbsp; 1&amp;nbsp; fuse (filesystem for fuse)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;However ntfs-3g itself didn't say anything useful. It also suggested to use modproble, which is just ridiculous on OpenIndiana. I decided to truss it.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;open64("/dev/fuse", O_RDWR)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Err#2 ENOENT&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;One clue closed I downloaded spec file for fuse from http://pkgbuild.sourceforge.net/spec-files-extra/ and checked for &lt;i&gt;%post &lt;/i&gt;step:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;%post&lt;br /&gt;( retval=0;&lt;br /&gt;&amp;nbsp; /usr/sbin/add_drv -m 'fuse 0666 root sys' fuse || retval=1;&lt;br /&gt;&amp;nbsp; [ "$retval" = 0 ] &amp;amp;&amp;amp; ln -s /devices/pseudo/fuse@0:fuse /dev/fuse || retval=1;&lt;br /&gt;&amp;nbsp; exit $retval&lt;br /&gt;)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I did check if /devices/pseudo/fuse exists (it did) and then created /dev/fuse link to it. Then ntfs-3g worked like a charm.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-5885744215240182806?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/5885744215240182806/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=5885744215240182806' title='Komentarze (1)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/5885744215240182806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/5885744215240182806'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2011/11/openindiana-and-ntfs-3g.html' title='OpenIndiana and ntfs-3g'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-7791849875956873273</id><published>2011-11-02T05:42:00.000-07:00</published><updated>2011-11-02T14:07:29.483-07:00</updated><title type='text'>ZFS is ten</title><content type='html'>ZFS turned ten years old. There is short but nice blog post about it. One thing worth noting is, how long it takes &amp;nbsp;a feature from initial implementation to first introduction to operating system. Four years before inclusion in OpenSolaris project and then in Solaris 10 in 2006 IIRC.&lt;br /&gt;&lt;br /&gt;http://blog.delphix.com/matt/2011/11/01/zfs-10-year-anniversary/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-7791849875956873273?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/7791849875956873273/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=7791849875956873273' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7791849875956873273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7791849875956873273'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2011/11/zfs-is-ten.html' title='ZFS is ten'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-482150184841088988</id><published>2011-09-13T23:27:00.000-07:00</published><updated>2011-09-13T23:27:07.439-07:00</updated><title type='text'>OpenIndiana 151a release</title><content type='html'>&lt;a href="http://openindiana.org/"&gt;OpenIndiana&lt;/a&gt; project has just released stable 151a release.&lt;br /&gt;Follow &lt;a href="http://openindiana.org/download/"&gt;download link&lt;/a&gt; for the goodness. There are also instructions for upgrading from previous OpenIndiana releases and from OpenSolaris.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-482150184841088988?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/482150184841088988/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=482150184841088988' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/482150184841088988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/482150184841088988'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2011/09/openindiana-151a-release.html' title='OpenIndiana 151a release'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3607772949689690960</id><published>2011-02-23T03:54:00.001-08:00</published><updated>2011-02-26T04:51:31.555-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='illumos'/><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><category scheme='http://www.blogger.com/atom/ns#' term='openindiana'/><title type='text'>illumos based OpenIndiana</title><content type='html'>Update 26.02.2011.&lt;br /&gt;There is also a USB image. You can use it, quite conveniently, with dd tool on Linux or with &lt;a href="http://devzone.sites.pid0.org/OpenSolaris/opensolaris-liveusb-creator"&gt;OpenSolaris USB Live creator&lt;/a&gt; on Windows written some time ago by Hiroshi Chonan.&lt;br /&gt;To write it to USB stick with dd, you have to prepend a special header, which you can download &lt;a href="http://dlc.openindiana.org/isos/2G.header"&gt;here&lt;/a&gt;. Just do:&lt;br /&gt;&lt;blockquote&gt;wget http://dlc.openindiana.org/isos/2G.header&lt;br /&gt;wget http://dlc.openindiana.org/isos/148/oi-dev-148a-x86-20110223-1.usb&lt;br /&gt;cat 2G.header oi-dev-148a-x86-20110223-1.usb &gt;&gt; oi-dev-148a-x86-20110223-1-header-prepended.usb&lt;br /&gt;dd if=./oi-dev-148a-x86-20110223-1-header-prepended.usb of=/path/to/your/usb/device (ie. /dev/sdb)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Of course, with OpenSolaris based distributions, you can use /usr/bin/usbcopy from  pkg:/install/distribution-constructor&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;-------------------&lt;br /&gt;And so it happened. &lt;a href="http://www.openindiana.org/"&gt;OpenIndiana&lt;/a&gt; has now published &lt;a href="http://www.illumos.org/"&gt;illumos&lt;/a&gt; based authority and isos.&lt;br /&gt;Authority: &lt;a href="http://pkg.openindiana.org/dev-il/"&gt;http://pkg.openindiana.org/dev-il/&lt;/a&gt; - based on illumos changeset fe7962c08d1d; the latest changeset in illumos repository.&lt;br /&gt;Isos: &lt;a href="http://dlc.openindiana.org/isos/148/oi-dev-148a-x86-20110223-1.iso"&gt;http://dlc.openindiana.org/isos/148/oi-dev-148a-x86-20110223-1.iso&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3607772949689690960?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3607772949689690960/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3607772949689690960' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3607772949689690960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3607772949689690960'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2011/02/illumos-based-openindiana.html' title='illumos based OpenIndiana'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3209807778558175334</id><published>2011-01-18T02:49:00.001-08:00</published><updated>2011-01-18T06:24:56.151-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='illumos'/><category scheme='http://www.blogger.com/atom/ns#' term='openindiana'/><title type='text'>Illumost testing build</title><content type='html'>&lt;span style="font-weight: bold;"&gt;UPDATE:&lt;/span&gt; Installation instructions corrected. Thanx aszeszo for that. :)&lt;br /&gt;Last week I've built packages from &lt;a href="http://www.illumos.org/"&gt;illumos&lt;/a&gt; sources, changeset cac385f011a3. Project &lt;a href="http://www.openindiana.org/"&gt;OpenIndiana&lt;/a&gt; was kind to set up a repository with packages that you can use to upgrade your OpenIndiana system:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://pkg.openindiana.org/illumos-experimental/"&gt;http://pkg.openindiana.org/illumos-experimental/&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;General instructions follow:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre class="textmate-source"&gt;&lt;pre class="sunburst"&gt;pkg set&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;publisher &lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;non&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;sticky openindiana.org&lt;br /&gt;pkg set&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;publisher &lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;&lt;span class="variable variable_other variable_other_constant variable_other_constant_ruby"&gt;P&lt;/span&gt; &lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;&lt;span class="variable variable_other variable_other_constant variable_other_constant_ruby"&gt;O&lt;/span&gt; &lt;span class="constant constant_other constant_other_symbol constant_other_symbol_ruby constant_other_symbol_ruby_19syntax"&gt;http:&lt;/span&gt;&lt;span class="string string_regexp string_regexp_classic string_regexp_classic_ruby"&gt;/&lt;/span&gt;&lt;span class="string string_regexp string_regexp_classic string_regexp_classic_ruby"&gt;&lt;/span&gt;&lt;span class="string string_regexp string_regexp_classic string_regexp_classic_ruby"&gt;/&lt;/span&gt;pkg.openindiana.org&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;/&lt;/span&gt;illumos&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;experimental&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;/&lt;/span&gt; on&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;nightly&lt;br /&gt;pkg uninstall entire&lt;br /&gt;pkg image&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;update &lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;v &lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;be&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;name illumos&lt;span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby"&gt;-&lt;/span&gt;&lt;span class="constant constant_numeric constant_numeric_ruby"&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/blockquote&gt;Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3209807778558175334?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3209807778558175334/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3209807778558175334' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3209807778558175334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3209807778558175334'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2011/01/illumost-testing-build.html' title='Illumost testing build'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3808840544149191168</id><published>2010-10-20T04:25:00.000-07:00</published><updated>2010-10-20T04:38:21.438-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='other'/><title type='text'>find and symlinks</title><content type='html'>A pearl of wisdom from today problems: &lt;span style="font-style: italic;"&gt;find&lt;/span&gt; does not automatically descend into symlinks to directories. You have to ask it to, by using &lt;span style="font-style: italic;"&gt;-follow&lt;/span&gt;. It turns out that trivia is not widely known at this site.&lt;br /&gt;This has today surfaced with filesystem hierarchy resembling below:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;drwxr-xr-x   /usr/local/bin/Testing&lt;br /&gt;lrwxrwxrwx  /opt/Testing -&gt; /usr/local/bin/Testing&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It translates into: /usr/locla/bin/Testing is a directory and /opt/Testing is a symbolic link to this directory. Within this directory lies a file &lt;span style="font-style: italic;"&gt;test.t&lt;/span&gt;.&lt;br /&gt;A developer was bewildered why, when he cds into /opt/Testing, following find the file:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;find . -name test.t&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and following does not:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;find /opt/ -name test.t&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Reason is simple. find, by default, will not follow symlinks to directories. There is an option for that: &lt;span style="font-style: italic;"&gt;-follow&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3808840544149191168?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3808840544149191168/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3808840544149191168' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3808840544149191168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3808840544149191168'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/10/find-and-symlinks.html' title='find and symlinks'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-5535713322634639840</id><published>2010-09-13T00:24:00.001-07:00</published><updated>2010-09-13T00:26:10.227-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='illumos'/><title type='text'>Closed crypto removed from illumos - FLAG DAY</title><content type='html'>Hi&lt;br /&gt;&lt;br /&gt;I paste e-mail from Garrett, which constitutes a flag day for everyone building illumos nightly. Please, read it carefully, as it explains itself nicely:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;With my integration of "6 Need open kcfd", there is actually no more&lt;br /&gt;kcfd or signed crypto tarballs.  (The necessary code for thread&lt;br /&gt;management is in the kernel kcf.  You'll notice new kernel LWPs called&lt;br /&gt;"kcfpoold" in ps -eLf output.)  Also, all vestiges of FIPS-140 support&lt;br /&gt;are removed.&lt;br /&gt;&lt;br /&gt;This represents a flag day for everyone building illumos.&lt;br /&gt;&lt;br /&gt;You must do a full nightly across thsi flag day -- incrementals &lt;strong&gt;*will*&lt;/strong&gt;&lt;br /&gt;break.&lt;br /&gt;&lt;br /&gt;You must not have a crypto tarball.   (One less thing to download from&lt;br /&gt;Oracle.. yay!)&lt;br /&gt;&lt;br /&gt;You &lt;strong&gt;*MUST*&lt;/strong&gt; use the version of nightly in the latest source.  It is a&lt;br /&gt;syntax error to try to use the old nightly -- it won't work unless you&lt;br /&gt;have the old crypto tarball, and if you do, the result will not be&lt;br /&gt;functional!&lt;br /&gt;&lt;br /&gt;To recap:&lt;br /&gt;&lt;br /&gt;* remove crypto tarball if present.&lt;br /&gt;* use nightly from source tree&lt;br /&gt;* do a full clobber build.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;        - Garrett&lt;/blockquote&gt;&lt;br /&gt;&lt;a href="http://www.illumos.org/projects/illumos-gate/wiki/How_To_Build_Illumos"&gt;How to build illumos guide&lt;/a&gt; has been updated to follow this change. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-5535713322634639840?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/5535713322634639840/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=5535713322634639840' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/5535713322634639840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/5535713322634639840'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/09/closed-crypto-removed-from-illumos-flag.html' title='Closed crypto removed from illumos - FLAG DAY'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-4366113013342661830</id><published>2010-09-01T04:33:00.000-07:00</published><updated>2010-09-01T04:42:35.748-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='illumos'/><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><title type='text'>Broken splashimage with illumos boot menu</title><content type='html'>Due to some misunderstanding, a solaris.xpm have been removed too early from illumos source tree. It results in problems while trying to boot your new illumos boot environment, if you have updated with onu.sh script.&lt;br /&gt;If you happen to have this problem, what you need is modify your grub menu. Mine looks like this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;title os-devel_145&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;findroot (pool_rpool,0,a)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;bootfs rpool/ROOT/os-devel_145&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;splashimage /boot/solaris.xpm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;foreground d25f00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;background 115d93&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;module$ /platform/i86pc/$ISADIR/boot_archive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What you need to do, is edit it, so it looks like below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;title os-devel_145&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;findroot (pool_rpool,0,a)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;bootfs rpool/ROOT/os-devel_145&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;module$ /platform/i86pc/$ISADIR/boot_archive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On somewhat related note, booting to single user mode is done with adding -s at the end of the &lt;span style="font-style: italic;"&gt;kernel$&lt;/span&gt; line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS&lt;/span&gt; -s&lt;br /&gt;&lt;br /&gt;The problem with missing splashimage is known and a &lt;a href="https://www.illumos.org/issues/128"&gt;bug has been filed&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-4366113013342661830?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/4366113013342661830/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=4366113013342661830' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/4366113013342661830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/4366113013342661830'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/09/broken-splashimage-with-illumos-boot.html' title='Broken splashimage with illumos boot menu'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3536930920293556462</id><published>2010-08-29T22:57:00.000-07:00</published><updated>2010-08-29T23:01:23.418-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='illumos'/><title type='text'>Illumos building instructions</title><content type='html'>As far as we know, Oracle has stopped developing OpenSolaris in the open. For those of us, who would rather have Opensolaris become a real openly developed operating system, ptoject &lt;a href="http://www.illumos.org/"&gt;illumos&lt;/a&gt; came to life. Thanks to Garrett d'Amore et consortes. On the illumos wiki page there is a nice instruction on compiling your own post build 134 &lt;a href="http://hg.illumos.org/illumos-gate"&gt;illumos source&lt;/a&gt;.&lt;br /&gt;Already much work has been put in the source tree to liberate it from dependency on /extra repository and new putbacks arrive all the time.&lt;br /&gt;If you'd like to check it for yourself, here is the link to &lt;a href="http://www.illumos.org/projects/illumos-gate/wiki/How_To_Build_Illumos"&gt;How to build illumos&lt;/a&gt; guide.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3536930920293556462?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3536930920293556462/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3536930920293556462' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3536930920293556462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3536930920293556462'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/08/illumos-building-instructions.html' title='Illumos building instructions'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-7511387222915507720</id><published>2010-06-15T00:13:00.001-07:00</published><updated>2010-06-15T00:16:34.458-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>Zones delegated administration</title><content type='html'>To counter my previous entry, this is something that touches Zones also, but is pretty nice feature:&lt;br /&gt;&lt;a href="http://static.opensolaris.org/on/flagdays/pages/20100607142839.html"&gt;http://static.opensolaris.org/on/flagdays/pages/20100607142839.html&lt;/a&gt; - delegated zones administration.&lt;br /&gt;Basically a user or role in global zone can be designated in a zone configuration as a admin resource, thus giving the user/role additional abilities to control zones.&lt;br /&gt;A good example taken from the link above:&lt;br /&gt;&lt;quote&gt;&lt;br /&gt;&lt;pre&gt;           example# zonecfg -z myzone&lt;br /&gt;          zonecfg:myzone&gt; add admin&lt;br /&gt;          zonecfg:myzone:admin&gt; set user=zadmin&lt;br /&gt;          zonecfg:myzone:admin&gt; set auths=login,manage,clonefrom&lt;br /&gt;          zonecfg:myzone:admin&gt; end&lt;br /&gt;          zonecfg:myzone&gt; commit&lt;span style="font-family: Georgia,serif;"&gt;&lt;br /&gt;&lt;/quote&gt;&lt;br /&gt;&lt;br /&gt;No, user zadmin can use profiled shell to administer zones.&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-7511387222915507720?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/7511387222915507720/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=7511387222915507720' title='Komentarze (5)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7511387222915507720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7511387222915507720'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/06/zones-delegated-administration.html' title='Zones delegated administration'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-7367913129336548129</id><published>2010-06-15T00:00:00.000-07:00</published><updated>2010-06-15T00:03:20.598-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>Linux Brandz removed from ON</title><content type='html'>ONNV build 143 is a important for every one of us that uses lx Branded Zones - the Linux ones. There have been a stall in development since some time and forums are full of people looking for ways to install anything newer than CentOS images provided by the project. But since the build 143 Linux Brandz will be removed. If you you is too, like me, you have to plan for some migration.&lt;br /&gt;And so Linux Brandz go away: &lt;a href="http://static.opensolaris.org/on/flagdays/pages/20100612010403.html"&gt;http://static.opensolaris.org/on/flagdays/pages/20100612010403.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-7367913129336548129?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/7367913129336548129/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=7367913129336548129' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7367913129336548129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/7367913129336548129'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/06/linux-brandz-removed-from-on.html' title='Linux Brandz removed from ON'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-6029675763759807826</id><published>2010-06-07T23:19:00.000-07:00</published><updated>2010-06-08T22:40:42.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><category scheme='http://www.blogger.com/atom/ns#' term='sw-porters'/><title type='text'>SFE bootstrap script</title><content type='html'>Thanks to Tommw, who maintains sfe bootstrap script, you can set up a complete SFE compilation ready environment in few simple moves.&lt;br /&gt;The script can be downloaded from here: &lt;a href="hhttp://tinyurl.com/bootstrap-sfe-latest-os20nn"&gt;http://tinyurl.com/bootstrap-sfe-latest-os20nn&lt;/a&gt;. Just use wget:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;wget -N "http://tinyurl.com/bootstrap-sfe-latest-os20nn"&lt;/li&gt;&lt;br /&gt;&lt;li&gt;chmod a+rx bootstrap-sfe-latest-os20nn&lt;/li&gt;&lt;br /&gt;&lt;li&gt;./bootstrap-sfe-latest-os20nn username&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;Username is a login of a user that you'll use for compilation. The script does all the magic, just answer two or three simple questions - user's password.&lt;br /&gt;Before you begin, you may want to:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Create a user that will be responsible for compilation. User should have a "Software Installation" profile assigned. I use my main user, who has both Software Installation and Primary Administrator profiles. &lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;pfexec pkg install wget&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Enable local repository, as pkgbuild will want to push packges to your IPS repository. &lt;a href="http://sourceforge.net/apps/mediawiki/pkgbuild/index.php?title=Pkgbuild_on_OpenSolaris#Image_Packaging_System"&gt;This is a link to repository setup instructions&lt;/a&gt;. Go on, it's friggin easy.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Remember to send Thanks e-mail to address printed after the bootstrap script finishes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-6029675763759807826?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/6029675763759807826/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=6029675763759807826' title='Komentarze (1)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/6029675763759807826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/6029675763759807826'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/06/sfe-bootstrap-script.html' title='SFE bootstrap script'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-857432556404742502</id><published>2010-04-28T03:43:00.000-07:00</published><updated>2010-04-28T03:47:51.692-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='psarc'/><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>PSARC 2009/377; 2009/378; 2010/072</title><content type='html'>&lt;span style="font-weight:bold;"&gt;PSARC 2009/377&lt;/span&gt; &lt;br /&gt;&lt;ul&gt;&lt;li&gt;In-kernel pfexec implementation.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PSARC 2009/378&lt;/span&gt; &lt;br /&gt;&lt;ul&gt;&lt;li&gt;Basic File Privileges&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PSARC 2010/072&lt;/span&gt; &lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;RBAC update: user attrs from profiles,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;4912090 &lt;span style="font-weight:bold;"&gt;pfzsh(1)&lt;/span&gt; should exist,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;4912093 &lt;span style="font-weight:bold;"&gt;pfbash(1)&lt;/span&gt; should exist,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;4912096 &lt;span style="font-weight:bold;"&gt;pftcsh(1)&lt;/span&gt; should exist,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;6440298 Expand the basic privilege set in order to restrict file access, &lt;br /&gt;&lt;li&gt;6859862 Move pfexec into the kernel, &lt;span style="font-style:italic;"&gt;[that one is interesting - trochej]&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;6919171 cred_t sidesteps kmem_debug; we need to be able to detect bad hold/&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-857432556404742502?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/857432556404742502/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=857432556404742502' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/857432556404742502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/857432556404742502'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2010/04/psarc-2009377-2009378-2010072.html' title='PSARC 2009/377; 2009/378; 2010/072'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-8143955805636103669</id><published>2009-08-14T00:39:00.000-07:00</published><updated>2009-08-14T01:37:09.905-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rbac'/><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>pfexec is a kind of sudo, right?</title><content type='html'>(Open)Solaris can cause some emotional turmoil in new users coming from Linux background. Its ifconfig works bit differently, load average is calculated differently, and so on, et caetera...&lt;br /&gt;One of things that leave people rather puzzled is authorisation mechanism based on system roles: Role Based Access Control (RBAC). As always, you're encouraged to read fantastic docyumentation: &lt;a href="http://docs.sun.com/app/docs/doc/816-4557?l=en"&gt;&lt;span style="font-size:85%;"&gt;System Administration Guide: Security Services&lt;/span&gt;&lt;/a&gt;, chapterł &lt;a href="http://docs.sun.com/app/docs/doc/816-4557/prbactm-1?l=en&amp;amp;a=view"&gt;Roles, Rights Profiles, and Privileges&lt;/a&gt;. However, to make a very short introduction, RBAC defines roles and profiles that have assigned privileges (authorisations) regarding use of commands. Something like sudo, at the first sight. Those roles and profiles can be assigned to concrete users. Something like sudo. The first difference is simply cosmetic. Instead of invoking 'sudo' in front of privileged command, one invokes 'pfexec'. The second difference is strictly work based. RBAC (pfexec) comes with multitude of profiles and roles ready to be used.  For last few years I used OpenSolaris I prepared new profile just once.&lt;br /&gt;Third difference lays in profiled shells, ie. pfsh. If a user is assigned a profile and given a profiled shell, they will be able to invoke only commands which are assigned to said profile, but without using the pfexec keyword.&lt;br /&gt;Fourth difference are roles. Roles are basically user accounts that cannot be logged into directly. One has to use su command to log into the roles. Also, user can only logged into the role which has been assigned to them. This is the default use of root account in &lt;a href="http://www.opensolaris.com/"&gt;OpenSolaris&lt;/a&gt; distribution.&lt;br /&gt;Fifth difference is big. RBAC reaches deeply in structure of (Open)Solaris, down to special kernel structures. This, along with rbac programming libraries, allows to implement very fine grained security into programs written. So, a fragment of code can check, if invoking user has, say, authorisation to write to log files, and then do some action.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Anatomy.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;RBAC is built of three logic elements:&lt;br /&gt;&lt;li&gt;authorisations - users rights to use privileged functions,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;execution profiles - a way of combining authorisations and command with attributes, ie. UID of command,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;roles - accounts explained before&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Authorisations are defined in a system file /etc/security/auth_attr.&lt;br /&gt;Users get profiles, roles and authorisations assigned in a file /etc/user_attr. Some fun fact. Some time ago blogs and howtos instructed that to assign a role, profile or authorisation to user, one had to edit said file. However, it is officially discouraged way. Better way is to use commands. Commands are guaranteed not to break the file. It is important to understand, that broken profile in /etc/user_attr may render user unable to user any privileged commands, login to root account and so on.&lt;br /&gt;Authorisation definitions are written in a file /etc/security/prof_attr.&lt;br /&gt;And the most important, I think - definitions of privileged operations assigned to profiles are written in a file /etc/security/exec_attr.&lt;br /&gt;I won't indulge in details, as those are well explained in documentation (man man, people!). I'll only mention, that commands assigned to security profile are listed in /etc/security/exec_attr. A bit mysterious is file /etc/security/auth_attr. When I studied RBAC I was puzzled. All other files are intertwined together and it is rather easy to trace how they work together, but I couldn't figure out this one, as I couldn't find any sign of listed there attributes any other place. It turns out, that this is the mechanism for implementing rbac in applications. A code can do a check against any authorisation listed in the file and if a user is assigned one, application may take certain actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Commands&lt;/span&gt;&lt;br /&gt;Managing RBAC is nased on few commands.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;roles - prints list of roles assigned to a user,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;profiles - prints a list of users profiles. profiles -l prints authorisations and privileged commands of users every profile,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;auths - prints list of users authorisations,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;roleadd - creates a role, syntax similar to useradd,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;rolemod - modifies a role,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;useradd: option -P accepts list of profiles as its argument,  option -R accepts list of roles, option -A accepts list of athorisations,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;usermod: option -P accepts list of profiles as its argument,  option -R accepts list of roles, option -A accepts list of athorisations.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;WARNING!&lt;br /&gt;rolemod and usermod overwrite assigned privileges. If one wants to assign a profile Software Installation to user that already has Primary Administrator, usermod line looks like that:&lt;br /&gt;&lt;br /&gt;&lt;quote&gt;pfexec usermod -P "Primary Administrator,Software Installation" username&lt;br /&gt;&lt;/quote&gt;&lt;br /&gt;More information in manpages and : &lt;a href="http://docs.sun.com/app/docs/doc/816-4557?l=en"&gt;&lt;span style="font-size:85%;"&gt;System Administration Guide: Security Services&lt;/span&gt;&lt;/a&gt;, chapter &lt;a href="http://docs.sun.com/app/docs/doc/816-4557/prbactm-1?l=en&amp;amp;a=view"&gt;Roles, Rights Profiles, and Privileges&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-8143955805636103669?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/8143955805636103669/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=8143955805636103669' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/8143955805636103669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/8143955805636103669'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2009/08/pfexec-is-kind-of-sudo-right.html' title='pfexec is a kind of sudo, right?'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-8781317589393505713</id><published>2008-05-15T13:33:00.000-07:00</published><updated>2008-05-15T13:39:18.720-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>beadm</title><content type='html'>In my last post I wrote a short howto to handmade zfs rpool cloning. It takes only a few steps, but forgetting one of them may provide wrong results. But OpenSolaris has one nice tool to do it all for you:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;beadm create opensolaris-2&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Simply do it, and your system will be cloned, your grub will have a new entry and the new filesystem's /etc/vfstab will have it's '/' entry corrected.&lt;br /&gt;Now, why not do a clone every few days, just in case you ever remove your '/etc'?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-8781317589393505713?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/8781317589393505713/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=8781317589393505713' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/8781317589393505713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/8781317589393505713'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2008/05/beadm.html' title='beadm'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-6741842800659259192</id><published>2008-05-13T21:52:00.000-07:00</published><updated>2008-05-13T22:13:54.807-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zfs'/><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>Playing with fire</title><content type='html'>Following losely Indiana update guidelines found &lt;a href="http://opensolaris.org/os/project/indiana/resources/update_guidelines/"&gt;here&lt;/a&gt; I have done a clone of my root filesystem. Then I have fooled around with it a little bit.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;zfs snapshot rpool/ROOT/opensolairs@for-cloning&lt;br /&gt;zfs clone rpool/ROOT/opensolaris@for-cloning rpool/ROOT/opensolaris-1&lt;br /&gt;zfs set mountpoint=legacy rpool/ROOT/opensolaris-1&lt;br /&gt;mount -F zfs rpool/ROOT/opensolaris-1 /mnt&lt;br /&gt;vim /mnt/etc/vfstab&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Here I have replaced &lt;i&gt;rpool/ROOT/opensolaris&lt;/i&gt; with &lt;i&gt;rpool/ROOT/opensolaris-1&lt;/i&gt;. I yet edited &lt;i&gt;/rpool/boot/grub/menu.lst&lt;/i&gt; by copying an OpenSolaris entry and changing the &lt;i&gt;bootfs rpool/ROOT/opensolaris&lt;/i&gt; line in the copy to &lt;i&gt;bootfs rpool/ROOT/opensolaris-1&lt;/i&gt;. In the end I had two different entries in grub boot menu.&lt;br /&gt;I then did:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;rm -rf /platform/&lt;br /&gt;&lt;/code&gt; &lt;br /&gt;and rebooted. In the above one line I have effectively wiped out kernel and boot_archive. It came as no surprise, that grub complained that it couldn't boot my old system. Oh well, I choose the second entry, booted from the clone, promoted it with &lt;i&gt;zfs promote&lt;/i&gt;, destroyed the old system, which became the clone now, and type to you quite happily from working OpenSolaris 2008.05.&lt;br /&gt;Have a Nice day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-6741842800659259192?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/6741842800659259192/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=6741842800659259192' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/6741842800659259192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/6741842800659259192'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2008/05/playing-with-fire.html' title='Playing with fire'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-2806261418803613252</id><published>2008-05-09T13:36:00.001-07:00</published><updated>2008-05-11T14:55:20.165-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>ZFS snapshots</title><content type='html'>I started to like them. I became accustomed to create a snapshot of my filesystems periodically, just as I click &lt;i&gt;Save&lt;/i&gt; button in Editors. Really nice feature, which makes my life easier. Undelete is almost obsolete. :)&lt;br /&gt;For interested:&lt;br&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;-bash-3.2# cat /usr/bin/zfs_snapshot.sh&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;zfs snapshot -r rpool@`date +%Y-%m-%d:-:%H:%M`&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;-bash-3.2# time zfs_snapshot.sh&lt;br /&gt;&lt;br /&gt;real 0m1.257s&lt;br /&gt;user 0m0.014s&lt;br /&gt;sys 0m0.023s&lt;br /&gt;&lt;br /&gt;-bash-3.2# zfs list&lt;br /&gt;NAME                                              USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;rpool                                            21,2G  67,9G  56,5K  /rpool&lt;br /&gt;rpool/ROOT                                       5,94G  67,9G    18K  /rpool/ROOT&lt;br /&gt;rpool/ROOT/opensolaris-1                         5,94G  67,9G  5,28G  legacy&lt;br /&gt;rpool/ROOT/opensolaris-1@2008-05-09:-:22:59          0      -  5,28G  -&lt;br /&gt;rpool/ROOT/opensolaris-1/opt                      673M  67,9G   673M  /opt&lt;br /&gt;rpool/ROOT/opensolaris-1/opt@2008-05-09:-:22:59      0      -   673M  -&lt;br /&gt;rpool/export                                     15,2G  67,9G    19K  /export&lt;br /&gt;rpool/export/home                                15,2G  67,9G  15,2G  /export/home&lt;br /&gt;rpool/export/home@2008-05-09:-:22:59             70,5K      -  15,2G  -&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-2806261418803613252?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/2806261418803613252/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=2806261418803613252' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/2806261418803613252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/2806261418803613252'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2008/05/zfs-snapshots.html' title='ZFS snapshots'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-118955279609372537.post-3256667850121973923</id><published>2008-03-19T13:24:00.000-07:00</published><updated>2008-03-19T13:31:51.191-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensolaris'/><title type='text'>prstat</title><content type='html'>I wrote about it in my Polish blog, but have seen it a few times since then on English channels that I decided to post it here also.&lt;br /&gt;A person at #opensolaris channel had a problem, that&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;prstat -m | nawk '{print $10}' | nawk '{sum+=$1;} END {print sum;}'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;just happily sat there printing nothing. It helps to know, that prstat, as the last arguments, takes interval between measurements and a count of measurements. If the count is omitted, prstat will take measurements waiting for ^C, thus the END will never be satisfied.&lt;br /&gt;The version below works, taking one measurement and then printing the output.&lt;br /&gt;&lt;br /&gt;prstat -m 1 1 | nawk '{print $10}' | nawk '{sum+=$1;} END {print sum;}'&lt;br /&gt;&lt;br /&gt;One more thing worth knowing is that prstat, similarly to other tools, as a first measurement prints averages since system boot. Next measurements are closer to the actual state of system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/118955279609372537-3256667850121973923?l=trochejen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://trochejen.blogspot.com/feeds/3256667850121973923/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=118955279609372537&amp;postID=3256667850121973923' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3256667850121973923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/118955279609372537/posts/default/3256667850121973923'/><link rel='alternate' type='text/html' href='http://trochejen.blogspot.com/2008/03/prstat.html' title='prstat'/><author><name>Trochej</name><uri>http://www.blogger.com/profile/02241797203447947056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_lMViQlOdDgg/TUllsGdnTqI/AAAAAAAAACY/Gs3vMEDoIHg/s220/68107_173083252713362_164540120234342_430592_2257698_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
