Plex Media Server on AsusWRT Arm Routers

Works only on arm routers like RT-AC56U, RT-AC68U, RT-AC87U, RT-AC3200, RT-AC5300...

No transcoding capabilities, just direct play on supported devices, like LG, Samsung TVs, Plex Android App...

Tested on RT-AC68U rev A2, RMerlin firmware v380.57, hdd usb3, Optware-NG & Entware-NG
Latest working version is, Plex no longer support ARMv5 used in this tutorial, please don't ask here for updates.

1 - Flash Rmerlin firmware from here

2a - Install Optware-NG from here and choose 2GB swap file

Install necessary packages

ipkg install nano findutils


2b - Install Entware-NG from here and choose 2GB swap file

Install necessary packages

opkg install nano findutils

3 - Setup Debian Jessie from here

4 - Enter chrooted debian with:

debian enter

5 - Update Debian

apt update && apt upgrade -y

6 - Install necessary packages

apt install wget zip bzip2 libexpat1 -y

- Download and install Plex Media Server

mkdir -p /apps && cd /apps
wget -c -O PlexMediaServer-
bzip2 -cd PlexMediaServer- | tar -xv
mv ./PlexMediaServer- ./plex && rm ./PlexMediaServer-

- Fix library path and start script

sed -i 's|ulimit.*|export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver"\n&|g' /apps/plex/
sed -i 's|.\/Plex\\ Media\\ Server|\/apps\/plex\/Plex\\ Media\\ Server|g' "/apps/plex/"

- Fix permissions of lib files

cd /apps/plex
find . -iname "*.so" -exec chmod 644 {} \;
find . -iname "*.so.*" -exec chmod 644 {} \;

10 - Create startup script

cat >> /etc/init.d/plexmediaserver << 'EOF'
# Provides: plexmediaserver
# Required-Start: $remote_fs $syslog $networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Plex Media Server
# Description: Plex Media Server for Linux,
# More information at
# Many thanks to the great PlexApp team for their wonderfull job !
# Author: Cedric Quillevere /
# Rewamped Christian Svedin /
# Adapted by TeHashX /
# Version: 1.3
test -f "/apps/plex/" || exit 0
plex_running=`ps ax | grep "Plex Media Server" | awk '{ print $1 }' | wc -l`
case "$1" in
if [ "$plex_running" -gt 1 ]; then
echo "Plex already running..."
exit 0
echo -n "Starting Plex Media Server: "
/apps/plex/ & >/dev/null 2>&1
sleep 1
echo "done"
if [ "$plex_running" -eq 1 ]; then
echo "Plex Media Server is not running (no process found)..."
exit 0
echo -n "Killing Plex Media Server: "
# Trying to kill the Plex Media Server itself but also the Plug-ins
ps ax | grep "Plex Media Server" | awk '{ print $1 }' | xargs kill >/dev/null 2>&1
ps ax | grep "Plex*" | awk '{ print $1 }' | xargs kill >/dev/null 2>&1
sleep 1
echo "done"
sh $0 stop
sh $0 start
if [ "$plex_running" -gt 1 ]; then
echo "Plex Media Server process running."
echo "It seems that Plex Media Server isn't running (no process found)."
echo "Usage: $0 {start|stop|restart|status}"
exit 1
exit 0


11 - Give right permission

chmod +x /etc/init.d/plexmediaserver

12 - Exit Debian


13 - Add Plex to chrooted services list

echo "" >>/opt/etc/chroot-services.list
echo "plexmediaserver" >>/opt/etc/chroot-services.list
chmod 755 /opt/etc/chroot-services.list

14 - Start Plex from outside debian together with mounted external folder

debian restart

15 - Wait about 30 seconds then go to default router ip address and port :32400/web, like or


16 - Create a new library and point to /mnt as path, if you want to mount a samba share use this guide

To be continued with the rest of setup if requested by user...


How to Install the Plex Unsupported App Store

Enter chrooted debian

debian enter

Download and unzip unsupported app store

cd /apps/plex/Resources/Plug-ins*
wget -c -O
unzip && rm

