Archive > September 2009

Diskless HTPC using DD-WRT (PXE), Ubuntu/XBMC and FreeNAS (TFTP, NFS)

gimpe » 20 September 2009 » In FreeNAS, htpc, hype, linux, network » 4 Comments

Given that I spent time and money on my FeeNAS node, I want to maximize its usage, so when a friend told me that I can use PXE and NFS to boot a diskless computer from the network, I thought it was the perfect opportunity to try somehing new and activate some more services under FreeNAS!

Continue reading...

Tags: , , ,

Tip: use rsync to convert filenames from/to UTF-8 <–> latin-1/ISO-8859-1

gimpe » 13 September 2009 » In tips » No Comments

This will copy files with UTF-8 encoded characters filenames to new files with a ISO-8859-1 encoded filenames and, when everything is completed, will delete the old (UTF-8) files.

BE CAREFUL THIS IS NOT FOOL PROOF :) YOU MUST KNOW WHAT YOU ARE DOING TO NOT DOUBLE ENCODE THE CHARACTERS FILENAMES.

rsync SOURCE SAMEFORDESTINATION --recursive --human-readable --stats --times --progress --iconv=utf8,iso88591 --delete-after

To do the opposite change the iconv switch to: --iconv=iso88591,utf8

Note: If you run rsync as root, you can use --owner --group to keep the same user.group for the copied files.

Continue reading...

Tags:

FreeNAS (embedded) iconv command

gimpe » 08 September 2009 » In Uncategorized » 1 Comment

To install iconv on a “data” parition:

export PKG_TMPDIR=/mnt/usb-data/temp
pkg_add -r iconv -P /mnt/usb-data/pkg

And execute this at boot time:
ln -s /mnt/usb-data/pkg/bin/iconv /bin/iconv

Continue reading...