geoffthompson

Building a Plesk Server on Raspberry Pi

Install Raspberry Pi Imager

  1. Go to https://www.raspberrypi.com/software/ and download the dmg file.

  2. Double-click the dmg file to open the installer

  3. 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

  1. Connect remotely:

    $ ssh geoff@plexpi.local

  2. Or via keyboard/monitor plugged directly into the pi

  3. 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/

  1. Enable https for apt

    $ sudo apt install apt-transport-https

  2. 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

  3. Add Plex media server repository

    $ echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

  4. Update

    $ sudo apt-get update

  5. Install Plex

    $ sudo apt install plexmediaserver

  6. 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