http://127.0.0.1:32400/ - Plex
http://127.0.0.1:31337/ - Kitana
For other OS you can get instruction on https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
-
Setup the package repository and the GPG key:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
-
Install the nvidia-container-toolkit package (and dependencies) after updating the package listing:
apt-get update apt-get install -y nvidia-container-toolkit
-
Configure the Docker daemon to recognize the NVIDIA Container Runtime:
nvidia-ctk runtime configure --runtime=docker
-
Restart the Docker daemon to complete the installation after setting the default runtime:
systemctl restart docker
-
Add "contrib", "non-free" and "non-free-firmware" components to /etc/apt/sources.list, for example:
# Debian Sid deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware
-
Update the list of available packages, then we can install the nvidia-driver package:
apt-get update apt-get install nvidia-driver
-
Install wget and add-apt-repository:
apt-get install wget apt-transport-https
-
Install cuda-drivers:
wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb dpkg -i cuda-keyring_1.1-1_all.deb add-apt-repository contrib apt-get update apt-get -y install cuda-toolkit-12-3 cuda-drivers
-
At this point, a working setup can be tested by running a base CUDA container:
sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi
-
This should result in a console output shown below:
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 450.51.06 Driver Version: 450.51.06 CUDA Version: 11.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Tesla T4 On | 00000000:00:1E.0 Off | 0 | | N/A 34C P8 9W / 70W | 0MiB / 15109MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+
-
Download folder.
-
Create the file
./.docker/.env
using./.docker/.env.example
as template.
PLEX_CLAIM
- Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes. -
If you don't use nvidia devices, you need delete
runtime: nvidia
andNVIDIA_VISIBLE_DEVICES=all
line in.docker/docker-compose.yml
. -
Change
../../../pliki/plex:/data
to your path with files for plex. -
Go inside folder
./docker
and rundocker-compose up -d --build
to start containers. -
To get acces from other devices, you need change Settings / Network / List of IP addresses and networks that are allowed without auth to
192.168.1.1/255.255.255.0
New plugins you need insert to /app/config/Library/Application Support/Plex Media Server/Plug-ins
folder.
Configure the plugin by clicking on the plugin settings button at Plex/Web -> Channels:
Use this to help set up http://trakt-for-plex.github.io/configuration/#/connect or Kitana page
To add more tract account for home user, On the "Plex" authentication tab you need change to the "Home" mode:
If new Plex Home User have updated you tract, you can exclude him in Trak module settings (Plex / Modules / Trakt.tv)
https://portforward.com/router.htm - Guide for every one router
https://canyouseeme.org/ - Check if your port is open
You need add Virtual server for plex (port need to be the same like in plex settings / remote)
https://support.plex.tv/articles/201242707-plex-media-scanner-via-command-line/
Plex Media Scanner (c) 2010-2014 Plex Development Team.
-h, --help Display this message.
-v, --verbose Show more output.
-p, --progress Show special progress output.
--log-file-suffix Specify suffix for log file.
Actions:
-r, --refresh Refresh the metadata.
-a, --analyze Analyze media information.
--analyze-deeply Fully read and perform deep media analysis.
-b, --index Generate a media index file. (Video Preview Thumbnails)
-i, --info Get information.
-l, --list List.
-g, --generate Regenerate thumbnails/fanart.
-t, --tree Show a section tree.
-w, --reset Delete all media out of a section.
-n, --add-section --type <type:1,2,8> --agent --location --lang Add a new section.
-D, --del-section Delete a section.
Items to which actions apply:
-c, --section A library section ID.
-o, --item An item ID.
-d, --directory A directory path.
-f, --file A file.
Modifiers to actions:
-x, --force Force an operation (e.g. refresh).
--no-thumbs Do not regenerate thumbs when analyzing.
--chapter-thumbs-only Only generate chapter thumbnails during generate pass
--thumbOffset Percent offset into video for thumbnail image generated during media analysis.
--artOffset Percent offset into video for fanart image generated during media analysis.
-
Check id of library section:
"/usr/lib/plexmediaserver/Plex Media Scanner" --list
This returns a list of Libraries and their ID:
"/usr/lib/plexmediaserver/Plex Media Scanner" --list 29: Movies 31: Music 30: TV Shows
-
Run command:
"/usr/lib/plexmediaserver/Plex Media Scanner" -c 1 -b
Then you can check if plex started generate new thumbails on web panel.