Game Development Reference
In-Depth Information
Autostart
We need to create a startup script so that btsync will always run in the background.
Create a new file in /etc/init.d/btsync , and type in the following code. You need
to check the start directory and make sure that it's owned by the users that you used
while you were logged in.
#! /bin/sh
# /etc/init.d/btsync
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
/home/root/.btsync/btsync
;;
stop)
killall btsync
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
;;
esac
exit 0
Then, change the permission of the file and register it to run at boot.
sudo chmod 755 /etc/init.d/btsync
sudo /etc/init.d/btsync start # test that the script starts
sudo /etc/init.d/btsync stop # test that the script stops
sudo update-rc.d btsync defaults
Hardware RAID
The Pi does not have a SATA controller on board, and there is no way to attach extra
hard drives except via the USB ports. The cool thing is that you can get a USB RAID
controller. This makes file storage on the Pi a very attractive option. Technically, the
peripheral needed is called a USB SATA multiplier.
 
Search WWH ::




Custom Search