OpenSolaris: HowTo Install Sun Studio + Common Build Environment (CBE)
Few steps to install Sun Studio and Common Build Environment on OpenSolaris box.
Those little steps will explain how to install Sun Studio and Common Build Environment on top of OpenSolaris 2008.05. Please note that some of those instructions normally should be different, but little bugs, which currently exists caused need for those changes in this tutorial.
Why you will need this?
The Sun Studio together with CBE will allow to build lot's and lot's of new packages/software to your lovely OpenSolaris and if you have a little knowledge you might want to create your own packages and share them with other people!
What you will need?
1. Internet Access.
2. Few cups of coffe/tee, since this will take a while, depending on your connection speed.
3. Good mood, as this was tested Today and may be different in couple of weeks, so if something will break don't panic! You have ZFS snapshots, so you will not break your system :-)
I) UPDATING YOUR SYSTEM
First you need to fully update your OpenSolaris 2008.05. Without this, probably things will not work, so to fully update your system please follow those steps as standard user:
$ pfexec pkg refresh
After this step you should follow those commands (as shown on below picture):
$ export PKG_CLIENT_TIMEOUT=300
Updated:
$ pfexec pkg install SUNWipkg
$ pfexec pkg image-update
The below steps are related to the bug described HERE and MUST be done, otherwise you will NOT be able to boot to the updated OpenSolaris.
$ pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt
$ pfexec /mnt/boot/solaris/bin/update_grub -R /mnt
$ pfexec reboot
The below screenshot, shows the actual steps. The black-marked commands are the ones which you should type (before this please remember to type pkg refresh) :)

II) INSTALLING REQUIRED PACKAGES
Those steps will install all required packages
$ export PKG_CLIENT_TIMEOUT=300
$ pfexec pkg install SUNWcvs SUNWsvn SUNWarc SUNWj6dmo \
SUNWj6dev SUNWj6dmx SUNWj6dvx SUNWj6cfg SUNWj6rtx \
SUNWj6man SUNWgnu-automake-19 SUNWgnu-automake-110 \
SUNWaconf SUNWmercurial SUNWlibtool ss-dev SUNWsfwhea \
SUNWhea SUNWxwinc SUNWxorg-headers SUNWi2cs SUNWgpch \
SUNWgnome-common-devel SUNWgmake SUNWbison SUNWflexlex
The below picture is actual screenshot from the above operation:

III) INSTALLING COMMON BUILD ENVIRONMENT (CBE)
The first thing you need to do is to add the "Software Installation" profile for your user, to do so, please follow the commands, replacing USERNAME with your actual username:
$ su
$ usermod -P "Software Installation,Primary Administrator" \
USERNAME
Secondly you need to get CBE sources from HERE.
Then unpack:
$ bunzip jds-cbe-1.6.0-i386.tar.bz2
$ tar -xvf jds-cbe-1.6.0-i386.tar
Now you need to apply one small, so please download it and place in the directory one level up from jds-cbe-1.6.0 directory, so simply stay in the directory where you have been unpacking jds-cbe-1.6.0-i386.tar.bz2.
To apply this patch, please type the following command:
$ patch -p0 < cbe-install.diff
If this will not work, you can download patched cbe-install script and replace the one from the jds-cbe-1.6.0 directory.
Now just go to the jds-cbe-1.6.0 directory:
$ cd jds-cbe-1.6.0
and install stuff:
$ ./cbe-install
You will get few questions, so for all yes/no, please answer yes. For the question about patch to the C compiler, please type the following path:
/opt/SunStudioExpress/bin/cc
All those steps are visible on the screenshot:

That is it! If you would like to make a use of CBE, you can watch simple tutorials describing howto build some packages (especially part 2 is made for this purpose):
Create your own OpenSolaris IPS repository in a Weekend!
KNOWN PROBLEM:
If something will go wrong during installation, and you will hit similar stacktrace to the one shown below, simply add the package name to the pkg install command by hand and it should go further. This is related to bug 2229

Posted at 07:03AM Jun 17, 2008 by migi in Sun | Comments[3]
OpenAcademy
Yesterday I had a pleasure to give a talk (Polish) about ZFS and Solaris Zones on the OpenAcademy in Wrocław, Poland.
Most of the people were from the GNU/Linux, *BSD world, so after the presentation there was plenty of questions which I believe reflected interest on those topics.
The picture below shows the tools used for the presentation (people who know the value of ZFS should guess how those nice tools were used... picture was taken Today so there is a little less usb sticks...):

Posted at 12:20PM Jun 05, 2008 by migi in Sun | Comments[3]
Create your own OpenSolaris IPS repository in a Weekend!
Finally all 6 parts of the presentation "Create your own OpenSolaris IPS repository in a Weekend" is out.
This covers the whole process from building packages using Common Build Environment to sending those packages to the IPS repository.
Enjoy watching:
Part 1: Common Build Environment
Part 2: Building Packages Using CBE
Part 3: Building pkg(5) (from sources)
Part 4: Setting up IPS repository
Part 5: Sending Solaris packages to the IPS repository #1
Part 6: Sending Solaris packages to the IPS repository #2
Glynn Foster wrote some instructions for happy Indiana users, that explains how to build spec-files on the Indiana. It is worth trying and sharing experiences. Please let me know if you successfully build spec-files on Indiana :-)
Also Damien Carbery pointed that CBE shouldn't be installed as root user, but I found this a little simpler than explaining how to install CBE using extended user attributes (man -s 4 user_attr).
Once again thanks for all the e-mails and comments and I hope that soon I will be able to download OpenSource software from your IPS repositories!
Posted at 03:39PM Jan 22, 2008 by migi in Sun | Comments[7]
Create your own OpenSolaris IPS repository in a Weekend - cont
Here you go. Another two parts of the presentation "Create your own OpenSolaris IPS repository in a Weekend", which will cover whole process from building packages using Common Build Environment to sending those packages to the IPS repository.
Previous parts are available HERE
I have made decision to record five or six instead of four planned parts, which is easier for viewing and more exciting for people that are waiting for more :-) :-)
I didn't expected that so many people will be interested in this presentation, but knowing that makes my work much more pleasant. Thanks again for all comments and e-mails !
Enjoy watching:
Part 3: Building pkg(5) (from sources)
Part 4: Setting up IPS repository
Coming soon:
Part 5: Sending Solaris packages to the IPS repository
Part 6: ??? (propositions welcome)
Posted at 03:55PM Jan 16, 2008 by migi in Sun | Comments[1]
Do you want to be an owner?
Hello,
Today Laszlo Peter (Laca) send an interesting e-mail to the desktop-discuss mailing list:
"SFE binary packages for OpenSolaris"
If you are interested in contributing to OpenSolaris and make SFE packages available for OpenSolaris, you should read this e-mail.
Posted at 10:42AM Dec 12, 2007 by migi in Sun | Comments[0]
Create your own OpenSolaris IPS repository in a Weekend
Are you missing software on OpenSolaris?
With IPS you can easily set up your own repository and let other people use your repository with lot's of OpenSource software.
I have made two from four planned parts of the presentation "Create your own OpenSolaris IPS repository in a Weekend", which will cover whole process from building packages using Common Build Environment to sending those packages to the IPS repository.
Enjoy watching:
Part 1: Common Build Environment
Part 2: Building Packages Using CBE
Coming soon:
Part 3: Setting up IPS repository
Part 4: Sending Solaris packages to IPS repository
Posted at 03:16PM Nov 23, 2007 by migi in Sun | Comments[5]
Indiana IPS and "Imagine Prototype" #2
Wondering how to install new applications on your OpenSolaris box?
Try Imagine, GUI for Image Packaging System (IPS).
In my last blog entry I wrote how to use it.
Now new version, can be downloaded from HERE, which is connected to the IPS.
Below 10 minutes long movie showing Imagine in action! So grab a drink and watch it or get Imagine and try it yourself!
Version with nice slide bar can be watched HERE
Posted at 09:22AM Nov 22, 2007 by migi in Sun | Comments[7]
Indiana IPS and *Imagine Prototype*
So here it comes Indiana! Download, install and try the Developer Preview!
One of the long awaiting Indiana features is the new Image Packaging System (IPS).
It is a packaging system that allows to pull packages from the network repositories, such as http://pkg.opensolaris.org.
Everything is really promising, but there is lack of the GUI tool for the IPS.
So I have written small prototype called Imagine, which is available for testing. The prototype is working on the fake data, so it's not connected to the IPS at the moment.
I would be really happy if the people from community *YOU* will give an input on this prototype, ideas and participate in making decisions, so we can create the GUI for IPS together. The decisions, which are very important, since GUI tool will be one of the tools that everyone will use (including me)!
At the moment this is *just* the prototype, so after discussions/decisions the direction of it might change a lot, but this is the starting point.
How to test the prototype ?
- Make sure that you have PyGTK (GTK+ for Python).
- Download imagine.tar.gz file and unpack the tarball.
- Cd to the imagine directory.
- Make sure that pkg_gui.py have permissions to execute.
- Run pkg_gui.py
Why this prototype is written in PyGTK
- The IPS is written in Python, so it was much simpler to write the prototype in this language, even if I already had my beloved JPack written in Java :-)
- The Imagine will call IPS modules directly.
- Look & Feel - it uses native GTK+ widgets.
If you want to participate in the discussions about the prototype and the way we should go with the GUI for IPS, the best place is the pkg-discuss mailing list.
Here are few screen-shots of the Imagine Prototype (Click on picture to enlarge):
Posted at 04:57PM Nov 01, 2007 by migi in Sun | Comments[2]
Call for test - MetaTracker
In the previous post I've wrote about great tool MetaTracker.
Since then, many bugs were fixed, so now you can download and test much more stable version.
How do I install MetaTracker
* The packages were checked on Solaris Nevada (x86) build 74.
* Just download the install-script and run it.
If you want to try Thunderbird support, you should install tracker and follow the steps:
* Download the tracker_922.xpi file
* Install in the Thunderbird using option Tools->Add-ons
* Restart Thunderbird
* Restart trackerd daemon (or simply logout/login)
Please re-install Thunderbird plugin if you already have the old version.
Posted at 02:57PM Oct 04, 2007 by migi in Sun | Comments[14]
Have you ever searched lost document/email for more than 1minute?
For the last couple of weeks I was working with few smart guys on the MetaTracker project. It is a tool designed to extract information and metadata from your personal data, so it can be searched in seconds. Jamie, maintainer of the MetaTracker applied most of my changes upstream, but there are still few to go for, that is why I have made packages with all of them.
Now available with experimental support for Thunderbird e-mails, so please check it out and give comments!
Shiny MetaTracker in action with deskbar applet handler made by
Fritschy (also included in the installation script):

