Wednesday, July 12, 2017

Tribblix m20: Getting started and performing a minor upgrade

I've been taking Tribblix (version m.20) for a spin for the first time since writing about it in this space last year, when it was version m.16. I was very impressed by the speed and simplicity of installation and use, particularly for a SunOS 5.11-derived system. My only real complaint at the time was that some of the packages were a little unfinished, particularly that ugly duckling of a desktop environment known as CDE, with whom I am inexplicably smitten. (It's kind of like that odd-looking girl you fell for in grade 9 but were too nervous to approach. All these years later you search out her yearbook picture from that year, mall bangs and all, and wonder to yourself, "What was I thinking?", only to find yourself tossing and turning in bed at 3:46 a.m., obsessing over what could have been. That approximates how I feel about the Common Desktop Environment.)

Four upgrades later, some of the packages are a little more finished (or else are imported directly upstream from illumos or sideways from OpenIndiana). In my previous Tribblix fling I didn't use it (on the technical level) as extensively as I could have, opting merely to poke and prod around the perimeter and simply get a general feel for it. This time around, however, I decided to wade a little deeper in.


Nothing substantively different to report here from what I've written about previously, other than to say that rather than entering ./ -B c1t0d0 kitchen-sink to commence installation, I instead did ./ -B c2t0d0 x11 x11-extras retrodesktop. (The difference is due to the "kitchen-sink" option now automatically installing a graphical login that takes you straight to Xfce4, which is fine if that's what you're into. I'd rather have just a plain ol' text login. Also, c2t0d0 is the label Tribblix gives to my Dell Inspiron 1525's hard drive, as opposed to the ThinkPad T60p I was using the previous time.)


Akin to Solaris 10, the Tribblix install process doesn't give you the opportunity to create a new user until after you boot into your new system. In this case, your initial post-installation login credentials are the same as for the live DVD, which means logging in as "jack" with an eponymous password, and switching to root with "tribblix" as the password. Therefore, my first order of business was fourfold:
  1. add myself as a user
  2. assign root privileges to myself,
  3. create a password for my own account, and 
  4. change the root password.
This was accomplished the old-fashioned way at the command prompt, using my own credentials for the sake of demonstration:
$ su
Password: tribblix
# useradd -d /export/home/jed -m -s /usr/bin/ksh -c "James Deagle" jed
# usermod -P "Primary Administrator" jed
# passwd jed
New Password: __
Re-enter new Password: __
# passwd passwd
New Password: __
Re-enter new Password: __
(That last step, "passwd passwd", is the command for changing the root password.)

The only other housekeeping matter that I would normally take care of so soon after first booting into a new system is to create my own /bin directory for storing any scripts or programs written by Yours Truly: 
$ pwd 
$ mkdir bin 
$ cd bin
$ pwd 


I'm not going to rewrite my instructions on using this system's handy-dandy package manager (called zap), because then I'd have no reason to force you to read my previous post on the topic. I will say, however, that I highly recommend you install the pkgsrc overlay (courtesy of Joyent), as it will give you an additional boatload of packages (albeit some duplicates of native binaries from Tribblix/illumos). Just how many? That's a great question...let's ask UNIX:
$ pkgin avail | wc -l
Onwards and up(grade)wards...

I don't know if this counts as a proper segue, but the zap package management utility is also used to carry out binary upgrades of the system itself. As explained on the Tribblix home page and paraphrased here, the steps are as follows:
# zap refresh,
# zap update TRIBzap-upgrade
# zap upgrade list (to see if an upgrade is available)
# zap upgrade m20.1

And to boot into your newly-upgraded system:
# beadm activate m20.1
# init 6

Final Thoughts

Especially considering that this illumos distro is the work of just one man, Tribblix is a beauty to behold, and also serves as Solaris in a Hurry for someone who isn't into putting their entire life on hold in order to get an OS installed. (The older I get, the more I fall into that category.) The fact that some of the packages still have some rough edges is entirely a moot point - Tribblix provides a framework and proof-of-concept for the idea of an OpenSolaris derivative that is small and fast, and makes an excellent starting point for those wishing to spin their own distros, whether along the same lines as Tribblix or off in some new and unforeseen direction.