echo Install Plex Media Server on Debian 12, 11, or 10 via APT
echo
echo Step 1: Update the Ubunto System Before Plex Installation
echo
echo
echo Start by updating your Ubunto system to ensure a smooth installation process.
echo This ensures all existing packages are up to date:
echo
echo
sudo apt update && sudo apt upgrade
echo
echo
echo Step 2: Install Initial Required Packages For Plex
echo
echo Plex installation requires some additional packages.
echo Install them by running the following command:
echo
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y
echo
echo
echo These packages will provide the tools for handling the Plex repository,
echo including secure connections and GPG key management.
echo
echo Step 3: Import Plex APT Repository on Ubunto:
echo
echo Add the Plex repository to your Debian system to install Plex from the official source.
echo This ensures you install and update the software directly from the
echo official repository using the APT package manager.
echo
echo
curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex.gpg > /dev/null
echo
echo
echo This command downloads the Plex GPG key,
echo which is used to verify the authenticity of the packages from the repository.
echo
echo
echo Next, add the Plex repository to your system:
echo
echo
echo "deb [signed-by=/usr/share/keyrings/plex.gpg] https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
echo
echo
echo This command creates a new file in the sources.list.d directory with the necessary information about the Plex repository.
echo
echo Step 4: Install Plex Media Server via APT Command on Ubunto:
echo
echo Before installing Plex, update your package index to include the newly added Plex repository:
echo
echo
sudo apt update
echo
echo
echo Now you can install Plex Media Server on Ubunto using the following command:
echo
echo
echo Type the command below:
echo 
echo
echo sudo apt install plexmediaserver
echo
echo
echo Ready to start Installation of PLEX Media Server:
echo
echo
echo During the installation, you may see a prompt asking if you want to replace
echo the imported repository list with Plex.
echo
echo Type “N” to proceed with the installation,
echo as you do not want to replace the imported repository list.
echo This is because the correct signed-by GPG key is already in place.
echo
echo
echo Step 5: Verify Plex Media Server Installation
echo
echo By default, the Plex Media service should start automatically.
echo To verify this, use the following systemctl command to check the status:
echo
echo Type this command for check Server is Running..
echo
echo systemctl status plexmediaserver
echo
echo Quit out by using "q" for Quit..!!
echo
echo

