It is currently Thu Dec 03, 2020 3:30 pm
All times are UTC + 8 hours

[myHD 0.9.4 R.C.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.

Moderator: father.mande

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

Postby father.mande » Fri Feb 22, 2019 9:29 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
myhd-enable.png (11.89 KiB) Viewed 4590 times

[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 ...
Kodi18 : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
Kodi17 : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
Plex Media Player : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
Chrome : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
netflix : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
PrimeVideo : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk
kaku : https://www.father-mande.ovh/A/apkg/MH- ... x86-64.apk

[Screenshot]

More later

Philippe.
Last edited by father.mande on Sat May 18, 2019 10:54 pm, edited 7 times in total.
AS5202T /AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1047
Joined: Sat Sep 12, 2015 2:55 am

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby peterk80 » Sun Feb 24, 2019 1:39 am

Hello father mande. First i like to thank you for your work. I've been using myHD from version 0.7 and love it very much.
I've updated to 0.9 but now myHD doesnt start automaticly after a NAS restart. I have to start it manually now. Is there any solution for this?
My 2nd problem is that the webui doesnt load when i click it in ADM.

Thank in advance. Greets Peter.

NAS: Asustor AS-6404T x86_64 intel
ADM: 3.2.6.RPS2
peterk80
 
Posts: 15
Joined: Sun Feb 24, 2019 1:08 am

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby father.mande » Sun Feb 24, 2019 3:50 am

Hi,
peterk80 wrote:Hello father mande. First i like to thank you for your work. I've been using myHD from version 0.7 and love it very much.
I've updated to 0.9 but now myHD doesnt start automaticly after a NAS restart. I have to start it manually now. Is there any solution for this?
My 2nd problem is that the webui doesnt load when i click it in ADM.

Thank in advance. Greets Peter.

NAS: Asustor AS-6404T x86_64 intel
ADM: 3.2.6.RPS2


Thanks for this experience return, I will check and go back as soon as possible.
WebUI is managed by the Apache Web server NOR by the A.D.M. web admin ... so be sure to have enabled Apache Web server.

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

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby peterk80 » Sun Feb 24, 2019 5:20 am

father.mande wrote:Hi,
peterk80 wrote:Hello father mande. First i like to thank you for your work. I've been using myHD from version 0.7 and love it very much.
I've updated to 0.9 but now myHD doesnt start automaticly after a NAS restart. I have to start it manually now. Is there any solution for this?
My 2nd problem is that the webui doesnt load when i click it in ADM.

Thank in advance. Greets Peter.

NAS: Asustor AS-6404T x86_64 intel
ADM: 3.2.6.RPS2


Thanks for this experience return, I will check and go back as soon as possible.
WebUI is managed by the Apache Web server NOR by the A.D.M. web admin ... so be sure to have enabled Apache Web server.

Philippe.


Thanks for the tip about the Apache web server. I've enabled it but still no webui, just get a blank page.
Is there a chance you could provide me with myHD 0.7 for the time being? My kids are gonna kill me if it doesn't work out of the box.
Thank you very much.
peterk80
 
Posts: 15
Joined: Sun Feb 24, 2019 1:08 am

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby father.mande » Sun Feb 24, 2019 5:05 pm

Hi,

I have not yet a response for the reboot problem.

For the web server (blank page) seems that problem with authentication exist already with A.D.M. 3.2.x (I have check on my Arm model (I have only one x86_64 model))
so can you try to apply the same workaround as for A.D.M. 3.3 ?

viewtopic.php?f=42&t=10179

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

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby father.mande » Sun Feb 24, 2019 5:26 pm

Hi,

For myHD 0.7 ... the version is still available : viewtopic.php?f=42&t=10033

BUT using myHD 0.9 without WebUI, so with command line only is like 0.7 but with lot of corrections ...

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

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby father.mande » Sun Feb 24, 2019 6:19 pm

Hi,

For the reboot problem (myHD don't start after boot / reboot)
it's due to a race condition ... myHD test if asportal is up ... BUT when it test it ... asportal, in some case, is not yet UP or don't have finished its initialization ???

I have to change the process or to understand why, even I have put myHD dependent of Xorg, Asportal and remote center ... myHD is started before ???

certainly a specific APKG architecture ... that I don't know ...

I will work on a patch (verify if I really need to have asportal up before starting ...

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

Re: [myHD 0.9 R.C.1] Application server for Kodi, Plex, etc.

Postby peterk80 » Sun Feb 24, 2019 6:34 pm

father.mande wrote:Hi,

For the reboot problem (myHD don't start after boot / reboot)
it's due to a race condition ... myHD test if asportal is up ... BUT when it test it ... asportal, in some case, is not yet UP or don't have finished its initialization ???

I have to change the process or to understand why, even I have put myHD dependent of Xorg, Asportal and remote center ... myHD is started before ???

certainly a specific APKG architecture ... that I don't know ...

I will work on a patch (verify if I really need to have asportal up before starting ...

Philippe.


Hi Philippe thanks for the quick Support. I've tried your solution from ADM 3.3 for the webui Problem and that's fixed now.
Good luck with the Patch. I'm patiently waiting here.

Peter.
peterk80
 
Posts: 15
Joined: Sun Feb 24, 2019 1:08 am

Re: [myHD 0.9.1 R.C.1] Application server for Kodi, Plex, etc.

Postby father.mande » Sun Feb 24, 2019 10:49 pm

Hi,

Please find in first post of this topic an Update (or for fresh install) of myHD to 0.9.1

[Version]
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

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

Re: [myHD 0.9.1 R.C.1] Application server for Kodi, Plex, etc.

Postby Pas » Sun Feb 24, 2019 11:44 pm

Hello Father_mande thank you for your work
I just want to know how make the update ?
I make a great battle today for install the first version, with great help from french forum.
And now, i see a new version lol
Pas
 
Posts: 2
Joined: Sun Feb 24, 2019 4:49 pm

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 1 guest