This is a note to myself about what I need to do to setup a Raspbian box.
- Username is
piand pw israspberry.osmc/osmcif OSMC. apt-get updateapt-get dist-upgrade -yapt-get install nfs-kernel-server openvpn software-properties-common vim git dnsutils -y
software-properties-commonfor adding PPAs
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 249AD24C
- we can't use
apt-add-repositorybecause the Deluge PPA only has Ubuntu builds - key info is found here
- create
/etc/apt/sources.list.d/deluge.listand pretend we're Ubuntu Trusty:
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu trusty main
apt-get updateto grab the info from the PPAapt-get install deluged deluge-web -y- We need to fix the locale (reference). Choose
en_US.UTF-8where appropriate, and disableen_GB.UTF-8where found: sudo locale-gen en_US.UTF-8(optional? the second step seems to do this)sudo dpkg-reconfigure locales- update hostname in
/etc/hostsand/etc/hostname sudo service hostname.shsudo shutdown -r nowto rebootsudo useradd boneskull -G sudo,dialout -u 505 -m -Usudo passwd boneskullgit clone https://github.com/boneskull/dotfiles.git# TODO: rcm, antigen, zsh setup etccd dotfiles && bash bootstrap.bash -fmkdir -p ~/.ssh- create
~/.ssh/authorized_keysand paste public key in there chmod -R go-r .sshmkdir -p /var/log/delugechown -R boneskull:dialout /var/log/deluge- create
/lib/systemd/system/deluged.service:
[Unit]
Description=Deluge Bittorrent Client Daemon
After=syslog.target network.target
[Service]
User=boneskull
Group=dialout
Type=simple
ExecStart=/usr/bin/deluged -d -L error -l /var/log/deluge/daemon.log
TimeoutStopSec=20
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
- create
/lib/systemd/system/deluge-web.service:
[Unit]
Description=Deluge Bittorrent Web Daemon
After=syslog.target network.target
[Service]
User=boneskull
Group=dialout
Type=simple
ExecStart=/usr/bin/deluge-web -L error -l /var/log/deluge/web.log
TimeoutStopSec=20
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl enable deluged.service && sudo systemctl start deluged.servicesudo systemctl enable deluge-web.service && sudo systemctl start deluge-web.service- hit port 8112 w default pw of
delugeand change pw - get drive IDs with
blkid - add drives to
/etc/fstab;UUID=xxxxxx mkdir -p /media/it /media/jason /media/samaramount -asudo systemctl enable rpcbind.service/etc/exports:
/media/jason 10.0.0.0/24(rw,async,no_subtree_check,insecure)
/media/samara 10.0.0.0/24(rw,async,no_subtree_check,insecure)
/media/it 10.0.0.0/24(rw,async,no_subtree_check,insecure)
sudo exportfs -fasudo systemctl restart nfs-kernel-server.service- run
raspbi-configand expand fs - go back to deluge and set it up