linux:ubuntu_20.04:kodi
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:ubuntu_20.04:kodi [2020/08/19 14:35] – created excyle | linux:ubuntu_20.04:kodi [2023/09/04 13:11] (current) – excyle | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Ubuntu 20.04 ====== | ====== Ubuntu 20.04 ====== | ||
| - | Installeer Ubuntu met de **minimal 20.04 ISO**, maak een gebruiker **kodi** aan met als wachtwoord **kodi** en selecteer bij de installatie alleen **SSH server**\\ | + | Installeer Ubuntu met de **minimal 20.04 ISO**, maak een gebruiker **kodi** aan met als wachtwoord **kodi** en selecteer bij de installatie alleen **SSH server** |
| ====== tools voor repository management ====== | ====== tools voor repository management ====== | ||
| - | < | + | < |
| apt install software-properties-common | apt install software-properties-common | ||
| - | |||
| </ | </ | ||
| Line 12: | Line 11: | ||
| ====== Deb sources voor XBMC toevoegen ====== | ====== Deb sources voor XBMC toevoegen ====== | ||
| - | < | + | < |
| add-apt-repository ppa: | add-apt-repository ppa: | ||
| - | |||
| </ | </ | ||
| Line 20: | Line 18: | ||
| ====== Software installeren ====== | ====== Software installeren ====== | ||
| - | <code bash>\\ | + | <code bash> |
| - | apt update\\ | + | apt update |
| - | apt upgrade\\ | + | apt upgrade |
| apt install kodi openbox lightdm samba lm-sensors mc binutils build-essential subversion git unzip xterm dkms | apt install kodi openbox lightdm samba lm-sensors mc binutils build-essential subversion git unzip xterm dkms | ||
| Line 32: | Line 30: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 42: | Line 40: | ||
| smb.conf | smb.conf | ||
| - | <code conf>\\ | + | <code conf> |
| - | # | + | # |
| - | [global]\\ | + | [global] |
| - | unix charset = UTF8\\ | + | unix charset = UTF8 |
| - | workgroup = Blaat\\ | + | workgroup = Blaat |
| - | netbios name = eXcyle-MCE\\ | + | netbios name = eXcyle-MCE |
| - | server string =\\ | + | server string = |
| - | hosts allow =\\ | + | hosts allow = |
| - | hosts deny =\\ | + | hosts deny = |
| - | security = user\\ | + | security = user |
| - | encrypt passwords = yes\\ | + | encrypt passwords = yes |
| - | max log size = 0\\ | + | max log size = 0 |
| - | create mask = 0777\\ | + | create mask = 0777 |
| - | directory mask = 0777\\ | + | directory mask = 0777 |
| - | force create mode = 0777\\ | + | force create mode = 0777 |
| force directory mode = 0777 | force directory mode = 0777 | ||
| - | # start windows 10 stuff\\ | + | # start windows 10 stuff |
| - | usershare allow guests = yes\\ | + | usershare allow guests = yes |
| - | guest ok = yes\\ | + | guest ok = yes |
| - | guest account = kodi\\ | + | guest account = kodi |
| - | #map to guest = bad user\\ | + | #map to guest = bad user |
| - | #map to guest = bad password\\ | + | #map to guest = bad password |
| - | #username map = / | + | #username map = / |
| # end windows 10 stuff | # end windows 10 stuff | ||
| - | wins support = yes\\ | + | wins support = yes |
| - | local master = yes\\ | + | local master = yes |
| - | os level = 2\\ | + | os level = 2 |
| - | preferred master = yes\\ | + | preferred master = yes |
| - | name resolve order = wins lmhosts bcast\\ | + | name resolve order = wins lmhosts bcast |
| - | printcap name = / | + | printcap name = / |
| - | load printers = no\\ | + | load printers = no |
| - | unix extensions = no\\ | + | unix extensions = no |
| - | follow symlinks = yes\\ | + | follow symlinks = yes |
| - | wide links = yes\\ | + | wide links = yes |
| - | #ntlm auth=true\\ | + | #ntlm auth=true |
| - | server min protocol = SMB2\\ | + | server min protocol = SMB2 |
| client min protocol = SMB2 | client min protocol = SMB2 | ||
| #log level = 2 | #log level = 2 | ||
| - | # | + | # |
| - | [Roms]\\ | + | [Roms] |
| - | path = / | + | path = / |
| - | read only = no\\ | + | read only = no |
| - | guest ok = yes\\ | + | guest ok = yes |
| - | force user = kodi\\ | + | force user = kodi |
| force group = kodi | force group = kodi | ||
| Line 99: | Line 97: | ||
| De user kodi audio rechten geven | De user kodi audio rechten geven | ||
| - | <code bash>\\ | + | <code bash> |
| - | usermod -G cdrom, | + | usermod -G cdrom, |
| usermod -G cdrom, | usermod -G cdrom, | ||
| Line 114: | Line 112: | ||
| voeg onderaan "/ | voeg onderaan "/ | ||
| - | <code bash>\\ | + | <code bash> |
| - | apt update\\ | + | apt update |
| - | apt install lirc/xenial\\ | + | apt install lirc/xenial |
| apt-mark hold lirc | apt-mark hold lirc | ||
| Line 124: | Line 122: | ||
| verwijder de repo weer uit "/ | verwijder de repo weer uit "/ | ||
| - | <code bash>\\ | + | <code bash> |
| apt update | apt update | ||
| Line 132: | Line 130: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 142: | Line 140: | ||
| hardware.conf | hardware.conf | ||
| - | <code conf>\\ | + | <code conf> |
| - | # / | + | # / |
| - | #\\ | + | # |
| - | #Chosen Remote Control\\ | + | #Chosen Remote Control |
| - | REMOTE=" | + | REMOTE=" |
| - | REMOTE_MODULES=" | + | REMOTE_MODULES=" |
| - | REMOTE_DRIVER="" | + | REMOTE_DRIVER="" |
| - | REMOTE_DEVICE="/ | + | REMOTE_DEVICE="/ |
| - | REMOTE_SOCKET="" | + | REMOTE_SOCKET="" |
| - | REMOTE_LIRCD_CONF="/ | + | REMOTE_LIRCD_CONF="/ |
| REMOTE_LIRCD_ARGS="" | REMOTE_LIRCD_ARGS="" | ||
| - | #Chosen IR Transmitter\\ | + | #Chosen IR Transmitter |
| - | TRANSMITTER=" | + | TRANSMITTER=" |
| - | TRANSMITTER_MODULES="" | + | TRANSMITTER_MODULES="" |
| - | TRANSMITTER_DRIVER="" | + | TRANSMITTER_DRIVER="" |
| - | TRANSMITTER_DEVICE="" | + | TRANSMITTER_DEVICE="" |
| - | TRANSMITTER_SOCKET="" | + | TRANSMITTER_SOCKET="" |
| - | TRANSMITTER_LIRCD_CONF="" | + | TRANSMITTER_LIRCD_CONF="" |
| TRANSMITTER_LIRCD_ARGS="" | TRANSMITTER_LIRCD_ARGS="" | ||
| - | #Enable lircd\\ | + | #Enable lircd |
| START_LIRCD=" | START_LIRCD=" | ||
| - | #Don't start lircmd even if there seems to be a good config file\\ | + | #Don't start lircmd even if there seems to be a good config file |
| # | # | ||
| - | #Try to load appropriate kernel modules\\ | + | #Try to load appropriate kernel modules |
| LOAD_MODULES=" | LOAD_MODULES=" | ||
| - | # Default configuration files for your hardware if any\\ | + | # Default configuration files for your hardware if any |
| LIRCMD_CONF="" | LIRCMD_CONF="" | ||
| - | #Forcing noninteractive reconfiguration\\ | + | #Forcing noninteractive reconfiguration |
| - | #If lirc is to be reconfigured by an external application\\ | + | #If lirc is to be reconfigured by an external application |
| - | #that doesn' | + | #that doesn' |
| - | #frontend can be invoked and set to parse REMOTE and TRANSMITTER\\ | + | #frontend can be invoked and set to parse REMOTE and TRANSMITTER |
| - | #It will then populate all other variables without any user input\\ | + | #It will then populate all other variables without any user input |
| - | #If you would like to configure lirc via standard methods, be sure\\ | + | #If you would like to configure lirc via standard methods, be sure |
| - | #to leave this set to " | + | #to leave this set to " |
| - | FORCE_NONINTERACTIVE_RECONFIGURATION=" | + | FORCE_NONINTERACTIVE_RECONFIGURATION=" |
| START_LIRCMD="" | START_LIRCMD="" | ||
| Line 190: | Line 188: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 200: | Line 198: | ||
| lircd.conf | lircd.conf | ||
| - | <code conf>\\ | + | <code conf> |
| - | #This configuration has been automatically generated via\\ | + | #This configuration has been automatically generated via |
| - | #the Ubuntu LIRC package maintainer scripts.\\ | + | #the Ubuntu LIRC package maintainer scripts. |
| - | #\\ | + | # |
| - | #It includes the default configuration for the remote and/or\\ | + | #It includes the default configuration for the remote and/or |
| - | # | + | # |
| - | #\\ | + | # |
| - | #Feel free to add any custom remotes to the configuration\\ | + | #Feel free to add any custom remotes to the configuration |
| - | #via additional include directives or below the existing\\ | + | #via additional include directives or below the existing |
| - | #Ubuntu include directives from your selected remote and/or\\ | + | #Ubuntu include directives from your selected remote and/or |
| # | # | ||
| - | #No default remote configuration was included for Home-brew (16x50 UART compatible serial port)\\ | + | #No default remote configuration was included for Home-brew (16x50 UART compatible serial port) |
| - | #You will need to include your own custom configuration for\\ | + | #You will need to include your own custom configuration for |
| #this remote, and file a bug at https:// | #this remote, and file a bug at https:// | ||
| begin remote | begin remote | ||
| - | name Harmony\\ | + | name Harmony |
| - | bits 16\\ | + | bits 16 |
| - | flags SPACE_ENC|CONST_LENGTH\\ | + | flags SPACE_ENC|CONST_LENGTH |
| - | eps 30\\ | + | eps 30 |
| aeps 100 | aeps 100 | ||
| - | header 9036 4442\\ | + | header 9036 4442 |
| - | one 610 1620\\ | + | one 610 1620 |
| - | zero 610 511\\ | + | zero 610 511 |
| - | ptrail 610\\ | + | ptrail 610 |
| - | repeat 9032 2187\\ | + | repeat 9032 2187 |
| - | pre_data_bits 16\\ | + | pre_data_bits 16 |
| - | pre_data 0x77E1\\ | + | pre_data 0x77E1 |
| - | gap 107881\\ | + | gap 107881 |
| - | min_repeat 4\\ | + | min_repeat 4 |
| toggle_bit_mask 0x0 | toggle_bit_mask 0x0 | ||
| - | begin codes\\ | + | begin codes |
| - | Up 0xD069\\ | + | Up 0xD069 |
| - | Down 0xB069\\ | + | Down 0xB069 |
| - | Left 0x1069\\ | + | Left 0x1069 |
| - | Right 0xE069\\ | + | Right 0xE069 |
| - | Ok 0x2069\\ | + | Ok 0x2069 |
| - | ChannelUp 0x5079\\ | + | ChannelUp 0x5079 |
| - | ChannelDown 0x3079\\ | + | ChannelDown 0x3079 |
| - | VolumeUp 0x5019\\ | + | VolumeUp 0x5019 |
| - | VolumeDown 0x3019\\ | + | VolumeDown 0x3019 |
| - | 1 0x50E9\\ | + | 1 0x50E9 |
| - | 2 0x30E9\\ | + | 2 0x30E9 |
| - | 3 0x90E9\\ | + | 3 0x90E9 |
| - | 4 0x60E9\\ | + | 4 0x60E9 |
| - | 5 0x9019\\ | + | 5 0x9019 |
| - | 6 0x6019\\ | + | 6 0x6019 |
| - | 7 0x1099\\ | + | 7 0x1099 |
| - | 8 0xE099\\ | + | 8 0xE099 |
| - | 9 0x1059\\ | + | 9 0x1059 |
| - | 0 0xE059\\ | + | 0 0xE059 |
| - | Clear 0x2059\\ | + | Clear 0x2059 |
| - | Enter 0x4099\\ | + | Enter 0x4099 |
| - | Red 0x10F9\\ | + | Red 0x10F9 |
| - | Green 0xE0F9\\ | + | Green 0xE0F9 |
| - | Yellow 0x20F9\\ | + | Yellow 0x20F9 |
| - | Blue 0x40F9\\ | + | Blue 0x40F9 |
| - | Mute 0xA019\\ | + | Mute 0xA019 |
| - | Back 0xA019\\ | + | Back 0xA019 |
| - | Exit 0x50D9\\ | + | Exit 0x50D9 |
| - | Guide 0xA0B9\\ | + | Guide 0xA0B9 |
| - | Menu 0x4069\\ | + | Menu 0x4069 |
| - | Info 0xD099\\ | + | Info 0xD099 |
| - | Rec 0x30D9\\ | + | Rec 0x30D9 |
| - | Rew 0xD059\\ | + | Rew 0xD059 |
| - | Fwd 0xB059\\ | + | Fwd 0xB059 |
| - | Pause 0xC019\\ | + | Pause 0xC019 |
| - | Play 0xC0E9\\ | + | Play 0xC0E9 |
| - | Skip 0xB005\\ | + | Skip 0xB005 |
| - | Replay 0xD005\\ | + | Replay 0xD005 |
| - | Stop 0xA0E9\\ | + | Stop 0xA0E9 |
| - | Prev 0xB099\\ | + | Prev 0xB099 |
| - | Aspect 0x50B9\\ | + | Aspect 0x50B9 |
| - | F1 0x90D9\\ | + | F1 0x90D9 |
| - | F10 0x6079\\ | + | F10 0x6079 |
| - | F11 0xA079\\ | + | F11 0xA079 |
| - | F12 0xC079\\ | + | F12 0xC079 |
| - | F13 0x90B9\\ | + | F13 0x90B9 |
| - | F14 0x60B9\\ | + | F14 0x60B9 |
| - | F2 0x60D9\\ | + | F2 0x60D9 |
| - | F3 0xA0D9\\ | + | F3 0xA0D9 |
| - | F4 0xC0D9\\ | + | F4 0xC0D9 |
| - | F5 0x1005\\ | + | F5 0x1005 |
| - | F6 0xE005\\ | + | F6 0xE005 |
| - | F7 0x2005\\ | + | F7 0x2005 |
| - | F8 0x4005\\ | + | F8 0x4005 |
| - | F9 0x9079\\ | + | F9 0x9079 |
| - | LargeDown 0xB0F9\\ | + | LargeDown 0xB0F9 |
| - | LargeUp 0xD0F9\\ | + | LargeUp 0xD0F9 |
| - | PwrToggle 0xC0B9\\ | + | PwrToggle 0xC0B9 |
| - | Queue 0x30B9\\ | + | Queue 0x30B9 |
| - | Sleep 0x4059\\ | + | Sleep 0x4059 |
| - | end codes\\ | + | end codes |
| end remote | end remote | ||
| Line 306: | Line 304: | ||
| maak eerst wat verplichte mappen aan voor kodi | maak eerst wat verplichte mappen aan voor kodi | ||
| - | <code bash>\\ | + | <code bash> |
| - | mkdir -p / | + | mkdir -p / |
| mkdir -p / | mkdir -p / | ||
| Line 315: | Line 313: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 325: | Line 323: | ||
| Lircmap.xml | Lircmap.xml | ||
| - | <code xml>\\ | + | <code xml> |
| - | < | + | < |
| - | <remote device=" | + | <remote device=" |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| </ | </ | ||
| Line 396: | Line 394: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 406: | Line 404: | ||
| Harmony.xml | Harmony.xml | ||
| - | <code xml>\\ | + | <code xml> |
| - | < | + | < |
| - | <!-- Blue toggles watched indicator -->\\ | + | <!-- Blue toggles watched indicator --> |
| - | <!-- Yellow will toggle the library views between 'show everything' | + | <!-- Yellow will toggle the library views between 'show everything' |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| </ | </ | ||
| - | <!-- Home screen -->\\ | + | <!-- Home screen --> |
| - | <!-- Red update video library -->\\ | + | <!-- Red update video library --> |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| </ | </ | ||
| - | <!-- While whatching full-screen video -->\\ | + | <!-- While whatching full-screen video --> |
| - | <!-- Red download subtitles -->\\ | + | <!-- Red download subtitles --> |
| - | <!-- Green Subtitle delay settings -->\\ | + | <!-- Green Subtitle delay settings --> |
| - | <!-- Yellow cycles through the subtitles -->\\ | + | <!-- Yellow cycles through the subtitles --> |
| - | <!-- Blue cycles through the audio streams -->\\ | + | <!-- Blue cycles through the audio streams --> |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | </ |
| - | </ | + | </ |
| </ | </ | ||
| Line 463: | Line 461: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 473: | Line 471: | ||
| advancedsettings.xml | advancedsettings.xml | ||
| - | <code xml>\\ | + | <code xml> |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| </ | </ | ||
| Line 484: | Line 482: | ||
| Draai vervolgens | Draai vervolgens | ||
| - | <code bash>\\ | + | <code bash> |
| sensors-detect | sensors-detect | ||
| Line 494: | Line 492: | ||
| ===== Autostart ===== | ===== Autostart ===== | ||
| - | Download en installeer Kodi-Openbox Xsession\\ | + | Download en installeer Kodi-Openbox Xsession |
| < | < | ||
| - | + | wget -O openbox-kodi-master.zip https:// | |
| - | wget -O openbox-kodi-master.zip https:// | + | unzip openbox-kodi-master.zip |
| - | unzip openbox-kodi-master.zip\\ | + | cd kodi-openbox-master |
| - | cd kodi-openbox-master\\ | + | bash ./build.sh |
| - | bash ./build.sh\\ | + | |
| dpkg -i kodi-openbox.deb | dpkg -i kodi-openbox.deb | ||
| - | |||
| </ | </ | ||
| Line 509: | Line 505: | ||
| Maak een / | Maak een / | ||
| - | <code bash>\\ | + | <code bash> |
| mcedit / | mcedit / | ||
| Line 519: | Line 515: | ||
| lightdm.conf | lightdm.conf | ||
| - | <code conf>\\ | + | <code conf> |
| - | [Seat:*]\\ | + | [Seat:*] |
| - | autologin-user=kodi\\ | + | autologin-user=kodi |
| autologin-session=kodi-openbox | autologin-session=kodi-openbox | ||
| Line 531: | Line 527: | ||
| Het wil wel eens voorkomen dat kodi al gestart wordt voordat het netwerk klaar is. Om dit te voorkomen kan je onderstaande toevoegen aan het begin van "/ | Het wil wel eens voorkomen dat kodi al gestart wordt voordat het netwerk klaar is. Om dit te voorkomen kan je onderstaande toevoegen aan het begin van "/ | ||
| - | <code bash>\\ | + | <code bash> |
| - | # Dirty hack to wait for network befor starting kodi\\ | + | # Dirty hack to wait for network befor starting kodi |
| - | maxwait=20\\ | + | maxwait=20 |
| sleeptime=3 | sleeptime=3 | ||
| - | i=0\\ | + | i=0 |
| - | while [ $i -lt $maxwait ]\\ | + | while [ $i -lt $maxwait ] |
| - | do\\ | + | do |
| - | numip=`ip address show dev eno1 | grep inet | wc -l` | + | numip=`ip address show dev eno1 | grep inet | grep -v inet6 | wc -l` |
| - | if [ $numip == ' | + | |
| - | totalwait=$(($i*$sleeptime))\\ | + | totalwait=$(($i*$sleeptime)) |
| - | echo "Slept for $totalwait seconds" | + | echo "Slept for $totalwait seconds" |
| - | break\\ | + | break |
| - | fi | + | fi |
| - | echo " | + | |
| - | sleep $sleeptime\\ | + | sleep $sleeptime |
| - | ((i++))\\ | + | ((i++)) |
| - | done\\ | + | done |
| #End of dirty hack | #End of dirty hack | ||
| - | \\ | ||
| </ | </ | ||
| Line 561: | Line 556: | ||
| Als laatste zette we nog even de juiste rechten op alle config bestanden | Als laatste zette we nog even de juiste rechten op alle config bestanden | ||
| - | <code bash>\\ | + | <code bash> |
| chown kodi.kodi /home/kodi -R | chown kodi.kodi /home/kodi -R | ||
linux/ubuntu_20.04/kodi.1597840522.txt.gz · Last modified: by excyle
