Skip to content

Guide for Dummies (like me ^^) #29

@Bonifatius94

Description

@Bonifatius94

Hi Eric! Great work! I appreciate it a lot!

Could you please make a little 5 to 10 commands setup guide to get your stuff to work on some popular linux distros? This would be great :D

I've done something like the following commands for my setup onto Ubuntu 18.04 LTS.

# install docker and git
sudo apt-get update && sudo apt-get install -y docker.io git
sudo usermod -aG docker $USER
reboot

# install x11docker
cd ~
git clone https://github.com/mviereck/x11docker
sudo cp x11docker/x11docker* /usr/bin/
sudo /usr/bin/x11docker --install

# pull the latest docker image
docker pull erichough/kodi:latest

# create dockerized kodi system service definition (you need to play a bit around with the settings of the [service] section to get this how you need it)
sudo nano /etc/systemd/system/kodi.service
================================
[Unit]
Description=Dockerized Kodi
Requires=docker.service
After=network.target docker.service

[Service]
# Pulling the docker image before every service startup is not required as we've already pulled the image once. This also allows to fix the kodi-docker version, but also avoids that updates are pulled automatically.
#ExecStartPre=/usr/bin/docker pull erichough/kodi
ExecStart=/usr/bin/x11docker --xorg --pulseaudio erichough/kodi
# I've decided to disable the restart option as long as I need to make changes to the service as kodi will always restart when you try exit it. You can enable this option if you got everything set up.
#Restart=always
KillMode=process

[Install]
WantedBy=multi-user.target
================================

# enable the kodi service, so it starts up automatically at boot
sudo systemctl daemon-reload && sudo systemctl enable kodi
reboot

# the dockerized kodi should start automatically after the reboot

I've already tested this approach, so you could put it to your github wiki or something like that ;)

Best wishes
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions