tisdag 12 juni 2018

Raspberry Pi Media Center

#Update Raspbian
sudo apt-get update && sudo apt-get upgrade -y

#Install Samba
sudo apt-get install -y samba samba-common-bin

#List all discs
lsblk

#Unmount auto-mount
sudo umount /media/pi/Elements

#Install ntfs-3g, ntfs is readonly without it
sudo apt-get install ntfs-3g

#Create mount point
sudo mkdir /media/usbdisc

#Configure discs in fstab
nano /etc/fstab
/dev/sda1 /media/usbdisc ntfs defaults 0 0

#Reboot, "mount -a" seems to not work here?
#mount -a
sudo reboot

sudo nano /etc/samba/smb.conf

[usbdisc$]
comment = USB Disc
browseable = yes
path = /media/usbdisc
writeable = Yes
create mask = 0777
directory mask = 0777

[Media]
comment = Media
browseable = yes
path = /media/usbdisc/media
writeable = Yes
create mask = 0777
directory mask = 0777
#guest ok = no

## Kodi
sudo apt-get install kodi
##Transmission
sudo apt-get install -y transmission-daemon

sudo usermod -a -G pi debian-transmission

#Sources
#https://eltechs.com/raspberry-pi-nas-guide/
#https://www.raspberrypi.org/forums/viewtopic.php?t=192499
#https://www.addictivetips.com/media-streaming/kodi/install-transmission-raspberry-pi-torrent/