HTPC
BIOS settings
FanEQ
CPU FanEQ settings in the BIOS are as follows:
- Target Temp: 50°C
- Temp Tolerance: 4°C
- Start control: 80%
- Stop control: 30%
Scripts
Poweron
~/bin/dwake (workstation)
#!/bin/sh
wakeonlan AA:BB:CC:DD:EE:FF
In order for wakeonlan to function for the NIC of the HTPC, a /usr/sbin/ethtool -s eth0 wol umbg needs to be called on every bootup to set the necessary options on the ethernet card. Calling it once did not suffice, the settings seem to be somewhat volatile or are overwritten on every bootup.
Encryption
~/bin/dstorage (workstation)
#!/bin/sh ssh -Y ceres@demeter /home/ceres/bin/storage $@
~/bin/storage (HTPC)
#!/bin/sh ASKPASS=/usr/lib/openssh/gnome-ssh-askpass MESSAGE="Enter passphrase for storage decryption" STORAGE=/storage case $1 in start) if mount | grep $STORAGE >/dev/null then echo "Storage already open and ready, aborting." exit 0 fi $ASKPASS $MESSAGE | sudo /root/bin/openstorage && mount $STORAGE ;; stop) umount $STORAGE && sudo /root/bin/closestorage ;; esac
/root/bin/openstorage (HTPC)
#!/bin/sh cryptsetup luksOpen /dev/mapper/crypt-storage crypt-storage_crypt
/root/bin/closestorage (HTPC)
#!/bin/sh
cryptsetup luksClose crypt-storage_cryptPoweroff
~/bin/dshutdown (workstation)
#!/bin/sh zenity --width=300 --title="shutdown" --text="Do you want to shutdown 'demeter'?" --question if [ $? == 0 ]; then ssh -Y ceres@demeter gksudo halt fi
linux/htpc.txt · Last modified: 2008/04/13 18:58 by foosel






