Skip to main content

Change Plex user to fix permission issues.

By Personal No Comments

By default plex run as user “plex”, If plex user doesn’t have proper permissions for media directory Plex and / or some channels like “Sub-Zero Subtitles” may not work properly.

 

 

To change the user for Plex with Systemd ( Ubuntu , Centos , Arch linux etc.) follow below steps.

 

  • service plexmediaserver stop
  • chown -R myuser:myuser /var/lib/plexmediaserver
  • Edit:  /usr/lib/systemd/system/plexmediaserver.service
  • Change

User = YourUSer

Group = YourUser

  • systemctl daemon-reload
  • service plexmediaserver stop

 

 

Working Youtube Responsive Videos Css

By Note2Self No Comments

<html>
<head>
<style>
.outerbox
{
display: block;
margin: 0 auto;
margin-top: 10px;
max-width: 640px;

}
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<body>
<div class=”outerbox”>
<div class=”video-container”>
<iframe src=”http://www.youtube.com/embed/your-video-id-here” frameborder=”0″ width=”560″ height=”315″></iframe>
</div>
</div>
</body>
</html>