Go to Plex webpage, click on Channels and install apps...


  • Kameron Pence

    Did you guys (or gals) get this working? This is EXACTLY what I am trying to do with no luck. My goal is both Plex and an OpenVPN client on the r9000. Right now it seems like one or the other but not both. So far I have used Voxel's r9000 firmware builds to get OpenVPN client working, which does have Plex enabled, but the VPN is very slow (I have 100 down and with VPN on it is 10). I also tried Kong's DD-WRT but didn't have as much luck with the VPN. Right now the r9000 is boxed up for return because I can't do what I wanted to do with it. If you got Plex running under DD-WRT please let me know how you did it. Thanks.

  • TeHashX, this sounds great, but when I try to install either Optware or Entware on my RT-AC68U I am getting stopped with:
    *** Error: No ext2|ext3|ext4 partitions available. Exiting...
    FYI - I am running router currently in AP mode - could this affect it at all?

    • Do you have RMerlin firmware loaded and an usb drive in this router?

  • Galbeida

    ThHashX, before there was a guide to install Plex in optware, now the link takes me to the installation with Debian. Is the guide for optware still there? Thank you

    • No, you have to install first optware or entware then plex through debian

      • Galbeida

        Ok, thx, i will do it with debian.

        • Galbeida

          Excuse me theHashX, but I'll stay in step 14

          admin@Multimedia:/tmp/home/root# debian restart
          Stopping chroot'ed Debian services...
          Plex Media Server is not running (no process found)...
          Plex Media Server is not running (no process found)...
          Plex Media Server is not running (no process found)...
          Restarting chroot'ed Debian services...
          Starting Plex Media Server: /apps/plex/ 13: /apps/
          lex/ /apps/ple/apps/ple/apps/plex/Plex Media Serve
          : not found
          Starting Plex Media Server: /apps/plex/ 13: /apps/
          lex/ /apps/ple/apps/ple/apps/plex/Plex Media Serve
          : not found
          Starting Plex Media Server: /apps/plex/ 13: /apps/
          lex/ /apps/ple/apps/ple/apps/plex/Plex Media Serve
          : not found

          • Why did you paste the same command 3 times?
            Look inside /opt/etc/chroot-services.list, must have plexmediaserver only once.

            And second error: /apps/ple/apps/ple/apps/plex/Plex Media Serve!!!!!!!!!!!!!!!!!!!!!!!!
            You copy/paste wrong.

            Reboot router and start from scratch again but pay attention

          • Galbeida

            Perfect, now yes, one last doubt, I have a hard drive in the USB 3.0 port of the router with movies and mounted in / tmp / mnt / TOSHIBA_EXT but when I go to add the library and I give it to find multimedia folder finds the route / tmp / mnt / TOSHIBA_EXT but I can not see its contents or find the movies inside, you know why this happens? Greetings and thanks for everything.

          • Once again, you didn't read instructions carefully...
            EXT_DIR inside S99debian script must be a directory not the whole partition.
            In your usb drive create a directory named Media and put inside you media files: movies, music, photos...
            EXT_DIR=/tmp/mnt/TOSHIBA_EXT/Media/ (don't forget to uncoment this line, remove #)
            After restarting debian, go to plex and create new library, point to /mnt (inside debian /tmp/mnt/TOSHIBA_EXT/Media =/mnt)

          • Galbeida

            Ok, thanks, I already saw the error, you apologized questions but my English is basic and sometimes I dont understand the manuals, thanks for all the help. One last question, do you recommend overclocking the router? Plex, mysql and transmission consumes me a lot of resources, thanks again

          • If router is running stable, yes you can overclocking :)

  • Racerx NunyaBussiness

    what about connecting a wintv-dualhd usb tuner for local channels? anybody get this to work?

    • I don't think is possible to add an usb tuner to router.

    • Crustnut

      Maybe consider something like an Nvidia sheild tv. Much much more grunt and capable of transcoding among other Plexy things.

      • TeHashX

        Or, RPI, Odroid...
        They are cheaper than a router

      • Racerx NunyaBussiness

        i really dont want to buy any hardware. I was considering (2) hd homerun. which would be 4 tuners. Everything would of worked its a software thing with plex and right now it isnt worth my money if it isnt going to do what it SHOULD do

  • Jayakumar D

    Everything works just fine ..some file dont play as expected ..but is thr any way around to fix? cuz my client device is fully capable to play any file

    Didt see any success with unsupported apps

  • JustSomeRandomDDWRT

    Hi TeHashX - I've got a new R9000 that I want to put DD-WRT on, but unfortuantely, DD-WRT doesn't support PLEX. There is an available (and pretty sweet if I may add) R9000 firmware available - Kong MOD, but again.... no Plex support. The native R9000 firmware allows the Plex installation to do transcoding as well. Will your steps listed above (minus the asus firmware you list above) work? I'm having difficulty finding anything custom for the R9000.

    • Do you still have original firmware on your router? Copy plex package and I will try to make it work.

      • JustSomeRandomDDWRT

        I posted a lengthy reply to this, but apparently it's being approved? For some reason it's not showing up here.

        • Your previous message was flagged as spam and because contain links.
          Can you post another link for

          • JustSomeRandomDDWRT

            Try this one:

            just stick an http in front of it....

          • TeHashX

            Can you install entware or optware on dd-wrt firmware? If yes, then try to install chrooted debian.

          • JustSomeRandomDDWRT

            Entware-ng for sure I can install on dd-wrt firmware. A Chrooted debian instance I'm not entirely sure. I did some google searching, and couldn't exactly find an article / tutorial on installing a chrooted debian instance. I've asked in the R9000 thread on the DD-WRT pages if anyone is familiar with this.


To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...