Configuring the Solaris DHCP server

So my guide for how to configure the DHCP server in Solaris and OpenSolaris has made it to the BigAdmin hub, and you may now find it on at the following link:
http://www.sun.com/bigadmin/content/submitted/config_dhcp_server.jsp

I think that's pretty cool and I hope to be able to make more howtos like that one in the future.

Running podget on (Open)Solaris

This is just a quick post about an issue I just experienced. I am using the bash script podget for downloading video podcasts automatically to my server, which I then can watch on my TV.

However, as I today swapped out my previous Ubuntu server with a OpenSolaris one, the script no longer worked when being run from cron. It did however work just fine when ran from console.
The error message I've got was:

export: `=': not a valid identifier

And it turned out to be, as so often with cron jobs, the $PATH variable which was not set up properly.

The script uses "sed" for parsing the configuration file, but the tricky bit was that when ran from console, the "sed" used was located in "/usr/gnu/bin/sed" where as when ran from cron, it used "/usr/bin/sed". In (Open)Solaris, there are often several versions of the programs, in an attempt to keep everybody happy, but it makes it a bit harder to troubleshoot these kinds of issues.

The solution was simply to add the following in the beginning of the script (after the first line!):

PATH=/usr/gnu/bin:$PATH

I hope that this may help out anybody experiencing the same issue, as I haven't found anybody else writing about it online.

Zenphoto Sitemap 1.0.2

There's a new version of my zenphoto-sitemap available, which only includes one fix this time.

The change makes the plugin handle non-alphanumeric characters correctly, such as whitespaces, parentheses, brackets, international letters, etc. All those characters are now URL encoded when the sitemap is generated.

As always you can get the new version at the zenphoto-sitemap page.

Zenphoto Sitemap 1.0.1

I have updated my Zenphoto Sitemap plugin with two minor fixes.

The first change is that there won't be specified any priorities in the sitemap at all, since the priorities only matter against other URLs in the same exact sitemap (ie. not site-wide). The plugin will have to be rewritten to have all URLs in the same sitemap in order to make use of priorities. As I haven't experienced any need to specify the priority, it is simply left out and then the URLs are assigned the default priority (0.5) by the search engines.

The other change is that an appropriate header is now sent out together with the sitemap, which specifies that we are serving an XML file. This causes the browser to interpret the sitemap correctly, and will probably also help out with search engines which may require this. Thanks goes to Adrien Gibrat who suggested this.

You can see the updated sitemap in action on my gallery, and if you just want to download the new version, then go to the zenphoto-sitemap page.

Zenphoto plugin: Zenphoto Sitemap

I have been coding a bit the last couple of days on a plugin for the gallery system Zenphoto. I wasn't very happy with how the images where indexed from my gallery, and I couldn't find any other decent coded sitemap generators for Zenphoto, so I decided to create one on my own.

The result is a one-file plugin for Zenphoto, which is being activated by putting ?sitemap in the URL for your Zenphoto gallery. When that is in the URL, a sitemap index will be generated, pointing to a new sitemap for each album in the gallery, which then contains links for each image in the album. The result is a sitemaps.org compatible sitemap structure which can be used with several search engines, ie. Google, Live Search among many others.

You can find more information on how to get the plugin and install it one the sub-page I have created for it. It is to be found at Open source -> Zenphoto Sitemap. Enjoy!

« go backkeep looking »