OpenMediaVault-Plugin-Developers / openmediavault-plexmediaserver

OpenMediaVault plugin for Plex Media Server
25 stars 12 forks source link

Support ARM64 #12

Open ayufan opened 7 years ago

ayufan commented 7 years ago

Currently, package is distributed only for armhf, i386 and amd64. Is it possible to also include support for ARM64?

ryecoaaron commented 7 years ago

Did you try manaully installing the plugin and armhf plex package (can download both from bintray)? The armhf plex binary is actaully an armel binary. No idea if it would work on arm64.

ayufan commented 7 years ago

It works, but the problem is with the packages to be for armhf always. And thus it misses binary-arm64 from sources making aptget to fail updating on multiarch systems.

It is suboptimal how it works, as on omv running on arm64 it is very hard to install openmediavault.

On Thu, 6 Jul 2017 at 13:38, Aaron Murray notifications@github.com wrote:

Did you try manaully installing the plugin and armhf plex package (can download both from bintray)? The armhf plex binary is actaully an armel binary. No idea if it would work on arm64.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-plexmediaserver/issues/12#issuecomment-313371981, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQXM5C544vVcoke9PZI9m7b3Dz-S0ks5sLMdNgaJpZM4OPTER .

ryecoaaron commented 7 years ago

What board are you using? There really is little benefit of using 64 bit on most arm boards that support it.

ayufan commented 7 years ago

Not yet released, rock64: https://www.pine64.org/?page_id=7147. It works great on it.

ryecoaaron commented 7 years ago

You should follow this thread - https://forum.openmediavault.org/index.php/Thread/17855-Building-OMV-automatically-for-a-bunch-of-different-ARM-dev-boards/?pageNo=11

Armbian should have a pre-built OMV image soon. I have an odroid-c2. I can try to get plex working on it to see what changes need to be made.

ayufan commented 7 years ago

I have my own prebuilt arm64 openmediavault: https://github.com/ayufan-rock64/linux-build/releases/tag/0.3.4, but you cannot install the Plex now, as system needs to run in dual-arch mode.

ryecoaaron commented 7 years ago

I don't think updating the .deb (change arch from armhf to arm64) for plex will fix the need for dual-arch mode and plex does not have a true arm64 release that I have seen. But, I still need to test this.

ryecoaaron commented 7 years ago

Change the arch in the control file does allow the package to be installed. I added it to the bintray repo. Not sure if it will start yet. I need to add a data drive to my odroid.

ayufan commented 7 years ago

Can you link where you made a change?

ryecoaaron commented 7 years ago

To the .deb or the actual line I changed?

The .deb is here: https://bintray.com/openmediavault-plugin-developers/erasmus-plex/plexmediaserver-installer#files/pool%2Fmain%2Fp%2Fplexmediaserver-installer The line is here: https://github.com/OpenMediaVault-Plugin-Developers/plexmediaserver-installer/blob/master/debian/control#L10

ayufan commented 7 years ago

What we could do to have: openmediavault-plexmediaserver be for all and make plexmediaserver-installer to be dual: armhf and arm64.

In the case of arm64 adding dpkg --add-architecture armhf and then dpkg -i would solve the compatibility on arm64 platform. If the proper arm64 would get released it could superseded the change.

ryecoaaron commented 7 years ago

openmediavault-plexmediaserver is already set to all: https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-plexmediaserver/blob/master/debian/control#L11

It just isn't in the arm64 repo on bintray.

for plexmediaserver-installer, it isn't hard to build for multiple arches and put in the proper repos IF it is working on arm64.

ryecoaaron commented 7 years ago

From looking at dev2day, I guess it needs the armhf arch no matter what. Unfortunately, the plugin can't execute the dpkg add-arch command while it is installing.

ayufan commented 7 years ago

Effectively it can, as the package itself is multi-arch: https://github.com/OpenMediaVault-Plugin-Developers/plexmediaserver-installer/blob/master/debian/postinst#L8 and it downloads plex on install.

ayufan commented 7 years ago

Ah, but it can be conflicting actually.

ryecoaaron commented 7 years ago

But there is no arm64 binary available from plex. So, we have to use an armel binary which means arm64 has to be setup for dual arch.

ayufan commented 7 years ago

This is correct, so as long as:

openmediavault-plexmediaserver is all/armhf/arm64

and

plexmediaserver-installer is armhf, but with multi-arch: foreign

It would guide Debian when installing plexmediaserver to install installer using foreign architecture on arm64 if armhf is enabled.

ayufan commented 6 years ago

Could you release openmediavault-plexmediaserver to armhf and arm64 repos?

And make plexmediaserver-installer to be of Architecture: armhf, but with Multi-Arch: foreign?

ayufan commented 6 years ago

Then when trying to install package you will see:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  plexmediaserver-installer:armhf
The following NEW packages will be installed:
  openmediavault-plexmediaserver plexmediaserver-installer:armhf
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 4000 B/24.9 kB of archives.
After this operation, 202 kB of additional disk space will be used.

(if you have foreign architecture added, and this will install all system dependencies needed to run plex)

ryecoaaron commented 6 years ago

The plugin is already in the armhf erasmus-plex and arrakis-plex repos. I will add it to the arm64 repos if multi-arch tag is added to plexmediaserver-installer. You will have to submit a pull request to https://github.com/uglymagoo/plexmediaserver-installer since I am using that package now.

ayufan commented 6 years ago

Sent https://github.com/uglymagoo/plexmediaserver-installer/pull/20/files

TimelessNL commented 6 years ago

I recently tried Plex on a NanoPi Neo 2 (arm64). And I was unable to install it through OMV web GUI 3.0.69.

However after running: dpkg --add-architecture armhf && apt-get update And install:

apt-get install plexmediaserver-installer:armhf openmediavault-plexmediaserver Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: avahi-utils gcc-4.9-base:armhf libc6:armhf libgcc1:armhf Suggested packages: glibc-doc:armhf locales:armhf The following NEW packages will be installed: avahi-utils gcc-4.9-base:armhf libc6:armhf libgcc1:armhf openmediavault-plexmediaserver plexmediaserver-installer:armhf 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 4,245 kB of archives. After this operation, 9,065 kB of additional disk space will be used. Do you want to continue? [Y/n] y

It worked just fine. I've not tested if plex was install able after I enabled armhf. But after installing in through command line it did appear as a installed extension in OMV GUI.