Building a Plesk Server on Raspberry Pi
Install Raspberry Pi Imager
-
Go to https://www.raspberrypi.com/software/ and download the
dmg
file. -
Double-click the
dmg
file to open the installer -
Drag the Raspberry Pi Imager icon into the applications folder.
I am having issues with the SD card being corrupted -- looks like a common problem if the Pi is not shut down correctly, which I usually always do. Although, this latest incident happened after a sudo apt-get update
failed.
I threw the card away and bought another one -- fingers crossed...
Format SD Card
Followed instructions primarily from https://www.raspberrypi.com/documentation/computers/getting-started.html#using-raspberry-pi-imager.
Using the Raspberry Pi Imager, format an SD Card with the desired Raspbian OS - for this go-round, I created a 64-bit Raspbian Lite image.
I went to Advanced options, and added ssh key from my Mac, user/password, wifi info, wifi country, locale settings, and checked off 'play sound when done' and unchecked 'allow telemetry'.
Insert the SD Card and Boot the Pi
-
Connect remotely:
$ ssh geoff@plexpi.local
-
Or via keyboard/monitor plugged directly into the pi
-
Ensure system is up to date
$ sudo apt-get update $ sudo apt-get upgrade
Install Plex Media Server
Followed instructions here: https://www.golinuxcloud.com/install-plex-media-server-debian-11/
-
Enable https for apt
$ sudo apt install apt-transport-https
-
Add Plex Key
$ curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
This gives a warning that apt-key is deprecated -- but ends OK
-
Add Plex media server repository
$ echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
-
Update
$ sudo apt-get update
-
Install Plex
$ sudo apt install plexmediaserver
-
Configure static IP address
$ hostname -I
Copy the IP into the clipboard, then add it to boot script
$ sudo vi /boot/cmdline.txt
Add to bottom of the file:
ip=[IP address from clipboard]
Login to the web interface
The web interface is located at http://plexpi.local:32400/web