Little guide to TorrentBox and nas:
Tested on Vero 4K and Raspberry Pi with OSMC
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoclean
sudo apt-get autoremove
sudo reboot
- I use webmin to manage the system.
sudo nano /etc/apt/sources.list
deb Index of /download/repository sarge contrib
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt-get update
sudo apt-get install webmin
- I use two hard drives, one for files to download and one for completed.
sudo mkdir /mnt/nas
sudo mkdir /mnt/tmp
lsblk
sudo mkfs -t ext4 /dev/sda1
sudo mkfs -t ext4 /dev/sdb1
sudo mount /dev/sda1 /mnt/nas
sudo mount /dev/sdb1 /mnt/tmp
sudo chown -R osmc:osmc /mnt/nas
sudo chown -R osmc:osmc /mnt/tmp
sudo chmod -R 777 /mnt/nas
sudo chmod -R 777 /mnt/tmp
sudo apt-get install samba samba-common-bin
sudo smbpasswd -a osmc
- For downloads I use transmission daemon.
sudo apt-get install transmission-daemon
sudo nano /etc/transmission-daemon/settings.json
set “osmc” as user without “”
sudo service transmission-daemon reload
sudo service transmission-daemon stop
sudo nano /etc/init.d/transmission-daemon
set “osmc” as user without “”
sudo chown -R osmc:osmc /etc/transmission-daemon
sudo chown -R osmc:osmci /etc/init.d/transmission-daemon
sudo chown -R osmc:osmc /var/lib/transmission-daemon
sudo nano /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
set “osmc” as user without “”
sudo systemctl daemon-reload
sudo mkdir -p /home/osmc/.config/transmission-daemon/
sudo ln -s /etc/transmission-daemon/settings.json /home/osmc/.config/transmission-daemon/
sudo chown -R osmc:osmc /home/osmc/.config/transmission-daemon/
sudo service transmission-daemon start
- To connect remotely using the noip’s service.
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xvf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
sudo make
sudo make install
NoIP autostart
sudo nano /etc/init.d/noip2
Copy and paste
#! /bin/sh
# /etc/init.d/noip
### BEGIN INIT INFO
# Provides: noip
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script to start a program at boot
# Description: A simple script which will start / stop noip
### END INIT INFO
# If you want a command to always run, put it here
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting noip"
# run application you want to start
/usr/local/bin/noip2
;;
stop)
echo "Stopping noip"
# kill application you want to stop
killall noip2
;;
*)
echo "Usage: /etc/init.d/noip {start|stop}"
exit 1
;;
esac
exit 0
sudo chmod 755 /etc/init.d/noip2
sudo update-rc.d noip2 defaults
sudo reboot
That’s it and I apologize for my bad English