All | 43 Folders | Accessibility | BoingBoing | Books | Computer Related | Family | Films | General | Hacking | Hobbies | Humor | Java | Links | Omni | OpenSolaris | Puzzles and Games

« Previous page | Main
20081008 Wednesday October 08, 2008

Arduino Night At The Next SVOSUG Meeting

Alan Duboff has just announced details of a special Arduino night at the next Silicon Valley OpenSolaris User Group meeting in Santa Clara on Thursday 23rd October 2008.

I plan to be there. I better dust off my Arduino board.

Work is on-going in getting the full Arduino development environment running on OpenSolaris, but things are coming together nicely, mainly due to the work of Alan and John Plocher and John Weeks.

There will be a limited number of kits available at the meeting, so if you are interested in this, it is suggested that you get one ahead of time. See the various links in Alan's post for places that sell the kits.

For a good introduction to the world of Arduino, then I suggest the various lessons provided by ladyada.

[]

[]

( Oct 08 2008, 08:48:41 AM PDT ) [Listen] Permalink

20080910 Wednesday September 10, 2008

Two OpenSolaris Individual Contributor Positions Available

We have a couple of openings in my current group that I think would be of interest to any software engineers that know Linux and/or [Open]Solaris and enjoy the challenge of porting F/OSS software to new platforms.

"Be a part of the team that helps expand the OpenSolaris repository of externally contributed Open Source software. Help port the essential applications to the OpenSolaris platform and make them available to the community. Apply your Linux skills to enable these applications to be successful in the OpenSolaris world. This is your chance to be an integral part of building the community for one of the major open source operating systems".

As you can see, we are targeting Linux developers. Knowledge of [Open]Solaris is useful but not essential.

These are entry level positions. For more information, check out the web links (559524 and 559525).

[]

[]

[]

( Sep 10 2008, 01:27:53 PM PDT ) [Listen] Permalink Comments [3]

20080902 Tuesday September 02, 2008

Pkg Test Repository Experiments

I've been playing around with setting up my own IPS test repository, then adding in a very simple package, then updating the meta-data associated with the package and then republishing the updated package.

Here are my notes based on the example on the IPS for Developers web page. Thanks to Shawn and Danek for pointing out the two mistakes there and giving me the correct commands.

The statistics and the catalog for the pkg.depotd at port 9000 now reads:

Statistics

Number of packages: 2
Number of in-flight transactions: 0

Number of catalogs served: 3

Number of manifests served: 5
Number of files served: 0
Number of flists requested: 1
Number of files served by flist: 1
Number of packages renamed: 0
    

Catalog
                 FMRI                           Info    Manifest
----------------------------------------------------------------
pkg:/my_package@1.0,5.11-1:20080902T195702Z     Info    Manifest
pkg:/my_package@1.0,5.11-1:20080902T210205Z     Info    Manifest

[]

[]

[]

( Sep 02 2008, 02:29:33 PM PDT ) [Listen] Permalink

20080811 Monday August 11, 2008

Pkg Documentation and Mailing List Highlights

I've been trying to get up-to-speed on IPS, the Image Packaging System used by OpenSolaris. The project page has a lot of useful information, including the initial one pager and the manual pages.

There is also a discussion list. They have archives that go back to last September when the list was created. Over the last couple of weeks I've been wading my way through them. I've done this for the same reason that P.J. O'Rourke read The Wealth Of Nations: so you wouldn't have to. There is a lot of stuff there. Megabytes of it. A lot of it is really not interesting unless you are a pkg Python developer. What I've tried to do below is just give pointers to the things that I found interesting, above and beyond what the pkg project pages provide.

This isn't going to be the same things that are useful to others. There have been long debates on various design decisions. If you get off on this kind of thing, then please, just view the archives by thread, and find what excites you the most. If you don't have that kind of time, then maybe some of the links below will get you to the juicer bits.

Personally I would have like to have seen a separate pkg-bug-discuss (or some such name) list for the discussion of the various bug fixes. It would have made it a lot easier to get to the other stuff.

The links are in chronological order. The oldest first. I realize that because IPS/pkg is still being actively developed and is therefore "in flux", that some of these things are going to be out of date or just plain wrong. If you find any such links and have a pointer to better or correct information, then please comment.

Many thanks to the original posters who took the time to write up all this useful information.

[]

[]

[]

( Aug 11 2008, 01:59:13 PM PDT ) [Listen] Permalink Comments [1]

20080804 Monday August 04, 2008

What Is That OpenSolaris Package?

There is a small group of OpenSolaris engineers who have memorized all the names of the various Sun packages that are currently available and can tell you what they are and what they do.

This is no mean feat given that for quite a while, SVR4 package names were only 9 characters long and for the ones that came from Sun, the first four were typically "SUNW".

