 <?xml-stylesheet type="text/css" href="https://old.dandandin.net/Data/style/rss1.css" ?> <?xml-stylesheet type="text/xsl" href="https://old.dandandin.net/Data/style/rss1.xsl" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>Dandandin.net - Blog</title>
    <link>https://old.dandandin.net/home.aspx</link>
    <description />
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>mojoPortal Blog Module</generator>
    <language>en-US</language>
    <ttl>60</ttl>
    <atom:link href="https://old.dandandin.net/Blog/RSS.aspx?p=1~2~34&amp;r=e8cbb273-489a-430c-9eaa-e4c82b7a6b69" rel="self" type="application/rss+xml" />
    <itunes:owner />
    <itunes:explicit>no</itunes:explicit>
    <item>
      <title>Configure Windows clock to work better with OS X or Linux</title>
      <description><![CDATA[<p>All computers have an internal clock on the motherboard. The clock is very simple and has no support for time zones.</p>

<p>Windows assumes that it's the local time. If it's 12:30, it assumes that it's 12:30 in your time zone.</p>

<p>The rest of the operating systems instead assumes that the time is in <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time">Coordinated Universal Time</a>, which is definitely a much better choice: knowing that this is a standard, is a breeze to change time zone or daylight saving time change.</p>

<p>For example, if you have two Windows on the same computer, both have no way of knowing whether the DST is set, then would both change the time for DST, causing endless problems. However, if the base is UTC time, there is no way to be wrong; = UTC +2 Daylight Saving Time, Standard Time = UTC +1</p>

<p>So, we set Windows to use UTC as the time base:</p>

<p>We can create a new text file with Notepad and write this text:</p>

<blockquote>
<pre>
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
â€œRealTimeIsUniversalâ€=dword:00000001</pre>
</blockquote>

<p>after saving, change the file extension to. reg and run it. That's it!</p>

<p>Or you can use Regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation and create a new 32 bit DWORD entry called RealTimeIsUniversal and set it to 1</p>

<p>Otherwise, you can <a href="http://static.serverland.it/dandandin.it/files/2011/utc.zip">download the REG file</a> that I created for you <img alt="" src="http://static.serverland.it/dandandin.it/img/smiley/wink_smile.gif" /></p>
<br /><a href='https://old.dandandin.net/configure-windows-clock-to-work-better-with-os-x-or-linux'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/configure-windows-clock-to-work-better-with-os-x-or-linux'>...</a>]]></description>
      <link>https://old.dandandin.net/configure-windows-clock-to-work-better-with-os-x-or-linux</link>
      <comments>https://old.dandandin.net/configure-windows-clock-to-work-better-with-os-x-or-linux</comments>
      <guid isPermaLink="true">https://old.dandandin.net/configure-windows-clock-to-work-better-with-os-x-or-linux</guid>
      <pubDate>Thu, 26 Sep 2013 17:20:00 GMT</pubDate>
    </item>
    <item>
      <title>How to change the SSH port</title>
      <description><![CDATA[<p>When I set up my server, I decided to keep the SSH port at its default value for those three reasons:</p>
<ol>
    <li>Worried to make the configuration file corrupted and not being able to log in anymore.</li>
    <li>Worried about some incompatibilities with some SSH software.</li>
    <li>With a port scanner it's trivial to find the new SSH</li>
</ol>
<p>Of course I didn't leave the server in the wild with default settings:</p>
<ol>
    <li>Access via preshared key with a long passphrase</li>
    <li>Configured Shorewall to slow down access to the port 22 (at most 1 request per minute)</li>
    <li>Set fail2ban to block access for 24 hours to who inputted the wrong password for more than three times</li>
    <li>Set&#160;fail2ban to send me an email in case of hacking</li>
</ol>
<p>Recently, there was an attack from Korea with hundreds of logins.</p>
<p>Initially I decided to ignore the matter, then I said "Hey, changing the ssh port it's trivial!", so here is how to do that on Debian/Ubuntu:</p>
<pre>
nano /etc/ssh/sshd_config</pre>
<p>Then change the port here:</p>
<pre>
# What ports, IPs and protocols we listen for
Port 2200</pre>
<p>Then, restart the SSH daemon</p>
<pre>
/etc/init.d/ssh restart</pre>
<p>Voila!</p><br /><a href='https://old.dandandin.net/how-to-change-the-ssh-port'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/how-to-change-the-ssh-port'>...</a>]]></description>
      <link>https://old.dandandin.net/how-to-change-the-ssh-port</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/how-to-change-the-ssh-port</comments>
      <guid isPermaLink="true">https://old.dandandin.net/how-to-change-the-ssh-port</guid>
      <pubDate>Thu, 05 Apr 2012 17:21:00 GMT</pubDate>
    </item>
    <item>
      <title>Concrete5 does not work with mod_pagespeed</title>
      <description><![CDATA[<p>I have a <a href="http://www.serverland.it">website using the concrete5 CMS</a>, and I discovered that it does not work with Google's mod_pagespeed for Apache.</p>
<p>After installing it, it's not possible to add new pages, you'll get an error 404.</p>
<p>To disable it only for concrete5 websites, just write this in the .htaccess file:</p>
<blockquote>
<p>&lt;IfModule pagespeed_module&gt;<br />
ModPagespeed off<br />
&lt;/IfModule&gt;</p>
</blockquote>
<p>In my opinion, the problem it's in the trim_urls filter, so you could just try to disable that.</p><br /><a href='https://old.dandandin.net/concrete5-does-not-work-with-mod_pagespeed'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/concrete5-does-not-work-with-mod_pagespeed'>...</a>]]></description>
      <link>https://old.dandandin.net/concrete5-does-not-work-with-mod_pagespeed</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/concrete5-does-not-work-with-mod_pagespeed</comments>
      <guid isPermaLink="true">https://old.dandandin.net/concrete5-does-not-work-with-mod_pagespeed</guid>
      <pubDate>Fri, 03 Feb 2012 16:00:00 GMT</pubDate>
    </item>
    <item>
      <title>Forward ports in VMware Server</title>
      <description><![CDATA[<p>Fortuitously, today I found a note that some years ago I marked as "critical", so here I am to share it with those who might need it one day <img src="http://static.serverland.it/dandandin.it/img/smiley/regular_smile.gif" alt="" /></p>
<p>When nearly four years ago I moved <a href="http://www.serverland.it">Serverland</a> from a virtual server to a real one, I thought that it was a good idea to continue to be virtualized, so I installed VMWare Server (it's free!).</p>
<p>Then, the <a href="http://serverfault.com/questions/43405/vmware-is-so-slow-that-is-useless-this-is-normal">shockingly low performance</a> in accessing the virtual disks, led me to uninstall it, but at the time I had a problem: in the Windows version of VMware Server, there is a convenient panel for configuring the virtual network, but in linux version is absent ... what we can do?</p>
<p>The answer is here: <a href="http://www.howforge.com/port-forward-in-vmware-server-for-linux">http://www.howforge.com/port-forward-in-vmware-server-for-linux</a></p><br /><a href='https://old.dandandin.net/forward-ports-in-vmware-server'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/forward-ports-in-vmware-server'>...</a>]]></description>
      <link>https://old.dandandin.net/forward-ports-in-vmware-server</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/forward-ports-in-vmware-server</comments>
      <guid isPermaLink="true">https://old.dandandin.net/forward-ports-in-vmware-server</guid>
      <pubDate>Tue, 17 Jan 2012 10:41:00 GMT</pubDate>
    </item>
    <item>
      <title>How to delete files older than X days on linux</title>
      <description><![CDATA[<p>Sometimes can happen that you want to keep only the files of the last X days in a directory.</p>
<p>On Linux you can do that with a single command line:</p>
<blockquote>
<pre>
find /path/where-are-the/files* -mtime +7 -exec rm {} \;
</pre>
</blockquote>
<p>How it works:</p>
<p>-mtime indicates the days to keep. In the example, having written +7, we only keep files from the last week.</p>
<p>-exec indicates the command to execute in the event that a match is found (ie: the files older than a week), and in this case we pass rm, which eliminates them</p><br /><a href='https://old.dandandin.net/how-to-delete-files-older-than-x-days-on-linux'>Magnetic_dud</a>&nbsp;&nbsp;<a href='https://old.dandandin.net/how-to-delete-files-older-than-x-days-on-linux'>...</a>]]></description>
      <link>https://old.dandandin.net/how-to-delete-files-older-than-x-days-on-linux</link>
      <author>mail-en@dandandin.it (Magnetic_dud)</author>
      <comments>https://old.dandandin.net/how-to-delete-files-older-than-x-days-on-linux</comments>
      <guid isPermaLink="true">https://old.dandandin.net/how-to-delete-files-older-than-x-days-on-linux</guid>
      <pubDate>Mon, 16 Jan 2012 13:50:00 GMT</pubDate>
    </item>
  </channel>
</rss>