It is currently Mon Aug 19, 2019 10:18 pm
All times are UTC + 8 hours

[myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

myHD is an isolated (namespace (mnt, IPC, PID)) Ubuntu environment to run Ubuntu application displayed as ASUSTOR Asportal / Xorg applications.

[myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Thu Jun 13, 2019 11:12 pm

Hi,

myHD 0.9.4 R.C.4. is available (for update or fresh install) for getting APKG go to download section
myhd-enable.png

[Name]
myHD

[Version]
0.9.4 R.C.4
... solve minor bugs & clean code
... ADD a tools to mount WHEN myHD is running temporary shared resources (/share/xxxx)
... ... Target is first for adding USB keys or disk plugged AFTER myHD is started (but any share can be used)
... ... This is done using SSHFS from myHD to A.D.M. SO YOU MUST have ssh and sftp configured and enable in A.D.M. part
... ... ... in Ubuntu 18.04 env. sshfs is already installed in 16.04 NOT, so you must install it
... ... ... do (after an myHD apt_upgrade_package do be at last update) : myHD_root /usr/bin/apt-get -y install sshfs
... ... New set of commands (no WebUI for the moment)
Code: Select all
myHD list_valid_folder ... list ALL valid folder able to be mounted in myHD and already selected MODIFIED TO REFLECT ACTUAL share USED
myHD list_temporary_mounted_folder ... list of temporary mounted folder
myHD mount_temporary_folder FOLDER ... mount temporary folder (/share/xxx)
myHD umount_temporary_folder FOLDER ... umount temporary folder (/share/xxx)

ATTENTION due to the fact I own only ONE NAS (for Asportal) ... I have tested this only with Ubuntu 18.04 ... but, normally, it's the same with 16.04

0.9.3 R.C.3
... ADD support for Ubuntu 18.04 L.T.S.
... ... 18.04 is installed (be default) on a new fresh install
... ... if 16.04 is installed (after updating myHD) use the command : myHD switch_ubuntu_env 1804 (later you can switch between 16.04 and 18.04 changing value 1804 or 1604
... ... if Ubuntu 18.04 is not installed ... please wait ... the environment is downloaded, then installed next to 16.04 then myHD is restarted with new env.
... ... BEFORE you can use the pre-download script (here after) with 1804 in place of 1604 to win elapse time at install
... ALL applications can be used or reinstall ... each was regenerated for 18.04
... ... already include in Ubuntu at delivery ... require nothing if MH_xxx apkg is already installed : kodi18, Kodi17, Chrome, Netflix, Prime, etc.
... ... external : Kaku 2.0.2.1, PlexMediaPlayer 2.33.0 MUST be reinstalled (because a part of the binary was not provide by Ubuntu repository) ATTENTION to use the LAST version ONLY
... Please remember to do an upgrade of Ubuntu to get last libraries & applications

Ubuntu 18.04 L.T.S. add updated and secure new libraries, add performance (for ex. Video Acceleration (VA-API) is now version 2.1, etc.
... consider version 18.04 as the future, so 16.04 will be less supported (new applications) in the future

0.9.2 R.C.2
... solve some bugs
... ADD Enable or Disable WebUI (for security) ... using myHD command you can do this.
... ADD (first draft) MULTI LANGUAGE support for WebUI (provide en and fr) BUT easy to add your own language or change existing (ad send it to me for integration)
... ... language are folder in /share/Web/myHD/text/LANG and text file are with mandatory name (for each cgi) and suffixed by .data
... ... due to NON caching of web page you can test immediately change and do partial translation (English is loaded first) so missing text back to English
... ... save your works, at this time it's not preserved by future update
... ADD change password for WebUI or add your own credentials (one or multiple) and remove it (include myhd user) new credentials are preserved in future update
... This update as usual preserve the Ubuntu environment and settings ...

0.9.1 R.C.1
... add authentication module to Apache Web server and restart it (this solve WebUI blank page)
... solve (T.B.C.) a bug at reboot (race condition with Asportal) ... not sure this don't have an impact on auto-run mechanism
... Add some internal tests to secure interface

0.9 R.C.1
... solve LOT of bugs (adaptation to Asustor constraints A.D.M. & Asportal)
... ADD a WebUI for managing parts of myHD (so for normal operation you don't need any more console tool)
... ... webUI is in Beta (I am not a Web devloper ... so)
... ... webUI security : user myhd password : asusfr1 (change it is easy and possible)
... Ubuntu and Applications updated to Feb. 21 2019 include Kodi 18.1 for ex. FOR FRESH INSTALL
... Ubuntu can be updated using WebUI (apt-get update ; apt-get dist-upgrade equivalent)
... Release Candidate because we don't change myHD global architecture (even we add new applications)

[Description]
Ubuntu 16.04 L.T.S. Asportal Application Server
... require to support Kodi 17 or 18 ; Plex Media Player ; Updated Chrome ; etc.

[Installation]
Optional before installation Phase : download Ubuntu environment (reduce the installation time)
Phase 1 : install as ANY APKG using App. Central myHD (manual install)
Phase 2 : at end download then environment creation will be run in the background
Phase 3 : MH-Test icon is displayed in Asportal when all is finished and ready to run
Post-installation Phase : include shared folder able to be use by myHD then restart myHD to include it
Phase 4 : install using App. Central APKG companion : MH-kodi18, MH-kodi17, MH-pmp, MH-chrome, MH-netflix, MH-primevideo, etc.
Detail of each phases ... here after

[ADD Another version of Ubuntu to existing myHD]
... update myHD to v. 0.9.3
... use : myHD switch_ubuntu_env 1804 or 1604 (depend of the Ubuntu already installed)
... wait up install restart myHD automatically

[uninstall]
open a ssh terminal under root (not admin) / your password
enter command : myHD uninstall_myHD
THIS command : remove ALL MH-xxxx companion APKG ; remove the Ubuntu environment ; then auto remove myHD itself
... OR you can do it yourself but one by one ...

[User Interface]
... terminal command line tool
myHD to manage myHD itself
myHD_root to enter in Ubuntu as root user
myHD_user name to enter in Ubuntu as the user name (one is define : astr )
myHD_apkg to create, install, delete, APKG companion ... when you want to add applications in Asportal by generating APKG for you (include APKG generator for Asportal Application)
... Web UI (BETA)
web interface for myHD command (partial only the most used)
IT'S A BETA ... because I am one of the WORST web developer in the world ... :roll: :lol:
have a look to screen shot here after

[detailed install procedure]
BEFORE PHASE :
... optional only to win time and reduce real installation phase
... download : https://www.father-mande.ovh/A/other/pr ... d_myHD.tar AND put the file in your Asustor Public share
... open a terminal root / your_passord
cd /share/Public
tar xf pre_download_myHD.tar

... this produce pre_download_myHD.sh script ... run it with Ubuntu version required
./pre_download_myHD.sh 1604|1804
... this download Ubuntu and put it in /share/Public/myHD_delevery result is files like here after (for 1604)
Code: Select all
-rw-r--r--    1 root     root         346 Feb 21 12:27 delivery_1604.list
-rw-r--r--    1 root     root        8.9K Feb 21 12:08 myHD_1604_delivery_scripts.tgz
-rw-r--r--    1 root     root     1002.2M Feb 21 15:39 myHD_delivery_1604.tgz
-rw-r--r--    1 root     root      256.0M Feb 21 12:31 myHD_delivery_1604_aa
-rw-r--r--    1 root     root      256.0M Feb 21 12:36 myHD_delivery_1604_ab
-rw-r--r--    1 root     root      256.0M Feb 21 12:41 myHD_delivery_1604_ac
-rw-r--r--    1 root     root      234.2M Feb 21 12:45 myHD_delivery_1604_ad

It's all
PHASE 1 :
Nothing special ... use AppCentral / manual install / select APKG file and follow usual install
AT END ... a new icon appear on A.D.M. desktop
... if you click on this icon a security dialog box is displayed security : myhd user ; asusfr1 password
PHASE 2 :
PLEASE IF YOU USE A.D.M. BETA 3.3 a workaround exist to get this security popup
... you will be redirected to the default Web server and myHD management menu
ATTENTION up to the end of the real (background) Ubuntu set up you JUST see the status button
... you can click and refresh ... up to the full menu and status informing you that myHD is started
... The set up duration is ~2 minutes if pre_download is done before from 4 to X minutes if download is done by the installation program (depend of your Internet bandwidth and server (O.V.H.) performance
look at screen shot here after
PHASE 3 :
At start of myHD (do automatically) after download and Ubuntu install phase
an icon is added to Asportal : MH-test APKG ... it's a terminal in Ubuntu environment ... you can hide it or remove it if you don't want to use it ...
POST INSTALLATION PHASE :
myHD is an isolated environment WITHOUT visibility of your DATA
It's time to add folder in /share that you want to add as visible by myHD
use ever WebUI or myHD console command
THEN RESTART myHD to add it really ...
PHASE 4 :
Using App Central install "launcher" in Asportal for myHD application
ex. add PlexMediaPlayer (MH-pmp)
add kodi 18.1 (MH-kodi18)
add kodi 17.6 (in case you want to keep actual configuration) (MH-kodi17)
etc. etc.

[Download]
pre-download shell : https://www.father-mande.ovh/A/other/pr ... d_myHD.tar
myHD 0.9.4 : https://www.father-mande.ovh/A/apkg/myH ... x86-64.apk

... Archive myHD 0.9.3 : https://www.father-mande.ovh/A/apkg/myH ... x86-64.apk

Application launcher for Asportal CAN contains also application binary if not exist in Ubuntu repository
LAUNCHER version ARE NOT ALWAYS Application version ... to get real Ubuntu application version use dpkg or launch application with version option ...
MH-Kodi18 : viewtopic.php?f=227&t=10359
MH-Kodi17 : viewtopic.php?f=227&t=10359
Plex Media Player for Ubuntu 18.04 MH18-pmp : viewtopic.php?f=227&t=10354
Plex Media Player for Ubuntu 16.04 MH16-pmp : viewtopic.php?f=227&t=10355
MH-Chrome : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
MH-netflix : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
MH-PrimeVideo : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
MH-kaku : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk

[Screenshot]

More later

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby roterdrachen » Sat Jun 22, 2019 3:46 pm

Hi I´ve installed MyHD 0.9.4, Ubuntu, MH-kodi18.1 and set the shares, it works fine.
But it doesn´t autostart when I reboot my NAS AS6404T?! I´ve got here ADM3.3.1.RIH2.
Do you have an advice for me to fix this boot problem?
roterdrachen
 
Posts: 4
Joined: Sat May 25, 2019 9:51 pm

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Sat Jun 22, 2019 4:10 pm

Hi,
roterdrachen wrote:Hi I´ve installed MyHD 0.9.4, Ubuntu, MH-kodi18.1 and set the shares, it works fine.
But it doesn´t autostart when I reboot my NAS AS6404T?! I´ve got here ADM3.3.1.RIH2.
Do you have an advice for me to fix this boot problem?


Do you want to autostart MH-kodi18 using the Asportal autostart mechanism ?
... I will check ... perhaps I have done some change (using now separate MH-xxx apkg) and not tested all (sorry)

Asportal have a simple logic : when it is started ... it can start the autorun, so I am oblige to intercept the process because in the MH-xxx case logic is Asportal ... start myHD ... autorun MH-xxxx AND IT'S NOT SO SIMPLE

Please just wait (for a simple patch or a new myHD update (nothing will be reinstalled, update is only for APKG myHD part not Ubuntu nor MH-xxxx))

Thanks for the return.

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Sat Jun 22, 2019 5:42 pm

Hi,

I have done a test
... set MH-kodi18 as autostart
... reboot
... after a relative long time ... MH-kodi18 start

The action
... Xorg start
... Asportal start
... Asportal launch MH-kodi18 that can't run as well due to the fact that myHD is not yet started
... Asportal receive an error and have (seems) a delay of 80 sec. on black screen (so perhaps the delai)
asportal log : finding now in asportal over 80 sec to hide black loading, check_time=41
... myHD start
... myHD analyse autorun Asportal request
... if it's a MH-xxx APKG myHD start it

So just after a reboot the delay is long around 1+ minute on my AS5002T
After a restart of Asportal ... the delay is small ...

So I can't reproduce the problem, please can you provide asportal log just to see if autorun is correctly activated by Asportal

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby odiseo123 » Mon Jun 24, 2019 7:18 am

Hi Philippe,

Thanks for the great effort.
I wanted to deploy myHD for Kodi18.
However I got stuck at the very start...when I attempt to manually install the apk (myHD_0.9.4_x86-64.apk), I get the message "Uploading not possible. The file format is invalid for this system (Ref. 6005)".
Somebody was getting this message when installing customized Emby:
https://emby.media/community/index.php? ... age/page-9
So it seems my NAS is "plain x86 and not x86-64". Is it gameover for me or is there a chance to compile myHD and Kodi for x86?
The unit is a AS-302T running ADM3.3.1.RIH2 on a Intel® Atom™ 1.60 GHz Dual-Core Processor.

Any pointers are greatly appreciated.

Cheers,

Andres
odiseo123
 
Posts: 2
Joined: Mon Jun 24, 2019 7:04 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Mon Jun 24, 2019 5:19 pm

Hi,
roterdrachen wrote:Hi I´ve installed MyHD 0.9.4, Ubuntu, MH-kodi18.1 and set the shares, it works fine.
But it doesn´t autostart when I reboot my NAS AS6404T?! I´ve got here ADM3.3.1.RIH2.
Do you have an advice for me to fix this boot problem?

To complete, after some tests ...
I will add in next release (myHD so nothing changed in Ubuntu and App.) an internal myHD autorun mechanism
... command to set/unset the MH-xxx as autorun
... verify that NO autorun is defined in Asportal (to avoid conflict ... no multitask in Asportal)
... run immediately after end of start of myHD the selected application

This can suppress he delay and avoid any problem of delay .
Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Mon Jun 24, 2019 11:04 pm

Hi,
odiseo123 wrote:Hi Philippe,
Thanks for the great effort.
I wanted to deploy myHD for Kodi18.
However I got stuck at the very start...when I attempt to manually install the apk (myHD_0.9.4_x86-64.apk), I get the message "Uploading not possible. The file format is invalid for this system (Ref. 6005)".
Somebody was getting this message when installing customized Emby:
https://emby.media/community/index.php? ... age/page-9
So it seems my NAS is "plain x86 and not x86-64". Is it gameover for me or is there a chance to compile myHD and Kodi for x86?
The unit is a AS-302T running ADM3.3.1.RIH2 on a Intel® Atom™ 1.60 GHz Dual-Core Processor.
Any pointers are greatly appreciated.
Cheers,
Andres


Unfortunately not easy and perhaps not possible ...
If I exclude the time require to build tools and environment ...
1) I don't know if kernel & library contains tolls need to manage isolation (namespace and cgroup) and if they are include in A.D.M. 3.3.1 for x86
2) MAJOR problem, even environment can be set and memory available enough
... the I.G.P. graphic card integrated is named Intel Graphic BUT are in fact SGX card WITHOUT open source driver, nor drm, nor video acceleration libraries, only closed source are provide by Intel to integrator (as NAS provider) so without video acceleration (updated for Kodi and other requirement) ... no interest to run new Kodi, etc. you can't have new Kodi (only v14 or perhaps v15 if you use Asustor libraries provide (so out of myHD))
If Asustor or Intel don't "open" the code source ... I can't try to port myHD ... and even, I am not sure it can works.

I am sorry for you.

BUT if somebody have skills to debug this point ... I will try, even I don't have lot of free time to do it ...
LAST ... Ubuntu team (and some others) have targeted to stop support for x86(32) architecture : https://www.theregister.co.uk/2019/06/1 ... 6_support/
... so this imply that lot of software developer will also abandon x86 support ... but I have no idea of the reality for that ...

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby odiseo123 » Wed Jun 26, 2019 7:55 am

father.mande wrote:Hi,
odiseo123 wrote:Hi Philippe,
Thanks for the great effort.
I wanted to deploy myHD for Kodi18.
However I got stuck at the very start...when I attempt to manually install the apk (myHD_0.9.4_x86-64.apk), I get the message "Uploading not possible. The file format is invalid for this system (Ref. 6005)".
Somebody was getting this message when installing customized Emby:
https://emby.media/community/index.php? ... age/page-9
So it seems my NAS is "plain x86 and not x86-64". Is it gameover for me or is there a chance to compile myHD and Kodi for x86?
The unit is a AS-302T running ADM3.3.1.RIH2 on a Intel® Atom™ 1.60 GHz Dual-Core Processor.
Any pointers are greatly appreciated.
Cheers,
Andres


Unfortunately not easy and perhaps not possible ...
If I exclude the time require to build tools and environment ...
1) I don't know if kernel & library contains tolls need to manage isolation (namespace and cgroup) and if they are include in A.D.M. 3.3.1 for x86
2) MAJOR problem, even environment can be set and memory available enough
... the I.G.P. graphic card integrated is named Intel Graphic BUT are in fact SGX card WITHOUT open source driver, nor drm, nor video acceleration libraries, only closed source are provide by Intel to integrator (as NAS provider) so without video acceleration (updated for Kodi and other requirement) ... no interest to run new Kodi, etc. you can't have new Kodi (only v14 or perhaps v15 if you use Asustor libraries provide (so out of myHD))
If Asustor or Intel don't "open" the code source ... I can't try to port myHD ... and even, I am not sure it can works.

I am sorry for you.

BUT if somebody have skills to debug this point ... I will try, even I don't have lot of free time to do it ...
LAST ... Ubuntu team (and some others) have targeted to stop support for x86(32) architecture : https://www.theregister.co.uk/2019/06/1 ... 6_support/
... so this imply that lot of software developer will also abandon x86 support ... but I have no idea of the reality for that ...

Philippe.


Hi Philippe,
Thanks for the reply.
I feared that much.
I hope you don't mind if I pick on your knowledge a little bit...

I had the aforementioned NAS connected to a TV (HDMI). I could manage and play my library directly on the NAS before XMBC/Kodi support was dropped.
Now I can only do two things:
1) Play the files directly on the NAS. This does not use any library manager and sometimes it seems to lack codecs for certain movies, i.e. they do not play or the movie menu is skiped.
2) Have my kodi library in a computer and stream to a dongle at the TV. This requires some transcoding on-the-fly and can have buffering/latency issues.

