X4100s have a pretty cool integrated lights-out management card, but it doesn’t have an easily integrate with Conserver.

To fix, I created an expect script named “ilom-connect” like this:

#!/usr/bin/expect -f
expect { 
"(yes/no)?"    {exp_send "yes\r"; exp_continue; }
"password: " {exp_send "\r"; }
}
expect "\\-> "
send "cd /SP/console\r"
send "start\r"
expect "(y/n)?"
exp_send "y\r"

Then, in conserver:

console x4100 {
include sun-ilom;
exec ssh -l admin x4100-m;
type exec;
initcmd "/usr/local/sbin/ilom-connect";
}

..This is a veggie wrap from a place I used to eat at in Florida.

1 eggplant, thinly sliced
1 yellow squash, thinly sliced
1 green zucchini, thinly sliced
1 red pepper
1 green pepper
5 ounces goat cheese
1 ounce sour cream
2 large spinach tortillas

Lightly grill eggplant, squash and zucchini. Blacken peppers on grill, place in paper bag for a few minutes, then remove the blackened skin, seeds and slice. On a sheet of plastic wrap layer eggplant, zucchini, squash and peppers. Mix goat cheese and sour cream and spread a thin layer on top of vegetables. Roll in a spinach tortilla. Refrigerate for up to two hours. To serve, slice into 1/4 inch pieces.

Yield: Serves 8

This is an approximation of the “Zuppa Toscana” soup they serve at Olive Garden. It’s sooo goood, and really easy to make.

1 lb. spicy Italian Sausage – crumbled
1/2 lb. smoked bacon – chopped
1 qt water
(2) 14.5 oz cans chicken broth
2 large russet potatoes – cubed
1 medium onion – sliced
2 garlic cloves – crushed
2 cups chopped kale or swiss chard
1 cup heavy whipping cream
salt and pepper to taste

In a skillet over medium-high heat, brown sausage, breaking it into small pieces as you fry it.  Drain and set it aside.

Do the same with the bacon.

Place water, broth, potatoes, garlic and onion in a pot. Simmer them over medium heat until the potatoes are tender.

Add the sausage and bacon to the pot. Simmer for 10 minutes.

Add kale and cream to the pot.  Season it with salt and pepper.

Serve.

I spent the weekend loading Nexenta on my two home PCs.

Nexenta is basically Ubuntu on an OpenSolaris kernel.  This gives you all the awesomenes of Ubuntu (apt-get, gnome, kde, GNU tools), with all the awesomeness of OpenSolaris (zones, ZFS, DTrace).

Some cool things:
  • The opensolaris packages are available via apt-get.  I wanted to set up some zones, so I did an “apt-get install sunwzoner sunwzoneu”.
  • “zoneadm -z zone1 install” fires off debootstrap and creates a Nexenta Zone.
  • The install is super-easy.  Just boot off the CD and answer a few questions.
So, now I have two Nexenta boxen, with about 1TB of storage online.  Which brings me to why I did this in the first place:  ZFS.

I really hate Linux Software RAID.  I hate it so much that I don’t use it.  This meant that my home storage was more or less unprotected, which sucks.  I don’t have anything irreplacable on these servers, but still, it’s good form to RAID.

Creating a mirror is as easy as:
# zpool create -m /storage zstorage mirror c1d0p0 c2d0p0

Adding another mirrorset to this pool is as easy as:
# zpool add zstorage mirror c3d0p0 c4d0p0

..Which gives me 560GB of RAID10 storage with two commands.   Now I have room for a complete nightly backup of my laptop, including incrementals (thanks, ZFS snapshots!), plus a backup of my “every photo I’ve ever taken” directory.

I was having a problem with Solaris’s Basic Security Module. I’d make changes to the audit_control and run “audit -s”, but it didn’t look like it was having an effect. Or at least it wasn’t taking effect for every process.

It turns out that each process’s audit flags are set at process create time, and that each process it forks off inherit the parent’s audit id.

You can see the audit details of a process by using auditconfig:

  1. auditconfig -getpinfo 23161

audit id = rold(25038)
process preselection mask = lo(0×1000,0×1000)
terminal id (maj,min,host) = 0,41352,gto(192.168.1.98)
audit session id = 23161
..And you can change the mask using auditconfig:

$ auditconfig -setumask 25038 ex,lo,fw,fc,fd

Which enables auditing of execs, login/logouts,file writes, file creates, and file deletes.

So, I wanted to play with a python package, but I didn’t want to install it into my primary python distribution tree just yet. I couldn’t find out how to override “site-packages”, though.

Finally, I found this:

Create a file called “setup.cfg” in the directory that has your “setup.py”. In it, put:
[install]
install_lib = /var/tmp/test-blort/lib
install_scripts = /var/tmp/test-blort/bin

