I installed the latest version of ubuntu: howto
........
wget http://download.openvz.org/template/precr…4-x86_64.tar.gz
mkdir -p /storage/data/ubuntu
cd /storage/data/ubuntu
tar xzf ubuntu-16.04-x86_64.tar.gz
rm ubuntu-16.04-x86_64.tar.gz
.........
mount -o bind /dev /storage/data/ubuntu/dev
mount -o bind /sys /storage/data/ubuntu/sys
mount -t proc proc-chroot /storage/data/ubuntu/proc/
mount -t devpts devpts-chroot /storage/data/ubuntu/dev/pts
.........
cp /etc/resolv.conf /storage/data/ubuntu/etc/resolv.conf
#Good thing to make an autostart file so everything is mounted at reboot
touch /storage/.config/autostart.sh
nano /storage/.config/autostart.sh
#!/bin/sh
chmod -R a+rwX /dev/snd
mount -o bind /dev /storage/data/ubuntu/dev
mount -o bind /sys /storage/data/ubuntu/sys
mount -t proc proc-chroot /storage/data/ubuntu/proc/
mount -t devpts devpts-chroot /storage/data/ubuntu/dev/pts
Ctrl-x, Y, enter
#Giving rights to the executable
chmod +x /storage/.config/autostart.sh
dos2unix /storage/.config/autostart.sh
..........
#Chroot into ubuntu
/storage/data/ubuntu/usr/sbin/chroot /storage/data/ubuntu/ /bin/bash
apt-get update
apt-get install nano
#Enable use of add-apt-repository and other nice stuff
sudo apt-get install software-properties-common python-software-properties
#Need user for non-root only programs like steam
#add the user "retro" with password "console"
adduser --quiet --disabled-password -shell /bin/bash --home /home/retro --gecos "User" retro; echo -e "console\nconsole" | passwd retro
...................
#Grant Root Privileges to the User
visudo
Find the following code:
# User privilege specification
root ALL=(ALL:ALL) ALL
#granting root privileges to the user "retro"
#Add the following below that code:
retro ALL=(ALL:ALL) ALL
Ctrl-x, Y, enter
#login as user retro
su retro
.......................
#Install Google-Chrome
wget -q -O - http://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb deb stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
.................
#Creating a script google-chrome for Kodi / LE (corrected / dev / shm) / If still in chroot as user then type exit twice
touch /storage/chrome.sh
nano /storage/chrome.sh
...........
#paste text
#!/bin/sh
/storage/data/ubuntu/usr/sbin/chroot /storage/data/ubuntu /bin/bash -x << EOF
chmod 1777 /dev/shm
su retro
google-chrome --start-maximized
EOF
Ctrl-x, Y, enter
#Giving rights to the executable
chmod +x /storage/chrome.sh
dos2unix /storage/chrome.sh
................
# Launching Google-Chrome LibreElec menu / remote control using entry:
#System.Exec (path to the script)
#Editing file remote.xml and entry in the global section (for key 1)
<one>System.Exec(/storage/chrome.sh)</one>
# The sound of the google-chrome / Ubuntu / LE etc.
# Installation package ALSA / Chroot into ubuntu
/storage/data/ubuntu/usr/sbin/chroot /storage/data/ubuntu/ /bin/bash
sudo apt-get install alsa-utils
sudo touch /etc/asound.conf
#insert the code (from your audio settings in LE) in me [hw: 1,7] for example:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 7