For iPhone, Android, Windows Phone 7, or anything capable of HTML
Hello everyone !I have my computer connected to my TV and everytime i sat down to watch a movie or something, I always had to get up again to start PMC and then I could use Plex Remote (for iOS).
That annoyed me a lot !
I searched all over the internet to find something, but i found nothing working under Linux.
So I made This :
Plex Launcher For Linux
[http://i.imgur.com/8MUMzl.png](http://imgur.com/8MUMz) [http://i.imgur.com/XHhaRl.png](http://imgur.com/XHhaR)
**Features**
-Launch Plex Media Center from any mobile phone / smartphone / pc (anything with web browser capabilities)
-Can also detect wheter it's already running, so you can close it / restart it
-Password protected (so you sister doesn't launch or kill PMC whenever she wants)
So how does this work ?
It uses a local webserver, accessible from any computer/smartphone on your lan, and allows you to launch PMC.
**Requirements**
-Plex Media Center For Linux installed and working (get the binary *.deb here : [http://forums.plexapp.com/index.php/topic/35016-experimental-binary-packages/](http://forums.plexapp.com/index.php/topic/35016-experimental-binary-packages/))
and if that binary works but doenst show the video do this : (belgarth workaround) [https://github.com/gewalker/plex-linux/issues/13](https://github.com/gewalker/plex-linux/issues/13)
-LAMP (Linux Apache MySQL PHP server (see here [https://help.ubuntu.com/community/ApacheMySQLPHP](https://help.ubuntu.com/community/ApacheMySQLPHP)).
-A PHP file, I will provide it to you :P
-A few little changes in some settings on Linux
-And finally, anything capable of loading a webpage.
**Installation**
I will assume you already have a LAMP server installed and working (see the link I gave you for that). And the same for your Plex Media Center.
1.- You should copy the file I gave you somewhere accesible on your LAMP server.
2.- You should edit **/etc/sudoers** and add this at the end of the file;
(gksudo gedit /etc/sudoers in a terminal for Gnome)
#Ability to launch PMC<br />
www-data ALL=(ALL) NOPASSWD: /usr/local/bin/pmc<br />
#Ability to kill PMC<br />
www-data ALL=(ALL) NOPASSWD: /usr/bin/killall
This code will allow your LAMP server to actually launch and kill PMC.
**/!\ I should warn you ! This change could be a "breach" in the security of your Linux system. I say it "could" be, because I made it so the webserver can only start PMC and nothing else. So you should'nt be worried about it, but since it's an important change, it's my duty to inform you, I can not be responsible for any problem this *could* bring you.**
3.- Now take the file in attachment to this post (index.php (2.27 KB)), and put it somewhere accesible on your LAMPSERVER. Change the password to **one you like**, and put the username to **the one of your linux log in** (this is important, it will not work if you don't !)
4.-That's it ! Simple right ?
**How do you use it now ?**
Simply access **index.php?password=ThePasswordYouUsed**, here you should type the password you entered in the file.
This is a security measure, because without it anyone on your lan could launch or kill your PMC, that would be annoying !
What I did on my phone is put a shortcut to the webpage launcher. So whenever I click it, it takes me to **"http:192.168.1.4/index.php?password=mypassword"**, the IP adress being the one of the computer in which we want to launch/kill Plex Media Center. (like this : [http://i.imgur.com/r2FAxs.jpg?1](http://imgur.com/r2FAx)).
Then I can just swap to Plex Remote and Everything is beautiful !
**Improvements**
Impossible, I made it, therefore it's perfect !
Ok let's stop joking.
A more beautiful interface would be greatly appreciated (I didnt do it as I suck at photosop --' and CSS).
And a beautiful Logo !
Feel free to browse the code, it isn't really long or complicated!
Adapt, improve and share it !
If you have any question you can ask them here, I will gladly answer them.
Pauldb.