Cheap, Unstoppable Ubuntu build with transcoding

Server Version#:
Player Version#:
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

Windows PLEX server was just too much maintenance. Ubuntu runs and never fails. Set BIOS to boot automatically after power failure if you never want to touch it. Run update/upgrade whenever you feel like it.

  1. Buy NUC11ATKC4 $219 (with RAM & SSD)

  2. Load Ubuntu (free) and update/upgrade

  3. Load media local, external, or NAS

  4. Install Plex (free)

  5. Configure NFS (only if using NAS)
    a. Configure NAS advertising on your NAS (proprietary to your NAS)
    b. Commands (using example IP and locations):
    sudo apt install nfs-common
    sudo mkdir /mymediafolder
    mount -t nfs -o mountvers=3 192.168.1.5:/mnt/NAS/Shares/Share_Drive /mymediafolder
    sudo gedit
    when text editor opens, go to OPEN and open /etc/fstab and add the following line:
    92.168.1.5:/mnt/NAS/Shares/Share_Drive /mymediafolder nfs mountvers=3 0 0
    mount /mymediafolder
    mount 192.168.1.5:/mnt/NAS/Shares/Share_Drive

  6. Open PLEX web interface and add libraries

  7. Install kernel
    a. Commands:
    cd ~
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.20/amd64/linux-headers-5.16.20-051620-generic_5.16.20-051620.202204131933_amd64.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.20/amd64/linux-headers-5.16.20-051620_5.16.20-051620.202204131933_all.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.20/amd64/linux-image-unsigned-5.16.20-051620-generic_5.16.20-051620.202204131933_amd64.deb
    wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.20/amd64/linux-modules-5.16.20-051620-generic_5.16.20-051620.202204131933_amd64.deb
    sudo apt install inxi
    sudo apt install vainfo
    sudo apt install curl
    sudo apt install intel-gpu-tools
    sudo apt install intel-media-va-driver-non-free libmfx1
    sudo apt install intel-media-va-driver-non-free

  8. Install Intel Compute Runtime
    a. Commands:
    cd ~
    wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/libigdgmm12_22.1.2_amd64.deb
    wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.10988/intel-igc-core_1.0.10988_amd64.deb
    wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.10988/intel-igc-opencl_1.0.10988_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-opencl-icd-dbgsym_22.16.22992_amd64.ddeb
    wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-opencl-icd_22.16.22992_amd64.deb
    wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-level-zero-gpu-dbgsym_1.3.22992_amd64.ddeb
    wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-level-zero-gpu_1.3.22992_amd64.deb
    sudo dpkg -i *.deb
    sudo apt update
    sudo apt upgrade
    sudo -i
    sudo reboot now
    MAKE SURE TO TURN OFF SECURE BOOT IN BIOS AND BOOT THE NEW KERNEL
    b. Commands:
    sudo nano /etc/default/grub
    Add i915.force_probe=4680 to the line GRUB_CMDLINE_LINUX_DEFAULT line, it will look something like this:
    GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash i915.force_probe=4680”
    SAVE AND EXIT
    sudo update-grub
    sudo reboot now

  9. Install Intel drivers
    a. Commands:
    sudo apt-get install -y gpg-agent wget
    wget -qO - https://repositories.intel.com/graphics/intel-graphics.key |
    sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg
    echo ‘deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main’ |
    sudo tee /etc/apt/sources.list.d/intel.gpu.focal.list
    sudo apt-get update
    sudo apt-get install
    intel-opencl-icd
    intel-level-zero-gpu level-zero
    intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2

    stat -c “%G” /dev/dri/render*
    groups ${USER}

    MAKE SURE TO REPLACE ‘USER’ ABOVE WITH THE USER NAME YOU’RE WORKING WITH

  10. CREATE AND EDIT DOCUMENT CALLED “i915.conf” IN “/etc/modprobe.d”
    a. Do this by following these directions/commands:
    gedit
    Add 1 line: options i915 enable_guc=2
    Save as i915.conf in modprobe.d
    sudo update-initramfs -u
    sudo apt update
    sudo apt upgrade
    sudo reboot now

you should now be able to transcode. all sw vrsions are 1 year old but confirmed working. after update/upgrade, your drivers should update accordingly.

credit/links:

https://kernel.ubuntu.com/~kernel-ppa/mainline/
https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-jammy-arc.html

You might want to amend that list.

wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/libigdgmm12_22.1.2_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.10988/intel-igc-core_1.0.10988_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.10988/intel-igc-opencl_1.0.10988_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-opencl-icd-dbgsym_22.16.22992_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-opencl-icd_22.16.22992_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-level-zero-gpu-dbgsym_1.3.22992_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/22.16.22992/intel-level-zero-gpu_1.3.22992_amd64.deb

PMS brings its own libraries with it.
Those included libraries, with the updated Intel Media Driver, work for all processors up through and including RaptorLake.

You don’t need to pull specific kernel versions nor do you need to tweak io915.conf
Most of us are using 5.19 or better in stock configuration.

You only need the default Ubuntu installation
Plus, perhaps Nvidia drivers/encode/decode packages if using Nvidia.

If you’d like, I can send you a link to the Engineer’s build.

You’re kidding me…
Well I’m a total noob and transcoding didn’t work for me till I did all this a year ago. I might try saving the image and trying a fresh factory install of Ubuntu/Plex and see if it transcodes.

I’ll take the link to the Engineer’s build too. It’s been a year, maybe it’s time for some more education, lol. Thanks for the tips.

Why didn’t you reach out to me?

I am here in the Linux forums ALL the time.

Had I known you have a problem, i’d have given you the link when I first verified it worked.

Yeah, should’ve reached out here first. Thanks again. I’ll let you know if I have any trouble with the fresh image. Appreciate the donwload!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.