<?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-5331825847912496749</id><updated>2012-01-30T22:58:45.830-08:00</updated><category term='programmer'/><category term='zfs'/><category term='desktop'/><category term='memory stick'/><category term='usb'/><category term='vmware'/><category term='apple'/><category term='architect'/><category term='virtual'/><category term='ipad'/><category term='verizon'/><category term='language'/><category term='manager'/><category term='solaris'/><category term='Oracle'/><category term='user'/><category term='laptop'/><title type='text'>Solaris Desktop</title><subtitle type='html'>Life with Sun Solaris on the desktop, from the angles of a musician, programmer, architect, manager and end user.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-8504245379213680264</id><published>2011-10-08T05:44:00.001-07:00</published><updated>2011-10-08T05:44:04.136-07:00</updated><title type='text'>My Laptop (sxce or solex)</title><content type='html'>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).&lt;br /&gt;&lt;br /&gt;&lt;div class="separator"style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-OljaJANUOLk/TpBFkluA8KI/AAAAAAAAAEw/nEUdBPwth2M/s640/blogger-image--746787088.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://lh3.googleusercontent.com/-OljaJANUOLk/TpBFkluA8KI/AAAAAAAAAEw/nEUdBPwth2M/s640/blogger-image--746787088.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-8504245379213680264?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/8504245379213680264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=8504245379213680264' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8504245379213680264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8504245379213680264'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2011/10/my-laptop-sxce-or-solex.html' title='My Laptop (sxce or solex)'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-OljaJANUOLk/TpBFkluA8KI/AAAAAAAAAEw/nEUdBPwth2M/s72-c/blogger-image--746787088.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-1868597506103792518</id><published>2011-10-03T18:11:00.001-07:00</published><updated>2011-10-03T18:26:49.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtual'/><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='verizon'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='ipad'/><category scheme='http://www.blogger.com/atom/ns#' term='apple'/><title type='text'>Solaris Desktop on the move (ipad)</title><content type='html'>So as seen here in the picture, i'm still using solaris as my desktop. Big deal, right?&lt;br /&gt;&lt;br /&gt;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&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Shortly, Solaris 11 fcs should be available, and SRS 5.2 will hopefully function properly on it, giving this a more modern desktop.&lt;br /&gt;&lt;br /&gt;And now back to your regular programming... (no pun intended)&lt;div class="separator"style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-P2yiGWlvJ4c/TopdNnhGr1I/AAAAAAAAAEs/JNJnyOXTKmw/s640/blogger-image-555144005.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://lh3.googleusercontent.com/-P2yiGWlvJ4c/TopdNnhGr1I/AAAAAAAAAEs/JNJnyOXTKmw/s640/blogger-image-555144005.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-1868597506103792518?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/1868597506103792518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=1868597506103792518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1868597506103792518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1868597506103792518'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2011/10/solaris-desktop-on-move.html' title='Solaris Desktop on the move (ipad)'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-P2yiGWlvJ4c/TopdNnhGr1I/AAAAAAAAAEs/JNJnyOXTKmw/s72-c/blogger-image-555144005.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-2747425892560691618</id><published>2008-11-20T06:46:00.000-08:00</published><updated>2008-11-20T09:22:24.304-08:00</updated><title type='text'>Where is the memory gone?</title><content type='html'>So you just installed Solaris 10 U6. Pretty exciting this zfs boot, no?&lt;br /&gt;&lt;br /&gt;But you ran vmstat (or installed top on the system) and noticed you had 200MB free. Worse, you tried starting your Oracle database with a large SGA and it failed because it couldn't allocate the memory. What? This machine has 16GB! and barely anything running, I hear you scream. Where is the memory gone?&lt;br /&gt;&lt;br /&gt;# echo "::memstat" | mdb -k&lt;br /&gt;Page Summary                Pages                MB  %Tot&lt;br /&gt;------------     ----------------  ----------------  ----&lt;br /&gt;Kernel                    1717128             13415   83%&lt;br /&gt;Anon                       238964              1866   12%&lt;br /&gt;Exec and libs               23450               183    1%&lt;br /&gt;Page cache                  19039               148    1%&lt;br /&gt;Free (cachelist)            19243               150    1%&lt;br /&gt;Free (freelist)             40453               316    2%&lt;br /&gt;&lt;br /&gt;Total                     2058277             16080&lt;br /&gt;Physical                  2054336             16049&lt;br /&gt;&lt;br /&gt;The kernel is using 13GB?? Yes. You are hitting a default setting that's been around since ZFS was introduced to Solaris 10. It is the ZFS ARC. But dont complain too much because it is now easy to fix. When we first hit this issue way back when, we had to use mdb to set values at boot time, you couldn't just set something in the /etc/system file.&lt;br /&gt;&lt;br /&gt;So what is ZFS ARC? In simple terms, it is memory that ZFS uses for cache. The default is for the cache to grow up to total memory - 1GB. The problem is that although it is supposed to free up memory when applications in user space request memory, in practice, it doesn't do this fast enough. Plus you end up with fragmented memory which is a huge problem for SHM (part of the SGA under Oracle).&lt;br /&gt;&lt;br /&gt;In general, I reserve 2GB for the os and my apps. If I run Oracle and / or Sun App server, i'd also set aside the SGA and / or the java memory. Add it all up. Let's say you need 4GB total you dont want touched by ZFS, and you have 8GB, then you would set the maximum size for the ARC to be 4GB.&lt;br /&gt;&lt;br /&gt;What if you dont run Oracle and the like? Still, if you run a graphical desktop or a Sunray server on your machine, leave 2GB untouched, so if you have just 4GB total, set the ARC to 2GB.&lt;br /&gt;&lt;br /&gt;How?&lt;br /&gt;&lt;br /&gt;edit /etc/system and add:&lt;br /&gt;&lt;br /&gt;* Restrict ZFS ARC to 8GB&lt;br /&gt;set zfs:zfs_arc_max = 8000000000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now this is actually less than 8GB, but it is easier to read 8 followed by 9 zeros than 8 x1024x1024x1024. So for 2GB: 2000000000 and for 4GB: 4000000000&lt;br /&gt;&lt;br /&gt;This will require a reboot.&lt;br /&gt;&lt;br /&gt;Once rebooted you can verify it took the change by executing:&lt;br /&gt;&lt;br /&gt;# kstat -m zfs&lt;br /&gt;module: zfs                             instance: 0     &lt;br /&gt;name:   arcstats                        class:    misc&lt;br /&gt;        c                               8000000000&lt;br /&gt;        c_max                           8000000000&lt;br /&gt;        c_min                           1000000000&lt;br /&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-2747425892560691618?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/2747425892560691618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=2747425892560691618' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/2747425892560691618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/2747425892560691618'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2008/11/where-is-memory-gone.html' title='Where is the memory gone?'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-1663128691881933461</id><published>2008-11-05T08:01:00.000-08:00</published><updated>2008-11-05T08:04:00.972-08:00</updated><title type='text'>Solaris 10 U6 and ZFS BOOT</title><content type='html'>This update is really great! Solaris 10 can now boot ZFS.&lt;br /&gt;&lt;br /&gt;I wrote an overview of this version here (it is in french and way too long to translate - try babelfish or google translate on it):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sunquebec.com/forum/viewtopic.php?t=1643"&gt;http://www.sunquebec.com/forum/viewtopic.php?t=1643&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you've yet to download U6 (10/08) get it here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sun.com/software/solaris/get.jsp"&gt;http://www.sun.com/software/solaris/get.jsp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-1663128691881933461?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/1663128691881933461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=1663128691881933461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1663128691881933461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1663128691881933461'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2008/11/solaris-10-u6-and-zfs-boot.html' title='Solaris 10 U6 and ZFS BOOT'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-8575255696387339552</id><published>2007-11-01T03:34:00.000-07:00</published><updated>2008-12-08T19:27:43.817-08:00</updated><title type='text'>Project Indiana</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_98g7Qy8Arv8/RynZXq1REII/AAAAAAAAAC8/mptp1ZWhrg4/s1600-h/indianagrub.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_98g7Qy8Arv8/RynZXq1REII/AAAAAAAAAC8/mptp1ZWhrg4/s400/indianagrub.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5127868651395944578" /&gt;&lt;/a&gt;&lt;br /&gt;In the same vein as &lt;a href="http://solarisdesktop.blogspot.com/2007/10/belenix-freebie.html"&gt;Belenix&lt;/a&gt; which provides a live CD with an OpenSolaris base and XFCE or KDE as desktop environments, Project Indiana leverages the Distro Construction kit that was created for Belenix and provides a live CD with Gnome as the desktop environment.&lt;br /&gt;&lt;br /&gt;It also supports a concept similar to pkg-get (as used with sunfreeware and blastwave on Solaris for many years) which is pkg:&lt;br /&gt;&lt;a href='http://opensolaris.org/os/project/pkg/documents/'&gt;pkg documentation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Now showing at a theather near you&lt;/u&gt;&lt;br /&gt;It was released last night as a developer preview and you can get the preview ISO of Project Indiana here:&lt;br /&gt;&lt;a href='http://opensolaris.org/os/project/indiana/resources/getit/'&gt;http://opensolaris.org/os/project/indiana/resources/getit/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It differs from Belenix in that it does require a strict minimum of 512MB.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Further reading (links)&lt;/u&gt;:&lt;br /&gt;&lt;br /&gt;&lt;a href='http://opensolaris.org/os/project/indiana/documents/'&gt;Project Indiana documentation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='http://opensolaris.org/os/project/indiana/resources/rn/'&gt;Release notes&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-8575255696387339552?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/8575255696387339552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=8575255696387339552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8575255696387339552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8575255696387339552'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/11/project-indiana.html' title='Project Indiana'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_98g7Qy8Arv8/RynZXq1REII/AAAAAAAAAC8/mptp1ZWhrg4/s72-c/indianagrub.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-2626925055851719201</id><published>2007-10-26T13:56:00.001-07:00</published><updated>2008-12-08T19:27:43.960-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='user'/><title type='text'>Belenix freebie</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p style=' text-decoration: none'&gt;Continuing the discussion on Belenix (see &lt;a href="http://solarisdesktop.blogspot.com/2007/10/where-is-cdrom-belenix-story.html"&gt;part 1&lt;/a&gt;)&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“I cant burn the CD from the iso?”&lt;/u&gt; &lt;/p&gt;&lt;p style=' text-decoration: none'&gt;And you used cdrw in Solaris? You probably tried:&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;bash$ cdrw -i belenix0.6.1.iso&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Looking for CD devices...&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Initializing device...done.&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Size required (728453120 bytes) is greater than available space (681986048 bytes).&lt;/p&gt;&lt;p style=' text-decoration: none'&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=' text-decoration: none'&gt;instead, try:&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;bash$ cdrw -C -i belenix0.6.1.iso&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Looking for CD devices...&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Initializing device...done.&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Writing track 1...done.&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;done.&lt;/p&gt;&lt;p style=' text-decoration: none'&gt;Finalizing (Can take several minutes)...done.&lt;/p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_98g7Qy8Arv8/RyUe961REHI/AAAAAAAAAC0/B02dHwZCc8Y/s1600-h/compiz.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_98g7Qy8Arv8/RyUe961REHI/AAAAAAAAAC0/B02dHwZCc8Y/s400/compiz.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5126537799944704114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“What makes Belenix so special?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;The biggest is that it supports UFS (of course, it is opensolaris afterall), ZFS, Fat16, Fat32, NTFS (really!) and EXT2 / EXT3. Wow. One key with Belenix and I can rescue a file from any x86 computer in this building (windows, solaris, linux) With ZFS that also means *bsd with zfs, mac os x with zfs, Linux FUSE ZFS... I dont know of any other solution out there currently that out of the box is capable of the same (well, maybe Indiana, but it is not out).&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;The other, as illustrated by my picture of the laptop with no hard disk, no cdrom and minimal memory, is that Belenix doesn't abuse of your resources. It will run with 256MB of ram. Of course, a live distro with 256MB with Xorg and XFCE doesn't leave much space. You can open a few terminals, text editor, run top (see ) and the like, but open Firefox and you need to be ultra patient. 320MB would make a big difference, while 512MB would be just right (and with the laptop back to its full 2GB configuration, wow). Or course, in text mode only, 256MB is overkill.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;Also, combine &lt;a href="http://solarisdesktop.blogspot.com/2007/10/fun-with-grub-memtest.html"&gt;my previous blog entry&lt;/a&gt; with memtest (replace /boot/... with /media/usbkeyname/boot/...), and you now have Belenix/memtest on USB.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“I want one!”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;You can go and buy a 1GB key, download Belenix, burn it on CDROM and install it with usbdump. Or you can leave a comment on my blog and let me know how you have used Belenix on USB or plan on using it, and  &lt;font color='#ff0000'&gt;the best story in two weeks from now gets a free USB key preloaded with Belenix&lt;/font&gt; (november 9). I even pay shipping. Not a contest, just me giving personal stuff away for free to the person I choose, like &lt;a href="http://blogs.sun.com/mary/"&gt;MaryMaryQuiteContrary&lt;/a&gt; would say...&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;How cool is that? Start typing!&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;Further reading (links)&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;a href='http://solarisdesktop.blogspot.com/2007/10/where-is-cdrom-belenix-story.html'&gt;http://solarisdesktop.blogspot.com/2007/10/where-is-cdrom-belenix-story.html&lt;/a&gt; &lt;/p&gt;&lt;p style=''&gt;&lt;a href='http://solarisdesktop.blogspot.com/2007/10/fun-with-grub-memtest.html'&gt;http://solarisdesktop.blogspot.com/2007/10/fun-with-grub-memtest.html&lt;/a&gt;&lt;/p&gt;&lt;p style=''&gt;&lt;a href='http://blogs.sun.com/moinakg/'&gt;http://blogs.sun.com/moinakg/&lt;/a&gt;&lt;/p&gt;&lt;p style=''&gt; &lt;a href='http://www.genunix.org/distributions/belenix_site/?q=home'&gt;http://www.genunix.org/distributions/belenix_site/?q=home&lt;/a&gt;&lt;/p&gt;&lt;p style=''&gt; &lt;a href='http://www.genunix.org/distributions/belenix_site/?q=node/51'&gt;http://www.genunix.org/distributions/belenix_site/?q=node/51&lt;/a&gt;&lt;/p&gt;&lt;p style=''&gt; &lt;a href='http://blogs.sun.com/anilg/entry/session_persistance_on_belenix_liveusb'&gt;http://blogs.sun.com/anilg/entry/session_persistance_on_belenix_liveusb&lt;/a&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;a href='http://blogs.sun.com/josephgeorge/category/BeleniX'&gt;http://blogs.sun.com/josephgeorge/category/BeleniX&lt;/a&gt;&lt;/p&gt;&lt;br clear='left'/&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-2626925055851719201?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/2626925055851719201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=2626925055851719201' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/2626925055851719201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/2626925055851719201'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/10/belenix-freebie.html' title='Belenix freebie'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_98g7Qy8Arv8/RyUe961REHI/AAAAAAAAAC0/B02dHwZCc8Y/s72-c/compiz.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-3415855493267042019</id><published>2007-10-26T13:25:00.001-07:00</published><updated>2008-12-08T19:27:44.389-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='user'/><title type='text'>Where is the CDROM? Belenix Story</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_98g7Qy8Arv8/RyJRLa1REEI/AAAAAAAAACc/WUScW_2__MM/s1600-h/Lapic01-1.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_98g7Qy8Arv8/RyJRLa1REEI/AAAAAAAAACc/WUScW_2__MM/s400/Lapic01-1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5125748582524194882" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p style=''&gt; &lt;b&gt;Where is your CDROM? A Belenix story&lt;/b&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;I have a Dell Lattitude D600 laptop. I've had it for a long while. You can see a picture of it (it is for a presentation for work). From that picture, a few questions might pop up in your mind. The first, I'm sure, might be:&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“What OS is that?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;It's obviously not Mac OS or Windows. It is also not Linux. Thanks for playing. So what is it? Well, hint #1, it says XFCE Menu at the bottom of the screen. It also says “ innovating on opensolaris” in the middle. More on that later. Next question, please.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“Why did you call it Theremin?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;You have good eyes! My laptops have always been named Theremin. But it particularly applies to this one. It is a laptop with WIFI and WWAN, so it is really totally wireless. I'm also a big fan (and composer) of electronic music. Theremin is the french spelling of Termen, as in “Lev Sergeyevich Termen”, the Russian inventor more commonly known as Léon Thérémin. One of his invention is the Theremin musical instrument. Think of it as a synthesizer without a keyboard. You control the pitch and volume by moving your hands around antennas, wirelessly. Wireless.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“Why do you have spare components next to it?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;Actually, they are not spare at all. I removed the DVD/CDROM, the hard disk and one of the 2 memory DIMM. I even replaced the DIMM left by a smaller one, 256MB. It is as bare as I can make it.&lt;/p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_98g7Qy8Arv8/RyJRZq1REGI/AAAAAAAAACs/Q9PvXiyCde4/s1600-h/jd_firefly_lg.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_98g7Qy8Arv8/RyJRZq1REGI/AAAAAAAAACs/Q9PvXiyCde4/s400/jd_firefly_lg.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5125748827337330786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“So how is it running an OS?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;It is booting off of a USB key. A 2GB Lexar Firefly. This thing is SMALL, but comes in capacity up to 8GB. Truly physically small enough to fit on your key chain.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“And what else?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;&lt;a href="http://www.genunix.org/distributions/belenix_site/"&gt;Belenix 0.6.1&lt;/a&gt;. This has already been out &lt;a href="http://www.genunix.org/distributions/belenix_site/?q=node/51"&gt;since mid July&lt;/a&gt;, but I've only gotten around to using it for the past few weeks. Belenix is an opensolaris distribution. It has KDE and XFCE, all the good stuff from Solaris like ZFS, zones and DTrace. Oh, it also has Gnu Parted. And Compiz. And Koffice. It is a live CD distribution, similar to, say, Knoppix. To use it, you simply download the ISO, burn it on CD and boot that CD.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt; &lt;u&gt;“Ah, but isn't it hard to get it on a USB key?”&lt;/u&gt; &lt;/p&gt;&lt;p style=''&gt;To get on the USB, you log in as root, insert your USB key (1GB or more, I used a 2GB in my case) and from the command line, you type:&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;usbdump&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;That is it. No other step. You are done. You can now reboot the machine and if you have boot from USB as the first choice in your boot order, it will boot from the USB key and come up with a GRUB screen.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;p style=''&gt;Yay! See also &lt;a href="http://blogs.sun.com/moinakg/"&gt;Moinak Ghosh&lt;/a&gt;'s blog.&lt;/p&gt;&lt;p style=''&gt; &lt;br/&gt; &lt;/p&gt;&lt;br clear='left'/&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_98g7Qy8Arv8/RyJRR61REFI/AAAAAAAAACk/rmHb1OvX6I4/s1600-h/belenixgrub.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_98g7Qy8Arv8/RyJRR61REFI/AAAAAAAAACk/rmHb1OvX6I4/s400/belenixgrub.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5125748694193344594" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-3415855493267042019?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/3415855493267042019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=3415855493267042019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/3415855493267042019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/3415855493267042019'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/10/where-is-cdrom-belenix-story.html' title='Where is the CDROM? Belenix Story'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_98g7Qy8Arv8/RyJRLa1REEI/AAAAAAAAACc/WUScW_2__MM/s72-c/Lapic01-1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-4445794024350281183</id><published>2007-10-22T13:54:00.000-07:00</published><updated>2007-10-22T14:25:45.835-07:00</updated><title type='text'>Fun with GRUB: memtest</title><content type='html'>So you want to add a memtest entry to your &lt;a href="http://www.sun.com/bigadmin/features/articles/grub_boot_solaris.jsp"&gt;Solaris GRUB&lt;/a&gt; menu at boot time?&lt;br /&gt;&lt;br /&gt;Download memtest from &lt;a href="http://www.memtest86.com/memtest86-3.3.tar.gz"&gt;www.memtest86.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;extract:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[] gzcat memtest86-3.3.tar.gz | tar xvf -&lt;br /&gt;[] cd memtest86-3.3&lt;br /&gt;[] cp precomp.bin /boot/platform/i86pc/kernel/memtest&lt;br /&gt;[] chmod a+x /boot/platform/i86pc/kernel/memtest&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Edit /boot/grub/menu.lst and add at the bottom:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;title Solaris memtest86&lt;br /&gt;kernel  /boot/platform/i86pc/kernel/memtest&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;When you reboot you will have the option to run Solaris, Solaris failsafe or, now, memtest.&lt;br /&gt;&lt;br /&gt;Let me know if you are interested in more GRUB tricks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-4445794024350281183?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/4445794024350281183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=4445794024350281183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/4445794024350281183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/4445794024350281183'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/10/fun-with-grub-memtest.html' title='Fun with GRUB: memtest'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-1038265971828938788</id><published>2007-09-19T14:10:00.000-07:00</published><updated>2007-09-20T05:35:47.155-07:00</updated><title type='text'>NWAM and zones</title><content type='html'>Of course, NWAM wont help me at all with zones on a laptop, or will it? If my wired interface is not plumbed, I cant tie a zone to physical bge0 (my network card on my laptop). Before NWAM (network/physical:nwam) I had found a way to assign a secondary IP to bge0 and that worked to some extent. Basically, you would define an addif to /etc/hostname.bge0 and bge0:1 would come up, with bge0 plumbed or not, and the zones would be on that same network.&lt;br /&gt;&lt;br /&gt;Let's try. I unplug the laptop from the network and reboot, so that bge0 is nowhere to be seen. 172.16.0.0 is one of the reserved private B class (up to 172.31.0.0) that is available, with plenty of breathing room (instead of potentially dealing with multiple C classes). Adding to /etc/hosts&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;172.16.0.2 globalzone&lt;br /&gt;172.16.0.3 zone1&lt;br /&gt;172.16.0.4 zone2 etc.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and adding to /etc/hostname.bge0&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;addif globalzone&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reboot, and... it didn't work. Hmmm. Maybe the standard way to assign IPs and NWAM can coexist. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# svcs | grep network&lt;br /&gt;[...]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This shows many services, but two that are dealing with physical.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# svcs | grep physical&lt;br /&gt;&lt;br /&gt;online         12:46:34 svc:/network/physical:nwam&lt;br /&gt;disabled         12:46:37 svc:/network/physical:default&lt;br /&gt;&lt;br /&gt;# svcadm enable network/physical:default&lt;br /&gt;&lt;br /&gt;# svcs | grep physical&lt;br /&gt;online         12:46:34 svc:/network/physical:nwam&lt;br /&gt;online         14:48:46 svc:/network/physical:default&lt;br /&gt;&lt;br /&gt;# ifconfig -a&lt;br /&gt;&lt;br /&gt;bge0:1: flags=201000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS&gt; mtu 1500 index 2&lt;br /&gt;        inet 172.16.0.2 netmask ffff0000 broadcast 172.16.255.255&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We are up, yay! We can now proceed at the installation of zones on a laptop without worry about network access (very useful for demos on the road).&lt;br /&gt;&lt;br /&gt;In the next blogs I'll show why zones are so cool for a desktop or laptop (it's not just for servers, you know). I'll also show how you can gain (real) network access from a zone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-1038265971828938788?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/1038265971828938788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=1038265971828938788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1038265971828938788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1038265971828938788'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/09/nwam-and-zones.html' title='NWAM and zones'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-7153062970489871227</id><published>2007-09-19T13:32:00.000-07:00</published><updated>2007-09-19T13:46:36.449-07:00</updated><title type='text'>NWAM</title><content type='html'>Waiting for the newest Developer Edition, I'm running a relatively recent Solaris Express, B66 (selected the Developer Edition option at boot time). Coming from B57 or so, it's a big boost for laptops. Why is that? NWAM. No, not a new WHAM produced by Maurice Starr, but simply NetWork Auto Magic, an opensolaris project.&lt;br /&gt;&lt;br /&gt;Imagine the following. You install B66, networked, with full intent to unconfig the network card and install something like inetmenu, wireless network drivers, write some scripts etc so you can switch between at home wired, at home wireless, at work wired, at work wireless, on the road wired, on the road wireless etc.&lt;br /&gt;&lt;br /&gt;Then, you finally login (forgetting to plug in your wired network) and are greeted by a dialog showing you all the various wireless access points and asking you to choose which one you want to connect to. Whoa! This is a cold install and everything was detected, and now this dialog is telling me that I dont need inetmenu and all those scripts to attempt to connect to a network? &lt;br /&gt;&lt;br /&gt;iwi0 shows up under ifconfig. I decide to instead go with wired, plug the cable and bge0 is brought up, detects DHCP, gets a new IP and instantly i'm on the wired network. &lt;br /&gt;&lt;br /&gt;Pretty cool! Wired or wireless, this pretty much "just works (tm)". Couldn't have been an easier experience.&lt;br /&gt;&lt;br /&gt;See:&lt;br /&gt;&lt;a href="http://dar-k.blogspot.com/2007/07/solaris-network-auto-magic-nwam-project.html"&gt;http://dar-k.blogspot.com/2007/07/solaris-network-auto-magic-nwam-project.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-7153062970489871227?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/7153062970489871227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=7153062970489871227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7153062970489871227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7153062970489871227'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/09/nwam.html' title='NWAM'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-7961546377158479220</id><published>2007-09-06T10:03:00.000-07:00</published><updated>2007-09-06T10:09:50.116-07:00</updated><title type='text'>Quick!</title><content type='html'>From time to time, the marketing team at Sun change their graphics on the Homepage. When the image with the sunflowers appeared (&lt;a href="http://fr.sun.com/sunnews/feature/2007/070821/images/b1_geo_eco.jpg"&gt;http://fr.sun.com/sunnews/feature/2007/070821/images/b1_geo_eco.jpg&lt;/a&gt;), I noticed that the time to load was long. And every time. But I had other things to take care of.&lt;br /&gt;&lt;br /&gt;Finally, this morning I sent a message to the Webmaster, mentioning that the size of the image is too large.&lt;br /&gt;&lt;br /&gt;The same image by regional sites:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;USA (nla)          ~50KB-60KB&lt;br /&gt;Canada (English)    49KB&lt;br /&gt;Canada (French)     51KB&lt;br /&gt;Spain               40KB&lt;br /&gt;Latin America       49KB&lt;br /&gt;France             250KB !&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I did not expect anything, so imagine my surprise when a short time later, I receive an email which tells me that the issue is transmitted to the technical team. Furthermore, less than 10 minutes later it was corrected (60KB now)!&lt;br /&gt;&lt;br /&gt;Now, why so much difference between the different sites? More than likely, each one uses a different software, a different ratio etc.&lt;br /&gt;&lt;br /&gt;How can you prepare an image for the Web with Solaris?&lt;br /&gt;&lt;br /&gt;With Imagemagick, included with Solaris (/usr/sfw/bin):&lt;br /&gt;&lt;code&gt;convert b1_geo_eco_master.png -quality 50% b1_crushed.jpg&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;50% is usually very good for the Web, but if not, you can use -quality 60% or more (the size goes up with the quality).&lt;br /&gt;&lt;br /&gt;Another option, with Imagemagick found at Sunfreeware (pkgadd -d imagemagick-6.3.0-sol10-x86-local) or Blastwave (pkg-get -i imagemagick):&lt;br /&gt;&lt;code&gt;convert b1_geo_eco_master.png -strip -quality 50% b1_crushed.jpg&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The -strip option is new (not found in Imagemagick 5.x) and remove all profiles and meta-data that the image may have due to programs like Gimp or Photoshop and color profiles that digital cameras tag to images.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-7961546377158479220?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/7961546377158479220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=7961546377158479220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7961546377158479220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7961546377158479220'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/09/quick.html' title='Quick!'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-7602699116778802943</id><published>2007-06-06T07:24:00.000-07:00</published><updated>2008-12-08T19:27:44.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='programmer'/><title type='text'>Sun Studio 12 is now available</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_98g7Qy8Arv8/RmbE70EaIbI/AAAAAAAAAAg/759-BaaR6uE/s1600-h/sunstudio1.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_98g7Qy8Arv8/RmbE70EaIbI/AAAAAAAAAAg/759-BaaR6uE/s400/sunstudio1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5072958562147901874" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Sun Studio 12 software suite delivers high-performance, optimizing C, C++, and Fortran compilers. Studio 12 marks a really important jump from Sun Studio 11 as far as the environment itself is concerned. This is based on the more recent Netbeans 5.5+ and is an incredible tool. Through the Sun Studio Express program, and then through the Early Access program, I was able to experience firsthand all the enhancements and new features over the course of the last 5 months. The performance of the resulting compiled applications is really phenomenal, even on 64 bit AMD and Intel processors.&lt;br /&gt;&lt;br /&gt;It is now the development environment to beat when it comes to native applications, under Solaris or Linux. Although there are currently no version under windows, I wouldn't be surprised if one did materialize. We've ditched MS Windows and MS Visual Studio on all desktops, and now enjoy increased productivity. Sun Studio 11 did provide the performance, but it didn't provide the level of user friendliness that Sun Studio 12 now provides. It is not perfect, but it is a really solid product.&lt;br /&gt;&lt;br /&gt;Sun is on a roll, providing once again best in class software, but at a surprisingly low cost: free.&lt;br /&gt;&lt;br /&gt;In the coming weeks, I will mention some specific tools or aspects of Studio 12, stay tuned.&lt;br /&gt;&lt;br /&gt;As of today, you can download it here:&lt;br /&gt;&lt;a href="http://developers.sun.com/sunstudio/downloads/thankyou.jsp?submit=%A0FREE+Download%A0%BB%A0"&gt;Sun Studio Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;or request a media kit here, for free (I will have to confirm if this includes the just released Sun Studio 12 or 11):&lt;br /&gt;&lt;a href="http://developers.sun.com/sunstudio/"&gt;developers.sun.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-7602699116778802943?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/7602699116778802943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=7602699116778802943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7602699116778802943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/7602699116778802943'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/06/sun-studio-12-is-now-available.html' title='Sun Studio 12 is now available'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_98g7Qy8Arv8/RmbE70EaIbI/AAAAAAAAAAg/759-BaaR6uE/s72-c/sunstudio1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-4842125550136754702</id><published>2007-05-25T12:36:00.000-07:00</published><updated>2007-05-25T13:04:48.079-07:00</updated><title type='text'>World's most ethical companies</title><content type='html'>Sun Microsystems made the cut, along with 3 others in the field of computers and semiconductors (the others are NEC, Texas Instruments and Xerox).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ethisphere.com/Ethisphere_Magazine_0207/WME-2007-Q2"&gt;http://ethisphere.com/Ethisphere_Magazine_0207/WME-2007-Q2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I tip my hat to Sun and to its employees, you well deserve the praise.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-4842125550136754702?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/4842125550136754702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=4842125550136754702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/4842125550136754702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/4842125550136754702'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/05/worlds-most-ethical-companies.html' title='World&apos;s most ethical companies'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-822135434140403288</id><published>2007-02-27T12:40:00.000-08:00</published><updated>2007-10-04T14:30:19.634-07:00</updated><title type='text'>How compatible is your computer?</title><content type='html'>If you run Windows XP home, XP Pro, Linux (Red Hat, Fedora, Ubuntu, Suse), Solaris 10 or Solaris Express this tool will tell you what will work or wont work in Solaris Express Developer Edition:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=8&amp;PartDetailId=SDDT-SolEx-G-F&amp;TransactionId=noreg"&gt; Sun Solaris Express tool (WARNING, V1.0, see note below for V2.0)&lt;/a&gt; (Java web start)&lt;br /&gt;&lt;br /&gt;If you are:&lt;br /&gt;&lt;a href="http://developers.sun.com/solaris/downloads/solexpdev/doc.jsp"&gt;Download Solaris&lt;/a&gt;&lt;br /&gt;or media:&lt;br /&gt;&lt;a href="http://www2.sun.de/dc/forms/reg_us_2211_391.jsp"&gt;DVD (free)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;[10/04/2007]&lt;br /&gt;Note: a new version of SDD is available at:&lt;br /&gt;&lt;a href="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=8&amp;PartDetailId=SDDT-2.0-G-F&amp;TransactionId=noreg"&gt;&lt;br /&gt;http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=8&amp;PartDetailId=SDDT-2.0-G-F&amp;TransactionId=noreg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Click accept, then click Sun Device Detection Tool 2.0, English, run and select Solaris 10 8/07 or Solaris Express Developer Edition 9/07.&lt;br /&gt;&lt;br /&gt;Muy Bien, Sun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-822135434140403288?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/822135434140403288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=822135434140403288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/822135434140403288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/822135434140403288'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/how-compatible-is-your-computer.html' title='How compatible is your computer?'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-5518189450496572190</id><published>2007-02-20T07:25:00.000-08:00</published><updated>2008-12-08T19:27:44.921-08:00</updated><title type='text'>Solaris in music and image</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_98g7Qy8Arv8/RdsHavsGb0I/AAAAAAAAAAM/jLizGR9vHXU/s1600-h/solaris.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_98g7Qy8Arv8/RdsHavsGb0I/AAAAAAAAAAM/jLizGR9vHXU/s320/solaris.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5033625164576091970" /&gt;&lt;/a&gt;&lt;br /&gt;We are blogging on a light note today!&lt;br /&gt;&lt;br /&gt;In 1983, Radio-Canada broadcasted "The Mysterious Cities of Gold" (in French), a France, Luxemburg, Japan coproduction.&lt;br /&gt;&lt;br /&gt;In this animated series was found an interesting, solar powered ship, the Solaris.&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;A musical theme by Haim Saban and Shuki Lévy was found throughout the episodes, including those with the Solaris.&lt;br /&gt;&lt;br /&gt;Original soundtrack:&lt;br /&gt;&lt;a href="http://www.tzone.org/~pat/anime/mco/solaris.mp3"&gt;Majestueux Solaris (MP3)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Remake #1:&lt;br /&gt;&lt;a href="http://www.citesdor.com/musiques/mcomp3.php3?loc=bfree&amp;obj=mcoboub_51a_majestueux_solaris.mp3"&gt;Majestueux Solaris A (MP3)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Remake #2:&lt;br /&gt;&lt;a href="http://www.citesdor.com/musiques/mcomp3.php3?loc=bgwn2&amp;obj=mcoboub_51b_majestueux_solaris.mp3"&gt;Majestueux Solaris B (MP3)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It works with RealPlayer (Solaris 10 or Nevada), or with Rhythmbox (Solaris Nevada).&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://www.citesdor.com/"&gt;citesdor.com&lt;/a&gt; for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-5518189450496572190?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/5518189450496572190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=5518189450496572190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/5518189450496572190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/5518189450496572190'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/solaris-in-music-and-image.html' title='Solaris in music and image'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_98g7Qy8Arv8/RdsHavsGb0I/AAAAAAAAAAM/jLizGR9vHXU/s72-c/solaris.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-1456792324108689736</id><published>2007-02-14T10:54:00.000-08:00</published><updated>2007-02-14T12:56:05.414-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='manager'/><category scheme='http://www.blogger.com/atom/ns#' term='programmer'/><category scheme='http://www.blogger.com/atom/ns#' term='architect'/><title type='text'>Solaris Express Developer Edition (2/07)</title><content type='html'>Well, it is finally available. I had mentionned before on &lt;a href="http://www.sunquebec.com/forum/index.php"&gt;SunQuebec&lt;/a&gt;that the next release of Solaris Express would be interesting, and the reason is: the DVD now includes Sun Studio 11 and Netbeans 5.5. So it is now a complete environment.&lt;br /&gt;&lt;br /&gt;It can be found here:&lt;br /&gt;&lt;a href="http://developers.sun.com/solaris/downloads/solexpdev/"&gt;http://developers.sun.com/solaris/downloads/solexpdev/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This build also includes firefox 2, star office 8, and Sun is trying to appeal to LAMP developers with SAMP (Solaris, Apache, MySQL et PHP). Sun Web Server 7 is available and Postgresql has been included for a while now, so it's not a huge addition, but it makes for a pretty complete distribution.&lt;br /&gt;&lt;br /&gt;Currently it is only x86/x64, but you can get equivalent functionality under Sparc with Solaris Express Community Edition B55 and above. I have B56, but B57 is now available.&lt;br /&gt;&lt;br /&gt;The next Community Edition to keep an eye out for will be B60. This will include bootable ZFS for x86/x64, and I would guess it might appear in Solaris Express 4/07 if I understand the revision cycle, altough I now read that Solaris Express will now be quarterly so that might be 5/07.&lt;br /&gt;&lt;br /&gt;François&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-1456792324108689736?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/1456792324108689736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=1456792324108689736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1456792324108689736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1456792324108689736'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/solaris-express-developer-edition-207.html' title='Solaris Express Developer Edition (2/07)'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-8839717620004699388</id><published>2007-02-12T13:10:00.000-08:00</published><updated>2007-02-12T13:24:12.813-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='manager'/><category scheme='http://www.blogger.com/atom/ns#' term='programmer'/><category scheme='http://www.blogger.com/atom/ns#' term='architect'/><title type='text'>Secure By Default</title><content type='html'>Learn to love SBD.&lt;br /&gt;&lt;br /&gt;When doing the initial install of Solaris 10, select the secure by default (SBD) option. If this is Solaris Nevada, no option is given, it will be (mostly) secure by default. If the install is an upgrade, then it will not change the previous install. To activate the secure profile, run the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;/usr/sbin/netservices limited&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that this will only allow local smtp and rpc, and only ssh remotely, so be careful if you are on a production box, everything else is tight.&lt;br /&gt;&lt;br /&gt;Why should you care? Because you are safe from the latest Solaris 10 hack. If you haven't heard of it yet, you might want to search the web and learn more. Basically, it enables an attacker to telnet into a Solaris 10 machine.&lt;br /&gt;&lt;br /&gt;I decided to head over the OpenGrok OpenSolaris source code browser, and look at login.c:&lt;br /&gt;In login.c:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;524 /* ONC_PLUS EXTRACT START */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   525         /*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   526          * validate user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   527          */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   528         /* we are already authenticated. fill in what we must, then continue */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   529         if (fflag) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   530 /* ONC_PLUS EXTRACT END */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   531                 if ((pwd = getpwnam(user_name)) == NULL) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   532                         audit_error = ADT_FAIL_VALUE_USERNAME;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   533&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   534                         log_bad_attempts();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   535                         (void) printf("Login failed: unknown user '%s'.\n",&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   536                             user_name);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   537                         login_exit(1);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   538                 }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   539 /* ONC_PLUS EXTRACT START */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   540         } else {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   541                 /*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   542                  * Perform the primary login authentication activity.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   543                  */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   544                 login_authenticate();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   545         }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So as long as the f flag is set, it never does the login_authenticate(). If that option was somewhat injected in a string...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1399           case 'f':&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1400                         /*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1401                          * Must be root to bypass authentication&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1402                          * otherwise we exit() as punishment for trying.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1403                          */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1404                         if (getuid() != 0 || geteuid() != 0) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1405                                 audit_error = ADT_FAIL_VALUE_AUTH_BYPASS;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1406&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1407                                 login_exit(1);  /* sigh */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1408                                 /*NOTREACHED*/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1409                         }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1410                         /* save fflag user name for future use */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1411                         SCPYL(user_name, optarg);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1412                         fflag = B_TRUE;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  1413                         break;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Quite the punishment for trying, no? This is similar to an old rlogin issue.&lt;br /&gt;&lt;br /&gt;Sun Studio now has a thread analyzer that does race detection and other similar complex detection of problems in your code. Maybe security hole detection should be next? :)&lt;br /&gt;&lt;br /&gt;So why did this come back?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;54  * -f &lt;/span&gt;&lt;username&gt;&lt;span style="font-family:courier new;"&gt;: This flag was introduced by PSARC 1995/039 in support&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    55  *    of Kerberos.  But it's not used by Sun's Kerberos implementation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    56  *    It is however employed by zlogin(1), since it allows one to tell&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    57  *    login: "This user is authenticated."  In the case of zlogin that's&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    58  *    true because the zone always trusts the global zone.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So if you are running Solaris secure by default and have not re-enabled telnet, you are safe.&lt;br /&gt;&lt;br /&gt;Learn to love SBD.&lt;br /&gt;&lt;br /&gt;______________________________________&lt;br /&gt;&lt;br /&gt;Update:&lt;br /&gt;&lt;br /&gt;For Tpatches and details from the sausage factory, see this blog:&lt;br /&gt;&lt;a href="http://blogs.sun.com/tpenta/entry/the_in_telnetd_vulnerability_exploit"&gt;Alan Hargreaves - the in.telnetd exploit&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-8839717620004699388?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/8839717620004699388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=8839717620004699388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8839717620004699388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/8839717620004699388'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/secure-by-default.html' title='Secure By Default'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-878680574528026110</id><published>2007-02-12T09:07:00.000-08:00</published><updated>2007-02-12T09:17:11.226-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>Polyglot</title><content type='html'>I was hoping for an &lt;span style="font-weight: bold;"&gt;integrated multi language&lt;/span&gt; support with blogger / blogspot, but the only way I've found is to create 3 different blogs, and add a list of links to it. Next step is to figure out how to match posts and URLs. Looks like it is going to take some javascript to make this work right.&lt;br /&gt;&lt;br /&gt;Anybody been there, done that?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-878680574528026110?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/878680574528026110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=878680574528026110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/878680574528026110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/878680574528026110'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/polyglot.html' title='Polyglot'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-5657166992714696340</id><published>2007-02-12T09:03:00.000-08:00</published><updated>2007-02-12T09:17:43.978-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='zfs'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='architect'/><title type='text'>Mirrored Laptop with Compact Flash</title><content type='html'>An alternative to the USB stick to have a mirrored storage on a laptop is to use a PC card compact flash adapter, along with a compact flash card. These cards are available currently in capacities of up to 16GB, but are much more expensive than USB sticks.&lt;br /&gt;&lt;br /&gt;For the purpose of demonstrating the concept, I used my old IBM microdrive (340MB) in CFII format. I think the largest ever made was 6 or 8GB, but with solid state cards capable of higher density, that is probably the end of the line for that technology. Still, I've had it for about 7 years now, so it has proven surprisingly reliable (unlike the iPaq this was in).&lt;br /&gt;&lt;br /&gt;So, all you have to do is insert the PC card and Solaris hald (Solaris Nevada B56) picks up the microdrive, mounts it and is shown on the desktop.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# df -h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Filesystem             size   used  avail capacity  Mounted on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[...]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/dev/dsk/c1t0d0s2      3.6G   3.6G     0K   100%    /media/SOL_11_X86&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/dev/dsk/c8d0p0:1      341M    16K   341M     1%    /media/MICRODRIVE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I then unmounted the microdrive. Assuming you have a free slice 7 on your internal hard disk (make sure you have an empty, pre-allocated slice), then you would do:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# zpool create internal mirror c0d0s7 c8d0p0  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;invalid vdev specification&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;use '-f' to override the following errors:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mirror contains devices of different sizes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# zpool create -f internal mirror c0d0s7 c8d0p0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# df -h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Filesystem             size   used  avail capacity  Mounted on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[...]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/dev/dsk/c1t0d0s2      3.6G   3.6G     0K   100%    /media/SOL_11_X86&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;internal               304M    24K   304M     1%    /internal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# zpool status&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: internal&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: none requested&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME        STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        internal    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7  ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c8d0p0  ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We can then proceed to set compression and mountpoint just like in the previous case we went through.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-5657166992714696340?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/5657166992714696340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=5657166992714696340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/5657166992714696340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/5657166992714696340'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/mirrored-laptop-with-compact-flash.html' title='Mirrored Laptop with Compact Flash'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-1029312511823108989</id><published>2007-02-09T12:53:00.000-08:00</published><updated>2007-02-12T09:10:09.998-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='memory stick'/><category scheme='http://www.blogger.com/atom/ns#' term='laptop'/><category scheme='http://www.blogger.com/atom/ns#' term='zfs'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='usb'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='architect'/><title type='text'>Stick to ZFS, or The laptop with a mirrored drive</title><content type='html'>My everyday laptop is a Dell Latitude D600. It's old but it has served me well. It started its life with Windows 2000 on its hard disk. I switched back and forth between Solaris 10 and Windows 2000 (Windows XP was just too frustrating for me and at some point I've triple booted Mandriva, Suse or Ubuntu), until I decided to go Solaris Express (aka Nevada, aka what will become 11) which is the base anyway for OpenSolaris. Since Nevada B53, I've never looked back. I removed all other partitions and dedicated it to Solaris.&lt;br /&gt;&lt;br /&gt;Now, most laptop can only take one drive. This is the case with the Latitude.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);font-size:130%;" &gt;Stick to ZFS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Assuming you have a slice available on your laptop hard disk and you have a memory &lt;span style="font-weight: bold;"&gt;stick&lt;/span&gt;, a lot of fun can be had with &lt;span style="font-weight: bold;"&gt;ZFS&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;This came about as I was pondering about making my laptop a little more safe for travelling. If I lost a hard drive, I could buy a new one and then just reinstall Solaris. The latest Solaris (B56) even has a Sun Studio and Netbeans when you select Solaris Express Developer at install time. Email, source and other stuff are remotely stored on a server etc. The only issue is all my documents that I'm saving in the local user/Documents folder (I am not always online). Yes, I do a backup to an external USB device, but I would like for this to be transparent. I tought, ZFS could do this, along with a USB stick. There are some sticks that are so small, you can leave them in the USB port when putting the laptop in its bag.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The laptop with a mirrored drive.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So here is the recipe. I insert my memory stick and check its logical node:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;rmformat&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Looking for devices...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     1. Logical Node: /dev/rdsk/c4t0d0p0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Physical Node: /pci@0,0/pci8086,4541@1d,1/storage@1/disk@0,0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Connected Device: KINGSTON USB DRIVE        1.12&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Device Type: Removable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Bus: USB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Size: 246.0 MB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Label: &lt;none&gt;&lt;/none&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Access permissions: &lt;unknown&gt;&lt;/unknown&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Above is my test memory stick. My internal disk is c0d0:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;format&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Searching for disks...done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;AVAILABLE DISK SELECTIONS:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       0. c0d0 &lt;default&gt;&lt;/default&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;^C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I already know that slice 7 is unassigned but allocated and free. If I didn't know, I'd select the drive in format, then enter the partition mode and print the partition table. If the boot disk partition needs to be edited, you'll need to do that by booting Solaris from CD/DVD.&lt;br /&gt;&lt;br /&gt;So, let us create a mirror:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool create -f stick mirror c0d0s7 c4t0d0p0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick                   240M     89K    240M     0%  ONLINE     -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;usb                     298G    182G    116G    60%  ONLINE     -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs create stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs set compression=on stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs set mountpoint=/export/home/fdion/Documents stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;cp /export/home/fdion/mp3/PeteNamlook\ and\ MixMaster\ Morris/*.mp3 .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;While the copy was going on (Pete Namlook and Mixmaster Morris' Dreamfish album), I &lt;span style="color: rgb(204, 0, 0);"&gt;pulled&lt;/span&gt; the usb stick. Copy completed without problem:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME              USED  AVAIL  REFER  MOUNTPOINT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick            97.9M   110M  24.5K  /stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick/Documents  97.7M   110M  97.7M  /export/home/fdion/Documents&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick                   240M   97.9M    142M    40%  DEGRADED   -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;usb                     298G    182G    116G    60%  ONLINE     -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The mirror is degraded tough. Let's check the full status:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;zpool status&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: DEGRADED&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;status: One or more devices could not be opened.  Sufficient replicas exist for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        the pool to continue functioning in a degraded state.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;action: Attach the missing device and online it using 'zpool online'.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   see: http://www.sun.com/msg/ZFS-8000-D3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: none requested&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME          STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick         &lt;span style="color: rgb(204, 0, 0);"&gt;DEGRADED&lt;/span&gt;     0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror      &lt;span style="color: rgb(204, 0, 0);"&gt;DEGRADED&lt;/span&gt;     0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c4t0d0p0  UNAVAIL      0   306     0  cannot open&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let's bring it online:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool online stick c4t0d0p0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Bringing device c4t0d0p0 online&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This took a little bit of time as the mirror finished fixing itself. Am I done? Let's check the status:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;status: One or more devices has experienced an unrecoverable error.  An&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        attempt was made to correct the error.  Applications are unaffected.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;action: Determine if the device needs to be replaced, and clear the errors&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        using 'zpool clear' or replace the device with 'zpool replace'.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   see: http://www.sun.com/msg/ZFS-8000-9P&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: resilver completed with 0 errors on Fri Feb  9 14:22:09 2007&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME          STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick         ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror      ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c4t0d0p0  ONLINE       0   306     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool clear stick c4t0d0p0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: resilver completed with 0 errors on Fri Feb  9 14:22:09 2007&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME          STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick         ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror      ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c4t0d0p0  ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Alright, everything is ok now. Just a recap of what I've done up to now:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool history stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;History for 'stick':&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:08:34 zpool create -f stick mirror c0d0s7 c4t0d0p0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:10:54 zfs create stick/Documents&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:11:06 zfs set compression=on stick/Documents&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:11:59 zfs set mountpoint=/export/home/fdion/Documents stick/Documents&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:20:14 zpool online stick c4t0d0p0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2007-02-09.14:25:26 zpool clear stick c4t0d0p0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pretty slick. Let's export and load this in another computer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool export stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On &lt;span style="color: rgb(204, 0, 0);"&gt;another &lt;/span&gt;machine, I go and plug the memory stick in and:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool import stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cannot mount '/export/home/fdion/Documents': directory is not empty&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ah, yes, that's an issue, but we are just testing. I probably should have mounted a different user.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs set mountpoint=/export/home/fdlaptop/Documents stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool export stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool import stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Data is there, everything is fine. But, how does it look from ZFS standpoint?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: DEGRADED&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;status: One or more devices could not be opened. Sufficient replicas exist for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        the pool to continue functioning in a degraded state.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;action: Attach the missing device and online it using 'zpool online'.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   see: http://www.sun.com/msg/ZFS-8000-D3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: resilver completed with 0 errors on Fri Feb  9 14:38:56 2007&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME          STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick         DEGRADED     0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror      DEGRADED     0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7    UNAVAIL      0     0     0  cannot open&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c4t0d0p0  ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is as expected. Let's export again:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool export stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I put the stick back in the laptop, then&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool import stick&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: resilver completed with 0 errors on Fri Feb  9 14:41:42 2007&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME          STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick         ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          mirror      ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c0d0s7    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            c4t0d0p0  ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Impressive, no?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME              USED  AVAIL  REFER  MOUNTPOINT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick            97.9M   110M  24.5K  /stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick/Documents  97.7M   110M  97.7M  /export/home/fdlaptop/Documents&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;BTW, I did have compression enabled, but since I copied MP3 files, I expect no compression whatsoever:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs get compressratio stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME             PROPERTY       VALUE            SOURCE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick/Documents  compressratio  1.00x    &lt;/span&gt;        -&lt;br /&gt;&lt;br /&gt;Sure enough. I then copied 20M of office documents and pdfs and removed the mp3 files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zfs get compressratio stick/Documents&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NAME             PROPERTY       VALUE            SOURCE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;stick/Documents  compressratio  &lt;span style="color: rgb(204, 0, 0);"&gt;3.53x&lt;/span&gt;            -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At 3.5x and small USB sticks available in 8GB, that's potentially 28GB mirrored! Currently, the 8 GB are a bit too high, but 4GB is &lt;$80 (I've seen as low as $40).  In the newer Solaris builds, a mirror can be reverted back to a non mirrored zone:  &lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool detach stick c4t0d0p0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I pulled the stick out.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  pool: stick&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; state: ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; scrub: resilver completed with 0 errors on Fri Feb  9 14:41:42 2007&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;config:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        NAME        STATE     READ WRITE CKSUM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        stick       ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;          c0d0s7    ONLINE       0     0     0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;errors: No known data errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I now am back to a non mirrored mode. To recreate:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bash-3.00# &lt;span style="font-weight: bold;"&gt;zpool attach stick c0d0s7 c4t0d0p0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The only issue is if the two devices are not exactly the same size (or the memory stick is smaller than the hard disk slice), you will get:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cannot attach c4t0d0p0 to c0d0s7: device is too small&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just something to keep in mind.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-1029312511823108989?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/1029312511823108989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=1029312511823108989' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1029312511823108989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/1029312511823108989'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/stick-to-zfs-or-laptop-with-mirrored.html' title='Stick to ZFS, or The laptop with a mirrored drive'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5331825847912496749.post-9005412457351599824</id><published>2007-02-09T12:42:00.000-08:00</published><updated>2007-02-12T09:13:00.007-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>First post</title><content type='html'>Well, I keep having to restart my blog, maybe I should really host it. At any rate, this blog is about my experience at using Sun Solaris as my operating system on the desktop (and laptop, and server etc).&lt;br /&gt;&lt;br /&gt;J'espère aussi avoir une version française, quasi-simultané.&lt;br /&gt;&lt;br /&gt;Aprendo también español, yo es pues traducir este blog en esta lengua. (work in progress as can be seen :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5331825847912496749-9005412457351599824?l=solarisdesktop.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solarisdesktop.blogspot.com/feeds/9005412457351599824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5331825847912496749&amp;postID=9005412457351599824' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/9005412457351599824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5331825847912496749/posts/default/9005412457351599824'/><link rel='alternate' type='text/html' href='http://solarisdesktop.blogspot.com/2007/02/first-post.html' title='First post'/><author><name>francois</name><uri>http://www.blogger.com/profile/10442105466634552900</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