How do I install MetaTracker
* The packages installed by the script were checked on Solaris Nevada (x86) build 67 and 72.
* Just download the install-script and run it. Many thanks to Erwann Chénedé, for sharing the installation scripts, which he used for Compiz!
The MetaTracker packages are build with debug option.
This script will:
- remove the previous version of tracker installed on the machine
- install the new packages
If you want to check try Thunderbird support, you should install tracker and follow the steps:
* Download the tracker.xpi file
* Install in the Thunderbird using option Tools->Add-ons
* Restart Thunderbird
* Restart trackerd daemon (or simply logout/login)
The Thunderbird plugin is modified version of the one made by Pierre Östlund for the Beagle application. In the future I hope we will be able to make one generic plugin for both projects, what I am discussing with Pierre.
----------------------------------
Packages installed:
OSOLgamin
OSOLgamin-devel
SFEgc
SFEgmime
SFEgmime-devel
SFEsqlite
SFEsqlite-devel
SFEtracker
SFEtracker-devel
SFEtracker-root
SFEw3m
SFElibgsf
SFElibgsf-root
SFElibgsf-devel
----------------------------------
We also have MetaTracker at OpenSolaris page.
Posted at 05:19PM Sep 13, 2007 by migi in Sun | Comments[0]
Solaris Express Developer Edition arrives in 8 days - COOL!
Since my blog feed is also on the Polish OpenSolaris Planet I have decided to translate the entries to Polish :-)
In English/Po angielsku
----------------------------------
Yesterday after coming back from the 11th Irish OpenSolaris User Group meeting I have found the envelope with the Solaris Express Developer Edition for x86 systems inside. The best thing is that it arrived 8 days after I have ordered it (of course for FREE)! That is cool, isn't it?
So going back to the 18th of June 2007, I have requested the free Solaris DVD Software kit. Five seconds later an e-mail arrived with the information, that the Solaris Express Developer Edition 5/07 DVD for x86 will be available June 22nd. On the 26th of June I have found it between two doors, where normally postman is dropping all the post. So the 8 days is really fast. Moreover 26-22 gives actually 4 days!!! I would like to download the dvd image so fast with my current broadband :-)
In Polish/Po polsku
----------------------------------
Wczoraj po przyjściu z 11-go spotkania irlandzkiej grupy użytkowników OpenSolarisa zobaczyłem koperte z płytą Solaris Express Developer Edition wersja dla procesorów z rodziny x86. Najlepsze jest to, że dotarła do mnie 8 dni po tym jak ją zamówiłem (oczywiście całkowicie za darmo)! Całkiem imponujące, nieprawdaż?
Tak więc wracając do 18-go Czerwca 2007 roku, zamówiłem darmową płytkę "Solaris DVD Software kit". Po pięciu sekundach otrzymałem e-mail z informacją, że "Solaris Express Developer Edition 5/07 DVD for x86" będzie dostępny 22-go Czerwca. 26-go znalazłem ją pomiędzy drzwiami, tam, gdzie normalnie listonosz zostawia przesyłki. 8 dni wspaniale, jednak gdy się zastanowimy, 26-22 daje tak na prawdę 4 dni!!! Chciałbym z taką prędkością ściągnąć obraz dvd przy moim obecnym połączeniu internetowym :-)
Posted at 12:44PM Jun 27, 2007 by migi in Sun | Comments[0]
jUploadr running on OpenSolaris
jUploadr "a photo uploader for Linux, Mac and Windows" with a minor change runs brilliant on OpenSolaris (x86).
It is very handy, when you are uploading pictures to the flickr or zooomr.
So what is the change?
1. Download and uncompress the jUploadr for linuxGTK-i386.
2. Download and uncompress the Azureus 2.5.0.4 for solaris.
3. Copy two files from Azureus project azureus/libswt-pi-gtk-3232.so and azureus/libswt-gtk-3232.so to the jUploadr project library folder: jUploadr-1.1.2-linuxGTK-i386/lib/.
4. Run the ./jUploadr script.

