Sometimes, to install software on my remote Mac Mini, I need to be able to mount disk images from a terminal session.
I just discovered how to do this. The command is hdiutil.
To mount a disk image:
hdiutil attach SomeDiskImage.dmg
Although I haven't tried it, I believe the disk image can be referenced by URI.
To unmount:
hdiutil detach /Volumes/SomeDiskImage/
I've added this to my Headless Tiger page.