Skip to main content

Ubuntu : Change default SSH Port

By Server Admin No Comments

Changing the port in “/etc/ssh/sshd_config” no longer works.

The port can be changed in ‘/lib/systemd/system/ssh.socket’ but that won’t survive SSHD update.

Follow these steps:

mkdir /lib/systemd/system/ssh.socket.d

nano /lib/systemd/system/ssh.socket.d/port.conf
[Socket]
ListenStream=
ListenStream=2222

systemctl daemon-reload
systemctl restart ssh
systemctl restart sshd

Verify: netstat -luntp | grep 2222

5 1 vote
Article Rating

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

 

 

0
0
votes
Article Rating

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>

0
0
votes
Article Rating

Shri Guru Granth Sahib in English

By Sikhism No Comments
Sentence by Sentence translation of Shri Guru Granth Sahib Ji in English
0
0
votes
Article Rating

Shri Guru Granth Sahib for Kindle

By Sikhism No Comments

0
0
votes
Article Rating
0 0 votes
Article Rating
0
Would love your thoughts, please comment.x
()
x