본문 바로가기
지름 신고, 사용기, 팁과 강좌/우분투

우분투에 PLEX 설치하기

by Junhyeok 2019. 7. 8.

 우분투에 플렉스 서버를 설치하는 방법은 간단하다. 첫 번째는 플렉스 홈페이지의 다운로드 항목에서 리눅스를 선택하고 자신에게 맞는 적절한 배포판을 선택해서 deb 파일을 다운받아서 설치하면 된다. 초보자들도 쉽게 할 수 있는 쉬운 방법이지만 Windows와 달리 새로운 버전이 나왔을 때 똑같은 방법으로 재설치를 해야된다는 점에서 약간 귀찮을 수 있다.

https://www.plex.tv/media-server-downloads/#plex-media-server

 

Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More

Click here to Download the Plex media server for Windows, Mac, Linux FreeBSD and more free today.

www.plex.tv

 두 번째 방법은 터미널에서  apt-get 명령을 이용할 수 있도록 저장소(repository)에 주소를 추가하는 방법이다.

junhyeok@tvh:~$ echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
[sudo] junhyeok의 암호: 
deb https://downloads.plex.tv/repo/deb public main
junhyeok@tvh:

 다음으로는 public key를 추가해야되는데 먼저 curl 명령을 실행할 수 있게 설치해준다.

junhyeok@tvh:~$ sudo apt install curl
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음 새 패키지를 설치할 것입니다:
  curl
0개 업그레이드, 1개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
159 k바이트 아카이브를 받아야 합니다.
이 작업 후 395 k바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.7 [159 kB]
내려받기 159 k바이트, 소요시간 0초 (414 k바이트/초)
Selecting previously unselected package curl.
(데이터베이스 읽는중 ...현재 194933개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../curl_7.58.0-2ubuntu3.7_amd64.deb ...
Unpacking curl (7.58.0-2ubuntu3.7) ...
curl (7.58.0-2ubuntu3.7) 설정하는 중입니다 ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
junhyeok@tvh:

마지막으로 public key를 추가해주고 apt update 명령을 사용해보면 주소가 추가된 것을 확인할 수 있다.

junhyeok@tvh:~$ curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3072  100  3072    0     0  33758      0 --:--:-- --:--:-- --:--:-- 33758
OK
junhyeok@tvh:~$ sudo apt update
기존:1 http://kr.archive.ubuntu.com/ubuntu bionic InRelease
기존:2 http://kr.archive.ubuntu.com/ubuntu bionic-updates InRelease            
기존:3 http://kr.archive.ubuntu.com/ubuntu bionic-backports InRelease          
무시:4 https://downloads.plex.tv/repo/deb public InRelease                     
받기:5 https://downloads.plex.tv/repo/deb public Release [5,815 B]             
받기:6 https://downloads.plex.tv/repo/deb public Release.gpg [821 B]           
무시:7 http://dl.google.com/linux/chrome/deb stable InRelease                  
기존:8 http://dl.google.com/linux/chrome/deb stable Release                    
받기:9 https://downloads.plex.tv/repo/deb public/main amd64 Packages [620 B]   
기존:11 http://security.ubuntu.com/ubuntu bionic-security InRelease            
기존:12 http://ppa.launchpad.net/hodong/nimf/ubuntu bionic InRelease           
무시:13 https://apt.tvheadend.org/stable bionic InRelease                      
기존:14 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease         
기존:15 https://apt.tvheadend.org/stable bionic Release                        
내려받기 7,256 바이트, 소요시간 1초 (4,919 바이트/초)               
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
모든 패키지가 최신입니다.
junhyeok@tvh:~$

 이후에는 apt update, apt upgrade 명령으로 간단하게 설치나 업그레이드가 가능하겠다.

댓글