# \[How To\] Installing Plex Media Server on Ubuntu Linux

**URL:** <https://forums.plex.tv/t/how-to-installing-plex-media-server-on-ubuntu-linux/786977>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [April 8, 2022, 4:25am UTC](https://forums.plex.tv/t/how-to-installing-plex-media-server-on-ubuntu-linux/786977 "2022-04-08T04:25:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [April 19, 2022, 11:38pm UTC](https://forums.plex.tv/t/how-to-installing-plex-media-server-on-ubuntu-linux/786977/4 "2022-04-19T23:38:33Z")

</div>

This is great first cut at it.

I have some suggestions for you to consider

### Adding media drives or drives on a NAS to Plex

#### SSH access to the server

- **PuTTY** is a well known app. Might want to consider adding that too/instead ?

### Installing support modules (HW transcoding & Tone mapping)

#### 10th Gen and above CPUs.

1. This is getting resolved.
2. The Debian installer is being updated to reference 21.49.21786 (per Engineering)

#### 9th Gen and below

Follow the instructions given by the installer.

### Recommend adding these existing How-To’s to avoid duplication of effort.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/2):
>
> Using other hard drives (Windows or Linux) with PMS This How-To is written to help with Internal and External drives. It also is written to demonstrate how to cope with NTFS and EXT4 formatted drives. By logical extension, any format supported by Linux can be handled using the technique shown here. In all cases, the goal is to give user plex permission to read your media files which Linux doesn’t allow by default due to its strict security model. We will walk through the steps needed …

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/5):
>
> Mounting NFS network shares for Plex use The basic checklist Prepare the NAS: Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. Create an entry in /etc/fstab for each share you wish to mount. Mount and debug as needed A. Prepare the NAS. This is unique to each NAS. In general, you only need grant read permission. Should you desire Read/Write for yourself, we will allow for it On Lin…

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/4):
>
> Mounting CIFS + SMB network shares for Plex use The basic checklist Prepare the NAS Create the CIFS/SMB credentials file for use in /etc/fstab Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. Create an entry in /etc/fstab for each share you wish to mount. Mount and debug as needed A. Prepare the NAS. This is unique to each NAS. In general, you only need grant read permission. Should …

### Ramdisk

Not necessary to use a ramdisk unless you have way more than enough.

Transcoding at HDD speed (200 MB/sec — aka 2000 Mbps of video) will suffice for all home use.

If you have a SSD system, Ramdisk saves wear and tear on the SSD so use it for this.

### Watch music libraries.

After setting up all the watch directories, keep [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) on (VERBOSE OFF),  
restart the server and let it run for 2-3 minutes.

Now download the logs ZIP file and examine “Plex Media Server.log”

Make certain there are no “No space left on device” errors.  
This is indicative of too many directories for the kernel to monitor

Resolve using:

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/9):
>
> Increase the number of directories Linux can monitor (inotify) for PMS The default size of the Linux inotify table is 8192 directories (\*1). When PMS is configured to update automatically when media is added, with properly organized media, especially music, this table rapidly fills and exceeds the default allocation requiring you to increase it. The solution to this is straight forward. Increasing the table size is easy. The first step is to determine how many directories to alloca…

---

_[View the full topic](https://forums.plex.tv/t/how-to-installing-plex-media-server-on-ubuntu-linux/786977)._
