hype-o-thetic?com

my notes

Archive for September, 2009

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

6 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!

Read the rest of this entry »

Fork me on GitHub

Written by gimpe

September 20th, 2009 at 2:46 pm

Posted in FreeNAS,htpc,hype,linux,network

Tagged with , , ,

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

leave a comment

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.

Written by gimpe

September 13th, 2009 at 8:03 pm

Posted in tips

Tagged with

FreeNAS (embedded) iconv command

one 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

Written by gimpe

September 8th, 2009 at 8:31 pm

Posted in Uncategorized

Performance Optimization WordPress Plugins by W3 EDGE