{"id":207,"date":"2022-05-10T22:35:13","date_gmt":"2022-05-10T20:35:13","guid":{"rendered":"https:\/\/tillnet.se\/?p=207"},"modified":"2022-05-10T22:35:13","modified_gmt":"2022-05-10T20:35:13","slug":"plex-media-server-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/www.tillnet.se\/index.php\/2022\/05\/10\/plex-media-server-on-ubuntu-20-04-lts\/","title":{"rendered":"Plex Media Server on Ubuntu 20.04 LTS"},"content":{"rendered":"\n<p>This short &#8220;guide&#8221; starts after a fairly default Ubuntu 20.04 LTS (server\/headless) is setup. There are a lot of good guides but all the one&#8217;s I looked at missed one step that took me hours to figure out.<\/p>\n\n\n\n<p>Start by adding repo and key for future updates to work with apt.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo deb https:\/\/downloads.plex.tv\/repo\/deb public main | sudo tee \/etc\/apt\/sources.list.d\/plexmediaserver.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>curl https:\/\/downloads.plex.tv\/plex-keys\/PlexSign.key | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p>Download the latest .deb, check https:\/\/plex.tv to get correct url.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/downloads.plex.tv\/plex-media-server-new\/1.26.1.5772-872b93b91\/debian\/plexmediaserver_1.26.1.5772-872b93b91_amd64.deb<\/code><\/pre>\n\n\n\n<p>Install the package.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -i plexmediaserver_1.26.1.5772-872b93b91_amd64.deb<\/code><\/pre>\n\n\n\n<p>Start the service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start plexmediaserver<\/code><\/pre>\n\n\n\n<p>Now for the part that I spent hours before figuring out.<br>You need to access the web-UI from the localhost, which is a problem on a headless server. I didn&#8217;t find that in any of the guides I looked at.<br>The solution is simple, establish an ssh-tunnel to the server from a Linux-desktop.<\/p>\n\n\n\n<p>On the desktop open a terminal-window and setup the tunnel.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh ip_of_server -L 8888:localhost:32400<\/code><\/pre>\n\n\n\n<p>Open a browser and go to http:\/\/localhost:8888\/web.<br>Follow the onscreen setup and your of to the races. After setup is done, you can now access the server and content from anywhere.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This short &#8220;guide&#8221; starts after a fairly default Ubuntu 20.04 LTS (server\/headless) is setup. There are a lot of good guides but all the one&#8217;s &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-it"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":1,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/posts\/207\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tillnet.se\/index.php\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}