Archive for December, 2009

local pkg server not starting

I installed OpenSolaris on my laptop this week, and have found it to be quite usable.

I was poking around on opensolaris.org and ran across documentation for making packages for the IPS system.

In particular, I found this Hello World of package rolling. Except that…it doesn’t really work. And if you are a Linux guy on OpenSolaris, you might be scratching your head with how to fix it. After googleing around and reading a few man pages the fix turns out to be simple.

The first few commands they want you to run are

And those will complete without feedback, however when you actually go to use that repo later, you will find it not there.

Looking at svcs shows us it’s in maintenance mode:

That’s no good, it should say online. So pop open the log and have a look:

You will see something like:

The take away here is the publisher.prefix jazz. Gotta have that, or else the service won’t start. Easy fix:

Finally:

That should do the trick.

If you decide to go ahead with trying to build Midnight Commander, there will be other problems with the include file, but you will see what they are and be able to sort them out. After I got this figure out, it was pretty simple to see what else was wrong simply by trying to complete the steps.

Upgrading the PAP2T ATA

A short while ago my girlfriend and I ported our home land line number over to our sip terminator. I have had a Linksys PAP2T Analog Telephone Adapter (ATA) for some time, but mostly used it as a lab device for mucking around.

When we made the switch to full time sip, I started using the ATA as the main extension for the inbound ported number.

One thing I found that I didn’t care for was the ring cadence. It doesn’t sound like a typical North American ring that my North American ears are used to, so I set out to figure out how to change that.

After poking around in the web interface of the ATA a bit, and googling about, I noticed the interface didn’t contain inputs that others were claiming to have changed. I figured I needed a firmware upgrade, and I was right. According to Wikipedia

As of 8/21/09 the latest PAP2T firmware is 5.1.6 released 11/21/2007.

I was running Firmware Version: 3.1.15(LS) . Heh, so a little out of date.

Upgrading was simple, however I followed a really long route to get there.

First thing is to grab the lastest firmware from Cisco, and place it on an available web server (or tftp for that matter).

Then log into the web ui of the PAP2T, and click the (switch to advanced view) link, and then click the Provisioning tab at the top.

Find the dialog box for Firmware Upgrading, and set Upgrade Enable to Yes and then set the upgrade rule like I have it here, but using your ip/domain and path for the file:

The (<5.1.6)? portion of the rule tells the PAP2T to not download the firmware unless it’s running an earlier version than that. The rest of the rule is simply the protocol and path to get the file (you can also use tftp if you desire, just change the protocol to tftp://)

Then unplug the ATA and let it come back up. Since this was on my lan, it took less than 10 seconds to come back up and be usable with the new firmware.

After all that, log back into the web ui, confirm the upgrade, navigate again to the Advanced View, then the Regional tab, and finally, change the Ring Waveform from Trapezoid to Sinusoid, and Save Settings one last time.

Violin! You should now have an approximation of the North American ring.

Happy hacking!

Resources:

  1. Cisco Product Page
  2. Latest firmware
  3. voip-info page