kodi:kodi-nuc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
kodi:kodi-nuc [2023/03/05 13:25] – [Boot without connected TV / AVR] Wulf Rajek | kodi:kodi-nuc [2024/05/05 23:06] (current) – Wulf Rajek | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Kodi NUC setup ====== | + | ====== Kodi NUC main setup ====== |
- | KODI INSTALL\\ | + | ===== BIOS SETTINGS ===== |
+ | Enter bios: | ||
+ | < | ||
+ | Set SGX to Enabled in BIOS to avoid boot message relating to it. (can possibly be set by software https:// | ||
+ | Set Fan control to custom with fanless at 48C, min 75, 30% at 1C, min 65 for RAM. | ||
- | Main instructions from [[https://forum.kodi.tv/ | + | 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. | ||
- | Base OS install of [[http://cdimage.ubuntu.com/ | + | Set CEC to desired settings |
- | - install | + | |
- | - Do not use encrypted home directory. | + | ===== KODI INSTALL ===== |
- | - don't partition with lvm, just full disk guided | + | |
- | - you can setup a default user ' | + | Base OS install of Ubuntu server LTS 22.04.3 (orig notes from 20.04.1) |
+ | - [[https://old-releases.ubuntu.com/ | ||
+ | - install | ||
+ | - Do not use lvm and/or encryption. | ||
+ | - setup default user ' | ||
+ | - install no snap packages | ||
+ | - install openssh | ||
+ | - trigger reboot | ||
+ | |||
+ | copy ssh-keys manually to / | ||
< | < | ||
sudo apt-get update | sudo apt-get update | ||
- | sudo apt-get install | + | 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 |
sudo apt-get dist-upgrade | sudo apt-get dist-upgrade | ||
+ | </ | ||
+ | |||
+ | Support NFS mounts on system level: | ||
+ | < | ||
+ | sudo apt-get install nfs-common | ||
</ | </ | ||
Some house-cleaning to begin with: | Some house-cleaning to begin with: | ||
< | < | ||
- | #remove ruby | ||
- | sudo apt-get purge ruby | ||
#remove snapd | #remove snapd | ||
sudo apt purge snapd ubuntu-core-launcher squashfs-tools | sudo apt purge snapd ubuntu-core-launcher squashfs-tools | ||
- | sudo systemctl disable snap-repair.timer | ||
- | sudo systemctl disable snapd.refresh.timer | ||
- | #remove infrared support (unless required) | ||
- | sudo apt-get purge lirc | ||
- | #remove bluetooth support (unless required) | ||
- | sudo apt-get purge bluez bluetooth | ||
#remove lvm2 (unless system uses LVM) Note: may remove ubuntu-server package for cleanup | #remove lvm2 (unless system uses LVM) Note: may remove ubuntu-server package for cleanup | ||
sudo apt remove lvm2 --purge | sudo apt remove lvm2 --purge | ||
- | #remove at scheduling service | ||
- | sudo apt-get purge at | ||
- | #remove lxc filesystem used by containers | ||
- | sudo apt-get purge lxcfs | ||
- | sudo rm -rf / | ||
- | sudo rm -rf / | ||
- | sudo rm -rf / | ||
#remove raid support | #remove raid support | ||
sudo apt-get purge mdadm | sudo apt-get purge mdadm | ||
+ | |||
#remove iscsi (IP based scsi support for remote storage) | #remove iscsi (IP based scsi support for remote storage) | ||
sudo apt-get purge open-iscsi | sudo apt-get purge open-iscsi | ||
#Remove udisks2: desktop environment option to mount/ | #Remove udisks2: desktop environment option to mount/ | ||
sudo apt-get purge udisks2 | sudo apt-get purge udisks2 | ||
- | #remove samba NOTE: Keep samba-libs package for kodi!: | ||
- | sudo apt-get purge samba samba-common samba-common-bin | ||
#remove btrfs packages | #remove btrfs packages | ||
- | sudo apt-get purge btrfs-progs | + | sudo apt-get purge btrfs-progs |
#remove iptables | #remove iptables | ||
sudo apt-get purge iptables | sudo apt-get purge iptables | ||
#remove wireless support | #remove wireless support | ||
- | sudo apt-get purge wireless-tools | + | sudo apt-get purge wpasupplicant |
#remove Open VM tools as not running in a VM | #remove Open VM tools as not running in a VM | ||
sudo apt-get purge open-vm-tools | sudo apt-get purge open-vm-tools | ||
- | sudo apt-get purge python2 | ||
- | sudo apt-get purge cloud-initramfs-copymods | + | 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 | ||
- | sudo apt-get install zip unzip | + | sudo apt-get install zip unzip samba-libs |
# if the latest kernel is required or desired, install the hardware enablement kernel (currently 5.11.x) | # if the latest kernel is required or desired, install the hardware enablement kernel (currently 5.11.x) | ||
Line 69: | Line 77: | ||
Disable IPv6 support unless required: | Disable IPv6 support unless required: | ||
< | < | ||
- | echo "# Disable IPv6" | + | echo "# Disable IPv6" |
- | echo " | + | echo " |
- | echo "#" | + | echo "#" |
- | sudo sysctl -p | + | sysctl -p |
</ | </ | ||
Line 81: | 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 / | sudo chmod -R 0644 / | ||
sudo vi / | sudo vi / | ||
Line 99: | Line 107: | ||
< | < | ||
sudo dpkg-reconfigure xserver-xorg-legacy | sudo dpkg-reconfigure xserver-xorg-legacy | ||
+ | echo " | ||
</ | </ | ||
- | |||
- | Now edit / | ||
- | < | ||
Create the kodi user and it add it the relevant groups. If you have created the kodi user during installation only do the usermod part. | Create the kodi user and it add it the relevant groups. If you have created the kodi user during installation only do the usermod part. | ||
- | < | + | < |
- | sudo usermod -a -G cdrom, | + | sudo adduser kodi |
+ | sudo usermod -a -G cdrom, | ||
+ | </ | ||
Line 151: | Line 159: | ||
edit / | edit / | ||
- | < | + | < |
+ | echo "kodi | ||
+ | </ | ||
Fake display-manager.service to not make plymouth or something else complain. | Fake display-manager.service to not make plymouth or something else complain. | ||
Line 164: | Line 174: | ||
Add the stable or nightly repository and install kodi: | Add the stable or nightly repository and install kodi: | ||
< | < | ||
- | # | + | # |
sudo add-apt-repository ppa: | sudo add-apt-repository ppa: | ||
sudo apt-get update | sudo apt-get update | ||
Line 170: | Line 180: | ||
sudo apt-get install kodi kodi-x11 kodi-inputstream-adaptive kodi-vfs-libarchive kodi-vfs-rar | sudo apt-get install kodi kodi-x11 kodi-inputstream-adaptive kodi-vfs-libarchive kodi-vfs-rar | ||
- | # | + | # |
sudo add-apt-repository ppa: | sudo add-apt-repository ppa: | ||
sudo apt-get update | sudo apt-get update | ||
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 | ||
</ | </ | ||
Line 270: | Line 283: | ||
git clone https:// | git clone https:// | ||
cd plymouth-theme-kodi-animated-logo | cd plymouth-theme-kodi-animated-logo | ||
+ | sudo apt-get install fakeroot fonts-ubuntu plymouth-label | ||
./build.sh | ./build.sh | ||
sudo dpkg -i plymouth-theme-kodi-animated-logo.deb | sudo dpkg -i plymouth-theme-kodi-animated-logo.deb | ||
Line 301: | Line 315: | ||
===== Boot without connected TV / AVR ===== | ===== Boot without connected TV / AVR ===== | ||
- | The Extended | + | The Extended |
NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with < | NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with < | ||
Line 370: | Line 384: | ||
If there' | If there' | ||
< | < | ||
- | sudo lsmod | grep snd | + | sudo lsmod | grep snd_hda_intel |
</ | </ | ||
This command will list all sound devices. You'll need this to identify which sound device you wish to use later and to determine if there are multiple devices or just one. | This command will list all sound devices. You'll need this to identify which sound device you wish to use later and to determine if there are multiple devices or just one. | ||
Line 411: | Line 425: | ||
< | < | ||
- | sudo vi / | + | echo "options snd-hda-intel enable_msi=1 bdl_pos_adj=1, |
- | </ | + | |
- | < | + | |
- | options snd-hda-intel enable_msi=1 bdl_pos_adj=1, | + | |
</ | </ | ||
Line 431: | Line 442: | ||
https:// | https:// | ||
https:// | https:// | ||
+ | |||
===== WIFI ===== | ===== WIFI ===== | ||
dmesg | grep iwl | dmesg | grep iwl | ||
Line 616: | Line 628: | ||
</ | </ | ||
- | ===== bittorrent on nuc ===== | ||
- | < | ||
- | sudo apt-get install transmission-daemon | ||
- | sudo service transmission-daemon stop | ||
- | sudo vi / | ||
- | #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, | ||
- | #set " | ||
- | #set " | ||
- | #set umask to 2 | ||
- | #default torrent folder is / | ||
- | sudo usermod -a -G debian-transmission wuff | ||
- | sudo usermod -a -G users debian-transmission | ||
- | #increase UDP buffers for uTP support | ||
- | sudo vi / | ||
- | 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:// | ||
- | </ | ||
- | Firefox addon for adding magnet links/bt to remote transmission: | ||
- | https:// | ||
- | |||
- | |||
- | < | ||
- | sudo apt-get install smbclient | ||
- | sudo apt-get install cifs-utils | ||
- | 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 | ||
- | </ | ||
- | |||
- | Support NFS mounts on system level: | ||
- | < | ||
- | sudo apt-get install nfs-common | ||
- | </ | ||
Line 803: | Line 771: | ||
===== Sources ===== | ===== Sources ===== | ||
- | URLs: \\ | + | |
+ | This article is based on the main instructions from [[https:// | ||
Refresh Kodi skin: \\ | Refresh Kodi skin: \\ | ||
reddit.com/ | reddit.com/ |
kodi/kodi-nuc.1678022712.txt.gz · Last modified: 2023/05/29 11:53 (external edit)