Raspberry Pi
over 35 million sold; 44% of them to industryÂ
Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
1GB, 2GB or 4GB LPDDR4-3200 SDRAM (depending on model)
2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE
Gigabit Ethernet
2 USB 3.0 ports; 2 USB 2.0 ports.
Raspberry Pi standard 40 pin GPIO headerÂ
2 × micro-HDMI ports (up to 4kp60 supported)
2-lane MIPI DSI display port
2-lane MIPI CSI camera port
4-pole stereo audio and composite video port
H.265 (4kp60 decode), H264 (1080p60 decode, 1080p30 encode)
OpenGL ES 3.0 graphics
Micro-SD card slot for loading operating system and data storage
5V DC via USB-C connector (minimum 3A*)
5V DC via GPIO header (minimum 3A*)
Power over Ethernet (PoE) enabled (requires separate PoE HAT)
Operating temperature: 0 – 50 degrees C ambient
Before you start you'll need an operating system. You need to install it on the SD card. You can use the Raspberry Pi imager to do this.
To do this you need:
Your own laptop (Windows, Mac or Linux. Chromebooks can do it, but it's harder)
SD card reader, either built in or an adaptor - we have some to share
This video goes over initial setup in lots of detail. Use it if you get stuck
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
Select the US keyboard option
Username: comp<Pi number> (eg: I am using the Pi 16 so the username is comp16)
Password:Â comp<Pi number>
Hostname: comp<Pi number>
The network to connect to is HVHS_COMP
Password: RaspberryPi@hvhs2023
Enable SSH (password authentication)
To use your Pi remotely you need to be able to use the linux command prompt - ssh.
Do the orientation activity before you go any farther.
To connect to your Pi your laptop needs to be on the same network (HVHS_COMP)
ssh in with your Pi's username and ip address eg:
ssh comp16@192.168.111.111
OR ssh in with your Pi's username and hostname eg:
ssh comp16@comp16.local
You can provide your own or use the ones we have in class. These movies need to be copied onto your SD card so Jellyfin can see them.
Make a place to put the movies
You need to create a place to put the movies. You can create a directory at the root level or in /home.
Jellyfin runs as a different user so you need to set the permissions on the directory so that Jellyfin is able to see inside it. You can use the chmod command for this.
eg: sudo chmod a+rwx myMovieDirectory
Get the files from the USB drive
Get a USB with the movies
Plug it in to the Pi
It will turn up in /media
Copy some movies from the drive to your movies folder
Handy hint:
When you use cp you can use the * character to say "everything"
cp /media/MyMovies/*Â /dev/null
copies all the stuff in MyMovies to /dev/null
Now you can configure Jellyfin from the web browser.
Go to the jellyfin web interface on port 8096 on your pi.
Type http://192.168.<Your IP address>:8096 (or http://<piName>.local:8096)
Go through the configuration dialogs
We used the Ruckus Wifi Access Point (the school WAP) when setting up our Pis as it has connection to the internet.
However, we will use the Huawei router for our testing as:
The Ruckus router is used by students in B14 - so its not a fair test
The Huawei router has both 2.4Ghz & 5Ghz bands.
2.4Ghz band ssid: newRaspberryPi
5Ghz band ssid: newRaspberry_5GhzÂ
password: raspberry
You will need to connect your laptop to the same network to be able to use your server or connect to it with ssh.
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.
sudo apt update
sudo apt upgrade
sudo apt install nmon
sudo apt update
sudo apt upgrade
sudo apt install iperf3
Click NO to auto start the server
default card speed = 12.5MB/s
high speed card = 25MB/s
ultra high speed card = 80MB/s
4.8GB/s
114Mb/s ==> 14MB/s
943Mb/s ==> 117MB/s
5Ghz; upto 1300Mb/s ==> 162.5 MB/s
2.4Ghz; upto 300Mb/s ==> 37.5MB/s