User Tools

Site Tools


linux:ubuntu_20.04:kodi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ubuntu_20.04:kodi [2020/08/19 14:35] excylelinux:ubuntu_20.04:kodi [2023/09/04 13:11] (current) excyle
Line 5: Line 5:
  
 <code> <code>
-\\ 
 apt install software-properties-common apt install software-properties-common
  
Line 13: Line 12:
  
 <code> <code>
-\\ 
 add-apt-repository ppa:team-xbmc/ppa add-apt-repository ppa:team-xbmc/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 /etc/samba/smb.conf mcedit /etc/samba/smb.conf
  
Line 45: Line 41:
  
 <code conf> <code conf>
-\\ +#======================= Global Settings ===================================== 
-#======================= Global Settings =====================================\\ +[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 = /etc/samba/usermap.conf\\+#username map = /etc/samba/usermap.conf
 # 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 = /etc/printcap\\ +printcap name = /etc/printcap 
-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
  
-#======================= Shares ==============================================\\ +#======================= Shares ============================================== 
-[Roms]\\ +[Roms] 
-path = /home/kodi/roms\\ +path = /home/kodi/roms 
-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,video,audio,plugdev,users,dialout,dip,input,netdev kodi
-usermod -G cdrom,video,audio,plugdev,users,dialout,dip,input,netdev kodi\\+
 usermod -G cdrom,video,audio,plugdev,users,dialout,dip,input,netdev root usermod -G cdrom,video,audio,plugdev,users,dialout,dip,input,netdev root
  
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 /etc/lirc/hardware.conf mcedit /etc/lirc/hardware.conf
  
Line 150: Line 141:
  
 <code conf> <code conf>
-\\ +# /etc/lirc/hardware.conf 
-# /etc/lirc/hardware.conf\\ +
-#\\ +#Chosen Remote Control 
-#Chosen Remote Control\\ +REMOTE="Home-brew (16x50 UART compatible serial port)" 
-REMOTE="Home-brew (16x50 UART compatible serial port)"\\ +REMOTE_MODULES="lirc_dev lirc_cir" 
-REMOTE_MODULES="lirc_dev lirc_cir"\\ +REMOTE_DRIVER="" 
-REMOTE_DRIVER=""\\ +REMOTE_DEVICE="/dev/lirc0" 
-REMOTE_DEVICE="/dev/lirc0"\\ +REMOTE_SOCKET="" 
-REMOTE_SOCKET=""\\ +REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
-REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"\\+
 REMOTE_LIRCD_ARGS="" REMOTE_LIRCD_ARGS=""
  
-#Chosen IR Transmitter\\ +#Chosen IR Transmitter 
-TRANSMITTER="None"\\ +TRANSMITTER="None" 
-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="true" START_LIRCD="true"
  
-#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
 #START_LIRCMD="false" #START_LIRCMD="false"
  
-#Try to load appropriate kernel modules\\+#Try to load appropriate kernel modules
 LOAD_MODULES="true" LOAD_MODULES="true"
  
-# 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't have a debconf frontend available, the noninteractive\\ +#that doesn't have a debconf frontend available, the noninteractive 
-#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 "false"\\ +#to leave this set to "false" 
-FORCE_NONINTERACTIVE_RECONFIGURATION="false"\\+FORCE_NONINTERACTIVE_RECONFIGURATION="false"
 START_LIRCMD="" START_LIRCMD=""
  
Line 199: Line 189:
  
 <code bash> <code bash>
-\\ 
 mcedit /etc/lirc/lircd.conf mcedit /etc/lirc/lircd.conf
  
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\\ +#transmitter that you have selected during package installation. 
-#transmitter that you have selected during package installation.\\ +
-#\\ +#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\\+
 #transmitter. #transmitter.
  
-#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://bugs.launchpad.net/ubuntu/ source/lirc/ filebug #this remote, and file a bug at https://bugs.launchpad.net/ubuntu/ source/lirc/ filebug
  
 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 /home/kodi/.kodi/userdata
-mkdir -p /home/kodi/.kodi/userdata\\+
 mkdir -p /home/kodi/.kodi/userdata/keymaps mkdir -p /home/kodi/.kodi/userdata/keymaps
  
Line 327: Line 314:
  
 <code bash> <code bash>
-\\ 
 mcedit /home/kodi/.kodi/userdata/Lircmap.xml mcedit /home/kodi/.kodi/userdata/Lircmap.xml
  
Line 338: Line 324:
  
 <code xml> <code xml>