Being a mere mortal I haven't attained that level of enlightenment yet. So I put together this one-liner that helps me out.

  $ pkg info | nawk '{if ($1 ~ "Name:" || $1 ~ "Summary:") print $0}' > package-names.txt

Now if somebody mentions a particular package name, I can quickly furtle through my list and get its summary.

[]

[]

( Aug 04 2008, 02:19:07 PM PDT ) [Listen] Permalink Comments [2]

20080801 Friday August 01, 2008

Getting Audio Working With OpenSolaris On An Ultra 40

I started with OpenSolaris 2008.05 and yesterday updated to build 94. I'm now trying to get the audio working. I have a couple speakers connected to the light green audio socket on the back of the machine. As this is current Sun hardware, I was hoping it would "just work" out of the box. Unfortunately that is not the case.

Before somebody says "install OSS", I just did that. I then rebooted and when I ran osstest I got:

$ osstest
Sound subsystem and version: OSS 4.0 (b1016/200806171344) (0x00040003)
Platform: SunOS/i86pc 5.11 snv_94

*** Scanning sound adapter #-1 ***
/dev/oss/hdaudio0/pcm0 (audio engine 0): HD Audio play front
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/pcm1 (audio engine 1): HD Audio play rear
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/pcm2 (audio engine 2): HD Audio play center/LFE
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/pcm3 (audio engine 3): HD Audio play side
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/pcm4 (audio engine 4): HD Audio play pcm4
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/spdout0 (audio engine 5): HD Audio play spdif-out
- Performing audio playback test... 
   OK  OK  OK  
/dev/oss/hdaudio0/pcmin0 (audio engine 6): HD Audio rec mix
- Skipping input only device
/dev/oss/hdaudio0/pcmin1 (audio engine 7): HD Audio rec mix
- Skipping input only device
/dev/oss/hdaudio0/pcmin2 (audio engine 8): HD Audio rec mix
- Skipping input only device
/dev/oss/hdaudio0/spdin0 (audio engine 9): HD Audio rec spdifin
- Skipping input only device

*** All tests completed OK ***
$

I heard their special test music only for:

/dev/oss/hdaudio0/pcm0 (audio engine 0): HD Audio play front
- Performing audio playback test... 
   OK  OK  OK  

and

/dev/oss/hdaudio0/spdout0 (audio engine 5): HD Audio play spdif-out
- Performing audio playback test... 
   OK  OK  OK  

which I thought was a little strange as the speakers are plugged into the back of the machine not the front.

I then inserted an audio CD and tried to run rhythmbox. Okay, I can live with it having plugin failures for "Magnatune Store", "Jamendo" and "Cover art", but it didn't want to play any music either.

I see that the little loud speaker icon in the top GNOME panel has a red bar through it.

If anybody knows the magic incantations to get this to work, I'll update this blog post with the instructions. Then hopefully the next person to google to try to find the answer will come across this post and have better luck then I currently am.

Update

I should mention that I booted from the initial OpenSolaris 2008.05 image (which is build 86) and my audio CD plays just fine with Sound Juicer. Perhaps it's a build 94 specific problem...

[]

[]

( Aug 01 2008, 12:19:51 PM PDT ) [Listen] Permalink Comments [4]

20080731 Thursday July 31, 2008

The Power of pkg image-update and ZFS

One of the things that used to drive me crazy with working on the bleeding edge of Ubuntu (rather than the stable releases), was when a

      $ sudo apt-get dist-upgrade
    

of the latest packages and a reboot would leave me in a horked state. (Admittedly this was very rarely, but still: it did happen).

I then had to work out exactly which package blew me away (usually with the help of other people that were more experienced in this area then I was), and typically revert to an earlier more stable version.

Things are different under OpenSolaris with pkg. Yesterday afternoon, I ran:

  $ pfexec pkg image-update
  DOWNLOAD                                    PKGS       FILES     XFER (MB)
  Completed                                567/567 27150/27150 1648.05/1648.05

  PHASE                                        ACTIONS
  Removal Phase                              7140/7140
  Update Phase                             21974/21974
  Install Phase                            12389/12389
  A clone of opensolaris exists and has been updated and activated. On 
  next boot the Boot Environment opensolaris-1 will be mounted on '/'. 
  Reboot when ready to switch to this updated BE.
  $

No need to reboot right away. No updating of live images. And really fast. Nice!

So this morning, I rebooted the machine. There was the new GRUB entry "opensolaris-1" (set as the default), and I went ahead and pressed Return to boot from that.

And it failed and eventually threw me back to the GRUB menu. Being a typical engineer, and failing to initially believe there was a problem here, I tried it again and it failed again.

But here's the nice part. I then simply selected the previous entry in the GRUB menu and booted from that. Now I'm back up and running nicely with the previous image.