Could you recommend some other programs/hacks/setups that somehow recover the old HMDI/XBMC combo?

I thank you for any tip.
Cheers,
odiseo123
 
Posts: 2
Joined: Mon Jun 24, 2019 7:04 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby hertz » Thu Jun 27, 2019 6:45 am

Hi Philippe,

this looks awesome!

Would this work on an AS5304T with AMD 3.4.0? Is it worth to give a try?

Thx in advance!
Zoltan
hertz
 
Posts: 3
Joined: Thu Jun 27, 2019 6:33 am

Re: [myHD 0.9.4] Application server for Kodi, Plex, etc. on Ubuntu 1604/1804

Postby father.mande » Thu Jun 27, 2019 4:32 pm

Hi,
hertz wrote:Hi Philippe,
this looks awesome!
Would this work on an AS5304T with AMD 3.4.0? Is it worth to give a try?
Thx in advance!
Zoltan


Hi,
I don't have new series ... Asustor have permit me to have a connection to an AS5102T with a Beta (or alpha) 3.4 ... so I will just start tests.
For the moment :
... preload is OK (it's bash script to pre-load Ubuntu to reduce install time)
... install of myHD OK ... take attention that end of install is done in background ... so be patient is status is not started yet ...
... run is OK (console point of view)
... install of Xvnc-server to get the hand on Asportal is OK

After that, I will go in travel, remote system have been reinitialized ... so I have to restart.

The only bug (identified) is kernel module (squashfs) is not yet recompiled ... but this is for specific usage for some Applications ... this not impact actual APKG associated to myHD

So (if you have backup ... it's true for all new test) ... try it and, please, return your experience.

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 758
Joined: Sat Sep 12, 2015 2:55 am

Next

Return to myHD

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 0 guests