• Vítejte na XBMC-Kodi.cz
  • Česko-slovenská komunita fanoušků XBMC/Kodi
Vítejte návštevníku! Přihlášení Registrace


Hodnocení tématu:
  • 0 Hlas(ů) - 0 Průměr
  • 1
  • 2
  • 3
  • 4
  • 5
Mini Ubuntu s Kodi (bootovanie priamo do Kodi).
#1
Riesil som teraz jeden starsi notebook, cielom bola co najuspornejsia instalacia Linuxu s autostartom do Kodi, geneza je v tomto vlakne http://www.xbmc-kodi.cz/prispevek-kodi-v...e-to-mozne
Nakoniec sa mi to podarilo aj ked urcite existuje sposob ako tu instalaciu este okliestit a znizit naroky na systemove prostriedky. Chcem sa opytat Linuxu znalych ludi ci niekto pozna sposob ako spojazdnit stihle Ubuntu-Kodi. Jasne ze idealne je pouzit OpenELEC/LibreElec, ale tie v novych verziach uz nepodporuju architekturu X86-i386 ale uz len x86-64bit.

Tu je riesenie ktore som pouzil

1.Instalacia ubuntu z usb mini.iso
pri vybere aplikacii vybrat zakladne sytem aplikacie,ssh,xubuntu desktop

2.Prihlasenie cez SSH

3.Vytvorenie uzivatela bez hesla (kodi) a nastavenie opravneni
sudo adduser --disabled-password --gecos "" kodi
sudo usermod -a -G cdrom,video,plugdev,users,dialout,dip,input,netdev kodi

4.Instalacia kodi
sudo apt-add-repository ppa:team-xbmc/unstable
sudo apt-get update
sudo apt-get install kodi

5.Instalacia openbox
sudo apt-get install openbox

6.Instalacia Kodi-Openbox Xsession (stiahnutie,rozzipovanie, vytvorenie .deb balicka, instalacia .deb)
wget -O openbox-kodi-master.zip https://github.com/lufinkey/kodi-openbox...master.zip
unzip openbox-kodi-master.zip
cd kodi-openbox-master
bash ./build.sh
sudo dpkg -i kodi-openbox.deb

7.Povolenie auto login v LightDM (vytvorenie a editacia suboru lightdm.conf)
sudo nano /etc/lightdm/lightdm.conf
Vlozit nasledujuce:
[Seat:*]
autologin-user=kodi
autologin-session=kodi-openbox

8.Restart ubuntu
sudo reboot
X96mini S905W 2GB/16GB, CoreELEC 9.2.8, KODI 18.5 on SD, Android 7.1.2 in internal.
 
Citovat
#2
Tak mi to este nedalo (a zacalo ma to aj bavit ) a skusil som spojazdnit kodi bez instalacie akehokolvek desktopu.
Kodi bezi ako sluzba cez xserver xorg a openbox. Tu je postup:

1.Instalacia ubuntu servera z usb (v mojom pripade ubuntu-16.04.5-server-i386.iso)
pri vybere aplikacii pocas instalacie vybrat iba SSH server

2.Prihlasenie cez SSH

3.Instalacia potrebnych balickov
sudo apt-get update
sudo apt-get install ssh software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon vainfo i965-va-driver linux-firmware dbus-x11 udisks2 openbox pastebinit udisks2 xserver-xorg-video-intel
sudo apt-get dist-upgrade

4.Povolit start Xserveru pre vsetkych
sudo dpkg-reconfigure xserver-xorg-legacy

5.Edituj subor /etc/X11/Xwrapper.config
sudo nano /etc/X11/Xwrapper.config
Vloz na koniec:
needs_root_rights=yes

6.Vytvorenie uzivatela "kodi"
sudo adduser kodi
sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input kodi

7.Vytvorit subor /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
Vlozit:
[Actions for kodi user]
Identity=unix-user:kodi
Action=org.freedesktop.login1.*;org.freedesktop.udisks2.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Untrusted Upgrade]
Identity=unix-user:kodi
Action=org.debian.apt.upgrade-packages;org.debian.apt.update-cache
ResultAny=yes
ResultInactive=yes
ResultActive=yes

8.Vytvorit subor /etc/systemd/system/kodi.service
sudo nano /etc/systemd/system/kodi.service
Vlozit:
[Unit]
Description = kodi-standalone using xinit
Requires = dbus.service
After = systemd-user-sessions.service sound.target network-online.target

[Service]
User = kodi
Group = kodi
Type = simple
PAMName=login
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/openbox-session -- :0 -nolisten tcp vt7
Restart = on-abort

[Install]
WantedBy = multi-user.target

9.Edituj subor /etc/security/limits.conf
sudo nano /etc/security/limits.conf
Vlozit:
kodi             -       nice            -1

10.Fake display-manager.service, aby nevytvorili plymouth.
sudo ln -s /etc/systemd/system/kodi.service /etc/systemd/system/display-manager.service

11.Instalacia Kodi
sudo apt-add-repository ppa:team-xbmc/unstable
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install kodi kodi-x11

12.Nastavenia pre openbox
sudo mkdir -p /home/kodi/.config/openbox
sudo touch /home/kodi/.config/openbox/autostart
sudo chown kodi:kodi /home/kodi/.config -R

13.Vytvorit subor /home/kodi/.config/openbox/autostart
sudo nano /home/kodi/.config/openbox/autostart
Vlozit:
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"
xsetroot #000000
xset s off -dpms
/usr/bin/kodi --standalone
while [ $? -ne 0 ]; do
/usr/bin/kodi --standalone
done
openbox --exit

14.Start kodi
sudo systemctl start kodi
X96mini S905W 2GB/16GB, CoreELEC 9.2.8, KODI 18.5 on SD, Android 7.1.2 in internal.
 
Citovat
  


Přejít na fórum:


Prochází: 1 host(ů)