[MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

myHD is an isolated (namespace (mnt, IPC, PID)) Ubuntu environment to run Ubuntu application displayed as ASUSTOR Asportal / Xorg applications.
User avatar
father.mande
Posts: 1818
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by father.mande »

Hi pierremilien,

I am so sorry ... but due to an urgent meeting, I am not sure to have time today for writing information.
please apologize me.

I will do it as soon as possible.
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1818
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by father.mande »

Hi,

After some tests ... my suggestion to upgrade (Ubuntu to 2004 and Kodi to v 19)
... it's a little more complex due to the fact you use Ubuntu 18.04.
Based on the fact your first interest is kodi

have a terminal (ssh) open as root/your_admin_password

1 collect information on your Kodi configuration
... list external addons installed (to be reinstall if exist in v19)
... list of binary addons installed (it's possible to get the list : enter in Ubuntu : myHD_root then do : dpkg -l kodi* (all installed binary addons have "ii" at start of line) then exit

2 save actual version (so you can go back in case of problems) ALSO for getting back your HOME folder with your settings
cd /usr/local
mv .myHD .myHD_prev


3 remove myHD APKG and all linked APKG

4 install again myHD 2.1 ... normally this (at start) install Ubuntu 20.04 L.T.S. including Chrome and Kodi

5 stop myHD : myHD stop

6 Copy the old home folder to get back your settings ...
cd /usr/local/.myHD
mv myHD_home myHD_home.to_be_deleted_when_all_works (use any name )
mv ../.myHD.prev/myHD_home .


7 restart myHD : myHD start

8 do an update of Ubuntu (later be sure auto update (cron at 4h00 A.M. is set)) ... this can be long follow on screen in case of question (default is always a good choice at this time)
myHD apt_upgrade_package
... some recommend to restart myHD to be sure to get new libs and basic tools : myHD restart

9 (kodi is installed by default) install Asportal version of Kodi launcher MH-kodi.sh or MH-kodi19.sh ( or 18) in fact it's just a launcher of kodi program

10 reinstall addons if necessary (binary using Ubuntu apt-get or external as usual).
... verify settings ... then test.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
peterk80
Posts: 17
Joined: Sun Feb 24, 2019 1:08 am

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by peterk80 »

Hello father mande,
I have a question about HDR and HD audio passthrough on kodi 19.4
Is it supported? Because on my AS6404T i get no HD audio when i set kodi to passthrough and i set everything right in the setting in kodi that my amplifier support it. When i set passthrough off when i watch a video i hear sound multi channel pcm.
Als is HDR video supported? NO matter what i do i get no HDR activated.

I'm on adm 4.1

Greets Peter.
lachender Hans
Posts: 21
Joined: Sun Oct 22, 2017 10:38 pm

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by lachender Hans »

Hello father mande,

when I try to enable web-access on MH-kodi19, I get an error saying something like "http is not available"

as far as I understood, if asustor could be accessed via network, kodi should have no problems. kodi did work with web-access pre-activated (once the original app from asustor, than your version). I deactivated security restrictions & tried the preset port (88 or 8080, I cannot tell from memory) without success on mh-kodi
currently, no other additional service except an ebook server is running (and it did not mess with other kodi setups, so i do not assume this as source of my troubles).

if I could be told to try something impossible, I will stop
if detailed info is needed, i can try supply it if I'm told what to do - I'm new to myHD but "know how to linux"

btw.: I conacted you some time ago, and spend time on other things meanwhile, so this is not urgent

Cheers, hans
User avatar
father.mande
Posts: 1818
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by father.mande »

Hi,

Just tested web interface
... only things to remember is that TCPIP Port is shared between ADM and myHD Ubuntu env. so take care on port in use to select another one
parameters :
port 8889
require authentification : user : kodi or at_your_choice ; password : at_your_choice
No SSl
interface : Chorus 2
set : authorize remote control on this system (my menu are in French, so I just translate partially)

You must configure EZ-router or EZ-connect if you want to get access through Internet (or in terminal mode upnpc-shared

for SSL ... no idea, I don't use or test it

Doc :
https://kodi.wiki/view/Web_interface
and DEBUG and LOGS (add log for web interface in logging components).
https://kodi.wiki/view/Log_file/Advanced

A screenshot of my configuration :
screenshot00003_reduced.png
screenshot00003_reduced.png (406.1 KiB) Viewed 5604 times
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
lachender Hans
Posts: 21
Joined: Sun Oct 22, 2017 10:38 pm

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by lachender Hans »

It works when I went to a other port (I seem to remember the neighbor port will be used by kodi as well). the preset 88 is already in use. no idea what uses it, but my hd & kodi work wonderful.

thank you
User avatar
father.mande
Posts: 1818
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by father.mande »

Hi,
lachender Hans wrote:It works when I went to a other port (I seem to remember the neighbor port will be used by kodi as well). the preset 88 is already in use. no idea what uses it, but my hd & kodi work wonderful.
thank you
You can used, in a terminal and connected as root / your_admin_password (administrators users don't have access to program name) :
/bin/netstat -lpt
-lpt means : l for listening address p for program_name_using_the_port t for tcpip
you get a list of ports used, search in column "Local Address" port in used is value after ":"

If you want more information, use the same tools (netstat) but provide with Entware APKG (package net-tools) to get a more complete netstat tool.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
pierremillien
Posts: 34
Joined: Sat Feb 11, 2017 3:42 am

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by pierremillien »

Once again,
Many thanks. Uninstalling and reinstalling when well.
Except with the advanced settings.xml everything work perfectly well again.

You Rock !

btw, if I can ask one more question... do you know where I can find the advanced settings.xml. In a normal installation it it is at ~/.kodi/userdata/ or in volume1/.@plugins/AppCentral/.kodi or something like that.
But in your installation... no idea :-)
father.mande wrote:Hi,

After some tests ... my suggestion to upgrade (Ubuntu to 2004 and Kodi to v 19)
... it's a little more complex due to the fact you use Ubuntu 18.04.
Based on the fact your first interest is kodi

have a terminal (ssh) open as root/your_admin_password

1 collect information on your Kodi configuration
... list external addons installed (to be reinstall if exist in v19)
... list of binary addons installed (it's possible to get the list : enter in Ubuntu : myHD_root then do : dpkg -l kodi* (all installed binary addons have "ii" at start of line) then exit

2 save actual version (so you can go back in case of problems) ALSO for getting back your HOME folder with your settings
cd /usr/local
mv .myHD .myHD_prev


3 remove myHD APKG and all linked APKG

4 install again myHD 2.1 ... normally this (at start) install Ubuntu 20.04 L.T.S. including Chrome and Kodi

5 stop myHD : myHD stop

6 Copy the old home folder to get back your settings ...
cd /usr/local/.myHD
mv myHD_home myHD_home.to_be_deleted_when_all_works (use any name )
mv ../.myHD.prev/myHD_home .


7 restart myHD : myHD start

8 do an update of Ubuntu (later be sure auto update (cron at 4h00 A.M. is set)) ... this can be long follow on screen in case of question (default is always a good choice at this time)
myHD apt_upgrade_package
... some recommend to restart myHD to be sure to get new libs and basic tools : myHD restart

9 (kodi is installed by default) install Asportal version of Kodi launcher MH-kodi.sh or MH-kodi19.sh ( or 18) in fact it's just a launcher of kodi program

10 reinstall addons if necessary (binary using Ubuntu apt-get or external as usual).
... verify settings ... then test.

Philippe.
User avatar
father.mande
Posts: 1818
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by father.mande »

Hi,

sorry for the delay, I was in travel up to now.

myHD is a separate environment, you can be at the good place by using : myHD_astr command this command switch you to the home folder of myHD astr user where the .kodi folder is.
if you want to access it directly in ADM it's : /usr/local/.myHD/myHD_home/astr/ same as before with .kodi folder in it (same as previous using myHD_astr command.
BUT in ADM take care of the user owner of the file, if you create one (solution can be to switch to astr ADM user or to use chown (change owner command) ... so the best is to use myHD_astr ...

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
pierremillien
Posts: 34
Joined: Sat Feb 11, 2017 3:42 am

Re: [MH-kodi19 / MH-kodi18 / MH-kodi17] for myHD (16.04 & 18.04 env.)

Post by pierremillien »

Dear Philippe,

I hope you doing well.
At my side, I will be in full time holiday starting next week till end of year (Job changing).
During that time my target is to clean that KODI issue I Have :-)

starting with that SPDIF sound problem (GrrrR).

I have fully removed myHD using the

Code: Select all

myHD uninstall_myHD 
that I found in your https://www.father-mande.ovh/A/F/myHD2_quick_start.pdf

And back to ADM portal to re-install entirely myHD. Please find below the start process. When it comes to the sound (at the end) you'll see where I am coming to say... :)

Code: Select all

root@Muffin:/volume1/.@root # myHD start
NO myHD don't run no more with systemd or with bash 
ENABLE ... asportal is Enable
myHD start ... requested Wed Nov  9 20:43:24 CET 2022
get keys from Asportal / get sound def.
myHD astr user exist ...
==== Check installation method
Now start jchroot in background
Start jinit (systemd) ... Wed Nov  9 20:43:25 CET 2022
remove (if needed) getty.target from multi-user.target.wants
remove (if needed pulseaudio.service from chroot /usr/lib/systemd/user/
add (if needed) rc.local service to systemd
add (if needed) dropbear service to systemd
Segmentation fault (core dumped)
now start in background a survey to manage a clean exit
time to do extra works in myHD
keys for sshfs / ssh already generated for root
keys for sshfs / ssh already generated for astr
create or verify authorized_keys for ADM root user
keys for myHD root user is already installed
keys for myHD astr user is already installed
Background interface to solve some launch problems (like AppImage)
Init alsa
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:0 (empty configuration)
Found hardware: "HDA-Intel" "Intel Haswell HDMI" "HDA:80862807,80860101,00100000" "0x8086" "0x2010"
Hardware is initialized using a generic method
/usr/share/alsa/init/default:181: value write error: Operation not permitted
/usr/share/alsa/init/default:181: value write error: Operation not permitted
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:1 (empty configuration)
Found hardware: "HDA-Intel" "Realtek ALC887-VD" "HDA:10ec0887,10ec0887,00100302" "0x8086" "0x7270"
Hardware is initialized using a generic method
xbindkeys already installed
crudini already installed
gmrun already installed
parcellite already installed
Start autorun (for Asportal) if defined
Star applying Xkeyboard with : us 
set X keyboard layout/variant using myHD tools
myHD start ... finished Wed Nov  9 20:43:40 CET 2022
As you can see, there is something going on with the sound card on that Asustor AS7004T :roll:
Background interface to solve some launch problems (like AppImage)
Init alsa
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:0 (empty configuration)
Found hardware: "HDA-Intel" "Intel Haswell HDMI" "HDA:80862807,80860101,00100000" "0x8086" "0x2010"
Hardware is initialized using a generic method
/usr/share/alsa/init/default:181: value write error: Operation not permitted
/usr/share/alsa/init/default:181: value write error: Operation not permitted
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:1 (empty configuration)
Found hardware: "HDA-Intel" "Realtek ALC887-VD" "HDA:10ec0887,10ec0887,00100302" "0x8086" "0x7270"
Hardware is initialized using a generic method
I think that at that stage the better thing to do is to go to the Ubuntu forum and ask... or ? any magic tricks for that ?

Cheers, Pierre
Post Reply

Return to “myHD”