-\\ +<lircmap> 
-<lircmap>\\ +<remote device="Harmony"> 
-<remote device="Harmony">\\ +<Up>Up</Up> 
-<Up>Up</Up>\\ +<Down>Down</Down> 
-<Down>Down</Down>\\ +<Left>Left</Left> 
-<Left>Left</Left>\\ +<Right>Right</Right> 
-<Right>Right</Right>\\ +<Select>Ok</Select> 
-<Select>Ok</Select>\\ +<Back>Menu</Back> 
-<Back>Menu</Back>\\ +<ChannelPlus>ChannelUp</ChannelPlus> 
-<ChannelPlus>ChannelUp</ChannelPlus>\\ +<ChannelMinus>ChannelDown</ChannelMinus> 
-<ChannelMinus>ChannelDown</ChannelMinus>\\ +<VolumePlus>VolumeUp</VolumePlus> 
-<VolumePlus>VolumeUp</VolumePlus>\\ +<VolumeMinus>VolumeDown</VolumeMinus> 
-<VolumeMinus>VolumeDown</VolumeMinus>\\ +<Star>Clear</Star> 
-<Star>Clear</Star>\\ +<Hash>Enter</Hash> 
-<Hash>Enter</Hash>\\ +<Red>Red</Red> 
-<Red>Red</Red>\\ +<Green>Green</Green> 
-<Green>Green</Green>\\ +<Yellow>Yellow</Yellow> 
-<Yellow>Yellow</Yellow>\\ +<Blue>Blue</Blue> 
-<Blue>Blue</Blue>\\ +<Mute>Mute</Mute> 
-<Mute>Mute</Mute>\\ +<Back>Back</Back> 
-<Back>Back</Back>\\ +<obc1>Exit</obc1> 
-<obc1>Exit</obc1>\\ +<Guide>Guide</Guide> 
-<Guide>Guide</Guide>\\ +<Menu>Prev</Menu> 
-<Menu>Prev</Menu>\\ +<obc101>Info</obc101> 
-<obc101>Info</obc101>\\ +<Record>Rec</Record> 
-<Record>Rec</Record>\\ +<Reverse>Rew</Reverse> 
-<Reverse>Rew</Reverse>\\ +<Forward>Fwd</Forward> 
-<Forward>Fwd</Forward>\\ +<Pause>Pause</Pause> 
-<Pause>Pause</Pause>\\ +<Play>Play</Play> 
-<Play>Play</Play>\\ +<SkipPlus>Skip</SkipPlus> 
-<SkipPlus>Skip</SkipPlus>\\ +<SkipMinus>Replay</SkipMinus> 
-<SkipMinus>Replay</SkipMinus>\\ +<Stop>Stop</Stop> 
-<Stop>Stop</Stop>\\ +<obc2>Aspect</obc2> 
-<obc2>Aspect</obc2>\\ +<MyMusic>F1</MyMusic> 
-<MyMusic>F1</MyMusic>\\ +<obc11>F10</obc11> 
-<obc11>F10</obc11>\\ +<obc12>F11</obc12> 
-<obc12>F11</obc12>\\ +<obc13>F12</obc13> 
-<obc13>F12</obc13>\\ +<obc103>F13</obc103> 
-<obc103>F13</obc103>\\ +<obc102>F14</obc102> 
-<obc102>F14</obc102>\\ +<MyVideo>F2</MyVideo> 
-<MyVideo>F2</MyVideo>\\ +<MyTV>F3</MyTV> 
-<MyTV>F3</MyTV>\\ +<obc6>F4</obc6> 
-<obc6>F4</obc6>\\ +<obc7>F5</obc7> 
-<obc7>F5</obc7>\\ +<obc16>F6</obc16> 
-<obc16>F6</obc16>\\ +<obc5>F7</obc5> 
-<obc5>F7</obc5>\\ +<obc9>F8</obc9> 
-<obc9>F8</obc9>\\ +<obc10>F9</obc10> 
-<obc10>F9</obc10>\\ +<LargeDown>LargeDown</LargeDown> 
-<LargeDown>LargeDown</LargeDown>\\ +<LargeUp>LargeUp</LargeUp> 
-<LargeUp>LargeUp</LargeUp>\\ +<obc100>PwrToggle</obc100> 
-<obc100>PwrToggle</obc100>\\ +<obc3>Queue</obc3> 
-<obc3>Queue</obc3>\\ +<obc4>Sleep</obc4> 
-<obc4>Sleep</obc4>\\ +<One>1</One> 
-<One>1</One>\\ +<Two>2</Two> 
-<Two>2</Two>\\ +<Three>3</Three> 
-<Three>3</Three>\\ +<Four>4</Four> 
-<Four>4</Four>\\ +<Five>5</Five> 
-<Five>5</Five>\\ +<Six>6</Six> 
-<Six>6</Six>\\ +<Seven>7</Seven> 
-<Seven>7</Seven>\\ +<Eight>8</Eight> 
-<Eight>8</Eight>\\ +<Nine>9</Nine> 
-<Nine>9</Nine>\\ +<Zero>0</Zero> 
-<Zero>0</Zero>\\ +</remote>
-</remote>\\+
 </lircmap> </lircmap>
  
Line 410: Line 395:
  
 <code bash> <code bash>
-\\ 
 mcedit /home/kodi/.kodi/userdata/keymaps/Harmony.xml mcedit /home/kodi/.kodi/userdata/keymaps/Harmony.xml
  
Line 421: Line 405:
  
 <code xml> <code xml>
-\\ +<keymap> 
-<keymap>\\ +<!-- Blue toggles watched indicator --> 
-<!-- Blue toggles watched indicator -->\\ +<!-- Yellow will toggle the library views between 'show everything' and 'show watched only' --> 
-<!-- Yellow will toggle the library views between 'show everything' and 'show watched only' -->\\ +<Global> 
-<Global>\\ +<remote> 
-<remote>\\ +<red>SubtitleSearch</red> 
-<red>SubtitleSearch</red>\\ +<blue>ToggleWatched</blue> 
-<blue>ToggleWatched</blue>\\ +<yellow>SendClick(25,14)</yellow> 
-<yellow>SendClick(25,14)</yellow>\\ +</remote> 
-</remote>\\ +<universalremote> 
-<universalremote>\\ +<obc100>Powerdown</obc100> 
-<obc100>Powerdown</obc100>\\ +<obc101>ContextMenu</obc101> 
-<obc101>ContextMenu</obc101>\\ +<obc102>XBMC.EjectTray()</obc102> 
-<obc102>XBMC.EjectTray()</obc102>\\ +<obc103>PreviousMenu</obc103> 
-<obc103>PreviousMenu</obc103>\\ +</universalremote>
-</universalremote>\\+
 </Global> </Global>
  
-<!-- Home screen -->\\ +<!-- Home screen --> 
-<!-- Red update video library -->\\ +<!-- Red update video library --> 
-<Home>\\ +<Home> 
-<remote>\\ +<remote> 
-<red>UpdateLibrary(video)</red>\\ +<red>UpdateLibrary(video)</red> 
-<green>CleanLibrary(video)</green>\\ +<green>CleanLibrary(video)</green> 
-</remote>\\+</remote>
 </Home> </Home>
  
-<!-- 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 --> 
-<FullscreenVideo>\\ +<FullscreenVideo> 
-<remote>\\ +<remote> 
-<red>ActivateWindow(SubtitleSearch)</red>\\ +<red>ActivateWindow(SubtitleSearch)</red> 
-<green>SubtitleDelay</green>\\ +<green>SubtitleDelay</green> 
-<yellow>NextSubtitle</yellow>\\ +<yellow>NextSubtitle</yellow> 
-<blue>AudioNextLanguage</blue>\\ +<blue>AudioNextLanguage</blue> 
-</remote>\\ +</remote> 
-<universalremote>\\ +<universalremote> 
-<obc100>Powerdown</obc100>\\ +<obc100>Powerdown</obc100> 
-<obc101>ContextMenu</obc101>\\ +<obc101>ContextMenu</obc101> 
-<obc102>XBMC.EjectTray()</obc102>\\ +<obc102>XBMC.EjectTray()</obc102> 
-<obc103>PreviousMenu</obc103>\\ +<obc103>PreviousMenu</obc103> 
-</universalremote>\\ +</universalremote> 
-</FullscreenVideo>\\+</FullscreenVideo>
 </keymap> </keymap>
  
Line 479: Line 462:
  
 <code bash> <code bash>
-\\ 
 mcedit /home/kodi/.kodi/userdata/advancedsettings.xml mcedit /home/kodi/.kodi/userdata/advancedsettings.xml
  
Line 490: Line 472:
  
 <code xml> <code xml>
-\\ +<advancedsettings> 
-<advancedsettings>\\ +<cputempcommand>echo "$(sensors -u | head -n10 | grep temp1_input | awk '{print $2 }' |awk '{printf("%d\n",$1   0.5);}') C"</cputempcommand> 
-<cputempcommand>echo "$(sensors -u | head -n10 | grep temp1_input | awk '{print $2 }' |awk '{printf("%d\n",$1  0.5);}') C"</cputempcommand>\\ +<gputempcommand>echo "$(sensors -u | head -n10 | grep temp2_input | awk '{print $2 }' |awk '{printf("%d\n",$1   0.5);}') C"</gputempcommand>
-<gputempcommand>echo "$(sensors -u | head -n10 | grep temp2_input | awk '{print $2 }' |awk '{printf("%d\n",$1  0.5);}') C"</gputempcommand>\\+
 </advancedsettings> </advancedsettings>
  
Line 502: Line 483:
  
 <code bash> <code bash>
-\\ 
 sensors-detect sensors-detect
  
Line 515: Line 495:
 <code> <code>
  
- +wget -O openbox-kodi-master.zip https://github.com/lufinkey/kodi-openbox/archive/master.zip 
-wget -O openbox-kodi-master.zip https://github.com/lufinkey/kodi-openbox/archive/master.zip\\ +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 /etc/lightdm/lightdm.conf mcedit /etc/lightdm/lightdm.conf
  
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 == '3' ]; then\\ +    if [ $numip == '3' ]; then 
-totalwait=$(($i*$sleeptime))\\ +        totalwait=$(($i*$sleeptime)) 
-echo "Slept for $totalwait seconds"\\ +        echo "Slept for $totalwait seconds" 
-break\\ +        break 
-fi+    fi
  
-echo "Sleeping for $sleeptime seconds"\\ +    echo "Sleeping for $sleeptime seconds" 
-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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki