We installed a new Microsoft Windows 2003 Server with Citrix Presentation Server 4.0. Administrators could login remotely, but regular users were denied with:

"The desktop you are trying to open is currently available only to administrators. Contact your administrator to confirm that the correct settings are in place for your client connection"

You can do this with rdist, but I prefer the rsync method.

You wish to backup a directory on machine A by making a copy on machine B. (In our case, machine B is a netapp, so we get further backup for free).

I've wasted enough time with these seemingly simple tasks to warrant a quick post. The problem is that you've created keys, put the relevant files all over the place, but nothing seems to be working.
  • Permissions

ipaddress to hostname without a single shred of error checking. This code will take an ipaddress as an argument and return the hostname associated with it using gethostbyaddr. It should have more error checking and a lot of other stuff, but this is just to show the base code. Cut and paste away. [includecode#../code/gethostbyaddr.c]


Note: this is super old, use puppet instead these days...


Script: update_machine update_file
We use this simple script (no error checking as usual) to update our machine configuration.
We keep the configuration files in cvs and download them to a new machine.

Script: iptohex

No error checking, just a simple time saver. Converts an ipaddress into hexadecimal suitable for use by tftp tools and pxe booting. The builtin command gethostip does this also, I include the script incase someone finds it useful.


iptohex 0AA8C086

Unabashedly simple scripts that I use. Hopefully someone will find them useful.

1974 - 2005

Modern Art


I once made a huge mistake on our mailserver. It was a Solaris box and this is before I knew how to build solaris packages properly...so I was building things on the mailserver. I was in /var/spool/mail when I typed:
make -C /path/to/Makefile clean

I'm Thomas H. Uphill, my son is Noah (he's on the banner sometimes), my daughter is Aunjanue.

My father's name is Dennis H. Uphill, he's also known as Dr. Video or Dr. Science. He has a penchant for detail and problem solving. He's a strong union supporter, which he comes by naturally...

His father was Norman H. Uphill, he was a Union Executive for the Pipefitters and Steamfitters Union Local 170. His Union duties came to him naturally also...