# Plexconnect and Raspberry Pi

**URL:** <https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826>\
**Category:** Apps & Creations\
**Created:** [November 23, 2014, 7:05pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826 "2014-11-23T19:05:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mackie72](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mackie72/32/1867_2.png) [@Mackie72](https://forums.plex.tv/u/Mackie72)\
**Post date:** [November 23, 2014, 7:05pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/1 "2014-11-23T19:05:10Z")

</div>

I am running plexconnect on my raspberry pi as I need to have web server and dns server running on my Mac.&nbsp;

&nbsp;

Until recently it has been working perfectly and saw that Apple TV could not connect properly. After checking raspberry pi I noticed that I get this error when trying to starting plexconnect:

&nbsp;

Traceback (most recent call last):

&nbsp; File "/home/pi/PlexConnect-master/PlexConnect.py", line 19, in 

&nbsp; &nbsp; import DNSServer, WebServer

&nbsp; File "/home/pi/PlexConnect-master/WebServer.py", line 28, in 

&nbsp; &nbsp; import XMLConverter &nbsp;# XML\_PMS2aTV, XML\_PlayVideo

&nbsp; File "/home/pi/PlexConnect-master/XMLConverter.py", line 42, in 

&nbsp; &nbsp; import PILBackgrounds

ImportError: No module named PILBackgrounds

&nbsp;

I did a search and tried to install PIL but that didn't help. I still get this error. Any ideas how to solve this?&nbsp;

&nbsp;

Thanks.

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [November 23, 2014, 7:27pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/2 "2014-11-23T19:27:48Z")

</div>

Your PlexConnect codebase doesn't seem to be consistent... re-update from github.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [November 23, 2014, 10:14pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/3 "2014-11-23T22:14:55Z")

</div>

It is also possible to use your own DNS server and setup a reverse proxy on your webserver if you want to run PlexConnect on your Mac.

---

<div class="post-metadata">

**Author:** ![Mackie72](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mackie72/32/1867_2.png) [@Mackie72](https://forums.plex.tv/u/Mackie72)\
**Post date:** [November 24, 2014, 2:17am UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/4 "2014-11-24T02:17:08Z")

</div>

> Your PlexConnect codebase doesn't seem to be consistent... re-update from github.

OK thanks got it to work. I deleted old installation and then I run this command on the raspberry:

wget [https://github.com/iBaa/PlexConnect/archive/master.zip](https://github.com/iBaa/PlexConnect/archive/master.zip)

unzip -u master.zip&nbsp;

Started plexconnect and changed the settings and all is working.

I found the error I made before. I used unzip -f -u master.zip which seems to have failed to expand some files.

Thanks. :D&nbsp;

---

<div class="post-metadata">

**Author:** ![sasagr](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sasagr/32/217483_2.png) [@sasagr](https://forums.plex.tv/u/sasagr)\
**Post date:** [January 2, 2015, 1:58pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/5 "2015-01-02T13:58:12Z")

</div>

Can someone guide step by step me how to setup the autostart for the daemon to start plex connect on every boot of the raspberry?

thanks

---

<div class="post-metadata">

**Author:** ![Mackie72](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mackie72/32/1867_2.png) [@Mackie72](https://forums.plex.tv/u/Mackie72)\
**Post date:** [February 19, 2015, 2:26am UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/6 "2015-02-19T02:26:12Z")

</div>

> Can someone guide step by step me how to setup the autostart for the daemon to start plex connect on every boot of the raspberry?
> 
> thanks

Just saw your post. Sure that is really easy.

Open in an text editor the /etc/rc.local file

sudo pico /etc/rc.local

Add this line (it depends on where you stored Plexconnect I have it in the pi folder) just below the commented text &nbsp;(# By default this script does nothing.):

&nbsp;

python /home/pi/PlexConnect-master/PlexConnect\_daemon.py

Save and close. Restart raspberry to check if it works.&nbsp;

---

<div class="post-metadata">

**Author:** ![BHINDERAWALA](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bhinderawala/32/6863_2.png) [@BHINDERAWALA](https://forums.plex.tv/u/BHINDERAWALA)\
**Post date:** [June 4, 2015, 3:18pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/7 "2015-06-04T15:18:41Z")

</div>

I wrote a script for the Raspberry Pi running Rasbian, this route worked best for me: PlexAuto is my script filename

**_sudo nano PlexAuto_**

- Copy paste the following changing the path to your PlexConact.py file

_ **#!/bin/bash** _

_ **python /home/pi/PlexMediaServer/PlexConnect.py** _

Save the file and exit nano. Then type the following to make it executable

**_sudo chmod +x PlexAuto_**

then copy the file to if-up.d

_ **cp PlexAuto /etc/network/if-up.d** _

You can delete the original.

---

<div class="post-metadata">

**Author:** ![macuser79](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@macuser79](https://forums.plex.tv/u/macuser79)\
**Post date:** [June 9, 2015, 2:51pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/8 "2015-06-09T14:51:26Z")

</div>

Hello everyone, I wanted to ask you information. So if I understand it you have installed PlexConnect to Raspberry PI and use and make the connection from the Apple TV to the Raspberry PI? Right?

---

<div class="post-metadata">

**Author:** ![pecinko](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pecinko/32/933_2.png) [@pecinko](https://forums.plex.tv/u/pecinko)\
**Post date:** [June 9, 2015, 3:09pm UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/9 "2015-06-09T15:09:25Z")

</div>

Right

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 3:39am UTC](https://forums.plex.tv/t/plexconnect-and-raspberry-pi/83826/10 "2019-12-21T03:39:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
