myHD 1.0.2 is available (for update or fresh install) for getting the APKG go to download section [Name]
myHD
[Model supported]
Even I don't test on all series ... all x86_64 (64 bits Intel) NO x32 no Arm
[Suggested installation procedure]
... detail are in [Installation] section hereafter
1) Enable the Web server in A.D.M. Admin Web UI to use myHD WebUI (if not only command line works)
1) pre-download Ubuntu using the shell script provide at bottom (large files) to reduce installation time and suppress future Internet access problem. (default Ubuntu 18.04)
2) download myHD APKG and install it (so a little long but less than if download must be done by the APKG ... when you don't use pre-downloader shell
3) Install MH-xxx and / or MH16-xxx (Ubuntu 16.04) or MH18-xxx for 18.04 (default)
... using file apk provide hereafter at bottom
... using direct Web Store (require Internet) in the WebUI
==== REMEMBER uninstalling myHD using App.Central or apkg manual command DON'T LOST Ubuntu environment, nor your settings
==== So installing again myHD on an existing environment get you back Data, Software and Settings ... only launcher MHxx-yyy need to be reinstalled (except if you use apkg command line)
[Version]
1.0.2
... minor update (can be used from update or fresh install)
... ADD control to verify that ONLY root user (not admin) can run myHD command
... ADD Ubuntu version (so real one) of software installed (if from Ubuntu repository) in complement of APKG version
... ADD colored detail during fresh install of myHD engine : viewtopic.php?f=227&t=10596
... start cleaning code
... solve bugs
1.0.1
... Minor update (but solving problems)
... Suppress a problem with certain A.D.M. release : "'0' is not a valid user" when starting myHD , Thanks to Rodeur54
... ADD support for shared resource using space in the name ex. "Video & Sound" (request from Rodeur54 )
... ... ATTENTION not sure all special characters are supported, so be prudent and my suggestion is : use simple name for your shared resource and replace space by "_" for ex.
... ... this is solved in myHD command line AND in WebUI using a new approach (so rewrite) to bypass HTML character escape and also C language escape.
... CHANGE APKG webUI management to Web store to reflect Ubuntu version support, so only MH-xxx and MH16-xxx are proposed for Ubuntu 1604 and MH-xxx and MH18-xxx for 1804
... ADD detail in WebUI Web Store like "comment", myHD version require, and if APKG is already installed
... ... installing an APKG already installed (WebUI) ... do an update or redo a fresh install REMEMBER MHyyyyyy APKG are launcher for Asportal , so your settings, data are not lost. (even after uninstall)
1.0.0
... MAJOR release (available for update from 0.9 or fresh install) DON'T FORGOT TO PRE-DOWNLOAD env. TO REDUCE INSTALLATION TIME as before
==== specific posts to explain new point will be write in few time
... solve bugs (as usual)
... more than 1000 lines of code have been added or updated (on more of 5000) ...
... myHD now use its own Linux loader and libc (2.27) to workaround delivery Asustor libc without all namespace functions.
... Due to new libc, default method to enter in myHD environment use "associate terminal to namespace" in place of ssh (with secure keys) via myHD_root and myHD_user command
... ... ssh can be use (for any reason) with 2 new ADDED command : myHD_root_ssh and myHD_user_ssh
... ... in very few case using namespace attachment without tty name associated, can generate problems (I don't fall in this case), so workaround is to use myHD_root_ssh or myHD_user_ssh, or in namespace install a terminal multiplexer like tmux (my preferred)
... ADD basic "Application Web STORE" for MH-xxx MH16-xxx and MH18-xxx companion application for myHD
... ... using myHD command or WebUI you can get list of the last available applications and version
... ... using myHD command or WebUI you can install (as if you use App. Central) the corresponding MH application for a specific version ... new or update
... ... purpose is to reduce the search in the forum for application EVEN it's ALWAYS better to read specific post for each application.
... ... Enable/Disable/Remove stay in App. Central or using Asustor command line method.
... ADD autorun mechanism internal to myHD (define using myHD command or WebUI.
... ... if you use Asportal autorun, this is ignored, if not this autorun start AFTER myHD is started, the purpose is to solve "race condition" due to the start of myHD AFTER Asportal ... so after (some time) the Asportal autorun mechanism.
... ADD coloration in WebUI to have a better visibility and to be similar to myHD command output.
... Rewrite kernel modules management in myHD to use Asustor (busybox) modules tools in case the added (require) modules for myHD are already provide by Asustor
... ADD an ALPHA version of switch from ACTUAL isolated environment based on BASH to isolated environment based on SYSTEMD INIT
... ... it's an ALPHA testing possibility for Ubuntu confirmed or expert user ... the purpose at end is to have a FULL UBUNTU environment including systemd management
... ... even it works ... I have on my system problem with AUDIO ... certainly my fault ... but for the moment I can't move to this approach, opening ALPHA (require myHD command) to better specialist, I hope, can help me to solve problems.
... ... switching from BASH mode to SYSTEMD INIT mode don't break your Ubuntu environment nor your myHD application, switching back is always possible.
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)
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 ...
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
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 1.0.2 : https://www.father-mande.ovh/A/apkg/myH ... x86-64.apk
... Archive(s) :
myHD 1.0.0 : https://www.father-mande.ovh/A/apkg/myH ... x86-64.apk
myHD 0.9.4 : 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 ...
==== remember a new function in myHD provide also list and access to application using the basic "myHD Web Store"
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.