Zotact IONITX-G-E Wake On USB with Ubuntu/XBMC (working)

gimpe » 07 May 2010 » In Uncategorized » No Comments

  1. Edit /etc/default/grub and add:
    GRUB_CMDLINE_LINUX="usbcore.autosuspend=-1"
  2. Run update-grub
  3. Edit /etc/crontab add:
    @reboot root echo -n USB0 > /proc/acpi/wakeup
  4. Plug the USB Receiver into the lowest port under the PS/2 connector
  5. 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...

Ping Ubuntu hostname from Windows (winbind+samba)

gimpe » 19 February 2010 » In linux, network, tips » No Comments

Here’s a procedure I found on taesch.com to ping a Ubuntu machine by the hostname from a Windows PC:

  1. sudo vi /etc/nsswitch.conf
    hosts: files wins dns
  2. sudo aptitude install winbind
  3. sudo aptitude install samba

SOURCE: http://taesch.com/my-digital-life/cant-ping-ubuntu-hostname-from-windows-xp-setup-winbind

Continue reading...

Tags: , ,

Acer EasyStore H340, the perfect FreeNAS box?

gimpe » 19 January 2010 » In Uncategorized » 2 Comments

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.

Easystore

I am curious to see if the Atom 230 is enough horsepower for ZFS, anybody tried it?

SOURCE: HappyBison.com

Continue reading...

FreeNAS CIFS/Samba changing Guest Account ‘FTP’ not working

gimpe » 18 December 2009 » In FreeNAS, tips » No Comments

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:

A PHP script to start a torrent and download it where the .torrent was located using Transmission JSON-RPC

gimpe » 07 November 2009 » In Uncategorized » No Comments

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...

FreeNAS: Services|UPS –> what to use as “Port”

gimpe » 13 October 2009 » In FreeNAS » No Comments

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:

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

gimpe » 20 September 2009 » In FreeNAS, htpc, hype, linux, network » 2 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...

FreeNAS Bash script to start a ZFS scrub on each pool (scrub.sh)

gimpe » 28 August 2009 » In FreeNAS, bash » 6 Comments

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: ,