Specifications:

PI Setup

keyboard, hostname, username/password & wifi network

When you are starting up for the first time you need to set up a bunch of things. To keep things consistent please use this set up

Post 1st boot

Note: In the below text, a dollar sign ($) indicates the start of a command, do not type the dollar sign, only what comes after.

We prefix the commands below with  sudo   to give us extra permissions but only whilst executing the command.

Network commands

ssh

Installing jellyfin

Commands

change the directory you are residing in:  cd

list the contents of a directory:  ls -lsa

make a directory:  mkdir

Permission issues

Adding Media to Jellyfin

Make a place to put the movies

Make a directory for them: sudo mkdir /media/jellyfin

Set the permissions so Jellyfin can see it: sudo chmod 777 /media/jellyfin

Get the files from the USB drive

You need to mount the USB manually 

Create the mount folder: sudo mkdir /mnt/usb

Mount the drive: sudo mount /dev/sda1 /mnt/usb -o uid=pi,gid=pi

Copy some movies from the drive to your movie folder

Get a high res and a low res of the same movie so you can compare

cp <file_to_move> <place_to_move_it>

When you're done, unmount it: sudo umount /mnt/usb

Add the library in the Jellyfin browser

Linux commands used:

sudo
mkdir
chmod
mount
cp
umount

Other useful ones:

ls
cd


Handy hint:

When you use cp you can use the * character to say "everything"

cp /mnt/MyMovies/*  /dev/null

copies all the stuff in MyMovies to /dev/null

Browser Issues

Network monitoring

We used the Ruckus wifi router when setting up our Pis as it has connection to the internet.

However, Will use the Huawei  router for our testing as:

traceroute is used to display the physical routing path between 2 internet devices communicating with each other. It maps out the journey from one router to another - sometimes called a hop. Using traceroute to diagnose network problems can help administrators locate the source of a network delay.

ping is a simpler traceroute. It sends out pings -- also referred to as echo request message -- and the measures the amount of time it takes the message to reach its destination and return the source. These replies are called echo reply messages. Pings are useful for gathering latency information about a specific device. Unlike traceroute, ping does not provide a picture map of the routing layout.

nmon

sudo apt update

sudo apt upgrade

sudo apt install nmon

iperf3

sudo apt update

sudo apt upgrade

sudo apt install iperf3

Click NO to auto start the server

Our network

Rough layout of components

Performance specifications of components

Note 1: Actual speeds depend heavily on how you are reading  the data. For example; when reading data from a disk, speeds are far higher when you are reading adjacent blocks of data as opposed to reading the same amount of data if it is spread throughout a disk. However they do give an indication of relative speeds of the components.

Note 2: Device seeds are given MB/s or Mega Bytes per second, whilst  network speeds are given as Mb/s or Mega bits per second. You can convert Mb/s into MB/s by dividing by the Mb/s value by 8 (computers use 8-bits per byte)

Huawei HG659b modem

Ruckus Router

Heat testing results

running 8 CPU, 4 io, 2 vm@128M processes & open case with nothing: over 80 degrees

running 8 CPU, 4 io, 2 vm@128M processes & open case with fan: 53 degrees

running 8 CPU, 4 io, 2 vm@128M processes & closed case with fan & venting: 55 degrees

running 3 CPU processes & open case with heat sink: 75 degrees

running 3 CPU processes & open case no heat sink: 76 degrees

running 1 CPU process & closed case no heat sink: 76 degrees

Pi tutorials

script permissions

scripting