Run your setup.py, and away you go.

Okay, valuable things when learning ruby:
* ri – This is like “perldoc”. Use it to view the live ruby documentation.
* irb – Interactive Ruby. This is like the perl debugger.
** IRB Tab Completion — Use this to view every available method on every object.
* gems – A packaging system and source code repository (kinda like CPAN)
** RubyGems

Here’s the build flags I used for building a 64-bit GCC for Solaris 9 (using Sun’s Forte C compiler). This uses the GNU binutils ld and as.

export GCC_EXEC_PREFIX=
export LD_LIBRARY_PATH=

 cd build;
        test -d gcc-4.0.2 || gtar -jxvf ../src/gcc-4.0.2.tar.bz2
        test -d objdir && rm -rf objdir 
        mkdir objdir
        cd objdir
                CC="cc -xarch=v9" ../gcc-4.0.2/configure  \
                        --prefix=/apps/gcc/4.0.2 \
                        --enable-languages=c,c++ \
                        --with-ld=/apps/binutils/stable/bin/ld \
                        --with-as=/apps/binutils/stable//bin/as \
                        --enable-threads=posix \
                        --disable-shared \
                        --enable-multilib
                while ! gmake -j16 bootstrap MAKE=gmake BOOT_CFLAGS="-g -O2 -m64"; do
                        true;
                done

Since this isn’t documented anywhere in the ruby install docs that I can find… If you want your Ruby build to have openssl support, you’ll need to compile with –with-openssl-dir=, pointing at your OpenSSL build.

It seems kind of basic, but it doesn’t show up in a ./configure –help, and it’s not anywhere in the docs that I can find.

I’m jetlagged. It’s not what I expected.

I thought jetlag was primarily a sleep disorder. I thought I’d just have a tough time getting to sleep because of the time difference. This I can understand. You were going to bed at 2300 GMT, now you’re going to bed at 1400 GMT. It’s understandable that the body would go “huh? It’s the middle of the afternoon!”. I thought that I’d just be tired today.

Instead, it’s just bizarre. It’s not that I’m tired, because then I think I could deal with it better. I feel well rested, but fatigued and disoriented. I feel slow, like the rest of the world is travelling very fast. My thoughts aren’t well organized, and my coordination is…. off. It’s has all the symptoms of being sleepy, without actually being tired.

Dear Endocrine System,
I feel I owe you some of you an apology. While you’ve been working so hard to keep my body in balance, I’ve been undercutting your efforts. To those of you I’ve inconvenienced tonight, I’d like to apologize individually.

Pineal Gland. You may be wondering why it is that it’s 6 in the morning and we haven’t gotten a wink of sleep. You may be wondering what the hell is happening to all the melatonin you’ve been pumping into blood all night. You may even see this all-nighter as a personal failure. Don’t feel bad. It’s not your fault. While you’ve been squirting the melatonin, I’ve been chugging the coffee drinks.

That’s also the reason you’ve been working so hard, Pancreas. For all the caffeine those drinks have, they have a lot more raw, adulterated sugar. You’ve been a real champ, pushing out all that insulin. I appreciate it. You’re my favorite gland. Now could you please, PLEASE cut it out with the stomach acid? Isn’t 7 hours of heartburn enough?

Adrenal Glands. No apology for you. You guys freak out at every little thing, and frankly, I’m sick of it. The sudden drop in blood sugar is just the pancreas doing their job. It’s really, REALLY, nothing to worry about. The adrenaline you’re releasing is doing nothing more than wigging me out, and breaking down into more sugar, making the poor pancreas work even harder. Shame on you. Whoa! Whoa! Calm down! That’s exactly what I’m talking about. I’m not attacking you. Just calm the hell down, and cut it out with the fight-or-flight.

Pituitary? Hypothalamus? I don’t know what you guys are doing up there, but I have a sneaking suspicion you guys are the only ones keeping this boat together. Good work guys. Oh, and pituitary? Keep them endorphins coming. They’re awesome.

Finally, Kidneys. Although you’re not always seen as a member of the Endocrine team, I want you to know I appreciate your work the most. You’ve been pulling double duty, removing all this crap from my blood, while doing your very best to keep my blood pressure down. How have I repaid you? By not drinking enough water. My apologies, friend. Have a drink on me.

Your Boss,
-Laen

I don’t know how I feel about this photo.

The original was really plain and uninteresting, so I messed with the levels a bit in an attempt to cut through the fog and get some detail. Not very sucessful. So I went the opposite direction, shifting the histogram down just mask out the foggy bits. That had the side effect of accentuating the water, which I really like. It also gives it a kind of “twilight” feel.

Overall though.. Does it work?