ats-min.com

Just another programmer's site

Category: Raspberry pi

Plex Media Server on Raspberry Pi

Thanks to besn0847/arm-plex docker image, it’s possible to run Plex Media Server on Raspberry Pi. This docker image is using third party package.

Here is ansible task that gets docker image and runs container.

After running playbook, Plex Web App is available at “http://{{ raspberry IP }}:32400/web/index.html”, but at first you have to sign up Plex account. The “network-mode: host” is required, otherwise you can’t access Plex by “Authorization Error”.

Let’s encrypt renew

When I renew my certificate by the following command with running nginx, and error occured.

 

As the document says, adding –webroot and -w option solved the problem. 😀

 

 

Mastodon on Raspberry pi

Official Mastodon github doc says that the following softwares are required to run Mastodon.

  1. Nginx
  2. Docker
  3. Docker-compose

Nginx is userd as a reverse proxy. Docker can be installed by the below command written in official Raspbian doc.

However, official docker-compose can’t be used because it doesn’t compatible to Raspberry pi ARM CPU.

There is a docker-compose for ARM project, arm-compose in github. Though the readme says it isn’t maintaind anymore, anyway go ahead. Installation commands are written in the readme.

Not only docker-compose, official Mastodon docker image doesn’t work in ARM CPU environment as well, but there is a docker image for ARM, rpi-mastodon . However, using this original image we can’t compile Mastodon javascript later as menthioned in this Issue. Modified Dockerfile is here.

Though we can build rpi-mastodon images by docker build command as written in documents,  there is another problem. After precompile, when I access https://localhost:3000, browser says that

The problem is also mentioned in this Issue. Checking inside mastodon-web container, actually these files didn’t exist.

The precompiled files are found in public/assets directory with different names.

After copy or symlink these files inside public/javascripts or stylesheets directory, it worked. Other application_public.js or some images are also located in public/assets directory, so copy or symlink them as well.

© 2019 ats-min.com

Theme by Anders NorenUp ↑