linux:ubuntu_20.04:kodi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ubuntu_20.04:kodi [2020/08/19 14:35] – excyle | linux:ubuntu_20.04:kodi [2023/09/04 13:11] (current) – excyle | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| < | < | ||
| - | \\ | ||
| apt install software-properties-common | apt install software-properties-common | ||
| Line 13: | Line 12: | ||
| < | < | ||
| - | \\ | ||
| add-apt-repository ppa: | add-apt-repository ppa: | ||
| Line 21: | Line 19: | ||
| <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 34: | Line 31: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 45: | Line 41: | ||
| <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 103: | Line 98: | ||
| <code bash> | <code bash> | ||
| - | \\ | + | usermod -G cdrom, |
| - | usermod -G cdrom, | + | |
| usermod -G cdrom, | usermod -G cdrom, | ||
| Line 119: | Line 113: | ||
| <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 130: | Line 123: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| apt update | apt update | ||
| Line 139: | Line 131: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 150: | Line 141: | ||
| <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 199: | Line 189: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 210: | Line 199: | ||
| <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 317: | Line 305: | ||
| <code bash> | <code bash> | ||
| - | \\ | + | mkdir -p / |
| - | mkdir -p / | + | |
| mkdir -p / | mkdir -p / | ||
| Line 327: | Line 314: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 338: | Line 324: | ||
| <code xml> | <code xml> | ||
| - | \\ | + | < |
| - | < | + | <remote device=" |
| - | <remote device=" | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | |
| </ | </ | ||
| Line 410: | Line 395: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 421: | Line 405: | ||
| <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 479: | Line 462: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 490: | Line 472: | ||
| <code xml> | <code xml> | ||
| - | \\ | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | |
| </ | </ | ||
| Line 502: | Line 483: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| sensors-detect | sensors-detect | ||
| Line 515: | Line 495: | ||
| < | < | ||
| - | + | 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 527: | Line 506: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| mcedit / | mcedit / | ||
| Line 538: | Line 516: | ||
| <code conf> | <code conf> | ||
| - | \\ | + | [Seat:*] |
| - | [Seat:*]\\ | + | autologin-user=kodi |
| - | autologin-user=kodi\\ | + | |
| autologin-session=kodi-openbox | autologin-session=kodi-openbox | ||
| Line 551: | Line 528: | ||
| <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 583: | Line 557: | ||
| <code bash> | <code bash> | ||
| - | \\ | ||
| chown kodi.kodi /home/kodi -R | chown kodi.kodi /home/kodi -R | ||
linux/ubuntu_20.04/kodi.1597840554.txt.gz · Last modified: by excyle