Posted at 11:05AM Jun 27, 2007 by migi in Sun | Comments[0]
How open is open?
Few days ago I have joined to the Polish OpenSolaris Portal.
One of the project aims is to make polish translation of the documentation and locales for OpenSolaris Project.
Before commiting any code I was asked to sign SCA, which was not a problem, because as an Sun Employee I don't have to go through this process, but I have realized, that people outside the Sun, which are contributing to any of the OpenSolaris project have another thing to do.
I know that this is the "only" one time process, but personally I would not send signed agreement to any company, just to submit my patch to the project.
Creating artificial (from developer/my point of view) barriers simply discourage people from the community. And this is a barrier in my opinion. We are great at making the complicated things really easy, but... vice-versa.
P.S.
I am very happy that few people joined to my project (JPack), but I am a little afraid of telling them to sign SCA: "Hello my friends, I have a little surprise for you. If you want to send me a patch or commit a code, you need to send an agreement!"
Posted at 03:24PM Jun 05, 2007 by migi in Sun | Comments[4]
JPack - install your software easily !
I would like to announce a new project called JPack, which will provide a GUI application for managing different types of packages for Solaris Operating System.
The first release is already available on the JPack project site
If you find this project interesting, please let me know what do you think about this prototype, what is good and what is not.
If you are interested in contributing, there is a list of "Getting involved" tasks on the JPack project site
To quickly try it out:
1. Please look at the requirements:
Mandatory
* JRE >= 1.6
Optional
* JDS Common Build Environment
* pkg-get from Blastwave.org
2. Download the file:
JPack.jar
3.Run the project from the command line, using:
java -jar JPack.jar
[Read More]Posted at 01:14PM May 10, 2007 by migi in Sun | Comments[10]
Tim and his bike
If the turtle could run as fast as the light, I would say that Tim could go as fast as turtle on his bike!
It happened twice, that I was riding my bike from work just behind Tim and it happened twice that I was trying to go as fast as he without results... I will mention that I am(was) quite good in cycling!
Tim and his bike:

Posted at 09:39AM May 04, 2007 by migi in Personal | Comments[1]
Caiman experience - new installation is coming
"Caiman is the code name for the program, and set of projects, to create a new Solaris installation experience."
Today I did install first Dwarf Caiman Installer GUI, which is available on the Caiman project site on the OpenSolaris.
I have to say, that it really rocks, and I am looking forward to see the real installation like this !
To try it out, download the package file:
http://www.opensolaris.org/os/project/caiman/files/SUNWgui-install-x86.pkg

