<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Gentoo Blog &#187; Gentoo</title>
	<atom:link href="http://gentoo-blog.de/category/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://gentoo-blog.de</link>
	<description>The ultimate Gentoo Blog</description>
	<lastBuildDate>Sun, 25 Dec 2011 10:48:06 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OpenDNS Server</title>
		<link>http://gentoo-blog.de/ubuntu/opendns-server/</link>
		<comments>http://gentoo-blog.de/ubuntu/opendns-server/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 13:46:15 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=6241</guid>
		<description><![CDATA[Google&#8217;s Public DNS Servers in case you need a public uncensored DNS server you can use these:
8.8.8.8
8.8.4.4
Here is my resolv.conf with the open DNS servers:
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 94.75.228.2
nameserver 80.237.196.2

The last two are also open DNS Servers but not from Google.
Share on Facebook
	
	
	
	]]></description>
			<content:encoded><![CDATA[<p>Google&#8217;s Public DNS Servers in case you need a public uncensored DNS server you can use these:</p>
<p>8.8.8.8<br />
8.8.4.4</p>
<p>Here is my resolv.conf with the open DNS servers:</p>
<p><code>nameserver 8.8.8.8<br />
nameserver 8.8.4.4<br />
nameserver 94.75.228.2<br />
nameserver 80.237.196.2<br />
</code></p>
<p>The last two are also open DNS Servers but not from Google.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Fopendns-server%2F&amp;t=OpenDNS%20Server" id="facebook_share_link_6241">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_6241') || document.getElementById('facebook_share_icon_6241') || document.getElementById('facebook_share_both_6241') || document.getElementById('facebook_share_button_6241');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_6241') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/opendns-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>frequently used SSL commands</title>
		<link>http://gentoo-blog.de/confixx-plesk/frequently-used-ssl-commands/</link>
		<comments>http://gentoo-blog.de/confixx-plesk/frequently-used-ssl-commands/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 14:12:11 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[confixx/Plesk]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=5951</guid>
		<description><![CDATA[generate a new private key and matching Certificate Signing Request (eg to send to a commercial CA)
openssl req -out MYCSR.csr -pubkey -new -keyout MYKEY.key
-add -nodes to create an unencrypted private key
-add -config if your config file has not been set in the environment
decrypt private key
openssl rsa -in MYKEY.key &#62;&#62; MYKEY-NOCRYPT.key
generate a certificate siging request for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>generate a new private key and matching Certificate Signing Request (eg to send to a commercial CA)<br />
</strong><code>openssl req -out MYCSR.csr -pubkey -new -keyout MYKEY.key</code></p>
<p>-add -nodes to create an unencrypted private key<br />
-add -config if your config file has not been set in the environment</p>
<p><strong>decrypt private key</strong></p>
<p><code>openssl rsa -in MYKEY.key &gt;&gt; MYKEY-NOCRYPT.key</code></p>
<p><strong>generate a certificate siging request for an existing private key</strong></p>
<p><code>openssl req -out MYCSR.csr -key MYKEY.key -new</code></p>
<p><strong>generate a certificate signing request based on an existing x509 certificate</strong></p>
<p><code>openssl x509 -x509toreq -in MYCRT.crt -out MYCSR.csr -signkey MYKEY.key</code></p>
<p><strong>create self-signed certificate (can be used to sign other certificates)</strong></p>
<p><code>openssl req -x509 -new -out MYCERT.crt -keyout MYKEY.key -days 365</code></p>
<p><strong>sign a Certificate Signing Request<br />
</strong><code>openssl x509 -req -in MYCSR.csr -CA MY-CA-CERT.crt -CAkey MY-CA-KEY.key -CAcreateserial -out MYCERT.crt -days 365</code></p>
<p>-days has to be less than the validity of the CA certificate</p>
<p><strong>convert DER (.crt .cer .der) to PEM</strong></p>
<p><code>openssl x509 -inform der -in MYCERT.cer -out MYCERT.pem</code></p>
<p><strong>convert PEM to DER</strong></p>
<p><code>openssl x509 -outform der -in MYCERT.pem -out MYCERT.der</code></p>
<p><strong>convert PKCS#12 (.pfx .p12) to PEM containing both private key and certificates<br />
</strong><br />
<code>openssl pkcs12 -in KEYSTORE.pfx -out KEYSTORE.pem -nodes</code></p>
<p>add -nocerts for private key only; add -nokeys for certificates only</p>
<p><strong>convert (add) a seperate key and certificate to a new keystore of type PKCS#12</strong></p>
<p><code>openssl pkcs12 -export -in MYCERT.crt -inkey MYKEY.key -out KEYSTORE.p12 -name "tomcat"</code><strong><br />
check a private key</strong><br />
<code>openssl rsa -in MYKEY.key -check</code></p>
<p>add -noout to not disclose the key</p>
<p><strong>check a Certificate Signing Request</strong></p>
<p><code>openssl req -text -noout -verify -in MYCSR.csr</code><br />
<strong><br />
check a certificate</strong></p>
<p><code>openssl x509 -in MYCERT.crt -text -noout</code><strong><br />
check a PKCS#12 keystore</strong></p>
<p><code>openssl pkcs12 -info -in KEYSTORE.p12</code></p>
<p><strong>check a trust chain of a certificate</strong>    </p>
<p><code>openssl verify -CAfile MYCHAINFILE.pem -verbose MYCERT.crt</code></p>
<p>-to check for server usage: -purpose sslserver<br />
-to check for client usage: -purpose sslient</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fconfixx-plesk%2Ffrequently-used-ssl-commands%2F&amp;t=frequently%20used%20SSL%20commands" id="facebook_share_link_5951">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_5951') || document.getElementById('facebook_share_icon_5951') || document.getElementById('facebook_share_both_5951') || document.getElementById('facebook_share_button_5951');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_5951') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/confixx-plesk/frequently-used-ssl-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount a Linux NFS Share on Windows 7</title>
		<link>http://gentoo-blog.de/ubuntu/mount-a-linux-nfs-share-on-windows-7/</link>
		<comments>http://gentoo-blog.de/ubuntu/mount-a-linux-nfs-share-on-windows-7/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 15:42:28 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=5921</guid>
		<description><![CDATA[First you need to install the windows nfs client. Go to
Control Panel\All Control Panel Items\Programs and Features
Then click on Turn Windows features on or off then select NFS Services Client for NFS. After the installation start a dos box or power shell. And enter the following command to mount the share backup on server 192.168.1.1 [...]]]></description>
			<content:encoded><![CDATA[<p>First you need to install the windows nfs client. Go to</p>
<p>Control Panel\All Control Panel Items\Programs and Features</p>
<p>Then click on Turn Windows features on or off then select NFS Services Client for NFS. After the installation start a dos box or power shell. And enter the following command to mount the share backup on server 192.168.1.1 and assign the drive letter k:</p>
<p><code>mount \\192.168.1.1\backup k:</code></p>
<p>Example: <code>mount [options] \\nfs-server-unc-name\share-name [drive letter]</code></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Fmount-a-linux-nfs-share-on-windows-7%2F&amp;t=Mount%20a%20Linux%20NFS%20Share%20on%20Windows%207" id="facebook_share_link_5921">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_5921') || document.getElementById('facebook_share_icon_5921') || document.getElementById('facebook_share_both_5921') || document.getElementById('facebook_share_button_5921');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_5921') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/mount-a-linux-nfs-share-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting a Database From a mysqldump File</title>
		<link>http://gentoo-blog.de/ubuntu/extracting-a-database-from-a-mysqldump-file/</link>
		<comments>http://gentoo-blog.de/ubuntu/extracting-a-database-from-a-mysqldump-file/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 10:35:47 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=5851</guid>
		<description><![CDATA[Restoring a single database from a full dump is pretty easy, using the mysql command line client’s &#8211;one-database option:
mysql -u root -p --one-database db_to_restore < fulldump.sql
But what if you don’t want to restore the database, you just want to extract it out of the dump file? Well, that happens to be easy as well, thanks [...]]]></description>
			<content:encoded><![CDATA[<p>Restoring a single database from a full dump is pretty easy, using the mysql command line client’s &#8211;one-database option:</p>
<p><code>mysql -u root -p --one-database db_to_restore < fulldump.sql</code></p>
<p>But what if you don’t want to restore the database, you just want to extract it out of the dump file? Well, that happens to be easy as well, thanks to the magic of sed:</p>
<p><code>sed -n '/^-- Current Database: `test`/,/^-- Current Database: `/p' fulldump.sql > test.sql</code></p>
<p>You just need to change “test” to be the name of the database you want extracted. Or you can use this shell script:</p>
<p><a href='http://gentoo-blog.de/wp-content/uploads/2011/08/20110802mysqldumpsplittersh_.txt'>Download mysqldumpsplitter</a></p>
<p>Usage:</p>
<p>$>sh MyDumpSplitter.sh<br />
Usage: sh MyDumpSplitter.sh DUMP-FILE-NAME — Extract all tables as a separate file from dump.<br />
sh MyDumpSplitter.sh DUMP-FILE-NAME TABLE-NAME — Extract single table from dump.<br />
sh MyDumpSplitter.sh DUMP-FILE-NAME -S TABLE-NAME-REGEXP  – Extract tables from dump for specified regular expression.</p>
<p>Further instructions for using this script can be found here:</p>
<p><a href='http://kedar.nitty-witty.com/blog/mydumpsplitter-extract-tables-from-mysql-dump-shell-script'>Mysql dump-shell script</a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Fextracting-a-database-from-a-mysqldump-file%2F&amp;t=Extracting%20a%20Database%20From%20a%20mysqldump%20File" id="facebook_share_link_5851">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_5851') || document.getElementById('facebook_share_icon_5851') || document.getElementById('facebook_share_both_5851') || document.getElementById('facebook_share_button_5851');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_5851') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/extracting-a-database-from-a-mysqldump-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirror a website with wget</title>
		<link>http://gentoo-blog.de/ubuntu/mirror-a-website-with-wget/</link>
		<comments>http://gentoo-blog.de/ubuntu/mirror-a-website-with-wget/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 14:13:34 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=5811</guid>
		<description><![CDATA[To copy or mirror a website with wget do the following:
wget -r -l2 -N -k -x mywebsite.com
This will create a complete copy of the website into a folder called mywebsite.com.
Have fun
Share on Facebook
	
	
	
	]]></description>
			<content:encoded><![CDATA[<p>To copy or mirror a website with wget do the following:</p>
<p><code>wget -r -l2 -N -k -x mywebsite.com</code></p>
<p>This will create a complete copy of the website into a folder called mywebsite.com.</p>
<p>Have fun</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Fmirror-a-website-with-wget%2F&amp;t=Mirror%20a%20website%20with%20wget" id="facebook_share_link_5811">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_5811') || document.getElementById('facebook_share_icon_5811') || document.getElementById('facebook_share_both_5811') || document.getElementById('facebook_share_button_5811');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_5811') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/mirror-a-website-with-wget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Openssl Create a Private Key and a CSR with 2048bit for an SSL Certificate</title>
		<link>http://gentoo-blog.de/ubuntu/openssl-create-a-private-key-and-a-csr-with-2048bit-for-an-ssl-certificate/</link>
		<comments>http://gentoo-blog.de/ubuntu/openssl-create-a-private-key-and-a-csr-with-2048bit-for-an-ssl-certificate/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 11:57:03 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/uncategorized/</guid>
		<description><![CDATA[If you need a new SSL certificate for a server you will need a 2048bit private key from 2011 onwards. This command creates both:
 openssl req -new -nodes -newkey rsa:2048 -keyout example.key -out example.csr
Thats it send the CSR to you ISP and you should get you SSL cert back. You can also edit:
 /etc/ssl/openssl.cnf
And change [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a new SSL certificate for a server you will need a 2048bit private key from 2011 onwards. This command creates both:</p>
<p><code> openssl req -new -nodes -newkey rsa:2048 -keyout example.key -out example.csr</code></p>
<p>Thats it send the CSR to you ISP and you should get you SSL cert back. You can also edit:</p>
<p><code> /etc/ssl/openssl.cnf</code></p>
<p>And change the default_bits line to 2048 then all new keys we be created with 2048bits. </p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Fopenssl-create-a-private-key-and-a-csr-with-2048bit-for-an-ssl-certificate%2F&amp;t=Openssl%20Create%20a%20Private%20Key%20and%20a%20CSR%20with%202048bit%20for%20an%20SSL%20Certificate" id="facebook_share_link_4811">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_4811') || document.getElementById('facebook_share_icon_4811') || document.getElementById('facebook_share_both_4811') || document.getElementById('facebook_share_button_4811');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_4811') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/openssl-create-a-private-key-and-a-csr-with-2048bit-for-an-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reset Forgotten MySQL Root Password</title>
		<link>http://gentoo-blog.de/ubuntu/reset-forgotten-mysql-root-password/</link>
		<comments>http://gentoo-blog.de/ubuntu/reset-forgotten-mysql-root-password/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 08:50:43 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/uncategorized/</guid>
		<description><![CDATA[Okay so you have forgotten your mysql root password and need to access you mysql server. This howto requires root access to the shell or via sudo:
First stop your mysql server via the init script:
/etc/init.d/mysql stop
Now lets start up the mysql daemon and skip the grant tables which store the passwords:
mysqld_safe --skip-grant-tables  
You should [...]]]></description>
			<content:encoded><![CDATA[<p>Okay so you have forgotten your mysql root password and need to access you mysql server. This howto requires root access to the shell or via sudo:</p>
<p>First stop your mysql server via the init script:</p>
<p><code>/etc/init.d/mysql stop</code></p>
<p>Now lets start up the mysql daemon and skip the grant tables which store the passwords:</p>
<p><code>mysqld_safe --skip-grant-tables </code> </p>
<p>You should be able to see mysql starting. Logon to mysql with the fowling command:</p>
<p><code>mysql --user=root mysql</code></p>
<p>Now change the password with:</p>
<p><code>update user set Password=PASSWORD('new-password') where user='root';<br />
flush privileges;<br />
exit;</code></p>
<p>Now kill your running mysqld, then restart it normally. You should be good to go. Try not to forget your password again.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fubuntu%2Freset-forgotten-mysql-root-password%2F&amp;t=Reset%20Forgotten%20MySQL%20Root%20Password%20" id="facebook_share_link_4771">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_4771') || document.getElementById('facebook_share_icon_4771') || document.getElementById('facebook_share_both_4771') || document.getElementById('facebook_share_button_4771');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_4771') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/ubuntu/reset-forgotten-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compare two fields in Mysql</title>
		<link>http://gentoo-blog.de/stuff/compare-two-fields-in-mysql/</link>
		<comments>http://gentoo-blog.de/stuff/compare-two-fields-in-mysql/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 13:50:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/uncategorized/</guid>
		<description><![CDATA[To compare the content of two fields in mysql and print the matching results do the following:
 select * from user where username=password;
This would match all users that have the same username and password
Share on Facebook
	
	
	
	]]></description>
			<content:encoded><![CDATA[<p>To compare the content of two fields in mysql and print the matching results do the following:</p>
<p><code> select * from user where username=password;</code></p>
<p>This would match all users that have the same username and password</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fstuff%2Fcompare-two-fields-in-mysql%2F&amp;t=Compare%20two%20fields%20in%20Mysql" id="facebook_share_link_4731">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_4731') || document.getElementById('facebook_share_icon_4731') || document.getElementById('facebook_share_both_4731') || document.getElementById('facebook_share_button_4731');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_4731') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/stuff/compare-two-fields-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql Update Crypt Field</title>
		<link>http://gentoo-blog.de/stuff/mysql-update-crypt-field/</link>
		<comments>http://gentoo-blog.de/stuff/mysql-update-crypt-field/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 13:47:35 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/uncategorized/</guid>
		<description><![CDATA[This is our mysql table for proftpd with two users. One user has a clear text password &#8216;Clear_text&#8217; and the other user has a Crypt password. The passwords are stored in the field passwd. Which we need to update for the user ftp.
mysql> select * from ftpuser;
+----+----------+-------------------------------------------+-----+------+---------------+---------------+-------+---------------------+---------------------+
&#124; id &#124; userid   &#124; passwd  [...]]]></description>
			<content:encoded><![CDATA[<p>This is our mysql table for proftpd with two users. One user has a clear text password &#8216;Clear_text&#8217; and the other user has a Crypt password. The passwords are stored in the field passwd. Which we need to update for the user ftp.</p>
<p><code>mysql> select * from ftpuser;<br />
+----+----------+-------------------------------------------+-----+------+---------------+---------------+-------+---------------------+---------------------+<br />
| id | userid   | passwd                                    | uid | gid  | homedir       | shell         | count | accessed            | modified            |<br />
+----+----------+-------------------------------------------+-----+------+---------------+---------------+-------+---------------------+---------------------+<br />
| 10 | ftp| *BD0359A2B6ZZHHA6A35B8D06DC1114D92CE3101 | 108 | 1002 | /storage/data | /sbin/nologin |    23 | 2011-01-19 13:07:33 | 2011-01-19 11:47:54 |<br />
| 11 | upload   | Clear_text                              | 108 | 1002 | /storage/data | /sbin/nologin |   529 | 2011-01-19 10:06:28 | 2011-01-06 16:01:30 |<br />
+----+----------+-------------------------------------------+-----+------+---------------+---------------+-------+---------------------+---------------------+</code></p>
<p>We want to update the crypt password from the mysql shell. The following command will update the user ftp with a new crypt password:</p>
<p><code>update ftpuser set passwd=PASSWORD('KLatttGuya') where userid='ftp';</code></p>
<p>You can see the password in clear text here &#8216;KLatttGuya&#8217; because of the option PASSWORD mysql knows that it must store a crypt password.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fstuff%2Fmysql-update-crypt-field%2F&amp;t=Mysql%20Update%20Crypt%20Field" id="facebook_share_link_4681">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_4681') || document.getElementById('facebook_share_icon_4681') || document.getElementById('facebook_share_both_4681') || document.getElementById('facebook_share_button_4681');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_4681') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/stuff/mysql-update-crypt-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Create a self signed SSL certificate</title>
		<link>http://gentoo-blog.de/confixx-plesk/howto-create-a-self-signed-ssl-certificate/</link>
		<comments>http://gentoo-blog.de/confixx-plesk/howto-create-a-self-signed-ssl-certificate/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 14:16:41 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[confixx/Plesk]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/uncategorized/</guid>
		<description><![CDATA[This howto shows you howto create a self signed SSL certificate without a passphrase. Using openssl with one single command:
 openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.crt
After you have answered all the questions you should have two files one key file and one crt file. Please make sure to enter [...]]]></description>
			<content:encoded><![CDATA[<p>This howto shows you howto create a self signed SSL certificate without a passphrase. Using openssl with one single command:</p>
<p><code> openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.crt</code></p>
<p>After you have answered all the questions you should have two files one key file and one crt file. Please make sure to enter your domain name when asked for your common name. This can also be an ip address if you don&#8217;t have a domain name to use. You can change how long the cert is valid for by changing the value days. If you prefer to have your cert and key in one file normally called a pem file please use the following command:</p>
<p><code>openssl req -x509 -nodes -days 1095 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem</code></p>
<p>As you can see the only thing i changed is instead of using two file names one for the key and one for the cert. You just repeat the first name which will create the cert and the key in one file called mycert.pem in our example.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fconfixx-plesk%2Fhowto-create-a-self-signed-ssl-certificate%2F&amp;t=Howto%20Create%20a%20self%20signed%20SSL%20certificate" id="facebook_share_link_4231">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_4231') || document.getElementById('facebook_share_icon_4231') || document.getElementById('facebook_share_both_4231') || document.getElementById('facebook_share_button_4231');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_4231') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/confixx-plesk/howto-create-a-self-signed-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

