Skip to content

Instantly share code, notes, and snippets.

@davidtron
Created January 15, 2017 09:34
Show Gist options
  • Save davidtron/1683e1045d783e88077daa8629a655c2 to your computer and use it in GitHub Desktop.
Save davidtron/1683e1045d783e88077daa8629a655c2 to your computer and use it in GitHub Desktop.
Odroid plex server setup

Odroid

On the Mac download latest minimal ubuntu image

http://de.eu.odroid.in/ubuntu_16.04lts/

Unpack and flash to sd card

unxz ubuntu64-16.04-minimal-odroid-c2-20160815.img.xz

sudo su - diskutil unmountDisk /dev/disk2 dd if=ubuntu64-16.04-minimal-odroid-c2-20160815.img of=/dev/disk2 bs=1m diskutil eject /dev/disk2

Plug it in

log in first time as root, password is odroid

Resize the partition

wget -O /usr/local/bin/odroid-utility.sh https://raw.githubusercontent.com/mdrjr/odroid-utility/master/odroid-utility.sh chmod +x /usr/local/bin/odroid-utility.sh odroid-utility.sh

set static IP

vi /etc/network/interfaces.d/eth0

auto eth0 iface eth0 inet static address 192.168.1.105 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 8.8.8.8

add a user

adduser david usermod -aG sudo david

install plex for arm64

https://www.dev2day.de/typo3/projects/plex-media-server/

sudo su

  • add the public key wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
  • add the PMS repo echo "deb [arch=armhf] https://dev2day.de/pms/ jessie main" >> /etc/apt/sources.list.d/pms.list
  • activate https apt-get install apt-transport-https
  • enable armhf support dpkg --add-architecture armhf
  • update the repos apt-get update
  • install PMS apt-get install plexmediaserver-installer:armhf

install and mount nfs drives

sudo apt-get install nfs-common sudo mkdir /mnt/bert/music -p sudo mkdir /mnt/bert/video -p sudo mkdir /mnt/bert/photos -p

vi /etc/fstab 192.168.1.102:/mnt/array1/music /mnt/bert/music nfs defaults,noatime,noauto,x-systemd.automount 0 0 192.168.1.102:/mnt/array1/video /mnt/bert/video nfs defaults,noatime,noauto,x-systemd.automount 0 0 192.168.1.102:/mnt/array1/photos /mnt/bert/photos nfs defaults,noatime,noauto,x-systemd.automount 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment