User Tools

Site Tools


kodi:kodi-nuc

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
kodi:kodi-nuc [2023/12/28 01:05] – [bittorrent on nuc] Wuffkodi:kodi-nuc [2026/07/29 15:01] (current) – [Boot without connected TV / AVR] Wuff
Line 1: Line 1:
-====== Kodi NUC setup ======+====== Kodi NUC main setup ======
  
-KODI INSTALL\\ +===== BIOS SETTINGS ===== 
 +Enter bios: 
 +<code>systemctl reboot --firmware-setup</code> 
 +Set SGX to Enabled in BIOS to avoid boot message relating to it. (can possibly be set by software https://github.com/intel/sgx-software-enable ) 
 +Set Fan control to custom with fanless at 48C, min 75, 30% at 1C, min 65 for RAM. 
 + 
 +Suggested Custom Fan Control Mode: 
 +Primary Temperature Sensor to Processor, Fan Off Capability - enabled at 48C, Minimum Temperature to 85, Minimum Duty Cycle to 40, Duty Cycle Increment to 6 
 +Secondary Temperature Sensor to Memory, Minimum Temperature to 60, Minimum Duty Cycle to 40, Duty Cycle Increment to 6. 
 + 
 +Set CEC to desired settings 
 + 
 +===== KODI INSTALL ===== 
  
 Base OS install of Ubuntu server LTS 22.04.3 (orig notes from 20.04.1) Base OS install of Ubuntu server LTS 22.04.3 (orig notes from 20.04.1)
Line 16: Line 28:
 <code> <code>
 sudo apt-get update sudo apt-get update
-sudo apt-get install software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs13 libva2 vainfo i965-va-driver linux-firmware dbus-x11 openbox pastebinit xserver-xorg-video-intel alsa+sudo apt-get install software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs13 libva2 vainfo i965-va-driver-shaders linux-firmware dbus-x11 openbox pastebinit xserver-xorg-video-intel alsa
 sudo apt-get dist-upgrade sudo apt-get dist-upgrade
 +</code>
 +
 +Support NFS mounts on system level:
 +<code>
 +sudo apt-get install nfs-common
 </code> </code>
  
Line 44: Line 61:
  
 sudo apt-get purge cloud-init* cloud-guest-utils sudo apt-get purge cloud-init* cloud-guest-utils
 +
 +sudo apt-get purge ubuntu-advantage-tools
 +sudo apt-get purge cryptsetup*
 +
 +
  
 #install zip and unzip #install zip and unzip
Line 67: Line 89:
 sudo systemctl disable motd-news.timer sudo systemctl disable motd-news.timer
  
-apt-get remove --purge landscape-common+sudo apt-get remove --purge landscape-common
 sudo chmod -R 0644 /etc/update-motd.d/ sudo chmod -R 0644 /etc/update-motd.d/
 sudo vi /etc/default/motd-news sudo vi /etc/default/motd-news
Line 163: Line 185:
 sudo apt-get dist-upgrade sudo apt-get dist-upgrade
 sudo apt-get install kodi kodi-bin kodi-inputstream-adaptive kodi-vfs-libarchive kodi-vfs-rar sudo apt-get install kodi kodi-bin kodi-inputstream-adaptive kodi-vfs-libarchive kodi-vfs-rar
 +
 +#remove joystick support unless desired for retro-gaming
 +sudo apt-get purge kodi-peripheral-joystick
 </code> </code>
  
Line 294: Line 319:
 NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with <code>uname -a</code> NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with <code>uname -a</code>
  
-First find the connected port (HDMI/Displayport):+First find the connected port (HDMI/DP). All available ports are in the drm folder, check the status of each port until you find the correct 'connected' one:
 <code> <code>
 ls -la /sys/class/drm ls -la /sys/class/drm
-cat /sys/class/drm/card0-DP-1/status +cat /sys/class/drm/card0-HDMI-A-1/status 
 connected connected
 </code> </code>
  
-edit /etc/default/grub and adjust the GRUB_CMDLINE_LINUX_DEFAULT with your port details and desired display resolution and refresh rate. Add directly after the refresh rate for Digital output! Note the port info here does not start with "card0-"+edit /etc/default/grub and adjust the GRUB_CMDLINE_LINUX_DEFAULT with your port details and desired display resolution and refresh rate. Add directly after the refresh rate for Digital output! Note the port info here does not start with "card0-"
 <code> <code>
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:1920x1080@50D drm_kms_helper.edid_firmware=HDMI-A-1:edid/edid.bin"+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:3840x2160@30e drm.edid_firmware=HDMI-A-1:edid/edid.bin"
 </code> </code>
  
 Make sure the system was booted connected to the AVR/TV and everything is working. Then proceed to copy the EDID: Make sure the system was booted connected to the AVR/TV and everything is working. Then proceed to copy the EDID:
 <code> <code>
-sudo mkdir -p /lib/firmware/edid +sudo mkdir -p /usr/lib/firmware/edid 
-sudo cp /sys/class/drm/card0-HDMI-A-1/edid /lib/firmware/edid/edid.bin+sudo cp /sys/class/drm/card0-HDMI-A-1/edid /usr/lib/firmware/edid/edid.bin
 </code> </code>
  
Line 316: Line 341:
 <code bash /etc/initramfs-tools/hooks/include-edid-data> <code bash /etc/initramfs-tools/hooks/include-edid-data>
 #!/bin/sh #!/bin/sh
- 
 PREREQ="udev" PREREQ="udev"
-prereqs() +prereqs() { echo "$PREREQ"}
-{ +
-   echo "$PREREQ" +
-}+
  
 case $1 in case $1 in
-prereqs) +    prereqs) prereqsexit 0 ;;
-   prereqs +
-   exit 0 +
-   ;;+
 esac esac
  
 . /usr/share/initramfs-tools/hook-functions . /usr/share/initramfs-tools/hook-functions
-# Begin real processing below this line 
  
-if [ ! -e "${DESTDIR}/lib/firmware/edid" ]; then +# Ensure directory exists inside initramfs root 
-    mkdir -p "${DESTDIR}/lib/firmware/edid"+if [ ! -e "${DESTDIR}/usr/lib/firmware/edid" ]; then 
 +    mkdir -p "${DESTDIR}/usr/lib/firmware/edid"
 fi fi
  
-if [ -r "/lib/firmware/edid/edid.bin" ]; then +# Copy the file to the correct standard location 
-   cp "/lib/firmware/edid/edid.bin" "${DESTDIR}/lib/firmware/edid/"+if [ -r "/usr/lib/firmware/edid/edid.bin" ]; then 
 +   cp "/usr/lib/firmware/edid/edid.bin" "${DESTDIR}/usr/lib/firmware/edid/"
 fi fi
  
-manual_add_modules i915 radeon+# Ensure graphics drivers load early enough to see the EDID 
 +manual_add_modules i915 radeon amdgpu
 exit 0 exit 0
 +
 </code> </code>
  
Line 603: Line 624:
 </code> </code>
  
-===== bittorrent on nuc ===== 
-<code> 
-sudo apt-get install transmission-daemon 
-sudo service transmission-daemon stop 
-sudo vi /var/lib/transmission-daemon/info/settings.json 
-#change rcp username and password (the password can be plaintext, next restart it'll be replaced with sha1 format) 
-#add local network to rcp whitelist like 127.0.0.1,192.168.1.* 
-#set "incomplete-dir": "/var/lib/transmission-daemon/downloads", 
-#set "incomplete-dir-enabled": true, 
-#set umask to 2 
-#default torrent folder is /var/lib/transmission-daemon/downloads. place torrent in there and it will start downloading. 
-sudo usermod -a -G debian-transmission wuff 
-sudo usermod -a -G users debian-transmission 
  
-#increase UDP buffers for uTP support 
-sudo vi /etc/sysctl.conf 
-add  
-#UDP buffer increase for Transmission uTP support 
-net.core.rmem_max = 16777216 
-net.core.wmem_max = 4194304 
- 
-#then  
-sudo sysctl -p 
- 
-sudo service transmission-daemon start 
-#default web interface is http://server-ip:9091 
-</code> 
-Firefox addon for adding magnet links/bt to remote transmission:\\ 
-https://addons.mozilla.org/en-US/firefox/addon/transmitter-for-transmission/?src=ss 
- 
- 
-<code> 
-sudo apt-get install smbclient 
-sudo apt-get install cifs-utils 
- 
-# if wifi/bluetooth is required only: 
-sudo apt-get install wpasupplicant wireless-tools 
-####Be VERY careful with the following command and only install connman if you really need it. Connman takes over default Linux network and wifi connection settings and results in a very hard time to configure it yourself and might even result in network not to work as it's supposed to! 
-sudo apt-get install connman 
-connmanctl enable bluetooth  
-hciconfig hci0 up 
-</code> 
  
  
kodi/kodi-nuc.1703725558.txt.gz · Last modified: by Wuff