<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>LKJ.net</title>
	
	<link>http://www.lkj.net</link>
	<description>Technology blog</description>
	<lastBuildDate>Wed, 17 Apr 2013 03:39:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/lkj" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="lkj" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Change the default editor in Debian Linux</title>
		<link>http://www.lkj.net/2013/04/change-default-editor-debian-linux/</link>
		<comments>http://www.lkj.net/2013/04/change-default-editor-debian-linux/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 03:35:25 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=2041</guid>
		<description><![CDATA[<p>You can change default editor in Debian Linux with the following command:</p>
<p><em> update-alternatives &#8211;config editor</em></p>
<p>This will bring up the following screen asking you to select the editor (number on the Selection field):</p>
<blockquote><p><em>There are 9 choices for the alternative editor (providing /usr/bin/editor).</em></p>
<p><em>Selection    Path                Priority   Status</em><br />
<em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</em><br />
<em>* 0            /usr/bin/joe         70        auto mode</em><br />
<em>  1            /bin/nano            40        manual mode</em><br />
<em>  2            /usr/bin/jmacs       50        manual mode</em><br />
<em>  3            /usr/bin/joe         70        manual mode</em><br />
<em>  4            /usr/bin/jpico       50        manual mode</em><br />
<em>  5            /usr/bin/jstar       50        manual mode</em><br />
<em>  6            /usr/bin/mcedit      25        manual mode</em><br />
<em>  7            /usr/bin/rjoe        25        manual mode</em><br />
<em>  8            /usr/bin/vim.basic   30        manual mode</em><br />
<em>  9            /usr/bin/vim.tiny    10        manual mode</em></p>
<p><em>Press </em></p>&#8230; <a href="http://www.lkj.net/2013/04/change-default-editor-debian-linux/" class="read_more">Read the rest of this entry &#187;</a></blockquote>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/04/change-default-editor-debian-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change locale settings on Windows 2012 Datacenter or Windows 2008 Standard Server</title>
		<link>http://www.lkj.net/2013/03/change-locale-settings-windows-2012-datacenter-windows-2008-standard-server/</link>
		<comments>http://www.lkj.net/2013/03/change-locale-settings-windows-2012-datacenter-windows-2008-standard-server/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 10:12:07 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Windows OS]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=2028</guid>
		<description><![CDATA[<p>Windows 2012 Server Datacenter or Standard edition has very  nice and clean interface and for folks who are more used to an old-style configuration like Windows 2008 Server offers, it&#8217;s quite hard to find out how to change locale settings. Actually, it&#8217;s quite easy &#8211; login as Administrator and run the Power shell. Then in the Power shell command line type:</p>
<p>intl.cpl &#60;enter&#62;</p>
<p>and there you go. Easy, right?&#8230; <a href="http://www.lkj.net/2013/03/change-locale-settings-windows-2012-datacenter-windows-2008-standard-server/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/03/change-locale-settings-windows-2012-datacenter-windows-2008-standard-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safe and secure Linux disc shredding</title>
		<link>http://www.lkj.net/2013/03/safe-and-secure-linux-disc-shredding/</link>
		<comments>http://www.lkj.net/2013/03/safe-and-secure-linux-disc-shredding/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 14:40:49 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=2018</guid>
		<description><![CDATA[<p>Today, when cloud servers are so popular always remember to wipe out your server data when you are deleting your VPS node or returning a dedicated server.</p>
<p>If you are running Debian it&#8217;s easy to install a secure-delete utility with the following utilities:</p>
<p>srm &#8211; securely delete an existing file<br />
smem &#8211; securely delete traces of a file from ram<br />
sfill &#8211; wipe all the space marked as empty on your hard drive<br />
sswap &#8211; wipe all the data from you swap space.</p>
<p>To install secure-delete tools, run the following command with ROOT privileges:</p>
<blockquote><p>apt-get install secure-delete</p></blockquote>
<p>To safely shred &#8230; <a href="http://www.lkj.net/2013/03/safe-and-secure-linux-disc-shredding/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/03/safe-and-secure-linux-disc-shredding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppet problem. Could not retrieve hostname: getaddrinfo: Name or service not known</title>
		<link>http://www.lkj.net/2013/01/puppet-problem-could-not-retrieve-hostname-getaddrinfo-name-or-service-not-known/</link>
		<comments>http://www.lkj.net/2013/01/puppet-problem-could-not-retrieve-hostname-getaddrinfo-name-or-service-not-known/#comments</comments>
		<pubDate>Thu, 31 Jan 2013 02:26:55 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=2014</guid>
		<description><![CDATA[<p>Puppet agent error message:</p>
<blockquote><p><code>Could not retrieve hostname: getaddrinfo: Name or service not known<br />
Could not retrieve hostname: getaddrinfo: Name or service not known<br />
dnsdomainname: Name or service not known<br />
/usr/lib/ruby/1.8/puppet/defaults.rb:190: undefined method `downcase' for nil:NilClass (NoMethodError)<br />
from /usr/lib/ruby/1.8/puppet.rb:100:in `require'<br />
from /usr/lib/ruby/1.8/puppet.rb:100<br />
from /usr/lib/ruby/1.8/puppet/application.rb:278:in `require'<br />
from /usr/lib/ruby/1.8/puppet/application.rb:278:in `initialize'<br />
from /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `new'<br />
from /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute'<br />
from /usr/bin/puppet:4</code></p></blockquote>
<p>You fix the above error message by editing /etc/hosts file and make sure your server domain name resolves to your public interface IP (or 127.0.0.1). Then run once again &#8220;<em>puppet agent &#8211;test</em>&#8220;&#8230; <a href="http://www.lkj.net/2013/01/puppet-problem-could-not-retrieve-hostname-getaddrinfo-name-or-service-not-known/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/01/puppet-problem-could-not-retrieve-hostname-getaddrinfo-name-or-service-not-known/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate htpasswd style passwords without installing apache utilities</title>
		<link>http://www.lkj.net/2013/01/generate-httpasswd-style-passwords-without-installing-apache-utilities/</link>
		<comments>http://www.lkj.net/2013/01/generate-httpasswd-style-passwords-without-installing-apache-utilities/#comments</comments>
		<pubDate>Thu, 03 Jan 2013 04:40:28 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Web hosting]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=2004</guid>
		<description><![CDATA[<p>This guide applies to most of the Linux operating systems with installed openssl utilities (installed usually by default).</p>
<p>From the command line enter the following command to generate a new user and add the password hash to file .htpasswd in the current directory:</p>
<blockquote><p><em>printf &#8220;User1:$(openssl passwd -apr1 Passwd56374b)\n&#8221; &#62;&#62; .htpasswd<br />
</em></p></blockquote>
<p>Where User1 is the username, Passwd56374b is the password you prefer. This is it.&#8230; <a href="http://www.lkj.net/2013/01/generate-httpasswd-style-passwords-without-installing-apache-utilities/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/01/generate-httpasswd-style-passwords-without-installing-apache-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppet agent error: err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed</title>
		<link>http://www.lkj.net/2013/01/puppet-agent-error-err-could-not-retrieve-catalog-from-remote-server-ssl_connect-returned1-errno0-statesslv3-read-server-certificate-b-certificate-verify-failed/</link>
		<comments>http://www.lkj.net/2013/01/puppet-agent-error-err-could-not-retrieve-catalog-from-remote-server-ssl_connect-returned1-errno0-statesslv3-read-server-certificate-b-certificate-verify-failed/#comments</comments>
		<pubDate>Wed, 02 Jan 2013 08:51:23 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[central configuration]]></category>
		<category><![CDATA[central management]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=1996</guid>
		<description><![CDATA[<p>You may be also banging your head against the wall and experiencing the same problem I was experiencing earlier today. I tried updated server configuration via &#8220;<em>puppet agent &#8211;test</em>&#8221; utility and received the following error message:</p>
<blockquote><p><em>err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed</em><br />
<em> warning: Not using cache on failed catalog</em><br />
<em> err: Could not retrieve catalog; skipping run</em></p></blockquote>
<p>So finally it turned out that NTP was not running on the client server OS and the time was set back in 2010 year! After setting up ntp daemon &#8230; <a href="http://www.lkj.net/2013/01/puppet-agent-error-err-could-not-retrieve-catalog-from-remote-server-ssl_connect-returned1-errno0-statesslv3-read-server-certificate-b-certificate-verify-failed/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2013/01/puppet-agent-error-err-could-not-retrieve-catalog-from-remote-server-ssl_connect-returned1-errno0-statesslv3-read-server-certificate-b-certificate-verify-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show slave status MySQL user permissions</title>
		<link>http://www.lkj.net/2012/12/show-slave-status-mysql-user-permissions/</link>
		<comments>http://www.lkj.net/2012/12/show-slave-status-mysql-user-permissions/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 11:22:22 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[master status]]></category>
		<category><![CDATA[mysq]]></category>
		<category><![CDATA[mysql replication]]></category>
		<category><![CDATA[slave]]></category>
		<category><![CDATA[slave status]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=1985</guid>
		<description><![CDATA[<p>I had a problem with granting correct MySQL user permissions to our in-house monitoring script. The problem was with MySQL user permissions that checked how many seconds behind the master is our MySQL slave server.</p>
<p>MySQL permissions you will need to set-up for the new user on the slave server are PROCESS and REPLICATION, it should work to execute &#8220;<em>show slave status</em>&#8221; command:</p>
<p>&#160;</p>
<blockquote><p><em>GRANT PROCESS, REPLICATION CLIENT ON dbname.* TO &#8216;monitoring&#8217;@&#8217;192.178.2.2&#8242; IDENTIFIED BY &#8216;PWD_HERE&#8217;;</em></p>&#8230; <a href="http://www.lkj.net/2012/12/show-slave-status-mysql-user-permissions/" class="read_more">Read the rest of this entry &#187;</a></blockquote>]]></description>
		<wfw:commentRss>http://www.lkj.net/2012/12/show-slave-status-mysql-user-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling IPv6 on Debian, Ubuntu, Centos, Fedora and Redhat Linux</title>
		<link>http://www.lkj.net/2012/12/disabling-ipv6-on-debian-ubuntu-centos-fedora-and-redhat-linux/</link>
		<comments>http://www.lkj.net/2012/12/disabling-ipv6-on-debian-ubuntu-centos-fedora-and-redhat-linux/#comments</comments>
		<pubDate>Mon, 03 Dec 2012 02:55:22 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Web hosting]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disable ipv6]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=1981</guid>
		<description><![CDATA[<p>I have no idea why I am posting how-to disable IPv6 on your Linux workstation or server &#8211; IPv6 is the only future, but here it goes:</p>
<p><strong>Ubuntu:</strong></p>
<p>Add <em>/etc/sysctl.conf</em> file with the following new lines and execute &#8220;<em>sysctl -p</em>&#8221; from ROOT shell:</p>
<blockquote><p><em>net.ipv6.conf.all.disable_ipv6 = 1</em><br />
<em>net.ipv6.conf.default.disable_ipv6 = 1</em><br />
<em>net.ipv6.conf.lo.disable_ipv6 = 1</em></p></blockquote>
<p>&#160;</p>
<p><strong>Debian:</strong></p>
<p>Execute the following command from ROOT shell, then reboot the server:</p>
<blockquote><p><em>echo net.ipv6.conf.all.disable_ipv6=1 &#62; /etc/sysctl.d/disableipv6.conf</em></p></blockquote>
<p>&#160;</p>
<p><strong>Centos, Fedora and Redhat Linux:</strong></p>
<p>Add the following lines to <em>/etc/sysctl.conf</em>, then execute &#8220;<em>sysctl -p</em>&#8221; from ROOT shell:</p>
<blockquote>
<pre>net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1</pre>
</blockquote>
<p>Or &#8230; <a href="http://www.lkj.net/2012/12/disabling-ipv6-on-debian-ubuntu-centos-fedora-and-redhat-linux/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2012/12/disabling-ipv6-on-debian-ubuntu-centos-fedora-and-redhat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewall open ports for NFS</title>
		<link>http://www.lkj.net/2012/11/firewall-open-ports-for-nfs/</link>
		<comments>http://www.lkj.net/2012/11/firewall-open-ports-for-nfs/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 03:28:23 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Web hosting]]></category>
		<category><![CDATA[firerwall nfs]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[nfs firewall]]></category>
		<category><![CDATA[nfs prots]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=1979</guid>
		<description><![CDATA[<p>For better NFS security you should use firewall, however many folks experience a lot of problems if they are running NFS behind the firewall. Below, we have compiled the required ports (default) that you need to open in your firewall to let NFS traffic pass:</p>
<p>You can check out &#8220;listening&#8221; ports with <em>rpcinfo -p</em> command:</p>
<blockquote><p>   program vers proto   port<br />
100000    2   tcp    111  portmapper<br />
100000    2   udp    111  portmapper<br />
100024    1   udp  14758  status<br />
100024    1   tcp  29024  status<br />
100021    1   udp  55776  nlockmgr<br />
100021    3   udp  55776  nlockmgr<br />
100021    4   udp  55776  nlockmgr<br />
100021    1   tcp  11796  nlockmgr<br />
100021    </p>&#8230; <a href="http://www.lkj.net/2012/11/firewall-open-ports-for-nfs/" class="read_more">Read the rest of this entry &#187;</a></blockquote>]]></description>
		<wfw:commentRss>http://www.lkj.net/2012/11/firewall-open-ports-for-nfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppet labs debian GPG key import</title>
		<link>http://www.lkj.net/2012/10/puppet-labs-debian-gpg-key-import/</link>
		<comments>http://www.lkj.net/2012/10/puppet-labs-debian-gpg-key-import/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 08:54:17 +0000</pubDate>
		<dc:creator>Tech Guy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lkj.net/?p=1973</guid>
		<description><![CDATA[<p>I experienced problems with adding Puppet Labs apt repository to my Debian 6.0 /etc/apt/sources.list for automated Puppet installs using apt-get. The gpg was not imported and to solve the problem, I had to import Puppet Labs apt gpg key. manually:</p>
<p>apt-key adv &#8211;recv-key &#8211;keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> 4BD6EC30</p>
<p>&#160;</p>
<p>&#160;&#8230; <a href="http://www.lkj.net/2012/10/puppet-labs-debian-gpg-key-import/" class="read_more">Read the rest of this entry &#187;</a></p>]]></description>
		<wfw:commentRss>http://www.lkj.net/2012/10/puppet-labs-debian-gpg-key-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.216 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-05-20 10:54:15 -->
