We’re going to use the dev2day repo for this, it’s pretty straightforward.
First lets update the package manager
sudo apt update
Next, taken directly from dev2day
This will be in 2 parts, 32-bit OR 64-bit, pick one depending on your architecture;
32-bit ONLY Start
Become root
sudo -i
Add the public key
wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
Add th PMS repo
echo "deb https://dev2day.de/pms/$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/pms.list
Activate https
apt-get install apt-transport-https
Update the repos
apt update
install PMS
apt-get install plexmediaserver-installer
32-Bit ONLY End
64-Bit ONLY Start
Become root
sudo -i
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/$(lsb_release -cs) main" | sudo tee /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
64-Bit ONLY End
Do the following for Both 32-bit & 64-bit
Set Permissions with your text editor (I am using vim
but you can use nano
etc.)
vim /etc/default/plexmediaserver.prev
Change the user from the default plex to osmc
PLEX_MEDIA_SERVER_USER=plex
to
PLEX_MEDIA_SERVER_USER=osmc
Save & Exit
Restart the service
systemctl restart plexmediaserver
Exit root
CTRL+D
Finally navigate the the IP address of your OSMC in a browser followed by :32400/manage/ e.g.
192.168.1.100:32400/manage