I guess the next step in my education (or the next yak to shave depending how you look at it), is trying to work out exactly why the new boot image failed. Time to talk to some of the OpenSolaris engineers in adjacent offices.

Update:

Danek Duvall pointed me at the release notes (thanks!) and provided the magic mount command for this new OS image that is needed before you can do the update_grub command:

  $ $ su
  Password:
  # beadm mount opensolaris-1 /mnt
  # pfexec /mnt/boot/solaris/bin/update_grub -R /mnt
  Creating GRUB menu in /mnt
  Installing grub on /dev/rdsk/c5t0d0s0
  stage1 written to partition 0 sector 0 (abs 16065)
  stage2 written to partition 0, 265 sectors starting at 50 (abs 16115)

Now when you reboot, you'll see another new entry in the GRUB menu. Booting with that nicely works, and it's now a GNOME 2.22.X based system as opposed to a GNOME 2.20.X one.

Further Update

Dan Anderson pointed me at revised instructions for updating your OpenSolaris 2008.05 system (thanks!).

[]

[]

[]

( Jul 31 2008, 11:15:42 AM PDT ) [Listen] Permalink Comments [4]

20080730 Wednesday July 30, 2008

Getting Pkg Built And Installed From Source On OpenSolaris

[Last updated: 17th November 2009]

On Monday I got OpenSolaris 2008.05 on my new work machine. I then followed step #2 in the release notes and updated to the latest packages.

I now want to be able to checkout the source code for the pkg project, build and install it, and start to try to understand how it all works.

Hopefully some day it'll be as simple as:

  $ pfexec pkg build-dep pkg
  $ pkg source pkg
  $ cd .../pkg_src_dir
  $ make install

but we aren't there yet. I couldn't actually find a set of step-by-step instructions on how to do this, so I muddled through. Thanks to the helpful folks on the #opensolaris channel on irc.freenode.net and various Google searches.

Before I could get the source code, I first had to get the Mercurial source control management system. That was with:

  $ pfexec pkg install SUNWmercurial

Getting the pkg project source code was with:

  $ hg clone ssh://anon@hg.opensolaris.org/hg/pkg/gate

Most of the code is in Python, but there is some C. Before I could compile that, I needed to get a C compiler and all the things it needs. (I went with the Sun compilers). That's accomplished with:

  $ pfexec pkg install sunstudio12u1

I then added /opt/sunstudio12.1/bin to my PATH and /opt/SunStudioExpress/man to my MANPATH in my ~/.bashrc and sourced it

Trying to do:

  $ cd .../gate/src
  $ make install

in the pkg workspace, now resulted in compiler errors because a variety of standard C include files were missing.

Note that doing:

  $ pkg search -r <missing file>

gives the names of the package you need to install, then you can use the "pfexec pkg install" command to install that package. Rinse and repeat. Here are the packages I had to install:

  SUNWhea
  SUNWgnome-common-devel
  SUNWzoneint
  SUNWxwinc
  SUNWpython-setuptools

Now back to pylint'ing. Looks like pylint isn't in the IPS repository yet, so I'll have to download and install it by hand.

[]

[]

[]

( Jul 30 2008, 02:34:45 PM PDT ) [Listen] Permalink Comments [7]

20080729 Tuesday July 29, 2008

Mercurial Documentation

Now that I'm starting to work on OpenSolaris, I'll need to learn yet another source control management system. Just as I got used to CVS, the GNOME folks swapped to SVN. Just as I got used to that, I'll now have to start working with Mercurial.

I found the following links very helpful:

[]

[]

[]

( Jul 29 2008, 07:02:51 AM PDT ) [Listen] Permalink Comments [5]

20080725 Friday July 25, 2008

Pylinting Again

Just like we did for Orca, I've been using pylint to find lint-like problems with the Python code for the GUI front-end to the OpenSolaris Image Packaging System (a.k.a. pkg).

See my post to the pkg-discuss mailing list on the current state of affairs with this.

As the official start date for my new job isn't until Monday, and I can't get into the Sun Menlo Park campus yet to use my spanking new OpenSolaris box, I've been building the pkg workspace on my Ubuntu Hardy system at home. Once I worked out all the dependencies to drag in all the C header files I needed, the rest of the build process was fairly straight forward. Some of the existing Makefile rules in the GUI Makefile are using Solaris make'isms, so they will have to be fixed up to work with something like GNU make. For now, I just hacked around it and got it all installed.

I find the current 8 space indentation jarring, and being an old fossil, I like my lines under 80 characters, but these are not the immediate things that will need changing. I hope they will get adjusted eventually though.

[]

[]

[]

( Jul 25 2008, 01:21:04 PM PDT ) [Listen] Permalink Comments [2]