# Ubuntu 24.04 & HW transcoding

**URL:** <https://forums.plex.tv/t/ubuntu-24-04-hw-transcoding/873765>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [April 1, 2024, 12:33am UTC](https://forums.plex.tv/t/ubuntu-24-04-hw-transcoding/873765 "2024-04-01T00:33:36Z")\
**Posts on this page:** 1\
**Showing post:** 374

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 7, 2024, 5:10am UTC](https://forums.plex.tv/t/ubuntu-24-04-hw-transcoding/873765/374 "2024-09-07T05:10:52Z")

</div>

You _know_ I’m going to say this, so apologize in advance.

There are times for Docker and times for native apps.

This is not a case for Docker

1. The native app exists
2. The native app installer handles all the configuration for you.
3. /etc/systemd/system/plexmediaserver.service.d/override.conf allows you to move / configure to your site needs.

There’s even documentation how to do it 😉 lol

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/3):
>
> Customizing your Plex configuration on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. On systems which use Systemd (Ubuntu 16+, Fedora 26+, Centos 7+, Debian 8+,) you create this customization file which SystemD reads prior to launching PMS. This file is independent of the default configuration and service control mechanisms in /lib/systemd/system/plexmediaserver.service. Your customization override is preserved across updates, un…

Then, to pass the GPU to the native app in the LXC container, I run a little script.

```auto
#
# Argument #1 is LXC container to add

[-z "$1"] && "Error: missing container name" && exit 1

if ["$(lxc list | grep "$1")" == ""]; then
  echo "Error: Unknown container name '$1'"
  exit 2
fi

# Make certain /dev/dri/renderD128 exists
if [! -e /dev/dri/renderD128]; then
  echo Error: This host does not have hardware transcoding ability /dev/dri/renderD128
  exit 3
fi

Gid="$(stat -c %g /dev/dri/renderD128)"

# Add it
 lxc config device add "$1" gpu gpu gid=$Gid

```

---

_[View the full topic](https://forums.plex.tv/t/ubuntu-24-04-hw-transcoding/873765)._
