- Как установить Plex Media Server в Ubuntu 18.04
- Подготовка
- Установить Plex Media Server
- Настройте правила брандмауэра
- Настроить Plex Media Server
- Обновление Plex Media Server
- Выводы
- Support Articles
- Preparation
- Before You Begin
- Download the Installer
- Get a Plex (Player) App
- Server Installation
- Windows
- macOS
- Linux
- Ubuntu
- Fedora/CentOS
- NAS Devices
- Docker
- Opening the Plex Web App on a Device Other than the Server Itself
- On the Same Local Network
- On a Different Network
- macOS or Linux
- Windows
- Support Articles
- DEB-based distros (Ubuntu, etc.)
- RPM-based distros (Fedora, CentOS, etc.)
- openSUSE
Как установить Plex Media Server в Ubuntu 18.04
В этом руководстве мы расскажем, как установить Plex Media Server в Ubuntu 18.04.
Plex — это сервер потокового мультимедиа, который позволяет вам организовывать коллекции видео, музыки и фотографий и передавать их на все ваши устройства в любое время и из любого места.
Хотя это руководство написано для Ubuntu 18.04 Bionic Beaver, те же шаги можно использовать для Debian и Ubuntu 16.04 Xenial Xerus.
Подготовка
Вам нужно будет войти в систему как пользователь с доступом sudo, чтобы иметь возможность устанавливать пакеты в вашей системе Ubuntu.
Установить Plex Media Server
Самый простой способ установить Plex Media Server и управлять им в Ubuntu 18.04 — использовать официальный репозиторий Plex. Для этого не требуются технические знания, и установка и настройка медиасервера займет у вас не более 20 минут.
Выполните следующие действия, чтобы установить Plex Media Server в вашей системе Ubuntu:
Начните с импорта ключа GPG репозитория, используя следующую команду curl :
Добавьте репозиторий Plex APT в список репозиториев программного обеспечения вашей системы, выполнив:
После включения репозитория Plex обновите список пакетов apt и установите последнюю версию Plex Media Server с помощью:
Чтобы убедиться, что служба Plex работает, введите:
Результат должен выглядеть примерно так:
Настройте правила брандмауэра
Теперь, когда у вас установлен и запущен Plex на вашем сервере, вам нужно убедиться, что ваш брандмауэр настроен на разрешение трафика на определенных портах Plex Media Server.
Следующие шаги предполагают, что вы используете UFW для управления брандмауэром:
Откройте нужный текстовый редактор и создайте следующий профиль приложения UFW:
Сохраните файл и обновите список профилей:
Примените новые правила брандмауэра, набрав:
Наконец, проверьте, успешно ли применяются новые правила брандмауэра:
Настроить Plex Media Server
Перед запуском мастера настройки Plex создадим каталоги, в которых будут храниться медиафайлы Plex:
Plex Media Server работает как пользовательский plex который должен иметь разрешения на чтение и выполнение мультимедийных файлов и каталогов. Чтобы установить правильное владение, выполните следующую команду.
Теперь мы можем приступить к настройке сервера. Откройте браузер, введите http://YOUR_SERVER_IP:32400/web и вы увидите следующий экран:
Чтобы использовать Plex Media Server, вам необходимо создать учетную запись.
Нажмите кнопку Google, Facebook или электронной почты, чтобы создать бесплатную учетную запись Plex. Если вы хотите получить доступ к премиум-функциям, вы можете приобрести план Plex Pass .
После регистрации вы будете перенаправлены на страницу с информацией о том, как работает Plex, как показано ниже:
Нажмите кнопку » Got it .
На следующем экране введите имя своего сервера Plex, оставьте установленным флажок Allow me to access my media outside my home и нажмите Next .
Следующим шагом будет добавление медиа-библиотеки. Нажмите кнопку « Add Library .
Когда появится всплывающее окно, выберите фильмы в качестве типа библиотеки и нажмите Next .
На следующем шаге щелкните по Browse for media folder « Browse for media folder и добавьте путь к каталогу, в котором будут /opt/plexmedia/movies мультимедийные файлы фильмов, в нашем случае /opt/plexmedia/movies .
Нажмите на кнопку « Add , а затем на « Add Library .
Вы можете добавить столько библиотек, сколько захотите.
Нажмите Next , затем Done и вы будете перенаправлены на веб-панель управления Plex.
Теперь, когда вы завершили работу с мастером установки, вы можете начать изучать параметры Plex и все, что он может делать.
Обновление Plex Media Server
Когда будет выпущена новая версия, вы можете обновить пакет Plex Media Server с помощью стандартного инструмента обновления программного обеспечения на рабочем столе или с помощью следующих команд в терминале:
Выводы
Вы узнали, как установить Plex Media Server на свой компьютер с Ubuntu 18.04 и как создать медиа-библиотеку.
Теперь вы можете установить приложение Plex на свой Android, iPhone, Smart TV, Xbox, Roku или любое другое поддерживаемое устройство. Вы можете найти список поддерживаемых приложений и устройств на странице загрузок Plex или просто установить приложение из магазина приложений устройства.
Вам также следует ознакомиться с официальным руководством по быстрому запуску Plex и страницей документации Plex .
Если у вас есть вопросы, оставьте комментарий ниже.
Источник
Support Articles
Preparation
Before You Begin
Before you begin installing Plex Media Server, it’s strongly recommended that you check that your media collection has been named and organized in a way that Plex will understand. If not, you may notice content isn’t recognized, is mis-matched, or not found at all.
You may already be naming and organizing your media files in a way suitable for Plex. Here are the important things:
- Movies are gathered together in a “Movies” type folder, TV Shows in a “TV Shows” type folder, etc.
- Movies are named as follows:
- TV Show episodes are named with the season and episode:
- TV Show episodes are stored in their own folder as follows:
- For TV shows, the folder structure can be very important. Make sure you have show folders that contain season folders that contain the episodes
Related Page: Your Media
Tip!: It’s important to understand that Plex Media Server does not have its own graphical user interface. When you run the server on your computer, NAS, or other device, you won’t see a window open with a “server UI” or similar. Instead, you use the Plex Web App to manage your server.
Download the Installer
The Plex Media Server can be downloaded for free from the Plex Downloads page. There are many platforms available:
- Windows
- macOS
- Linux
- Compatible NAS devices
From the Downloads page, choose the platform or device you need, and download the installer.
Related Page: Plex Downloads
Related Page: NAS Devices
Get a Plex (Player) App
While you’re on the Downloads page, you may wish to download a player app as well. The server includes the browser-based Plex Web App, but you’ll probably want to download an app for other devices. There are many available:
- Windows/macOS Desktop PCs: Plex for Windows, Plex for macOS, or Plex Media Player (primarily intended for HTPC usage)
- Mobile Devices: Android, iOS
- Connected Devices: Amazon Fire TV, Apple TV, Android TV, Roku, Smart TVs, game consoles, and more
Server Installation
The server is available for many different platforms. Installation is always via an installation package and follows the platform’s usual installation method. For NAS devices, you should follow the manufacturer’s add-on installation procedure.
Note: You’ll need to be sure to run your Plex Media Server on a filesystem that allows symlinks/hardlinks. For the vast majority of users, this isn’t an issue. If you’re running on an unusual filesystem (such as a drive pool or similar), then you should check for support.
Windows
- Download the Windows Installer .exe file
- Run the installer
- Follow the usual installation method
- At the final screen, click the Launch button. If you don’t select this, launch the Server from the Start button
The Plex Media Server will launch and display an icon to the System Tray (bottom right of the screen) To setup the Plex Media Server, choose Open Plex… from the Plex icon in the system tray.
macOS
- Download the Plex Media Server .zip
- Unzip the file
- Drag the Plex Media Server app to the Applications folder
- Launch the Plex Media Server from the Applications folder
To setup Plex Media Server from the server computer, launch the Open Plex… from the “>” icon in your Mac’s menubar.
Linux
Below, you’ll find information on installing Plex Media Server for our supported Linux distributions. Once installation is complete, you can also choose to enable updating via repository.
Ubuntu
- Download the .deb package
- run sudo dpkg -i plexmediaserver_1.19.4.2935-79e214ead_amd64.deb (replacing the last filename with the name of the package you downloaded)
To setup Plex Media Server, on the same machine you installed the server on, open a browser window, and go to http://127.0.0.1:32400/web .
Note: The Plex Media Server runs as the user “plex” by default. The plex user must have read and execute permissions to your media directories and files! For more details on how to do this, see the Linux Permissions Guide.
Fedora/CentOS
- Download the .rpm package
- run sudo yum install plexmediaserver-1.19.4.2935-79e214ead.x86_64.rpm (replacing the last filename with the name of the package you downloaded)
To setup the Server, on the same machine you installed the Server on, open a browser window and go to http://127.0.0.1:32400/web .
Note: The Plex Media Server runs as the user “plex” by default. The plex user must have read and execute permissions to your media directories and files! For more details on how to do this, see the Linux Permissions Guide.
NAS Devices
- Download the installation package appropriate to your device
- Follow the NAS manufacturer’s installation procedure to install the Plex Media Server
- If you have problems, visit the Plex Media Server NAS forums and search for your device for help
To setup the server, open a browser window and go to http://local.nas.ip.address:32400/web (e.g http://192.168.1.5:32400/web ).
Docker
For Docker installations please see the Github repo here
Opening the Plex Web App on a Device Other than the Server Itself
On the Same Local Network
To open Plex Web App from a different device than the server computer while still on the same network:
- Open a browser window
- Type http://server.local.ip.address:32400/web into the address bar (e.g “http://192.168.1.5:32400/web”)
- The browser will connect to the server and load Plex Web App
On a Different Network
If you’re on a different network than the server computer (or the entire “local network” is not in the private network IP ranges), you’ll first need to set up a SSH tunnel so that you can access things as if they were local.
Tip!: This is only necessary for the initial setup. Once you’ve gone through the setup, you can access as normal.
macOS or Linux
- Open a Terminal window or your command prompt
- Enter the following command (substituting the IP address of your server as appropriate):
ssh ip.address.of.server -L 8888:localhost:32400 - Open a browser window
- Type http://localhost:8888/web into the address bar
- The browser will connect to the server as if it were local and load Plex Web App
Windows
If you’re using Windows on your local system and your server is on Linux or macOS, you’ll need to use an application such as Putty or Windows 10’s built-in SSH client that can create the SSH tunnel for you. You can use instructions like these for setting up the Putty/SSH connection. If following that, you would use this information:
- Gateway: ip.address.of.server
- Source Port: 8888
- Destination: localhost:32400
Once you have the SSH tunnel set up:
- Open a browser window
- Type http://localhost:8888/web into the address bar
- The browser will connect to the server as if it were local and load Plex Web App
If your server is running Windows, then you could do a standard Remote Desktop session or similar.
To vote if this article was helpful, please sign in with your plex account.
Источник
Support Articles
For users running our Plex Media Server on DEB-based (Ubuntu, etc.) or RPM-based (Fedora, CentOS, etc.) Linux distributions, it’s possible to do so via our official repository. This article covers how to add the repository to Ubuntu and Fedora/CentOS. Other compatible distributions may work, but are not officially supported by Plex.
For those who wish to verify our public key, its correct md5sum is: 19930ce0357f723e590210e3101321a3
Note: Repository updating is currently only supported for public releases of Plex Media Server. It is not currently possible to use it for Plex Pass preview/beta releases.
DEB-based distros (Ubuntu, etc.)
To enable the Plex Media Server repository on Ubuntu only a few terminal commands are required. From a terminal window run the following two commands:
After that, it’s just a matter of running the normal sudo apt-get update and the Plex Media Server repo will be enabled on the OS.
Note: Our build system changed starting with the Plex Media Server v1.15.0 release. Users who were updating via the repository prior to that release will need to do a one-time, manual confirmation of some changed values. See our forum topic for instructions.
RPM-based distros (Fedora, CentOS, etc.)
Inside the RPM package we have silently added a repository configuration file for Plex Media Server to hook up to a repository. To enable the repo, edit /etc/yum.repos.d/plex.repo and change line 4 from enabled=0 to enabled=1 . It should look like this:
Once you’ve done that, you can then update your Plex Media Server to the current public release by running your update program or yum update and Plex Media Server will automatically get updated too.
Note: Once your Plex Media Server updates, be sure to start the server again so things are running correctly.
openSUSE
After doing the normal steps for RPM-based distributions, openSUSE users will need to make an additional change:
- Open the “Software Repositories” app
- Find the “PlexRepo” entry
- Set that entry to Enabled and Auto Refresh
To vote if this article was helpful, please sign in with your plex account.
Источник