Go to Plex website to get the download URL
cd /tmp
wget 'https://downloads.plex.tv/plex-media-server/1.14.1.5488-cc260c476/plexmediaserver_1.14.1.5488-cc260c476_amd64.deb'
sudo dpkg -i plexmediaserver_1.14.1.5488-cc260c476_amd64.deb
systemctl status plexmediaserver
Go to http://127.0.0.1:32400/web and start configuring your Plex
Assuming that the videos are in your external hard disk connected to your Ubuntu desktop. You’ll need to run these commands to give user plex to access your drive.
MYGROUP="$USER"
sudo usermod -a -G $MYGROUP plex
sudo chown $USER:$MYGROUP /media/$USER
sudo chmod 750 /media/$USER
sudo setfacl -m g:$MYGROUP:rwx /media/$USER
sudo service plexmediaserver restart
To check your group or the group user plex is in
groups
groups plex
A few useful commands to check status, start server, stop server, restart server.
sudo service plexmediaserver status
sudo service plexmediaserver start
sudo service plexmediaserver stop
sudo service plexmediaserver restart