Posted at 10:34AM May 03, 2007 by migi in Sun | Comments[0]
Java-GNOME workshop at Wroclaw University of Technology
Today there was an Java-GNOME workshop at Wroclaw University of Technology. Bunch of smart students were attending to this event.
The nice thing is that with Michal Ociepka, Sun Campus Ambassador we helped Ph.D. Bartlomiej Golenko to install Solaris Express, Developer Edition page on the laboratory computers (~25). To do so, we spent nice 4h, where we did install Solaris on one computer, dd the image of the partition and used rsync to copy on the all computers.
We wanted to leave existing grub, so we had to copy Solaris mbr to the file and use chainloader to boot the Solaris box.
Laboratory powered by Solaris Express, Developer Edition (~25 computers)

Posted at 12:00AM Apr 19, 2007 by migi in Sun | Comments[2]
Wroclaw, 16-19 April 2007, IT Days Conference
Witam Wszystkich!
From 16 to 19th of April 2007 at Wroclaw University of Technology there was an international students IT conference, where I gived a talk: "Introduction to Solaris Express, Developer Edition page
ITDays took place in this university building:

Posted at 12:00AM Apr 19, 2007 by migi in Sun | Comments[0]
Solaris Express, Developer Edition - laptop installation
Yesterday I have installed Solaris Express, Developer Edition. Something amazing? Yes this was the first time, that I did all the steps that normal user should made to install this nice operating system. Before I was using jumpstart, which means that I was using network installation.
This was so easy that I am happy to share this experience with you.
Posted at 11:13AM Mar 30, 2007 by migi in Sun | Comments[2]
Palm LifeDrive with SanDisk Extreme III 4GB
I am a happy owner of Palm LifeDrive.
Before modifications that I have made, I couldn't say the same ;)
Inspired by :
Howto replace microdrive with compactflash in LifeDrive
and
How to manually install PalmOS on a LifeDrive HDD
I have made fresh customized ROM and replaced internal microdrive with SanDisk Extreme III 4GB CF, which gived quite amazing speed-up.
The only thing that I would be aware of is the number of writes that CF can handle, but I will post updates, as soon as my CF will fail ;) I know it is not a small number, so maybe I will never post updates (I hope so)
[Read More]Posted at 01:19PM Mar 04, 2007 by migi in Personal | Comments[13]
OpenSolaris Developer Conference, Berlin 2007
Guten Tag!
At the Freie Universität Berlin from February 27 to March 2, 2007 there was first organized by German Unix User Group OpenSolaris Developer Conference.
I was able to be there for only first three days, and what I have to say is that the talks were very interesting and of course I enjoyed Berlin a lot!
[Read More]Posted at 12:18AM Mar 03, 2007 by migi in Sun | Comments[1]
Playing with ZFS filesystem
After coming back from Berlin, where I was on the OpenSolaris Developer Conference 2007, I have tried to use my set of USB flash drives to set up different configurations.
I am posting some of my notes.
Here is a picture of my lab computer with 4 of 6 usb sticks.

Posted at 04:17PM Mar 02, 2007 by migi in Sun | Comments[8]
New Castle - Belfast - Giant's Causeway journey
This time few pics from journey across Ireland :)

Posted at 12:00AM Feb 04, 2007 by migi in Discovering Ireland | Comments[0]
Donegal Trip
Just few photos from another trip to this amazing Country Donegal.
Pictures coordinates - N 54*37'46'', W 8*40'30''

Posted at 12:00AM Jan 28, 2007 by migi in Discovering Ireland | Comments[0]
Wikipedia for indexers testing
Mikkel from tracker mailing list had nice idea to dump Wikipedia to text files for testing indexers. See:
http://mail.gnome.org/archives/tracker-list/2007-January/msg00180.html
So I've created small application that can be run from the command line as well with the swing gui called JWikiTextGetter.
To run it, just grab the binaries from HERE
UPDATE:
According to the wikipedia page, it is not welcome to use web crawlers to download large numbers of articles.
http://en.wikipedia.org/wiki/Wikipedia:Database_download#Please_do_not_use_a_web_crawler[Read More]
Posted at 08:58PM Jan 23, 2007 by migi in Sun | Comments[3]






