Disabling mailto: in Firefox

Posted by Ceri Davies Fri, 09 Jan 2009 10:08:00 GMT

Not interesting, but I couldn’t find this reliably anywhere else, hence the blog post for Google.

For Firefox 2.x (and maybe 3.x, I don’t know yet) set the following in user.js or about:config to disable mailto: handling.

user_pref("network.protocol-handler.external.mailto", false);

Posted in  | no comments | no trackbacks

Converting SVR4 packages to datastream format and back

Posted by Ceri Davies Thu, 30 Oct 2008 20:54:00 GMT

OK, so SVR4 packages on Solaris are not the future, but for those of us with existing Solaris installations, we’ll be using pkgadd for some time.

While vendors seem to vary in their preference for datastream format (i.e. a single file) packages and what the Solaris documentation calls “file system format” packages (a directory), it’s pretty certain that a download of a package from the Internet will come in datastream format.

The datastream format is useful for distribution, but it’s slightly annoying for scripting and I personally hate not knowing what’s in a datastream package before I “run” it (preinstall scripts could do anything to your system, while the package itself could overwrite anything too). Therefore, I like to explode them to file system format and check them out first. This can be done easily with the pkgtrans tool.

To convert a datastream package to a file system package:

pkgtrans package-0.4.2.pkg /tmp all

The command above will explode all packages contained in the package-0.4.2.pkg file to directories in /tmp.

To convert a directory of file system format packages to datastream format, assemble them in the same directory, say /tmp, and run:

pkgtrans -s /tmp /tmp/foo.pkg all

This will create a single file, foo.pkg, containing all of the packages available in /tmp.

Invocations of the form pkgtrans -s Solaris_11/Product /tmp/nv97_sparc.pkg all are a slightly tidier way of keeping installation archives around.

Posted in ,  | no comments | no trackbacks