Skip to content

Latest commit

 

History

History
102 lines (84 loc) · 4.27 KB

Plextini.md

File metadata and controls

102 lines (84 loc) · 4.27 KB

Plextini - Plex in Docker on Crostini

Why do we run Plex Media Server in Crostini? Because we can!

Plex can be up and running on Crostini in just a few easy steps.

Get Docker

If you don't have Docker, install it:

sudo apt-get update
sudo apt-get install docker.io

Then add yourself to the docker group so that sudo is not required to use Docker:

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

To have Plex automatically restart when the system reboots, you need to enable Docker to start on boot:

sudo systemctl enable docker

Get Plextini

Clone or download from this repository, then cd to the directory its in.

Configure media folders

You edit the conf file to customize your Plextini installation. First configure your media folders. In conf you will see:

media_folders=(media media1 media2 media3)
media=""
media1=""
media2=""
media3=""

Set these up however you like. For example, if you are starting from scratch, you might do:

media_folders=(music pix videos)
music="/home/user/Music"
pix="/home/user/Pictures"
videos="/home/user/Videos"

Then in Plex when you go to add a library folder, your music will be in /music, pictures in /pix, and videos in /videos.

If you have an existing non-Dockerized Plex setup, and want to keep your existing meta-data without re-scanning all your media, you might do:

media_folders=(home)
home="/home"

Then in Plex your music will still be in /home/user/Music, pictures in /home/user/Pictures, and videos in /home/user/Videos.

Configure Plextini

Make these changes in the conf file:

servername="Plextini"
containername="plextini"
mode="http-only"
hostip="<ip of your Chrome OS device>"

You can find the Chrome OS host ip as follows:

  1. Click on the Network and Settings window on your tray (where it shows the time, battery, avatar, etc.).
  2. Click on the WiFi section to see network details.
  3. There will be an “i” button in the upper-right corner, click on it and your MAC/Wi-Fi and IP addresses will be displayed.

To keep the IP address from changing, you can optionally configure your router to assign your Chrome OS device a persistent IP address.

If you don't plan on logging in to Plex at this time, set:

plexlogin=false

You can always set it back to true later.

Forward the Plextini port

The Plextini container runs in a VM under Chrome OS, and is not directly accessible on your network. If you want to reach Plex from other devices (that's the whole point, right?) set up a port forward from Chrome OS to Crostini. First install the excellent Connection Forwarder Chrome extension in Chrome. Then click Create Rule and configure it to forward port 32400 on Chrome OS (TCP 0.0.0.0) to port 32400 in Crostini (penguin.linux.test):

Plextini port forwarding

You can also select Auto Start on Login and/or Run in Background.

Install Firefox

When you start up Plex for the first time, you need a browser running in Crostini to do initial configuration of Plex. You can install Firefox for this purpose. From Crostini, do:

sudo apt install firefox-esr

If you're running Ubuntu instead of the default Debian penguin, do:

sudo apt install firefox

For Firefox to be able to play videos, install the mpv package:

sudo apt install mpv

Change Chrome OS idle setting (optional)

To keep Chrome OS from going to sleep in the middle of Terminator 2, go to Chrome OS Settings...Device...Power and change When idle to Turn off display or Keep display on.

Next steps

Now you're ready to Start the Plextini container, or to tweak Other settings (optional) before starting Plextini.