{"id":20254,"date":"2023-07-31T12:27:11","date_gmt":"2023-07-31T12:27:11","guid":{"rendered":"https:\/\/linuxways.net\/?p=20254"},"modified":"2023-07-31T12:27:11","modified_gmt":"2023-07-31T12:27:11","slug":"how-to-install-plex-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-plex-on-debian-12\/","title":{"rendered":"How to install Plex on Debian 12?"},"content":{"rendered":"<p>Establishing a personal media server may appear intimidating, particularly if you are into it for the first time. But when you have the right guide to walk you through the process, it&#8217;s easy and gets it done in a few steps.<\/p>\n<p>If you are a Debian 12 user, a Linux distribution famed for its stability, and thinking about transforming your system into a media hub, this article is what you all need. Here we are just about to explore how to install Plex on Debian 12.<\/p>\n<p>Let\u2019s start with answering what the Plex is so that you have an idea of what is coming next.<\/p>\n<h2><strong>What is Plex?<\/strong><\/h2>\n<p>Plex is a multi-faceted media server software, enabling users to save and broadcast digital materials such as films, television series, music, and photographs. Originating from the idea of having a personal media center, Plex is designed to serve multimedia content to various client apps running on a multitude of devices.<\/p>\n<p>Plex doesn&#8217;t just allow you to stream your content; it takes it a step further with features like easy content organization, metadata fetching, sharing with friends, and device synchronization.<\/p>\n<h2><strong>How to Install Plex on Debian 12?<\/strong><\/h2>\n<p>The following steps will guide you in thoroughly installing Plex on Debian 12. Make sure you are reading with focus.<\/p>\n<h3><strong>1: Update System Packages<\/strong><\/h3>\n<p>Start by updating your system packages using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt upgrade<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"287\" class=\"wp-image-20255\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-1.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-1-300x118.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/strong><\/p>\n<p>This ensures that all your installed software is up-to-date, increasing security and reducing potential compatibility issues.<\/p>\n<h3><strong>2: Install Necessary Dependencies<\/strong><\/h3>\n<p>After that, you will need to install certain dependencies essential for the smooth functioning of Plex. To install these dependencies, type and run the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> apt-transport-https curl<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"549\" class=\"wp-image-20256\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-2.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-2-300x224.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/strong><\/p>\n<h3><strong>3: Add the Plex repository<\/strong><\/h3>\n<p>We will also need to include the Plex repository before proceeding with the installation. Do that by:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl https:<span class=\"sy0\">\/\/<\/span>downloads.plex.tv<span class=\"sy0\">\/<\/span>plex-keys<span class=\"sy0\">\/<\/span>PlexSign.key <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> gpg <span class=\"re5\">--dearmor<\/span> <span class=\"re5\">-o<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>plex-archive-keyring.gpg<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"335\" class=\"wp-image-20257\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-3.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-3-300x136.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/strong><\/p>\n<h3><strong>4: Install Plex Media Server<\/strong><\/h3>\n<p>With the Plex package now in your system, you can proceed to install it.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> plexmediaserver<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"548\" class=\"wp-image-20258\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-4.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-4-300x225.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<h3><strong>5: Enable and Start Plex Service<\/strong><\/h3>\n<p>Now that Plex is installed on your system, you need to make sure it runs as expected. To ensure Plex starts automatically when your system boots up, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> plexmediaserver<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"129\" class=\"wp-image-20259\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-5.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-5-300x53.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/strong><\/p>\n<p>After that, start the Plex service using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl start plexmediaserver<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"128\" class=\"wp-image-20260\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-6.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-6-300x53.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/strong><\/p>\n<h3><strong>6: Access Plex via Web Interface<\/strong><\/h3>\n<p>Finally, open your browser and navigate to <strong>http:\/\/your-server-ip:32400\/web<\/strong>.<\/p>\n<p>You should see the Plex web interface.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1277\" height=\"737\" class=\"wp-image-20261\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-7.png 1277w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-7-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-7-1024x591.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-7-768x443.png 768w\" sizes=\"auto, (max-width: 1277px) 100vw, 1277px\" \/><\/p>\n<h2><strong>Uninstalling Plex<\/strong><\/h2>\n<p>Removing Plex from Debian 12 is a simple and direct procedure. Here is a method to do it:<\/p>\n<h3><strong>1:<\/strong> <strong>Stop Plex Service<\/strong><\/h3>\n<p>Before you uninstall Plex, it&#8217;s important to stop the Plex service first. You can do that by typing the command below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl stop plexmediaserver<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"141\" class=\"wp-image-20262\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-8.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-8-300x58.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/strong><\/p>\n<h3><strong>2: Remove Plex Packages<\/strong><\/h3>\n<p>Next, you can proceed to remove the Plex packages. Enter the command given below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove plexmediaserver<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"552\" class=\"wp-image-20263\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-9.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20254-9-300x225.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/strong><\/p>\n<h3><strong>3: Remove Configuration Files<\/strong><\/h3>\n<p>To completely remove Plex, including its configuration files, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"re5\">-rf<\/span> <span class=\"sy0\">\/<\/span>var<span class=\"sy0\">\/<\/span>lib<span class=\"sy0\">\/<\/span>plexmediaserver<\/div><\/div>\n<p>Now reboot the system, and there you have it, the Plex is successfully removed from the system.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Creating a personal media server can fundamentally transform your multimedia experience, and Plex is one of the most reliable and user-friendly tools to achieve this transformation. This guide has provided detailed, step-by-step instructions on installing Plex on Debian 12, giving you the know-how to set up your very own media server.<\/p>","protected":false},"excerpt":{"rendered":"<p>Start by updating your system, installing the necessary dependencies, downloading and installing Plex, and then accessing it via the web interface.<\/p>","protected":false},"author":110,"featured_media":20370,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-20254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=20254"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20370"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=20254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=20254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=20254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}