-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlex_Media_Server
63 lines (44 loc) · 2.23 KB
/
Plex_Media_Server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Download Plex Pass rpm from https://plex.tv
wget -c https://downloads.plex.tv/plex-media-server/1.7.2.3878-8088811b8/plexmediaserver-1.7.2.3878-8088811b8.x86_64.rpm
or
wget -c https://downloads.plex.tv/plex-media-server/1.5.6.3790-4613ce077/plexmediaserver-1.5.6.3790-4613ce077.x86_64.rpm
# Soon, in future versions of openSUSE, the use of /etc/SuSE-release will be deprecated, instead of this use /etc/os-release
# Meanwhile, use the following procedure:
# Create a symbolic link required for preinstall script on rpm package
sudo ln -s /etc/SUSE-brand /etc/SuSE-release
# Import key and install packages
sudo rpm --import https://downloads.plex.tv/plex-keys/PlexSign.key
sudo zypper in insserv-compat
sudo zypper in ./plexmediaserver-1.7.2.3878-8088811b8.x86_64.rpm
or
sudo zypper in ./plexmediaserver-1.5.6.3790-4613ce077.x86_64.rpm
# Adjust user group, permissions and locale before start plexmediaserver.service
sudo useradd -G plex plex
sudo chown -R plex:plex /var/lib/plexmediaserver
sudo localectl set-locale LANG=en_US.UTF-8
# Change ROOT_USES_LANG and RC_LC_ALL
sudo yast2 language; Details; Locale Settings for User root; Yes; F10; F10
or
Open the Language in Yast ==> Details ==> Locale Settings for User root ==> Yes (in the drop-down box) ==> OK ==> OK
sudo vi /etc/sysconfig/language and add en_US.UTF-8 to RC_LC_ALL variable
# With root user
unset LANG
source /etc/profile.d/lang.sh
or logout and login user root
# Start Plex and enable to autostart
sudo systemctl start plexmediaserver.service
sudo systemctl enable plexmediaserver.service
# Check status of service
sudo systemctl status plexmediaserver.service
# Create a file for SuSEFirewall2 rules
sudo tee -a /etc/sysconfig/SuSEfirewall2.d/services/plexmediaserver <<-EOF
## Name: Plex Media Server
## Description: Open ports for Plex Media Server with broadcast allowed.
# space separated list of allowed TCP ports
TCP="3005 8324 32400 32469"
# space separated list of allowed UDP ports
UDP="1900 5353 32410 32412 32413 32414"
# space separated list of allowed UDP ports that accept broadcasts
BROADCAST="1900 5353 32410 32412 32413 32414"
EOF
Open the Firewall in Yast ==> Allowed Services ==> Service to Allow ==> Plex Media Server (in the drop-down box) + Add ==> Next ==> Finish