# Install PlexConnect using new Pkgng

**URL:** <https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159>\
**Category:** Apps & Creations\
**Created:** [March 3, 2014, 6:43pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159 "2014-03-03T18:43:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanky8804](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/lanky8804/32/87995_2.png) [@lanky8804](https://forums.plex.tv/u/lanky8804)\
**Post date:** [March 3, 2014, 6:43pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/1 "2014-03-03T18:43:17Z")

</div>

Hi everyone

&nbsp;

Have been using PlexConnect on a freeNAS box previously however with the new updates in their system it broke the old commands i used to install and run PlexConnect.

&nbsp;

I thought i would list the commands that i have used so far to install the components however i have got stuck when i come to try and run a python or bash which i was wondering if someone with more experience would be able to help me with?

&nbsp;

So to install git, python, nano and bash i used the following:

```
pkg install git
pkg install python
pkg install nano
pkg install bash
```

All installed fine. Next i cloned PlexConnect using the following:

```
git clone https://github.com/iBaa/PlexConnect.git
```

All good so far.

&nbsp;

I next cd'ed into the PlexConnect folder and then tryed to run PlexConnect.py. This is the error that i got.

```
root@PlexConnect:/PlexConnect # ./PlexConnect.py
env: python: No such file or directory
root@PlexConnect:/PlexConnect #
```

I though ok i will just copy my old 'Settings.cfg' and cert into the correct folders and then just start the service using

```
bash /PlexConnect/PlexConnect_daemon.bash start
```

I then got this error:

```
root@PlexConnect:/PlexConnect # bash /PlexConnect/PlexConnect_daemon.bash start
Starting PlexConnect...
/PlexConnect/PlexConnect_daemon.bash: line 29: python: command not found
root@PlexConnect:/PlexConnect #
```

I have now reached the extent of my knowledge and am unsure as to what to do.

&nbsp;

Your thoughts and advice are appreciated.

---

<div class="post-metadata">

**Author:** ![oleost](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/oleost/32/135552_2.png) [@oleost](https://forums.plex.tv/u/oleost)\
**Post date:** [March 3, 2014, 7:15pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/2 "2014-03-03T19:15:35Z")

</div>

I know we have simulaor issue in nas4free. And its described how its fixed in this post in the end.

[https://forums.plex.tv/topic/80919-help-getting-plexconnect-to-work-on-nas4free/?p=574662](https://forums.plex.tv/topic/80919-help-getting-plexconnect-to-work-on-nas4free/?p=574662)

---

<div class="post-metadata">

**Author:** ![lanky8804](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/lanky8804/32/87995_2.png) [@lanky8804](https://forums.plex.tv/u/lanky8804)\
**Post date:** [March 3, 2014, 7:40pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/3 "2014-03-03T19:40:12Z")

</div>

Thanks for the reply.

I have edited the PYTHON line of code and now get the following error

```
root@PlexConnect:/PlexConnect # bash /PlexConnect/PlexConnect_daemon.bash start
Starting PlexConnect...
/PlexConnect/PlexConnect_daemon.bash: line 29: /usr/local/bin/python: No such file or directory
```

I have browsed to that folder location and nothing is in the bin folder?!

When i used 'pkg install python27' it didn't come up with any errors.

---

<div class="post-metadata">

**Author:** ![lanky8804](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/lanky8804/32/87995_2.png) [@lanky8804](https://forums.plex.tv/u/lanky8804)\
**Post date:** [March 3, 2014, 7:57pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/4 "2014-03-03T19:57:40Z")

</div>

fixed changed PYTHON line to:

```
PYTHON="/usr/local/bin/python2.7"
```

Running and working now :) :)

---

<div class="post-metadata">

**Author:** ![cezar](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@cezar](https://forums.plex.tv/u/cezar)\
**Post date:** [March 12, 2014, 6:45am UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/5 "2014-03-12T06:45:08Z")

</div>

> fixed changed PYTHON line to:
> 
> ```
> PYTHON="/usr/local/bin/python2.7"
> ```
> 
> Running and working now :) :)

Hey thanks for the fix. &nbsp;It took me a long while to find it.

---

<div class="post-metadata">

**Author:** ![Lipstick](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Lipstick](https://forums.plex.tv/u/Lipstick)\
**Post date:** [May 1, 2014, 12:02pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/6 "2014-05-01T12:02:46Z")

</div>

> fixed changed PYTHON line to:
> 
> ```
> PYTHON="/usr/local/bin/python2.7"
> ```
> 
> Running and working now :) :)

Where exactly is this fix taking place? I am running into the same original error in running the PlexConnect.py script in FraaNAS 9.2.1.5.

---

<div class="post-metadata">

**Author:** ![lanky8804](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/lanky8804/32/87995_2.png) [@lanky8804](https://forums.plex.tv/u/lanky8804)\
**Post date:** [May 7, 2014, 4:57pm UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/7 "2014-05-07T16:57:06Z")

</div>

Sorry for the late reply. You edit the PlexConnect\_deamon.bash file

See my blog post for step by step:&nbsp;[http://lanky8804.wordpress.com/2014/03/03/install-plexconnect-using-pkgng/&nbsp;](http://lanky8804.wordpress.com/2014/03/03/install-plexconnect-using-pkgng/%C2%A0)

---

<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, 1:28am UTC](https://forums.plex.tv/t/install-plexconnect-using-new-pkgng/59159/8 "2019-12-21T01:28:04Z")

</div>

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