gimpe »
07 May 2010 »
In Uncategorized »
- Edit /etc/default/grub and add:
GRUB_CMDLINE_LINUX="usbcore.autosuspend=-1"
- Run
update-grub
- Edit /etc/crontab add:
@reboot root echo -n USB0 > /proc/acpi/wakeup
- Plug the USB Receiver into the lowest port under the PS/2 connector
- Reboot
I am using Ubuntu 9.10 and XBMC 9.11.
SOURCE: http://www.minimyth.org/forum/viewtopic.php?f=6&t=2524
Continue reading...
gimpe »
19 February 2010 »
In linux, network, tips »
Here’s a procedure I found on taesch.com to ping a Ubuntu machine by the hostname from a Windows PC:
- sudo vi /etc/nsswitch.conf
hosts: files wins dns
- sudo aptitude install winbind
- sudo aptitude install samba
SOURCE: http://taesch.com/my-digital-life/cant-ping-ubuntu-hostname-from-windows-xp-setup-winbind
Continue reading...
Tags: linux, network, tips
gimpe »
19 January 2010 »
In Uncategorized »
The Acer EasyStore H340 comes with 1 x 1TB HDD and room for three more drives (SATA-II). A low power Atom 230, 2 GB of Ram and an internal 256M flash storage to install FreeNAS 64 bits. This comes in a nice 7.9″ (200mm) W x 7.1″ (180mm) D x 8.3″ (212mm) H casing.

I am curious to see if the Atom 230 is enough horsepower for ZFS, anybody tried it?
SOURCE: HappyBison.com
Continue reading...
gimpe »
18 December 2009 »
In FreeNAS, tips »
Using FreeNAS 0.7 Khasadar (revision 4919) with CIFS/SMB Authentication Anonymous, I changed the Guest account for but it is not actually applying it to the configuration, it is a trivial bug and here’s a small dirty workaround.
1 – Create an excutable file containing this:
#!/bin/sh
# find and replace 'ftp' by 'transmission'
sed -i. 's/ftp/transmission/g' /etc/rc.d/samba
# restart samba to use the new config
/etc/rc.d/samba restart
2 – Go in System|Advanced|Command scripts and add an entry for your script in “PostInit”
For those who are interested, I am doing this because my network is not accessible from the outside and I didn’t want to bother with user privileges. I am using my FreeNAS box to share media files downloaded using Transmission and I wanted everybody to be able to access/modify/delete them, so I change the guest account to be “transmission” :)
Continue reading...
Tags: tips
gimpe »
07 November 2009 »
In Uncategorized »
I wrote this script because I never found a Transmission remote GUI that permits to start downloading a torrent in a specific directory.
Continue reading...
gimpe »
13 October 2009 »
In FreeNAS »
I’m writing a note to myself as I don’t have a UPS yet :)
The Port value can be set to “auto” as metionned here: http://jonathanbrown.me/my-freenas-project-part-5-the-config
Found another rerefence that confirms this:
- For newhidups: “auto” or whatever value as newhidups automagically probe for USB UPS.
SOURCE: http://people.freebsd.org/~thierry/nut_FreeBSD_HowTo.txt
Continue reading...
Tags: FreeNAS
gimpe »
20 September 2009 »
In FreeNAS, htpc, hype, linux, network »
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: FreeNAS, htpc, linux, network
gimpe »
13 September 2009 »
In tips »
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: tips
gimpe »
08 September 2009 »
In Uncategorized »
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...
gimpe »
28 August 2009 »
In FreeNAS, bash »
This script will start a scrub on each ZFS pool (one at a time) and will send an e-mail or display the result when everyting is completed. I wrote this script to launch each scrub one after the other and a summary by e-mail that can tell me how much time it took to each ZFS scrub.
Continue reading...
Tags: bash, FreeNAS