<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beaker2382</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beaker2382"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Beaker2382"/>
	<updated>2026-04-10T10:22:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109791</id>
		<title>Plex Media Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109791"/>
		<updated>2017-10-16T16:11:43Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* Server Setup v Player Login */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|backgroundcolor	= #FBB|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = Manually upgrading &amp;lt;b&amp;gt;may break the Amahi 7 or greater Plex Media Server app&amp;lt;/b&amp;gt; or your HDA.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Amahi or Plex Inc. cannot provide support to help or correct any issues resulting from this upgrade if you chose to do it.&amp;lt;/b&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Recent &amp;quot;White Page&amp;quot; Issue =&lt;br /&gt;
There is an issue in recent releases of the Plex Media Server app. If reaching the server yields a white page, please access it with this work-around link until (Plex fixes the issue): [http://hda:32400/web http://hda:32400/web].&lt;br /&gt;
&lt;br /&gt;
= Source Install =&lt;br /&gt;
&amp;lt;b&amp;gt;WARNING:&amp;lt;/b&amp;gt;  This is a user contributed tutorial.  Proceed with this guide at your own risk.  If it breaks your HDA or you need assistance, Amahi cannot provide support.&lt;br /&gt;
&lt;br /&gt;
This is a quick guide on how to install manually the PlexMediaServer (not the Amahi web app) on Amahi 7 or greater (Fedora).  Find out the latest version by checking '''&amp;lt;nowiki&amp;gt;https://plex.tv/downloads&amp;lt;/nowiki&amp;gt;''' and copy the link under the Fedora icon. Note that PlexPass users occassionally have access to preview versions of Plex that may contain additional functionality not yet released to other users.  Use the toggle to download the preview release if you have a PlexPass.&lt;br /&gt;
&lt;br /&gt;
* Install the current Plex server version from the link above, where x.x.x.x-xxxxxxx is the current version (1.2.2.2857-d34b464 at October 2017)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;64-bit&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Fedora 19 or older''&lt;br /&gt;
 sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:''Fedora 21 or newer''&lt;br /&gt;
 sudo dnf -y install plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;32-bit (Amahi 7 or older '''ONLY''')&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the service:  Next up we actually have to start Plex, the following command will do just that as well as create a symlink to always start Plex at boot.&lt;br /&gt;
 sudo systemctl enable plexmediaserver.service &amp;amp;&amp;amp; systemctl start plexmediaserver&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  &amp;lt;i&amp;gt;If you get an error with the above command while connected to the server with SSH through a terminal, it seems you have to relogin as root.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run at least once the PlexMediaServer (and do nothing, just run once), from any browser in your network enter &amp;lt;br /&amp;gt;&lt;br /&gt;
 ''&amp;lt;nowiki&amp;gt;http://localhost:32400/web/index.html#!/dashboard&amp;lt;/nowiki&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
* Stop the PlexMediaServer (preferably log in with a terminal):&lt;br /&gt;
 sudo systemctl stop plexmediaserver&lt;br /&gt;
&lt;br /&gt;
* File permissions and access:  Our first big problem (although it’s not really) is to allow Plex to access any of our files. PMS runs as it’s own user (surprisingly a user called plex), not you by default. So we need to give that user access to your files. The easiest way to do this is to add the plex user to your users group. Type the following command in a terminal:&lt;br /&gt;
 sudo gpasswd -a plex users&lt;br /&gt;
&lt;br /&gt;
* Restart the PlexMediaServer, wait 1-2 minutes and log in again to edit your libraries:&lt;br /&gt;
 sudo systemctl start plexmediaserver&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Don't forget if you are using Greyhole, that in this case you have always to use your files &amp;quot;inside&amp;quot; from the [[Mount_Shares_Locally|mounted local files]]&lt;br /&gt;
&lt;br /&gt;
* Either by auto update (done so around midnight), or if you ask manually for updating the system, Amahi will replace the original Plex Media Server package with it's own amahi-plex (webapp). In order to prevent that you have to exclude the auto-update in the Amahi repo.  Edit (as root) ''/etc/yum/yum.conf'' (Amahi 8 older) or ''/etc/dnf/dnf.conf'' (Amahi 9 or newer) and add the following at the bottom:&lt;br /&gt;
 exclude=amahi-plex&lt;br /&gt;
&lt;br /&gt;
= Use with Greyhole =&lt;br /&gt;
If you add a library section connected to a folder that is part of your drive pool and thus handled by [[Greyhole]], you should &amp;lt;b&amp;gt;NOT&amp;lt;/b&amp;gt; check the option to allow clients to &amp;lt;i&amp;gt;delete media&amp;lt;/i&amp;gt; in the Plex Media Server preferences dialog. &lt;br /&gt;
&lt;br /&gt;
If you want to enable this feature you should [[Mount_Shares_Locally|mount your shares locally]] on your HDA and point [http://www.amahi.org/apps/plex-media-server Plex Media Server] to these mount points instead. Otherwise deletes could cause orphan files in the storage pool since only the symlink would actually be deleted and not the actual file.&lt;br /&gt;
&lt;br /&gt;
= Locally Mounted Shares (Ubuntu ONLY) =&lt;br /&gt;
If you access your media files using [https://wiki.amahi.org/index.php/Mount_Shares_Locally locally mounted shares] (eg if you are a [https://wiki.amahi.org/index.php/Greyhole Greyhole] user as suggested above), you will need to change the permissions of your plex server user.  The Plex Media Server is run by a special user &amp;lt;i&amp;gt;plex&amp;lt;/i&amp;gt; who doesnt have access to the local shares by default.&lt;br /&gt;
&lt;br /&gt;
To fix, open terminal as root user and type:&lt;br /&gt;
 sudo usermod -a -G users plex&lt;br /&gt;
&lt;br /&gt;
You may need to restart Plex.  Now when you want to add directories using the web interface all your shares should be accessible.&lt;br /&gt;
&lt;br /&gt;
= Update Plex Media Server =&lt;br /&gt;
&lt;br /&gt;
* If you have installed manually by source the PlexMediaServer, it now has the ability to update itself through the settings' webpage&lt;br /&gt;
&lt;br /&gt;
* If you are using amahi-plex it will auto update itself as so as the developers push the new version into Amahi's repo. Don't try to update the amahi-plex web app although in the setting's webpage it will inform you that a new version of Plex Media Server is available. Most likely it will fail or it will break your system!&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== Server Setup v Player Login ==&lt;br /&gt;
After install the Plex server still needs to be configured and logged into a [http://www.plex.tv Plex.tv] account. Before the Plex server has been named properly, going to [//plexms.amahi.net //PlexMS.Amahi.Net] from  your LAN will bring you to a Plex.tv login then redirect you to a player-only page. To get around this, visit your [HDA's static IP]:32400/web/ &lt;br /&gt;
     example:&amp;lt;br /&amp;gt; 192.168.0.1:32400/web/ &amp;lt;br /&amp;gt; &lt;br /&gt;
This should bring you to the same log in page, but redirect you to the server setup. &lt;br /&gt;
&lt;br /&gt;
The default server name is LocalHostLocalDomain, change this to PlexMS. Now the address [//plexms.amahi.net //PlexMS.Amahi.Net] should bring you to the server page (with player too).&lt;br /&gt;
&lt;br /&gt;
Also, visiting your Dynamic DNS name followed by port 32400 (example.yourhda.com:32400) will bring you to a player from anywhere on the internet. Port forwarding is required at your router's firewall.&lt;br /&gt;
&lt;br /&gt;
== Data not shown with Main page login ==&lt;br /&gt;
&lt;br /&gt;
We noticed that when logging in to &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt; plex does not seem to list any data from the plex server, allow you to set up libraries, or allow logins going through this front-door. It does not seem to &amp;quot;be able to connect to this server&amp;quot; on the left side. However, going through &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html&amp;lt;/nowiki&amp;gt; it all works well.&lt;br /&gt;
&lt;br /&gt;
The work-around is this: going to&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html#!/settings/server/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Then login to plex on this page and give it a friendly name there.&amp;quot;My Amahi server&amp;quot; or similar should do.&lt;br /&gt;
&lt;br /&gt;
After that, it should show up under &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Dashboard Link Workaround ==&lt;br /&gt;
If the launch icon and link for Plex Media Server in the dashboard does not properly load the server, you may need to try a workaround.&lt;br /&gt;
&lt;br /&gt;
First, try just restarting httpd.This should hold for as long as your server is running. &lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
If that does not work, or you are restarting your server often, this longer workaround also works. &lt;br /&gt;
Start by finding your ####-plexms.conf file in /etc/httpd/conf.d/ Open this file up in a text editor like vi or nano and remove (or comment out) the following two lines: &lt;br /&gt;
&lt;br /&gt;
 ProxyPass / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 ProxyPassReverse / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 1&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Add the following three lines below the two you commented out above:&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule (.*) &amp;lt;nowiki&amp;gt;http://%{HTTP_HOST}:32400/web/&amp;lt;/nowiki&amp;gt; [R,L]&lt;br /&gt;
&lt;br /&gt;
:After completing the changes, restart httpd&lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 2&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Create a text file called &amp;quot;index.html&amp;quot; and save that file in /var/hda/web-apps/plexms/html The contents of the file is a simple redirect. It should read:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot; content=&amp;quot;0; url=&amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/hmtl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Set the file ownership permissions:&lt;br /&gt;
 chown apache:users index.html;&lt;br /&gt;
&lt;br /&gt;
The Plex Media server page should now load when you click on the icon or link in the dashboard.&lt;br /&gt;
&lt;br /&gt;
== Looking For Servers ==&lt;br /&gt;
Can logon to the app, but displays &amp;quot;Looking for Servers&amp;quot; is the top left corner of screen.&lt;br /&gt;
&lt;br /&gt;
Some users have reported that accessing the app by IP address resolves this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:apps]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109786</id>
		<title>Plex Media Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109786"/>
		<updated>2017-10-16T16:10:53Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* Server Setup v Player Login */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|backgroundcolor	= #FBB|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = Manually upgrading &amp;lt;b&amp;gt;may break the Amahi 7 or greater Plex Media Server app&amp;lt;/b&amp;gt; or your HDA.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Amahi or Plex Inc. cannot provide support to help or correct any issues resulting from this upgrade if you chose to do it.&amp;lt;/b&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Recent &amp;quot;White Page&amp;quot; Issue =&lt;br /&gt;
There is an issue in recent releases of the Plex Media Server app. If reaching the server yields a white page, please access it with this work-around link until (Plex fixes the issue): [http://hda:32400/web http://hda:32400/web].&lt;br /&gt;
&lt;br /&gt;
= Source Install =&lt;br /&gt;
&amp;lt;b&amp;gt;WARNING:&amp;lt;/b&amp;gt;  This is a user contributed tutorial.  Proceed with this guide at your own risk.  If it breaks your HDA or you need assistance, Amahi cannot provide support.&lt;br /&gt;
&lt;br /&gt;
This is a quick guide on how to install manually the PlexMediaServer (not the Amahi web app) on Amahi 7 or greater (Fedora).  Find out the latest version by checking '''&amp;lt;nowiki&amp;gt;https://plex.tv/downloads&amp;lt;/nowiki&amp;gt;''' and copy the link under the Fedora icon. Note that PlexPass users occassionally have access to preview versions of Plex that may contain additional functionality not yet released to other users.  Use the toggle to download the preview release if you have a PlexPass.&lt;br /&gt;
&lt;br /&gt;
* Install the current Plex server version from the link above, where x.x.x.x-xxxxxxx is the current version (1.2.2.2857-d34b464 at October 2017)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;64-bit&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Fedora 19 or older''&lt;br /&gt;
 sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:''Fedora 21 or newer''&lt;br /&gt;
 sudo dnf -y install plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;32-bit (Amahi 7 or older '''ONLY''')&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the service:  Next up we actually have to start Plex, the following command will do just that as well as create a symlink to always start Plex at boot.&lt;br /&gt;
 sudo systemctl enable plexmediaserver.service &amp;amp;&amp;amp; systemctl start plexmediaserver&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  &amp;lt;i&amp;gt;If you get an error with the above command while connected to the server with SSH through a terminal, it seems you have to relogin as root.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run at least once the PlexMediaServer (and do nothing, just run once), from any browser in your network enter &amp;lt;br /&amp;gt;&lt;br /&gt;
 ''&amp;lt;nowiki&amp;gt;http://localhost:32400/web/index.html#!/dashboard&amp;lt;/nowiki&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
* Stop the PlexMediaServer (preferably log in with a terminal):&lt;br /&gt;
 sudo systemctl stop plexmediaserver&lt;br /&gt;
&lt;br /&gt;
* File permissions and access:  Our first big problem (although it’s not really) is to allow Plex to access any of our files. PMS runs as it’s own user (surprisingly a user called plex), not you by default. So we need to give that user access to your files. The easiest way to do this is to add the plex user to your users group. Type the following command in a terminal:&lt;br /&gt;
 sudo gpasswd -a plex users&lt;br /&gt;
&lt;br /&gt;
* Restart the PlexMediaServer, wait 1-2 minutes and log in again to edit your libraries:&lt;br /&gt;
 sudo systemctl start plexmediaserver&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Don't forget if you are using Greyhole, that in this case you have always to use your files &amp;quot;inside&amp;quot; from the [[Mount_Shares_Locally|mounted local files]]&lt;br /&gt;
&lt;br /&gt;
* Either by auto update (done so around midnight), or if you ask manually for updating the system, Amahi will replace the original Plex Media Server package with it's own amahi-plex (webapp). In order to prevent that you have to exclude the auto-update in the Amahi repo.  Edit (as root) ''/etc/yum/yum.conf'' (Amahi 8 older) or ''/etc/dnf/dnf.conf'' (Amahi 9 or newer) and add the following at the bottom:&lt;br /&gt;
 exclude=amahi-plex&lt;br /&gt;
&lt;br /&gt;
= Use with Greyhole =&lt;br /&gt;
If you add a library section connected to a folder that is part of your drive pool and thus handled by [[Greyhole]], you should &amp;lt;b&amp;gt;NOT&amp;lt;/b&amp;gt; check the option to allow clients to &amp;lt;i&amp;gt;delete media&amp;lt;/i&amp;gt; in the Plex Media Server preferences dialog. &lt;br /&gt;
&lt;br /&gt;
If you want to enable this feature you should [[Mount_Shares_Locally|mount your shares locally]] on your HDA and point [http://www.amahi.org/apps/plex-media-server Plex Media Server] to these mount points instead. Otherwise deletes could cause orphan files in the storage pool since only the symlink would actually be deleted and not the actual file.&lt;br /&gt;
&lt;br /&gt;
= Locally Mounted Shares (Ubuntu ONLY) =&lt;br /&gt;
If you access your media files using [https://wiki.amahi.org/index.php/Mount_Shares_Locally locally mounted shares] (eg if you are a [https://wiki.amahi.org/index.php/Greyhole Greyhole] user as suggested above), you will need to change the permissions of your plex server user.  The Plex Media Server is run by a special user &amp;lt;i&amp;gt;plex&amp;lt;/i&amp;gt; who doesnt have access to the local shares by default.&lt;br /&gt;
&lt;br /&gt;
To fix, open terminal as root user and type:&lt;br /&gt;
 sudo usermod -a -G users plex&lt;br /&gt;
&lt;br /&gt;
You may need to restart Plex.  Now when you want to add directories using the web interface all your shares should be accessible.&lt;br /&gt;
&lt;br /&gt;
= Update Plex Media Server =&lt;br /&gt;
&lt;br /&gt;
* If you have installed manually by source the PlexMediaServer, it now has the ability to update itself through the settings' webpage&lt;br /&gt;
&lt;br /&gt;
* If you are using amahi-plex it will auto update itself as so as the developers push the new version into Amahi's repo. Don't try to update the amahi-plex web app although in the setting's webpage it will inform you that a new version of Plex Media Server is available. Most likely it will fail or it will break your system!&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== Server Setup v Player Login ==&lt;br /&gt;
After install the Plex server still needs to be configured and logged into a [http://www.plex.tv Plex.tv] account. Before the Plex server has been named properly, going to [//plexms.amahi.net //PlexMS.Amahi.Net] from  your LAN will bring you to a Plex.tv login then redirect you to a player-only page. To get around this, visit your [HDA's static IP]:32400/web/ &lt;br /&gt;
     example:&amp;lt;br /&amp;gt; 192.168.0.1:32400/web/ &amp;lt;br /&amp;gt; &lt;br /&gt;
This should bring you to the same log in page, but redirect you to the server setup. &lt;br /&gt;
&lt;br /&gt;
The default server name is LocalHostLocalDomain, change this to PlexMS. Now the address [//plexms.amahi.net //PlexMS.Amahi.Net] should bring you to server page (with player too).&lt;br /&gt;
&lt;br /&gt;
Also, visiting your Dynamic DNS name followed by port 32400 (example.yourhda.com:32400) will bring you to a player from anywhere on the internet. Port forwarding is required at your router's firewall.&lt;br /&gt;
&lt;br /&gt;
== Data not shown with Main page login ==&lt;br /&gt;
&lt;br /&gt;
We noticed that when logging in to &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt; plex does not seem to list any data from the plex server, allow you to set up libraries, or allow logins going through this front-door. It does not seem to &amp;quot;be able to connect to this server&amp;quot; on the left side. However, going through &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html&amp;lt;/nowiki&amp;gt; it all works well.&lt;br /&gt;
&lt;br /&gt;
The work-around is this: going to&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html#!/settings/server/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Then login to plex on this page and give it a friendly name there.&amp;quot;My Amahi server&amp;quot; or similar should do.&lt;br /&gt;
&lt;br /&gt;
After that, it should show up under &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Dashboard Link Workaround ==&lt;br /&gt;
If the launch icon and link for Plex Media Server in the dashboard does not properly load the server, you may need to try a workaround.&lt;br /&gt;
&lt;br /&gt;
First, try just restarting httpd.This should hold for as long as your server is running. &lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
If that does not work, or you are restarting your server often, this longer workaround also works. &lt;br /&gt;
Start by finding your ####-plexms.conf file in /etc/httpd/conf.d/ Open this file up in a text editor like vi or nano and remove (or comment out) the following two lines: &lt;br /&gt;
&lt;br /&gt;
 ProxyPass / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 ProxyPassReverse / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 1&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Add the following three lines below the two you commented out above:&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule (.*) &amp;lt;nowiki&amp;gt;http://%{HTTP_HOST}:32400/web/&amp;lt;/nowiki&amp;gt; [R,L]&lt;br /&gt;
&lt;br /&gt;
:After completing the changes, restart httpd&lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 2&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Create a text file called &amp;quot;index.html&amp;quot; and save that file in /var/hda/web-apps/plexms/html The contents of the file is a simple redirect. It should read:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot; content=&amp;quot;0; url=&amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/hmtl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Set the file ownership permissions:&lt;br /&gt;
 chown apache:users index.html;&lt;br /&gt;
&lt;br /&gt;
The Plex Media server page should now load when you click on the icon or link in the dashboard.&lt;br /&gt;
&lt;br /&gt;
== Looking For Servers ==&lt;br /&gt;
Can logon to the app, but displays &amp;quot;Looking for Servers&amp;quot; is the top left corner of screen.&lt;br /&gt;
&lt;br /&gt;
Some users have reported that accessing the app by IP address resolves this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:apps]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109781</id>
		<title>Plex Media Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109781"/>
		<updated>2017-10-16T16:08:07Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* Server Setup v Player Login */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|backgroundcolor	= #FBB|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = Manually upgrading &amp;lt;b&amp;gt;may break the Amahi 7 or greater Plex Media Server app&amp;lt;/b&amp;gt; or your HDA.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Amahi or Plex Inc. cannot provide support to help or correct any issues resulting from this upgrade if you chose to do it.&amp;lt;/b&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Recent &amp;quot;White Page&amp;quot; Issue =&lt;br /&gt;
There is an issue in recent releases of the Plex Media Server app. If reaching the server yields a white page, please access it with this work-around link until (Plex fixes the issue): [http://hda:32400/web http://hda:32400/web].&lt;br /&gt;
&lt;br /&gt;
= Source Install =&lt;br /&gt;
&amp;lt;b&amp;gt;WARNING:&amp;lt;/b&amp;gt;  This is a user contributed tutorial.  Proceed with this guide at your own risk.  If it breaks your HDA or you need assistance, Amahi cannot provide support.&lt;br /&gt;
&lt;br /&gt;
This is a quick guide on how to install manually the PlexMediaServer (not the Amahi web app) on Amahi 7 or greater (Fedora).  Find out the latest version by checking '''&amp;lt;nowiki&amp;gt;https://plex.tv/downloads&amp;lt;/nowiki&amp;gt;''' and copy the link under the Fedora icon. Note that PlexPass users occassionally have access to preview versions of Plex that may contain additional functionality not yet released to other users.  Use the toggle to download the preview release if you have a PlexPass.&lt;br /&gt;
&lt;br /&gt;
* Install the current Plex server version from the link above, where x.x.x.x-xxxxxxx is the current version (1.2.2.2857-d34b464 at October 2017)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;64-bit&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Fedora 19 or older''&lt;br /&gt;
 sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:''Fedora 21 or newer''&lt;br /&gt;
 sudo dnf -y install plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;32-bit (Amahi 7 or older '''ONLY''')&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the service:  Next up we actually have to start Plex, the following command will do just that as well as create a symlink to always start Plex at boot.&lt;br /&gt;
 sudo systemctl enable plexmediaserver.service &amp;amp;&amp;amp; systemctl start plexmediaserver&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  &amp;lt;i&amp;gt;If you get an error with the above command while connected to the server with SSH through a terminal, it seems you have to relogin as root.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run at least once the PlexMediaServer (and do nothing, just run once), from any browser in your network enter &amp;lt;br /&amp;gt;&lt;br /&gt;
 ''&amp;lt;nowiki&amp;gt;http://localhost:32400/web/index.html#!/dashboard&amp;lt;/nowiki&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
* Stop the PlexMediaServer (preferably log in with a terminal):&lt;br /&gt;
 sudo systemctl stop plexmediaserver&lt;br /&gt;
&lt;br /&gt;
* File permissions and access:  Our first big problem (although it’s not really) is to allow Plex to access any of our files. PMS runs as it’s own user (surprisingly a user called plex), not you by default. So we need to give that user access to your files. The easiest way to do this is to add the plex user to your users group. Type the following command in a terminal:&lt;br /&gt;
 sudo gpasswd -a plex users&lt;br /&gt;
&lt;br /&gt;
* Restart the PlexMediaServer, wait 1-2 minutes and log in again to edit your libraries:&lt;br /&gt;
 sudo systemctl start plexmediaserver&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Don't forget if you are using Greyhole, that in this case you have always to use your files &amp;quot;inside&amp;quot; from the [[Mount_Shares_Locally|mounted local files]]&lt;br /&gt;
&lt;br /&gt;
* Either by auto update (done so around midnight), or if you ask manually for updating the system, Amahi will replace the original Plex Media Server package with it's own amahi-plex (webapp). In order to prevent that you have to exclude the auto-update in the Amahi repo.  Edit (as root) ''/etc/yum/yum.conf'' (Amahi 8 older) or ''/etc/dnf/dnf.conf'' (Amahi 9 or newer) and add the following at the bottom:&lt;br /&gt;
 exclude=amahi-plex&lt;br /&gt;
&lt;br /&gt;
= Use with Greyhole =&lt;br /&gt;
If you add a library section connected to a folder that is part of your drive pool and thus handled by [[Greyhole]], you should &amp;lt;b&amp;gt;NOT&amp;lt;/b&amp;gt; check the option to allow clients to &amp;lt;i&amp;gt;delete media&amp;lt;/i&amp;gt; in the Plex Media Server preferences dialog. &lt;br /&gt;
&lt;br /&gt;
If you want to enable this feature you should [[Mount_Shares_Locally|mount your shares locally]] on your HDA and point [http://www.amahi.org/apps/plex-media-server Plex Media Server] to these mount points instead. Otherwise deletes could cause orphan files in the storage pool since only the symlink would actually be deleted and not the actual file.&lt;br /&gt;
&lt;br /&gt;
= Locally Mounted Shares (Ubuntu ONLY) =&lt;br /&gt;
If you access your media files using [https://wiki.amahi.org/index.php/Mount_Shares_Locally locally mounted shares] (eg if you are a [https://wiki.amahi.org/index.php/Greyhole Greyhole] user as suggested above), you will need to change the permissions of your plex server user.  The Plex Media Server is run by a special user &amp;lt;i&amp;gt;plex&amp;lt;/i&amp;gt; who doesnt have access to the local shares by default.&lt;br /&gt;
&lt;br /&gt;
To fix, open terminal as root user and type:&lt;br /&gt;
 sudo usermod -a -G users plex&lt;br /&gt;
&lt;br /&gt;
You may need to restart Plex.  Now when you want to add directories using the web interface all your shares should be accessible.&lt;br /&gt;
&lt;br /&gt;
= Update Plex Media Server =&lt;br /&gt;
&lt;br /&gt;
* If you have installed manually by source the PlexMediaServer, it now has the ability to update itself through the settings' webpage&lt;br /&gt;
&lt;br /&gt;
* If you are using amahi-plex it will auto update itself as so as the developers push the new version into Amahi's repo. Don't try to update the amahi-plex web app although in the setting's webpage it will inform you that a new version of Plex Media Server is available. Most likely it will fail or it will break your system!&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== Server Setup v Player Login ==&lt;br /&gt;
After install the Plex server still needs to be configured and logged into a [http://www.plex.tv Plex.tv] account. Before the Plex server has been named properly, going to plexms.amahi.net (from LAN, not internet) will bring you to a Plex.tv login then redirect you to a player-only page. To get around this, visit your [HDA's static IP]:32400/web/ &lt;br /&gt;
     example:&amp;lt;br /&amp;gt; 192.168.0.1:32400/web/ &amp;lt;br /&amp;gt; &lt;br /&gt;
This should bring you to the same log in page, but redirect you to the server setup. &lt;br /&gt;
&lt;br /&gt;
The default server name is LocalHostLocalDomain, change this to PlexMS. Now the address [//plexms.amahi.net //PlexMS.Amahi.Net] should bring you to server page (with player too).&lt;br /&gt;
&lt;br /&gt;
Also, visiting your Dynamic DNS name followed by port 32400 (example.yourhda.com:32400) will bring you to a player from anywhere on the internet. Port forwarding is required at your router's firewall.&lt;br /&gt;
&lt;br /&gt;
== Data not shown with Main page login ==&lt;br /&gt;
&lt;br /&gt;
We noticed that when logging in to &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt; plex does not seem to list any data from the plex server, allow you to set up libraries, or allow logins going through this front-door. It does not seem to &amp;quot;be able to connect to this server&amp;quot; on the left side. However, going through &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html&amp;lt;/nowiki&amp;gt; it all works well.&lt;br /&gt;
&lt;br /&gt;
The work-around is this: going to&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html#!/settings/server/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Then login to plex on this page and give it a friendly name there.&amp;quot;My Amahi server&amp;quot; or similar should do.&lt;br /&gt;
&lt;br /&gt;
After that, it should show up under &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Dashboard Link Workaround ==&lt;br /&gt;
If the launch icon and link for Plex Media Server in the dashboard does not properly load the server, you may need to try a workaround.&lt;br /&gt;
&lt;br /&gt;
First, try just restarting httpd.This should hold for as long as your server is running. &lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
If that does not work, or you are restarting your server often, this longer workaround also works. &lt;br /&gt;
Start by finding your ####-plexms.conf file in /etc/httpd/conf.d/ Open this file up in a text editor like vi or nano and remove (or comment out) the following two lines: &lt;br /&gt;
&lt;br /&gt;
 ProxyPass / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 ProxyPassReverse / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 1&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Add the following three lines below the two you commented out above:&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule (.*) &amp;lt;nowiki&amp;gt;http://%{HTTP_HOST}:32400/web/&amp;lt;/nowiki&amp;gt; [R,L]&lt;br /&gt;
&lt;br /&gt;
:After completing the changes, restart httpd&lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 2&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Create a text file called &amp;quot;index.html&amp;quot; and save that file in /var/hda/web-apps/plexms/html The contents of the file is a simple redirect. It should read:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot; content=&amp;quot;0; url=&amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/hmtl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Set the file ownership permissions:&lt;br /&gt;
 chown apache:users index.html;&lt;br /&gt;
&lt;br /&gt;
The Plex Media server page should now load when you click on the icon or link in the dashboard.&lt;br /&gt;
&lt;br /&gt;
== Looking For Servers ==&lt;br /&gt;
Can logon to the app, but displays &amp;quot;Looking for Servers&amp;quot; is the top left corner of screen.&lt;br /&gt;
&lt;br /&gt;
Some users have reported that accessing the app by IP address resolves this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:apps]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109776</id>
		<title>Plex Media Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plex_Media_Server&amp;diff=109776"/>
		<updated>2017-10-16T15:06:34Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|backgroundcolor	= #FBB|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = Manually upgrading &amp;lt;b&amp;gt;may break the Amahi 7 or greater Plex Media Server app&amp;lt;/b&amp;gt; or your HDA.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Amahi or Plex Inc. cannot provide support to help or correct any issues resulting from this upgrade if you chose to do it.&amp;lt;/b&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Recent &amp;quot;White Page&amp;quot; Issue =&lt;br /&gt;
There is an issue in recent releases of the Plex Media Server app. If reaching the server yields a white page, please access it with this work-around link until (Plex fixes the issue): [http://hda:32400/web http://hda:32400/web].&lt;br /&gt;
&lt;br /&gt;
= Source Install =&lt;br /&gt;
&amp;lt;b&amp;gt;WARNING:&amp;lt;/b&amp;gt;  This is a user contributed tutorial.  Proceed with this guide at your own risk.  If it breaks your HDA or you need assistance, Amahi cannot provide support.&lt;br /&gt;
&lt;br /&gt;
This is a quick guide on how to install manually the PlexMediaServer (not the Amahi web app) on Amahi 7 or greater (Fedora).  Find out the latest version by checking '''&amp;lt;nowiki&amp;gt;https://plex.tv/downloads&amp;lt;/nowiki&amp;gt;''' and copy the link under the Fedora icon. Note that PlexPass users occassionally have access to preview versions of Plex that may contain additional functionality not yet released to other users.  Use the toggle to download the preview release if you have a PlexPass.&lt;br /&gt;
&lt;br /&gt;
* Install the current Plex server version from the link above, where x.x.x.x-xxxxxxx is the current version (1.2.2.2857-d34b464 at October 2017)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;64-bit&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Fedora 19 or older''&lt;br /&gt;
 sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:''Fedora 21 or newer''&lt;br /&gt;
 sudo dnf -y install plexmediaserver-x.x.x.x-xxxxxxx.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;u&amp;gt;32-bit (Amahi 7 or older '''ONLY''')&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;wget &amp;lt;nowiki&amp;gt;https://downloads.plex.tv/plex-media-server/x.x.x.x-xxxxxxx/plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
sudo yum localinstall plexmediaserver-x.x.x.x-xxxxxxx.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the service:  Next up we actually have to start Plex, the following command will do just that as well as create a symlink to always start Plex at boot.&lt;br /&gt;
 sudo systemctl enable plexmediaserver.service &amp;amp;&amp;amp; systemctl start plexmediaserver&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  &amp;lt;i&amp;gt;If you get an error with the above command while connected to the server with SSH through a terminal, it seems you have to relogin as root.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run at least once the PlexMediaServer (and do nothing, just run once), from any browser in your network enter &amp;lt;br /&amp;gt;&lt;br /&gt;
 ''&amp;lt;nowiki&amp;gt;http://localhost:32400/web/index.html#!/dashboard&amp;lt;/nowiki&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
* Stop the PlexMediaServer (preferably log in with a terminal):&lt;br /&gt;
 sudo systemctl stop plexmediaserver&lt;br /&gt;
&lt;br /&gt;
* File permissions and access:  Our first big problem (although it’s not really) is to allow Plex to access any of our files. PMS runs as it’s own user (surprisingly a user called plex), not you by default. So we need to give that user access to your files. The easiest way to do this is to add the plex user to your users group. Type the following command in a terminal:&lt;br /&gt;
 sudo gpasswd -a plex users&lt;br /&gt;
&lt;br /&gt;
* Restart the PlexMediaServer, wait 1-2 minutes and log in again to edit your libraries:&lt;br /&gt;
 sudo systemctl start plexmediaserver&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Don't forget if you are using Greyhole, that in this case you have always to use your files &amp;quot;inside&amp;quot; from the [[Mount_Shares_Locally|mounted local files]]&lt;br /&gt;
&lt;br /&gt;
* Either by auto update (done so around midnight), or if you ask manually for updating the system, Amahi will replace the original Plex Media Server package with it's own amahi-plex (webapp). In order to prevent that you have to exclude the auto-update in the Amahi repo.  Edit (as root) ''/etc/yum/yum.conf'' (Amahi 8 older) or ''/etc/dnf/dnf.conf'' (Amahi 9 or newer) and add the following at the bottom:&lt;br /&gt;
 exclude=amahi-plex&lt;br /&gt;
&lt;br /&gt;
= Use with Greyhole =&lt;br /&gt;
If you add a library section connected to a folder that is part of your drive pool and thus handled by [[Greyhole]], you should &amp;lt;b&amp;gt;NOT&amp;lt;/b&amp;gt; check the option to allow clients to &amp;lt;i&amp;gt;delete media&amp;lt;/i&amp;gt; in the Plex Media Server preferences dialog. &lt;br /&gt;
&lt;br /&gt;
If you want to enable this feature you should [[Mount_Shares_Locally|mount your shares locally]] on your HDA and point [http://www.amahi.org/apps/plex-media-server Plex Media Server] to these mount points instead. Otherwise deletes could cause orphan files in the storage pool since only the symlink would actually be deleted and not the actual file.&lt;br /&gt;
&lt;br /&gt;
= Locally Mounted Shares (Ubuntu ONLY) =&lt;br /&gt;
If you access your media files using [https://wiki.amahi.org/index.php/Mount_Shares_Locally locally mounted shares] (eg if you are a [https://wiki.amahi.org/index.php/Greyhole Greyhole] user as suggested above), you will need to change the permissions of your plex server user.  The Plex Media Server is run by a special user &amp;lt;i&amp;gt;plex&amp;lt;/i&amp;gt; who doesnt have access to the local shares by default.&lt;br /&gt;
&lt;br /&gt;
To fix, open terminal as root user and type:&lt;br /&gt;
 sudo usermod -a -G users plex&lt;br /&gt;
&lt;br /&gt;
You may need to restart Plex.  Now when you want to add directories using the web interface all your shares should be accessible.&lt;br /&gt;
&lt;br /&gt;
= Update Plex Media Server =&lt;br /&gt;
&lt;br /&gt;
* If you have installed manually by source the PlexMediaServer, it now has the ability to update itself through the settings' webpage&lt;br /&gt;
&lt;br /&gt;
* If you are using amahi-plex it will auto update itself as so as the developers push the new version into Amahi's repo. Don't try to update the amahi-plex web app although in the setting's webpage it will inform you that a new version of Plex Media Server is available. Most likely it will fail or it will break your system!&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== Server Setup v Player Login ==&lt;br /&gt;
After install Plex server still needs to be configured and logged into a [[www.plex.tv Plex.tv]] account. Before the Plex server has been named properly, going to plexms.amahi.net (from LAN, not internet) will bring you to a Plex.tv login then redirect you to a player-only page. To get around this, visit your [HDA's static IP]:32400/web/ . This should bring you to the same log in page, but redirect you to the server setup. Default Server name is LocalHostLocalDomain, change this to PlexMS. Now the address [[plexms.amahi.net]] should bring you to server page (with player too).&lt;br /&gt;
&lt;br /&gt;
Also, visiting your Dynamic DNS name followed by port 32400 (example.yourhda.com:32400) will bring you to a player from anywhere on the internet. Port forwarding is required at your router's firewall. &lt;br /&gt;
&lt;br /&gt;
== Data not shown with Main page login ==&lt;br /&gt;
&lt;br /&gt;
We noticed that when logging in to &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt; plex does not seem to list any data from the plex server, allow you to set up libraries, or allow logins going through this front-door. It does not seem to &amp;quot;be able to connect to this server&amp;quot; on the left side. However, going through &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html&amp;lt;/nowiki&amp;gt; it all works well.&lt;br /&gt;
&lt;br /&gt;
The work-around is this: going to&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://hda:32400/web/index.html#!/settings/server/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Then login to plex on this page and give it a friendly name there.&amp;quot;My Amahi server&amp;quot; or similar should do.&lt;br /&gt;
&lt;br /&gt;
After that, it should show up under &amp;lt;nowiki&amp;gt;http://plexms/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Dashboard Link Workaround ==&lt;br /&gt;
If the launch icon and link for Plex Media Server in the dashboard does not properly load the server, you may need to try a workaround.&lt;br /&gt;
&lt;br /&gt;
First, try just restarting httpd.This should hold for as long as your server is running. &lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
If that does not work, or you are restarting your server often, this longer workaround also works. &lt;br /&gt;
Start by finding your ####-plexms.conf file in /etc/httpd/conf.d/ Open this file up in a text editor like vi or nano and remove (or comment out) the following two lines: &lt;br /&gt;
&lt;br /&gt;
 ProxyPass / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 ProxyPassReverse / &amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 1&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Add the following three lines below the two you commented out above:&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{SERVER_PORT} 80&lt;br /&gt;
 RewriteRule (.*) &amp;lt;nowiki&amp;gt;http://%{HTTP_HOST}:32400/web/&amp;lt;/nowiki&amp;gt; [R,L]&lt;br /&gt;
&lt;br /&gt;
:After completing the changes, restart httpd&lt;br /&gt;
 systemctl restart httpd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Option 2&amp;lt;/u&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
:Create a text file called &amp;quot;index.html&amp;quot; and save that file in /var/hda/web-apps/plexms/html The contents of the file is a simple redirect. It should read:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot; content=&amp;quot;0; url=&amp;lt;nowiki&amp;gt;http://hda:32400/web/&amp;lt;/nowiki&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/hmtl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Set the file ownership permissions:&lt;br /&gt;
 chown apache:users index.html;&lt;br /&gt;
&lt;br /&gt;
The Plex Media server page should now load when you click on the icon or link in the dashboard.&lt;br /&gt;
&lt;br /&gt;
== Looking For Servers ==&lt;br /&gt;
Can logon to the app, but displays &amp;quot;Looking for Servers&amp;quot; is the top left corner of screen.&lt;br /&gt;
&lt;br /&gt;
Some users have reported that accessing the app by IP address resolves this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:apps]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109771</id>
		<title>VPNAndroid</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109771"/>
		<updated>2017-10-16T14:15:50Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* OpenVPN for Android Client Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsUpdate}}&lt;br /&gt;
&amp;lt;!--Tested with Nexus 6 on 5.1.1 working however instructions need bringing upto date--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=OpenVPN for Android Client Configuration=&lt;br /&gt;
This wiki has been updated for use with OpenVPN for Android v0.6.73 without Android Root access. Older versions of the wiki are maintained below. &lt;br /&gt;
&lt;br /&gt;
It is presumed that you have installed the [http://www.amahi.org/apps/openvpn OpenVPN] server app on your HDA and [https://wiki.amahi.org/index.php/OpenVPN configured] it properly.&lt;br /&gt;
&lt;br /&gt;
# Download the (3) certificate files.  They can be found on the [[OpenVPN Client Certificates]] download page. &lt;br /&gt;
##If downloading from link above directly to Android Device, Google translate may ask if you wish to translate the document, DO NOT allow any translation to occur.&lt;br /&gt;
##If downloading to a computer first, the key is often downloaded as xxx.key.txt. You must remove the .txt extension.&lt;br /&gt;
# Launch the OpenVPN app, select Add Profile (+), give it a name and it will bring you to the Basic configuration tab &amp;lt;br /&amp;gt;[[File:NoVPNDefined.png | 180px]][[File:AddProfile.png | 180px]]&lt;br /&gt;
# In the Basic tab, Select &amp;quot;User/PW + Certificates&amp;quot; from the pull down menu of Types &amp;lt;br /&amp;gt;[[File:TypeAndCerts.png | 180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device &amp;lt;br /&amp;gt;[[File:CertsAdded.png | 180px]]&lt;br /&gt;
# Username refers to a configured User of the Amahi server you are trying to connect to. Leave password field empty to be prompted to enter a password every time. &lt;br /&gt;
#Swipe left or right to change tabs in the Configuration page or select them directly from the tab bar.&lt;br /&gt;
#From the Server List tab, enter your server Dynamic DNS name found on the [http://www.amahi.org Control Panel] - xxx.yourhda.com &amp;lt;br /&amp;gt;[[File:serverDNSname.png | 180px]]&lt;br /&gt;
#From the Authentication/Encryption tab, select Remote Certificate Subject and look closely for the pull down arrow in the open window, select RDN Prefix &amp;lt;br /&amp;gt;[[File:SubjectPulldown.png | 180px]]&lt;br /&gt;
#In the Remote Certificate Subject box change the data field to read Amahi-Server-OpenVPN &amp;lt;br /&amp;gt;[[File:HostnameSubject.png | 180px]]&lt;br /&gt;
#Configuration is complete, hit the android device's back button to return to the OpenVPN main screen. This will show your new profile, and if you are NOT connected to your local network (turn off Wi-Fi and use cellular data), you will be able to select your profile and it will connect. A secure connection will be shown as a key symbol next to the cellular signal strength bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android - HTC Android G1/Dream =&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  [https://play.google.com/store/apps/details?id=de.blinkt.openvpn&amp;amp;hl=en OpenVPN for Android] works with the certificates below for ICS 4.0 or greater without rooting your device.  There is no additional configuration required to the HDA or your device (Tested on HTC One X and Samsung Tab 2 also on HTC One V). For Sony Xperia ZR (and I suspect most other Android devices) the following was necessary:&lt;br /&gt;
&lt;br /&gt;
# Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page.&lt;br /&gt;
# Launch the OpenVPN app, Add Profile and go to the Basic configuration page&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-1-AddProfile.png|180px]] [[File:OpenVPNAndroid-2-ChooseBasic.png|180px]]&lt;br /&gt;
# Enter your server address - the Dynamic DNS name works for me, I guess the fixed IP address would as well&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-3-EnterServerAddress.png|180px]]&lt;br /&gt;
# Select &amp;quot;User/PW + Certificates&amp;quot; from the list of Types (the certificates alone are not enough)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-4-SelectType.png|180px]] [[File:OpenVPNAndroid-5-SelectedType.png|180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device; note that the app will disable the file type it doesn't think will work so beware if you rename these files&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-6-SelectCertKey.png|180px]]&lt;br /&gt;
# Enter your username - a general user with access to the shares and apps on your HDA&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-7-EnterUsername.png|180px]]&lt;br /&gt;
# Go back to the list of profiles and click on this new profile to start connecting to your HDA: you will be alerted to the fact that OpenVPN for Android can intercept network traffic and asked to trust the application (ensure that your device is not already connected to the same network - test from a different location or turn of wifi and use your mobile data connection)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-8-TrustApplication.png|180px]]&lt;br /&gt;
# Enter your password - you can decide whether or not the application should save the password&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-9-EnterPassword.png|180px]]&lt;br /&gt;
# Watch for connection messages to go past as Android notifications and you will also see the OpenVPN log&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-A-Connecting.png|180px]]&lt;br /&gt;
# Once you get a successful connection you will see a key in the notification bar; selecting this notification will show the status of the connection ind give you some options for working with it&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-B-Connected.png|180px]]&lt;br /&gt;
# You should now be able to open your favourite app used to access files on your HDA, be that the Amahi app, Plex client, OwnCloud, etc. (note that some of these apps may need to be switched between Local and Remote connection type)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This guide is written for a HTC Android G1/Dream phone rooted with Cyanongenmod 5.&lt;br /&gt;
&lt;br /&gt;
[update March 24, 2011: Tested and works with Cyanogenmod 7.0, thus any CM7 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update August 8, 2011: Tested and works with Cyanogenmod 7.1, thus any CM 7.1 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update September 9, 2011: Tested and works with MIUI 1.9.2 on a HTC Droid Incredible 2, should work on any MIUI ROM]&lt;br /&gt;
&lt;br /&gt;
[update 22 March 2013: Tested and works with Android 4.2.2 on Nexus Devices]&lt;br /&gt;
&lt;br /&gt;
In your Linux-based OS computer..&lt;br /&gt;
&lt;br /&gt;
Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page. Save them in your /home/username/openvpn folder (where ''username'' is your main users name).&lt;br /&gt;
&lt;br /&gt;
Then, from the terminal run&lt;br /&gt;
&lt;br /&gt;
 cd /home/username/openvpn &lt;br /&gt;
 openssl pkcs12 -export -in Amahi-Client-OpenVPN.crt -inkey Amahi-Client-OpenVPN.key -certfile ca.crt -name Amahi -out certs.p12 &lt;br /&gt;
&lt;br /&gt;
You will be asked for a export password for the certs.p12 file - enter amahi twice.&lt;br /&gt;
&lt;br /&gt;
To automate this process, paste the code from [http://wiki.amahi.org/images/f/f9/Automate.script automate.script] in your favorite editor.  Save it &amp;amp; run it with &lt;br /&gt;
 sh &amp;lt;filename&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
You should now have a certs.p12 file in your /home/username/openvpn folder, copy this certs.p12 file to the root of your sdcard on the Android phone.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Location &amp;amp; Security -&amp;gt; Install from SD card&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show you certs.p12, select this and enter the password amahi, after it has extracted the certificates, you will be asked to name the certificate, enter Amahi.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Wireless &amp;amp; networks -&amp;gt; VPN settings -&amp;gt; Add VPN -&amp;gt; Add OpenVPN VPN&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VPN name = Amahi&lt;br /&gt;
&lt;br /&gt;
Set VPN server = yourHDAnickname.yourhda.com&lt;br /&gt;
&lt;br /&gt;
User authentication = Yes&lt;br /&gt;
&lt;br /&gt;
Set CA certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Set user certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Advanced -&amp;gt; LZO compression = Yes&lt;br /&gt;
&lt;br /&gt;
Back&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
You should now see an Amahi entry, click on this to connect. It may ask you for the certificate access password. Then it may ask for your username and password that you use to loginon your HDA. You should see that you are connected, enjoy your VPN connection to your HDA server.&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android 2.2 - DROID X (Verizon Wireless) =&lt;br /&gt;
Contact me in the forums if you need help setting this up.  If you have a later version of Android such as Gingerbread (Android 2.3) then you can't use this tutorial for setting up openvpn.  You can however use the openvpn configurations if your phone is already set up with openvpn.&lt;br /&gt;
&lt;br /&gt;
[[User:Sag47|Sag47]] 00:51, 5 April 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
This tutorial is not for the feeble minded.  I tried writing it as best as I could to keep it a &amp;quot;How to VPN&amp;quot; article and not a &amp;quot;How to root my droid&amp;quot; topic.&lt;br /&gt;
&lt;br /&gt;
The default Droid X from Verizon does not come with openvpn installed.  It's a little annoying and you have to be a little tech savvy to get it working.  I am outlining instructions here for how I connected my Droid X to my Amahi HDA.&lt;br /&gt;
&lt;br /&gt;
Some prerequisites:&lt;br /&gt;
* Your phone must be rooted.&lt;br /&gt;
* I am running Android 2.2 so these instructions may become outdated.  I also recommend you be running Android 2.2 Froyo on your Droid X&lt;br /&gt;
* You should have adb installed (or running a more advanced bash terminal on Android like Better Terminal Emulator Pro app)&lt;br /&gt;
* Install the following apps&lt;br /&gt;
** OpenVPN Installer&lt;br /&gt;
** OpenVPN Settings&lt;br /&gt;
&lt;br /&gt;
Create a directory on your SDCARD called openvpn or if in the terminal /sdcard/openvpn.&lt;br /&gt;
&lt;br /&gt;
Follow the general [[VPNLinux]] instructions but place all of the configurations and certificates in the openvpn folder on your sdcard.&lt;br /&gt;
&lt;br /&gt;
Install openvpn using the &amp;quot;OpenVPN Installer&amp;quot; app and select /system/bin each time the app asks for a location to place a binary.&lt;br /&gt;
&lt;br /&gt;
You can run one of the following commands to grab the mount point of your system folder.  (Run commands through adb or in a terminal on your Droid)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    df | grep system&lt;br /&gt;
    cat /proc/mounts | grep system&lt;br /&gt;
    cat /proc/mounts&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My device is mounted on /dev/block/mmcblk1p21 so that is the device I am using in this tutorial.  Download tun_alt.ko as recommended in [http://forum.xda-developers.com/showpost.php?p=11109394&amp;amp;postcount=25 this post].  Copy it to the root of your sdcard.&lt;br /&gt;
&lt;br /&gt;
Now we install the kernel module.  Run the following command sequence (through adb or a terminal on your Droid).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    su&lt;br /&gt;
    mount -o rw,remount /dev/block/mmcblk1p21 /system&lt;br /&gt;
    mv /sdcard/tun_alt.ko /system/lib/modules/tun.ko&lt;br /&gt;
    cd /system/lib/modules&lt;br /&gt;
    chown root\: tun.ko&lt;br /&gt;
    chmod 644 tun.ko&lt;br /&gt;
    &lt;br /&gt;
    #now lets test it&lt;br /&gt;
    insmod /system/lib/modules/tun.ko&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you don't see any output and the &amp;quot;OpenVPN Installer&amp;quot; app successfully installed openvpn then you should be set up.  &lt;br /&gt;
&lt;br /&gt;
Double check your configuration in /sdcard/openvpn.  Once you know everything is good then run the &amp;quot;OpenVPN Settings&amp;quot; app.  It should automatically detect your configuration.&lt;br /&gt;
&lt;br /&gt;
Enable OpenVPN.  Select your config to turn on the tunnel.  Then you should see a prompt in your notification status prompting for a password.  My Droid X connected to the network after that.&lt;br /&gt;
&lt;br /&gt;
There's one final step.  If you remember you manually ran the insmod /system/lib/modules/tun.ko command but when you reboot your phone the module will no longer be loaded.&lt;br /&gt;
&lt;br /&gt;
Go into the settings for the &amp;quot;OpenVPN Settings&amp;quot; app and modify the TUN module settings.&lt;br /&gt;
* Set &amp;quot;Load module using&amp;quot; to insmod.  &lt;br /&gt;
* Set &amp;quot;Path to tun module&amp;quot; to /system/lib/modules/tun.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reboot your phone and test the configurations.  It should be a one click process within the &amp;quot;OpenVPN Settings&amp;quot; app.&lt;br /&gt;
&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109766</id>
		<title>VPNAndroid</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109766"/>
		<updated>2017-10-16T14:11:47Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* OpenVPN for Android Client Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsUpdate}}&lt;br /&gt;
&amp;lt;!--Tested with Nexus 6 on 5.1.1 working however instructions need bringing upto date--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=OpenVPN for Android Client Configuration=&lt;br /&gt;
This wiki has been updated for use with OpenVPN for Android v0.6.73 without Android Root access. Older versions of the wiki are maintained below. &lt;br /&gt;
&lt;br /&gt;
It is presumed that you have installed the [http://www.amahi.org/apps/openvpn OpenVPN] server app on your HDA and [https://wiki.amahi.org/index.php/OpenVPN configured] it properly.&lt;br /&gt;
&lt;br /&gt;
# Download the (3) certificate files.  They can be found on the [[OpenVPN Client Certificates]] download page. &lt;br /&gt;
##If downloading from link above directly to Android Device, Google translate may ask if you wish to translate the document, DO NOT allow any translation to occur.&lt;br /&gt;
##If downloading to a computer first, the key is often downloaded as xxx.key.txt. You must remove the .txt extension.&lt;br /&gt;
# Launch the OpenVPN app, select Add Profile (+), give it a name and it will bring you to the Basic configuration tab &amp;lt;br /&amp;gt;[[File:NoVPNDefined.png | 180px]][[File:AddProfile.png | 180px]]&lt;br /&gt;
# In the Basic tab, Select &amp;quot;User/PW + Certificates&amp;quot; from the pull down menu of Types &amp;lt;br /&amp;gt;[[File:TypeAndCerts.png | 180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device &amp;lt;br /&amp;gt;[[File:CertsAdded.png | 180px]]&lt;br /&gt;
#Swipe left or right to change tabs in the Configuration page or select them directly from the tab bar.&lt;br /&gt;
#From the Server List tab, enter your server Dynamic DNS name found on the [http://www.amahi.org Control Panel] - xxx.yourhda.com &amp;lt;br /&amp;gt;[[File:serverDNSname.png | 180px]]&lt;br /&gt;
#From the Authentication/Encryption tab, select Remote Certificate Subject and look closely for the pull down arrow in the open window, select RDN Prefix &amp;lt;br /&amp;gt;[[File:SubjectPulldown.png | 180px]]&lt;br /&gt;
#In the Remote Certificate Subject box change the data field to read Amahi-Server-OpenVPN &amp;lt;br /&amp;gt;[[File:HostnameSubject.png | 180px]]&lt;br /&gt;
#Configuration is complete, hit the android device's back button to return to the OpenVPN main screen. This will show your new profile, and if you are NOT connected to your local network (turn off Wi-Fi and use cellular data), you will be able to select your profile and it will connect. A secure connection will be shown as a key symbol next to the cellular signal strength bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android - HTC Android G1/Dream =&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  [https://play.google.com/store/apps/details?id=de.blinkt.openvpn&amp;amp;hl=en OpenVPN for Android] works with the certificates below for ICS 4.0 or greater without rooting your device.  There is no additional configuration required to the HDA or your device (Tested on HTC One X and Samsung Tab 2 also on HTC One V). For Sony Xperia ZR (and I suspect most other Android devices) the following was necessary:&lt;br /&gt;
&lt;br /&gt;
# Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page.&lt;br /&gt;
# Launch the OpenVPN app, Add Profile and go to the Basic configuration page&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-1-AddProfile.png|180px]] [[File:OpenVPNAndroid-2-ChooseBasic.png|180px]]&lt;br /&gt;
# Enter your server address - the Dynamic DNS name works for me, I guess the fixed IP address would as well&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-3-EnterServerAddress.png|180px]]&lt;br /&gt;
# Select &amp;quot;User/PW + Certificates&amp;quot; from the list of Types (the certificates alone are not enough)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-4-SelectType.png|180px]] [[File:OpenVPNAndroid-5-SelectedType.png|180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device; note that the app will disable the file type it doesn't think will work so beware if you rename these files&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-6-SelectCertKey.png|180px]]&lt;br /&gt;
# Enter your username - a general user with access to the shares and apps on your HDA&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-7-EnterUsername.png|180px]]&lt;br /&gt;
# Go back to the list of profiles and click on this new profile to start connecting to your HDA: you will be alerted to the fact that OpenVPN for Android can intercept network traffic and asked to trust the application (ensure that your device is not already connected to the same network - test from a different location or turn of wifi and use your mobile data connection)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-8-TrustApplication.png|180px]]&lt;br /&gt;
# Enter your password - you can decide whether or not the application should save the password&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-9-EnterPassword.png|180px]]&lt;br /&gt;
# Watch for connection messages to go past as Android notifications and you will also see the OpenVPN log&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-A-Connecting.png|180px]]&lt;br /&gt;
# Once you get a successful connection you will see a key in the notification bar; selecting this notification will show the status of the connection ind give you some options for working with it&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-B-Connected.png|180px]]&lt;br /&gt;
# You should now be able to open your favourite app used to access files on your HDA, be that the Amahi app, Plex client, OwnCloud, etc. (note that some of these apps may need to be switched between Local and Remote connection type)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This guide is written for a HTC Android G1/Dream phone rooted with Cyanongenmod 5.&lt;br /&gt;
&lt;br /&gt;
[update March 24, 2011: Tested and works with Cyanogenmod 7.0, thus any CM7 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update August 8, 2011: Tested and works with Cyanogenmod 7.1, thus any CM 7.1 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update September 9, 2011: Tested and works with MIUI 1.9.2 on a HTC Droid Incredible 2, should work on any MIUI ROM]&lt;br /&gt;
&lt;br /&gt;
[update 22 March 2013: Tested and works with Android 4.2.2 on Nexus Devices]&lt;br /&gt;
&lt;br /&gt;
In your Linux-based OS computer..&lt;br /&gt;
&lt;br /&gt;
Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page. Save them in your /home/username/openvpn folder (where ''username'' is your main users name).&lt;br /&gt;
&lt;br /&gt;
Then, from the terminal run&lt;br /&gt;
&lt;br /&gt;
 cd /home/username/openvpn &lt;br /&gt;
 openssl pkcs12 -export -in Amahi-Client-OpenVPN.crt -inkey Amahi-Client-OpenVPN.key -certfile ca.crt -name Amahi -out certs.p12 &lt;br /&gt;
&lt;br /&gt;
You will be asked for a export password for the certs.p12 file - enter amahi twice.&lt;br /&gt;
&lt;br /&gt;
To automate this process, paste the code from [http://wiki.amahi.org/images/f/f9/Automate.script automate.script] in your favorite editor.  Save it &amp;amp; run it with &lt;br /&gt;
 sh &amp;lt;filename&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
You should now have a certs.p12 file in your /home/username/openvpn folder, copy this certs.p12 file to the root of your sdcard on the Android phone.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Location &amp;amp; Security -&amp;gt; Install from SD card&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show you certs.p12, select this and enter the password amahi, after it has extracted the certificates, you will be asked to name the certificate, enter Amahi.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Wireless &amp;amp; networks -&amp;gt; VPN settings -&amp;gt; Add VPN -&amp;gt; Add OpenVPN VPN&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VPN name = Amahi&lt;br /&gt;
&lt;br /&gt;
Set VPN server = yourHDAnickname.yourhda.com&lt;br /&gt;
&lt;br /&gt;
User authentication = Yes&lt;br /&gt;
&lt;br /&gt;
Set CA certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Set user certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Advanced -&amp;gt; LZO compression = Yes&lt;br /&gt;
&lt;br /&gt;
Back&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
You should now see an Amahi entry, click on this to connect. It may ask you for the certificate access password. Then it may ask for your username and password that you use to loginon your HDA. You should see that you are connected, enjoy your VPN connection to your HDA server.&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android 2.2 - DROID X (Verizon Wireless) =&lt;br /&gt;
Contact me in the forums if you need help setting this up.  If you have a later version of Android such as Gingerbread (Android 2.3) then you can't use this tutorial for setting up openvpn.  You can however use the openvpn configurations if your phone is already set up with openvpn.&lt;br /&gt;
&lt;br /&gt;
[[User:Sag47|Sag47]] 00:51, 5 April 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
This tutorial is not for the feeble minded.  I tried writing it as best as I could to keep it a &amp;quot;How to VPN&amp;quot; article and not a &amp;quot;How to root my droid&amp;quot; topic.&lt;br /&gt;
&lt;br /&gt;
The default Droid X from Verizon does not come with openvpn installed.  It's a little annoying and you have to be a little tech savvy to get it working.  I am outlining instructions here for how I connected my Droid X to my Amahi HDA.&lt;br /&gt;
&lt;br /&gt;
Some prerequisites:&lt;br /&gt;
* Your phone must be rooted.&lt;br /&gt;
* I am running Android 2.2 so these instructions may become outdated.  I also recommend you be running Android 2.2 Froyo on your Droid X&lt;br /&gt;
* You should have adb installed (or running a more advanced bash terminal on Android like Better Terminal Emulator Pro app)&lt;br /&gt;
* Install the following apps&lt;br /&gt;
** OpenVPN Installer&lt;br /&gt;
** OpenVPN Settings&lt;br /&gt;
&lt;br /&gt;
Create a directory on your SDCARD called openvpn or if in the terminal /sdcard/openvpn.&lt;br /&gt;
&lt;br /&gt;
Follow the general [[VPNLinux]] instructions but place all of the configurations and certificates in the openvpn folder on your sdcard.&lt;br /&gt;
&lt;br /&gt;
Install openvpn using the &amp;quot;OpenVPN Installer&amp;quot; app and select /system/bin each time the app asks for a location to place a binary.&lt;br /&gt;
&lt;br /&gt;
You can run one of the following commands to grab the mount point of your system folder.  (Run commands through adb or in a terminal on your Droid)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    df | grep system&lt;br /&gt;
    cat /proc/mounts | grep system&lt;br /&gt;
    cat /proc/mounts&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My device is mounted on /dev/block/mmcblk1p21 so that is the device I am using in this tutorial.  Download tun_alt.ko as recommended in [http://forum.xda-developers.com/showpost.php?p=11109394&amp;amp;postcount=25 this post].  Copy it to the root of your sdcard.&lt;br /&gt;
&lt;br /&gt;
Now we install the kernel module.  Run the following command sequence (through adb or a terminal on your Droid).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    su&lt;br /&gt;
    mount -o rw,remount /dev/block/mmcblk1p21 /system&lt;br /&gt;
    mv /sdcard/tun_alt.ko /system/lib/modules/tun.ko&lt;br /&gt;
    cd /system/lib/modules&lt;br /&gt;
    chown root\: tun.ko&lt;br /&gt;
    chmod 644 tun.ko&lt;br /&gt;
    &lt;br /&gt;
    #now lets test it&lt;br /&gt;
    insmod /system/lib/modules/tun.ko&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you don't see any output and the &amp;quot;OpenVPN Installer&amp;quot; app successfully installed openvpn then you should be set up.  &lt;br /&gt;
&lt;br /&gt;
Double check your configuration in /sdcard/openvpn.  Once you know everything is good then run the &amp;quot;OpenVPN Settings&amp;quot; app.  It should automatically detect your configuration.&lt;br /&gt;
&lt;br /&gt;
Enable OpenVPN.  Select your config to turn on the tunnel.  Then you should see a prompt in your notification status prompting for a password.  My Droid X connected to the network after that.&lt;br /&gt;
&lt;br /&gt;
There's one final step.  If you remember you manually ran the insmod /system/lib/modules/tun.ko command but when you reboot your phone the module will no longer be loaded.&lt;br /&gt;
&lt;br /&gt;
Go into the settings for the &amp;quot;OpenVPN Settings&amp;quot; app and modify the TUN module settings.&lt;br /&gt;
* Set &amp;quot;Load module using&amp;quot; to insmod.  &lt;br /&gt;
* Set &amp;quot;Path to tun module&amp;quot; to /system/lib/modules/tun.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reboot your phone and test the configurations.  It should be a one click process within the &amp;quot;OpenVPN Settings&amp;quot; app.&lt;br /&gt;
&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:TypeAndCerts.png&amp;diff=109761</id>
		<title>File:TypeAndCerts.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:TypeAndCerts.png&amp;diff=109761"/>
		<updated>2017-10-16T14:09:47Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:SubjectPulldown.png&amp;diff=109756</id>
		<title>File:SubjectPulldown.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:SubjectPulldown.png&amp;diff=109756"/>
		<updated>2017-10-16T14:09:31Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:ServerDNSname.png&amp;diff=109751</id>
		<title>File:ServerDNSname.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:ServerDNSname.png&amp;diff=109751"/>
		<updated>2017-10-16T14:09:15Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:NoVPNDefined.png&amp;diff=109746</id>
		<title>File:NoVPNDefined.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:NoVPNDefined.png&amp;diff=109746"/>
		<updated>2017-10-16T14:08:54Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:HostnameSubject.png&amp;diff=109741</id>
		<title>File:HostnameSubject.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:HostnameSubject.png&amp;diff=109741"/>
		<updated>2017-10-16T14:08:34Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:CertsAdded.png&amp;diff=109736</id>
		<title>File:CertsAdded.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:CertsAdded.png&amp;diff=109736"/>
		<updated>2017-10-16T14:07:48Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android Certificates configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android Certificates configuration&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=File:AddProfile.png&amp;diff=109731</id>
		<title>File:AddProfile.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=File:AddProfile.png&amp;diff=109731"/>
		<updated>2017-10-16T14:07:04Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: OpenVPN Android Add Profile screen&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVPN Android Add Profile screen&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109726</id>
		<title>VPNAndroid</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=109726"/>
		<updated>2017-10-16T14:04:22Z</updated>

		<summary type="html">&lt;p&gt;Beaker2382: /* VPN Client - Android  */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsUpdate}}&lt;br /&gt;
&amp;lt;!--Tested with Nexus 6 on 5.1.1 working however instructions need bringing upto date--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=OpenVPN for Android Client Configuration=&lt;br /&gt;
This wiki has been updated for use with OpenVPN for Android v0.6.73 without Android Root access. Older versions of the wiki are maintained below. &lt;br /&gt;
&lt;br /&gt;
It is presumed that you have installed the [http://www.amahi.org/apps/openvpn OpenVPN] server app on your HDA and [https://wiki.amahi.org/index.php/OpenVPN configured] it properly.&lt;br /&gt;
&lt;br /&gt;
# Download the (3) certificate files.  They can be found on the [[OpenVPN Client Certificates]] download page. &lt;br /&gt;
##If downloading from link above directly to Android Device, Google translate may ask if you wish to translate the document, DO NOT allow any translation to occur.&lt;br /&gt;
##If downloading to a computer first, the key is often downloaded as xxx.key.txt. You must remove the .txt extension.&lt;br /&gt;
# Launch the OpenVPN app, select Add Profile (+), give it a name and it will bring you to the Basic configuration tab &amp;lt;br /&amp;gt;[[File:NoVPNDefined.png]][[File:AddProfile.png]]&lt;br /&gt;
# In the Basic tab, Select &amp;quot;User/PW + Certificates&amp;quot; from the pull down menu of Types &amp;lt;br /&amp;gt;[[File:TypeAndCerts.png]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device &amp;lt;br /&amp;gt;[[File:CertsAdded.png]]&lt;br /&gt;
#Swipe left or right to change tabs in the Configuration page or select them directly from the tab bar.&lt;br /&gt;
#From the Server List tab, enter your server Dynamic DNS name found on the [http://www.amahi.org Control Panel] - xxx.yourhda.com &amp;lt;br /&amp;gt;[[File:serverDNSname.png]]&lt;br /&gt;
#From the Authentication/Encryption tab, select Remote Certificate Subject and look closely for the pull down arrow in the open window, select RDN Prefix &amp;lt;br /&amp;gt;[[File:SubjectPulldown.png]]&lt;br /&gt;
#In the Remote Certificate Subject box change the data field to read Amahi-Server-OpenVPN &amp;lt;br /&amp;gt;[[File:HostnameSubject.png]]&lt;br /&gt;
#Configuration is complete, hit the android device's back button to return to the OpenVPN main screen. This will show your new profile, and if you are NOT connected to your local network (turn off Wi-Fi and use cellular data), you will be able to select your profile and it will connect. A secure connection will be shown as a key symbol next to the cellular signal strength bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= VPN Client - Android - HTC Android G1/Dream =&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  [https://play.google.com/store/apps/details?id=de.blinkt.openvpn&amp;amp;hl=en OpenVPN for Android] works with the certificates below for ICS 4.0 or greater without rooting your device.  There is no additional configuration required to the HDA or your device (Tested on HTC One X and Samsung Tab 2 also on HTC One V). For Sony Xperia ZR (and I suspect most other Android devices) the following was necessary:&lt;br /&gt;
&lt;br /&gt;
# Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page.&lt;br /&gt;
# Launch the OpenVPN app, Add Profile and go to the Basic configuration page&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-1-AddProfile.png|180px]] [[File:OpenVPNAndroid-2-ChooseBasic.png|180px]]&lt;br /&gt;
# Enter your server address - the Dynamic DNS name works for me, I guess the fixed IP address would as well&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-3-EnterServerAddress.png|180px]]&lt;br /&gt;
# Select &amp;quot;User/PW + Certificates&amp;quot; from the list of Types (the certificates alone are not enough)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-4-SelectType.png|180px]] [[File:OpenVPNAndroid-5-SelectedType.png|180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device; note that the app will disable the file type it doesn't think will work so beware if you rename these files&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-6-SelectCertKey.png|180px]]&lt;br /&gt;
# Enter your username - a general user with access to the shares and apps on your HDA&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-7-EnterUsername.png|180px]]&lt;br /&gt;
# Go back to the list of profiles and click on this new profile to start connecting to your HDA: you will be alerted to the fact that OpenVPN for Android can intercept network traffic and asked to trust the application (ensure that your device is not already connected to the same network - test from a different location or turn of wifi and use your mobile data connection)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-8-TrustApplication.png|180px]]&lt;br /&gt;
# Enter your password - you can decide whether or not the application should save the password&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-9-EnterPassword.png|180px]]&lt;br /&gt;
# Watch for connection messages to go past as Android notifications and you will also see the OpenVPN log&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-A-Connecting.png|180px]]&lt;br /&gt;
# Once you get a successful connection you will see a key in the notification bar; selecting this notification will show the status of the connection ind give you some options for working with it&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-B-Connected.png|180px]]&lt;br /&gt;
# You should now be able to open your favourite app used to access files on your HDA, be that the Amahi app, Plex client, OwnCloud, etc. (note that some of these apps may need to be switched between Local and Remote connection type)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This guide is written for a HTC Android G1/Dream phone rooted with Cyanongenmod 5.&lt;br /&gt;
&lt;br /&gt;
[update March 24, 2011: Tested and works with Cyanogenmod 7.0, thus any CM7 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update August 8, 2011: Tested and works with Cyanogenmod 7.1, thus any CM 7.1 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update September 9, 2011: Tested and works with MIUI 1.9.2 on a HTC Droid Incredible 2, should work on any MIUI ROM]&lt;br /&gt;
&lt;br /&gt;
[update 22 March 2013: Tested and works with Android 4.2.2 on Nexus Devices]&lt;br /&gt;
&lt;br /&gt;
In your Linux-based OS computer..&lt;br /&gt;
&lt;br /&gt;
Download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page. Save them in your /home/username/openvpn folder (where ''username'' is your main users name).&lt;br /&gt;
&lt;br /&gt;
Then, from the terminal run&lt;br /&gt;
&lt;br /&gt;
 cd /home/username/openvpn &lt;br /&gt;
 openssl pkcs12 -export -in Amahi-Client-OpenVPN.crt -inkey Amahi-Client-OpenVPN.key -certfile ca.crt -name Amahi -out certs.p12 &lt;br /&gt;
&lt;br /&gt;
You will be asked for a export password for the certs.p12 file - enter amahi twice.&lt;br /&gt;
&lt;br /&gt;
To automate this process, paste the code from [http://wiki.amahi.org/images/f/f9/Automate.script automate.script] in your favorite editor.  Save it &amp;amp; run it with &lt;br /&gt;
 sh &amp;lt;filename&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
You should now have a certs.p12 file in your /home/username/openvpn folder, copy this certs.p12 file to the root of your sdcard on the Android phone.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Location &amp;amp; Security -&amp;gt; Install from SD card&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show you certs.p12, select this and enter the password amahi, after it has extracted the certificates, you will be asked to name the certificate, enter Amahi.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Wireless &amp;amp; networks -&amp;gt; VPN settings -&amp;gt; Add VPN -&amp;gt; Add OpenVPN VPN&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VPN name = Amahi&lt;br /&gt;
&lt;br /&gt;
Set VPN server = yourHDAnickname.yourhda.com&lt;br /&gt;
&lt;br /&gt;
User authentication = Yes&lt;br /&gt;
&lt;br /&gt;
Set CA certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Set user certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Advanced -&amp;gt; LZO compression = Yes&lt;br /&gt;
&lt;br /&gt;
Back&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
You should now see an Amahi entry, click on this to connect. It may ask you for the certificate access password. Then it may ask for your username and password that you use to loginon your HDA. You should see that you are connected, enjoy your VPN connection to your HDA server.&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android 2.2 - DROID X (Verizon Wireless) =&lt;br /&gt;
Contact me in the forums if you need help setting this up.  If you have a later version of Android such as Gingerbread (Android 2.3) then you can't use this tutorial for setting up openvpn.  You can however use the openvpn configurations if your phone is already set up with openvpn.&lt;br /&gt;
&lt;br /&gt;
[[User:Sag47|Sag47]] 00:51, 5 April 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
This tutorial is not for the feeble minded.  I tried writing it as best as I could to keep it a &amp;quot;How to VPN&amp;quot; article and not a &amp;quot;How to root my droid&amp;quot; topic.&lt;br /&gt;
&lt;br /&gt;
The default Droid X from Verizon does not come with openvpn installed.  It's a little annoying and you have to be a little tech savvy to get it working.  I am outlining instructions here for how I connected my Droid X to my Amahi HDA.&lt;br /&gt;
&lt;br /&gt;
Some prerequisites:&lt;br /&gt;
* Your phone must be rooted.&lt;br /&gt;
* I am running Android 2.2 so these instructions may become outdated.  I also recommend you be running Android 2.2 Froyo on your Droid X&lt;br /&gt;
* You should have adb installed (or running a more advanced bash terminal on Android like Better Terminal Emulator Pro app)&lt;br /&gt;
* Install the following apps&lt;br /&gt;
** OpenVPN Installer&lt;br /&gt;
** OpenVPN Settings&lt;br /&gt;
&lt;br /&gt;
Create a directory on your SDCARD called openvpn or if in the terminal /sdcard/openvpn.&lt;br /&gt;
&lt;br /&gt;
Follow the general [[VPNLinux]] instructions but place all of the configurations and certificates in the openvpn folder on your sdcard.&lt;br /&gt;
&lt;br /&gt;
Install openvpn using the &amp;quot;OpenVPN Installer&amp;quot; app and select /system/bin each time the app asks for a location to place a binary.&lt;br /&gt;
&lt;br /&gt;
You can run one of the following commands to grab the mount point of your system folder.  (Run commands through adb or in a terminal on your Droid)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    df | grep system&lt;br /&gt;
    cat /proc/mounts | grep system&lt;br /&gt;
    cat /proc/mounts&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My device is mounted on /dev/block/mmcblk1p21 so that is the device I am using in this tutorial.  Download tun_alt.ko as recommended in [http://forum.xda-developers.com/showpost.php?p=11109394&amp;amp;postcount=25 this post].  Copy it to the root of your sdcard.&lt;br /&gt;
&lt;br /&gt;
Now we install the kernel module.  Run the following command sequence (through adb or a terminal on your Droid).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    su&lt;br /&gt;
    mount -o rw,remount /dev/block/mmcblk1p21 /system&lt;br /&gt;
    mv /sdcard/tun_alt.ko /system/lib/modules/tun.ko&lt;br /&gt;
    cd /system/lib/modules&lt;br /&gt;
    chown root\: tun.ko&lt;br /&gt;
    chmod 644 tun.ko&lt;br /&gt;
    &lt;br /&gt;
    #now lets test it&lt;br /&gt;
    insmod /system/lib/modules/tun.ko&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you don't see any output and the &amp;quot;OpenVPN Installer&amp;quot; app successfully installed openvpn then you should be set up.  &lt;br /&gt;
&lt;br /&gt;
Double check your configuration in /sdcard/openvpn.  Once you know everything is good then run the &amp;quot;OpenVPN Settings&amp;quot; app.  It should automatically detect your configuration.&lt;br /&gt;
&lt;br /&gt;
Enable OpenVPN.  Select your config to turn on the tunnel.  Then you should see a prompt in your notification status prompting for a password.  My Droid X connected to the network after that.&lt;br /&gt;
&lt;br /&gt;
There's one final step.  If you remember you manually ran the insmod /system/lib/modules/tun.ko command but when you reboot your phone the module will no longer be loaded.&lt;br /&gt;
&lt;br /&gt;
Go into the settings for the &amp;quot;OpenVPN Settings&amp;quot; app and modify the TUN module settings.&lt;br /&gt;
* Set &amp;quot;Load module using&amp;quot; to insmod.  &lt;br /&gt;
* Set &amp;quot;Path to tun module&amp;quot; to /system/lib/modules/tun.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reboot your phone and test the configurations.  It should be a one click process within the &amp;quot;OpenVPN Settings&amp;quot; app.&lt;br /&gt;
&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>Beaker2382</name></author>
		
	</entry>
</feed>