[myHD 0.2 BETA version] for tests ...

New total application manager for HD_Station
User avatar
philippe
Site Admin
Posts: 109
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 1 time
Been thanked: 9 times

[myHD 0.2 BETA version] for tests ...

Post by philippe » Wed Aug 08, 2018 3:01 pm

Hi,
===== PATCH is need to use shared folder ... please Apply up to next release : viewtopic.php?f=27&t=1329#p1427

FIRST
==== READ CAREFULLY the install procedure
TARGET : test the installation part ... and play with myHD internal QPKG proposed :
... kodi17.6 (possible to cp your actual .kodi), kodi18 Beta 1 (unstable build), plexmediaplayer 2.15.0, Vlc 2.2.27, Chrome (last stable from Chrome PPA), Netflix (Chrome direct App. call, Test ... in fact a Xterm INSIDE myHD
===== PLEASE REFER TO SPECIFIC POST for each Applications ... WE PROPOSE MANUAL LAUNCH to understand problems (if needed)

COMMANDS TO KNOW :
myHD ... use for lot of usage including backup, update (apt-get update; apt-get dist-upgrade), set various options, move an existing Q.T.S user to myHD (clone UID/GID, set DISPLAY, set ssh keys for command without password from HD_Station or Q.T.S.)
myHD_root [command in quote] ... enter as root in myHD isolated environment or execute in myHD the command or script ...
myHD_user USER_NAME [command in quote] ... enter as user ... only user available after install is : qnap user / password qnapfr1 please change by security I don't use it)
myHD_qpkg ... manage myHD QPKG's (install, remove, create, etc.)

[Name]
myHD

[Version]
Beta : 0.2
... correct BUG target folder not created when include folder is sued (patch provide for 0.1
... correct BUG when a QPKG generation failed (delete folder qpkg ... not major but really annoying
... correct BUG generated by the 4.3.5 update (PATH not complete in shell session)
... Update preserve ALL Ubuntu env. scripts and user Home ...

Beta : 0.1
0.1 to reduce easy possibility to install it under the previous BETA
DON'T TRY to update from previous (with uninstall problem) Beta (1.0)
... Uninstall 1.0 following the recommendation in post : https://forum.qnap.com/viewtopic.php?f= ... 73#p679598

[What's new]
... NOW NO shared resource are "mounted" at initial start (YOU MUST ADD IT IF YOU WANT ... generally YES :mrgreen: ) ... so an uninstall can't remove your data
.. ... This is due to lack of QNAP control at QPKG Uninstall process (a simple test, 2 lines in shell, would have been enough to prevent (reduce drastically) any risk of data lost when removing a QPKG)
... NOW Ubuntu environment (16.04 LTS) is OUT of the QPKG folder ... so can't be removed if you don't use the provide (myHD command) remove all (with control, security and response (interactive mode))
... ... shell are provide out QPKG folder to remove manually Ubuntu environment if you remove QPKG by error or from QNAP WebUI
... NOW all generated QPKG (to launch myHD application) can be removed at myHD uninstall process
... ... BE PATIENT we use the qpkg tools from QNAP so request are queued to daemon and done after (more or less long)

[Install]
BE PATIENT, BE PATIENT AND wait for the log message (Admin Web UI) announcing that install (all phases) is complete
Install start as usual by installing myHD QPKG after download and unzip (myHD appear as an HD_Station application)
==== BUT for BETA ... I recommend to use a manual install (put myHD qpkg in /share/Public and run it in a console)
==== you will have a full view of QPKG install BUT also of the second stage (Ubuntu download and install)

AT END of installation process (very short)
FIRST RUN of myHD (automatic) start the download and install process for Ubuntu 16.04 environment (long)
... STANDARD install
... files are downloaded in a specific folder : /share/Public/myHD_delivery/
... delivery by part of 256Mo max, checksum control file, delivery of scripts
... the REAL delivery.tgz is recreated then tar file are extracted in QPKG folder
... then myHD install ONE application (test aka Xterm) QPKG hereafter (I use QNAP's qpkg_cli ... so delay exist between queuing the request and Q.T.S. execute it ... so BE PATIENT)
... ALTERNATE INSTALL (to don't wait (less wait) after QPKG install)
... BEFORE installing the QPKG ... download yourself the files needed BE SURE TO BE IN BINARY MODE
... ONE big complete file ... OR ... the part
... ... complete file (800Mo) : http://www.father-mande.ovh/Q/other//delivery_1604.tgz
... ... part file (256Mo max) : http://www.father-mande.ovh/Q/other//delivery_1604_aa then ab then ac then ad (change only the 2 last characters)
... if files are present and are correct (good checksum ) install use them in place of downloading them again ... (in case of problem the install download the correct file)

Then
... First run do an install of the test QPKG (it's a simple Xterm INSIDE myHD

Now you can :
... test MH_test to verify that the launcher works as expected (if not follow the debug process in myHD test post
... ... if all works as expected (Xterm will open)
... don't forgot to update/upgrade Ubuntu 16.04 (to get last version of Ubuntu applications (Kodi18, vlc, security patchs, libraries update, etc.)
myHD apt_upgrade_package
... ... some update / upgrade can require a restart of myHD (myHD restart) ... normaly you will be informed at end of upgrade ...

... add some shared resource to be accessible by myHD
==== R 0.1 due to an error in the shell Please temporary apply patch here : viewtopic.php?f=27&t=1329#p1427 for solving include_folder mechanism
for ex. :
myHD add_include_folder /share/Multimedia
THEN
restart myHD to use it
myHD restart
... Add existing QPKG you want to use :
for ex. :
myHD_qpkg install kodi18 (this request (queued) to QNAP QPKG manager to install it ... so can take some time)
THEN
test the qpkg (icon in Q.T.V. of HD_Station)
etc. etc.

A good idea for some BETA testers (more expert) is to use the manual install in a console to get a full trace of the process
... hereafter a trace on a TS-x53 Pro (Internet network for download less than 100Mbits)

Code: Select all

 # ./myHD_0.1.qpkg
Install QNAP package on TS-NAS ...
myHD.tgz
49218+1 records in
49218+1 records out
20081345 bytes (19.2MB) copied, 0.508772 seconds, 37.6MB/s
qinstall.sh
qpkg.cfg
Set QPKG information to /etc/config/qpkg.conf
Link service start/stop script: myHD.sh
/usr/bin/wget
--2018-08-08 14:13:28--  http://www.father-mande.ovh/Q/other//delivery_1604.list
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 311 [text/plain]
Saving to: ‘delivery_1604.list’

delivery_1604.list                        100%[====================================================================================>]     311  --.-KB/s   in 0s

2018-08-08 14:13:29 (19.5 MB/s) - ‘delivery_1604.list’ saved [311/311]

--2018-08-08 14:13:29--  http://www.father-mande.ovh/Q/other//delivery_scripts.tgz
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4227 (4.1K) [application/x-gzip]
Saving to: ‘delivery_scripts.tgz’

delivery_scripts.tgz                      100%[====================================================================================>]   4.13K  --.-KB/s   in 0s

2018-08-08 14:13:29 (177 MB/s) - ‘delivery_scripts.tgz’ saved [4227/4227]

delivery_scripts.tgz is good and downloaded
220abfeaa9fb5ec244633607e70ab75d  delivery_1604_aa
--2018-08-08 14:13:29--  http://www.father-mande.ovh/Q/other//delivery_1604_aa
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 268435456 (256M)
Saving to: ‘delivery_1604_aa’

delivery_1604_aa                          100%[====================================================================================>] 256.00M  11.2MB/s   in 23s

2018-08-08 14:13:52 (11.0 MB/s) - ‘delivery_1604_aa’ saved [268435456/268435456]

delivery_1604_aa is good and downloaded
12a68031bafe90293243dee2269a0a24  delivery_1604_ab
--2018-08-08 14:13:53--  http://www.father-mande.ovh/Q/other//delivery_1604_ab
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 268435456 (256M)
Saving to: ‘delivery_1604_ab’

delivery_1604_ab                          100%[====================================================================================>] 256.00M  10.5MB/s   in 24s

2018-08-08 14:14:17 (10.8 MB/s) - ‘delivery_1604_ab’ saved [268435456/268435456]

delivery_1604_ab is good and downloaded
948d4cec561e84812dc55157a8def765  delivery_1604_ac
--2018-08-08 14:14:18--  http://www.father-mande.ovh/Q/other//delivery_1604_ac
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 268435456 (256M)
Saving to: ‘delivery_1604_ac’

delivery_1604_ac                          100%[====================================================================================>] 256.00M  11.1MB/s   in 23s

2018-08-08 14:14:42 (11.1 MB/s) - ‘delivery_1604_ac’ saved [268435456/268435456]

delivery_1604_ac is good and downloaded
6acefa498ed16b5e144c3c2893479535  delivery_1604_ad
--2018-08-08 14:14:43--  http://www.father-mande.ovh/Q/other//delivery_1604_ad
Resolving www.father-mande.ovh (www.father-mande.ovh)... 46.105.57.169, 2001:41d0:301::20
Connecting to www.father-mande.ovh (www.father-mande.ovh)|46.105.57.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25661264 (24M)
Saving to: ‘delivery_1604_ad’

delivery_1604_ad                          100%[====================================================================================>]  24.47M  11.0MB/s   in 2.2s

2018-08-08 14:14:45 (11.0 MB/s) - ‘delivery_1604_ad’ saved [25661264/25661264]

delivery_1604_ad is good and downloaded
delivery_1604.tgz is good and downloaded
Downloaded ... nothing to do ...
Downloaded and installed ... nothing to do ...
seems all run as well
Start list and install of all created QPKG
internal name:MH_test, path:/share/CACHEDEV1_DATA/.qpkg/myHD/myHD_qpkg/temp/MH_test_1.9.9.qpkg
[CLI] QPKG MH_test is queuing
get keys or generate them from HD_Station / get sound def.
exist so analyse if not changed ...
Keys are not changed
As requested /share/test is exclude
As requested /share/Web is exclude
Now start jchroot in background
/share/CACHEDEV1_DATA/.qpkg/myHD/bin/nohup: redirecting stderr to stdout
now start in background a survey to manage a clean exit
time to copy HDS keys 
# 
[Tests]
Try different command
Try including some folder to myHD
Try applications (install yours, test manually first and try create a QPKG with 2 files (see example and real) with the QPKG generator
Try changing language ...
etc. etc.
only limit is ... if the install works as expected ... :roll: :roll: :mrgreen:

[Know Bugs]
In some case default configuration) Vlc can stop working and stay running ... so disturb the others applications
... if you have run Vlc (I will try to send you the correct configuration for it) and fall in sound problem ... open a console and kill vlc (in Q.T.S. side or in myHD_root ... PID differ but program is the same (PID isolation))

[Download]

QPKG myHD 0.2 : https://www.father-mande.ovh/Q/qpkg/myHD_0.2.zip

Sorry this need lot of documentation (it's a complete / complex system by itself ... I will write it A.S.A.P. )

Have fun and thanks for your help.
Philippe.
QNAP / Asustor package integrator
Sonn
Posts: 5
Joined: Sun Sep 02, 2018 3:16 am
Has thanked: 2 times
Been thanked: 0

Re: [myHD 0.1 BETA version] for tests ...

Post by Sonn » Sun Sep 02, 2018 3:44 am

Thank you for all your work.. :D
User avatar
philippe
Site Admin
Posts: 109
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 1 time
Been thanked: 9 times

Re: [myHD 0.2 BETA version] for tests ...

Post by philippe » Sun Sep 02, 2018 8:05 pm

Hi,

Update.

Solve some bugs and support 4.3.5 change

Philippe.
QNAP / Asustor package integrator
Sonn
Posts: 5
Joined: Sun Sep 02, 2018 3:16 am
Has thanked: 2 times
Been thanked: 0

Re: [myHD 0.2 BETA version] for tests ...

Post by Sonn » Sun Sep 02, 2018 11:51 pm

myHD_qpkg install kodi18...
does it tell you when its complete.... or should say done queuing?
Hslansky
Posts: 10
Joined: Fri Jun 01, 2018 11:33 pm
Has thanked: 0
Been thanked: 1 time

Re: [myHD 0.2 BETA version] for tests ...

Post by Hslansky » Mon Sep 03, 2018 2:21 am

Sonn wrote:
Sun Sep 02, 2018 11:51 pm
myHD_qpkg install kodi18...
does it tell you when its complete.... or should say done queuing?
My experience is that there is no completed message, just check HD Station to see if it enabled.
These users thanked the author Hslansky for the post:
Sonn (Mon Sep 03, 2018 3:19 am)
Rating: 50%
Hslansky
Posts: 10
Joined: Fri Jun 01, 2018 11:33 pm
Has thanked: 0
Been thanked: 1 time

Re: [myHD 0.2 BETA version] for tests ...

Post by Hslansky » Mon Sep 03, 2018 2:24 am

Philippe,
Can i install 0.2 over 0.1 or do I need to uninstall 0.1 first.

Thanks
Sonn
Posts: 5
Joined: Sun Sep 02, 2018 3:16 am
Has thanked: 2 times
Been thanked: 0

Re: [myHD 0.2 BETA version] for tests ...

Post by Sonn » Mon Sep 03, 2018 3:23 am

So if I understand this correctly , with Kodi it will update itself with the latest version if you run the updater correct? If there is a update available...

NIce work on this Philippe :)
User avatar
philippe
Site Admin
Posts: 109
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 1 time
Been thanked: 9 times

Re: [myHD 0.2 BETA version] for tests ...

Post by philippe » Mon Sep 03, 2018 8:43 am

Hi,
Hslansky wrote:
Mon Sep 03, 2018 2:24 am
Philippe,
Can i install 0.2 over 0.1 or do I need to uninstall 0.1 first.
Thanks
YES you can update from 0.1 and keep all your environment ... only myHD QPKG part is updated ... so you don't lost anything

Philippe.
QNAP / Asustor package integrator
User avatar
philippe
Site Admin
Posts: 109
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 1 time
Been thanked: 9 times

Re: [myHD 0.2 BETA version] for tests ...

Post by philippe » Mon Sep 03, 2018 8:45 am

Hi,
Sonn wrote:
Mon Sep 03, 2018 3:23 am
So if I understand this correctly , with Kodi it will update itself with the latest version if you run the updater correct? If there is a update available...

NIce work on this Philippe :)
YES it's my target ... to don't have to redo works done by other (Kodi team itself) and to get update when they are available for Ubuntu 16.04 without extra works on it.

... I am a lazy :lol:

Philippe.
NB actually it's Beta delivery, but easy to return to nightly build or later to stable version ... (just add or change the PPA kodi team repository)
These users thanked the author philippe for the post:
Sonn (Mon Sep 03, 2018 5:50 pm)
Rating: 50%
QNAP / Asustor package integrator
Sonn
Posts: 5
Joined: Sun Sep 02, 2018 3:16 am
Has thanked: 2 times
Been thanked: 0

Re: [myHD 0.2 BETA version] for tests ...

Post by Sonn » Mon Sep 03, 2018 5:52 pm

philippe wrote:
Mon Sep 03, 2018 8:45 am
Hi,
Sonn wrote:
Mon Sep 03, 2018 3:23 am
So if I understand this correctly , with Kodi it will update itself with the latest version if you run the updater correct? If there is a update available...

NIce work on this Philippe :)
YES it's my target ... to don't have to redo works done by other (Kodi team itself) and to get update when they are available for Ubuntu 16.04 without extra works on it.

... I am a lazy :lol:

Philippe.
NB actually it's Beta delivery, but easy to return to nightly build or later to stable version ... (just add or change the PPA kodi team repository)
All running good here :) Great Job! Thank you!.....
Post Reply