<?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>Jontas</title>
	<atom:link href="http://www.f15ijp.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:54:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress 3: Super Admin pulled a disappearing act</title>
		<link>http://www.f15ijp.com/2010/09/08/wordpress-3-super-admin-pulled-a-disappearing-act/</link>
		<comments>http://www.f15ijp.com/2010/09/08/wordpress-3-super-admin-pulled-a-disappearing-act/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 08:54:59 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Network]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=618</guid>
		<description><![CDATA[Had a slight problem after the database server had to make a unplanned reboot. I have a Network running on the WordPress installation; the sites were working, the dashboard was working however I did not have the insert image icon in the posts and the Super Admin was not visible. For me this turned out [...]]]></description>
			<content:encoded><![CDATA[<p>Had a slight problem after the database server had to make a unplanned reboot.<br />
I have a Network running on the WordPress installation; the sites were working, the dashboard was working however I did not have the insert image icon in the posts and the Super Admin was not visible.</p>
<p>For me this turned out to be a simple. The database table &#8220;wp_sitemeta&#8221; was marked as crashed and could not be read by WordPress.</p>
<p>This is likely to be the problem if the Super Admin disappeared after a hard shutdown of the database server. (By hard I mean that the database didn&#8217;t have time to close tables, finish writing to tables etc)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/09/08/wordpress-3-super-admin-pulled-a-disappearing-act/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN giving a client a static IP</title>
		<link>http://www.f15ijp.com/2010/08/31/openvpn-giving-a-client-a-static-ip/</link>
		<comments>http://www.f15ijp.com/2010/08/31/openvpn-giving-a-client-a-static-ip/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 08:46:16 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[tun]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=610</guid>
		<description><![CDATA[To set up static IP for a client first set up client-config&#8217;s in server.conf # EXAMPLE: Suppose the client # having the certificate common name &#34;Thelonious&#34; # also has a small subnet behind his connecting # machine, such as 192.168.40.128/255.255.255.248. # First, uncomment out these lines: client-config-dir client-configs Then create the directory &#8220;/etc/openvpn/client-configs Then create [...]]]></description>
			<content:encoded><![CDATA[<p>To set up static IP for a client first set up client-config&#8217;s in server.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># EXAMPLE: Suppose the client</span>
<span style="color: #666666; font-style: italic;"># having the certificate common name &quot;Thelonious&quot;</span>
<span style="color: #666666; font-style: italic;"># also has a small subnet behind his connecting</span>
<span style="color: #666666; font-style: italic;"># machine, such as 192.168.40.128/255.255.255.248.</span>
<span style="color: #666666; font-style: italic;"># First, uncomment out these lines:</span>
client-config-dir client-configs</pre></div></div>

<p>Then create the directory &#8220;/etc/openvpn/client-configs<br />
Then create a file with the name of the client that is connecting in this folder<br />
(for instance &#8220;/etc/openvpn/client-configs/backup&#8221;)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Give this machine 10.8.0.3 a a static ip</span>
ifconfig-push 10.8.0.3 10.8.0.0</pre></div></div>

<p>(Remember to replace with values that makes sense to you)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/31/openvpn-giving-a-client-a-static-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN: TLS Error: reading acknowledgement record from packet</title>
		<link>http://www.f15ijp.com/2010/08/30/openvpn-tls-error-reading-acknowledgement-record-from-packet/</link>
		<comments>http://www.f15ijp.com/2010/08/30/openvpn-tls-error-reading-acknowledgement-record-from-packet/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 15:00:59 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[TLS auth]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=600</guid>
		<description><![CDATA[This error message (in my experince) most often means that one side (either the client or the server) is set up for TLS auth, but the other side is not. Check both configs and fix this problem. To add it to a client Copy the file /etc/openvpn/ta.key from the server to the client and then [...]]]></description>
			<content:encoded><![CDATA[<p>This error message (in my experince) most often means that one side (either the client or the server) is set up for TLS auth, but the other side is not.</p>
<p>Check both configs and fix this problem.</p>
<p>To add it to a client<br />
Copy the file /etc/openvpn/ta.key from the server to the client<br />
and then edit /etc/openvpn/myVpn.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># If a tls-auth key is used on the server</span>
<span style="color: #666666; font-style: italic;"># then every client must also have the key.</span>
tls-auth ta.key <span style="color: #000000;">1</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/30/openvpn-tls-error-reading-acknowledgement-record-from-packet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a OpenVPN client on ubuntu 10.04</title>
		<link>http://www.f15ijp.com/2010/08/30/adding-a-openvpn-client-on-ubuntu-10-04/</link>
		<comments>http://www.f15ijp.com/2010/08/30/adding-a-openvpn-client-on-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 13:20:37 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[tun]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=595</guid>
		<description><![CDATA[First the certificate (key) should be created on the server. cd /etc/openvpn/easy-rsa/ source vars ./pkitool hostname Copy the certificate files to the client * /etc/openvpn/ca.crt * /etc/openvpn/easy-rsa/keys/hostname.crt * /etc/openvpn/easy-rsa/keys/hostname.key Then the client should be setup apt-get install openvpn cd /etc/openvpn cp /usr/share/doc/openvpn/examples/sample-config/client.conf client.conf Edit the client.conf file (edit all that you need to fit your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>First the certificate (key) should be created on the server.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">source</span> vars
.<span style="color: #000000; font-weight: bold;">/</span>pkitool <span style="color: #c20cb9; font-weight: bold;">hostname</span></pre></div></div>

<p><strong>Copy the certificate files to the client</strong><br />
* /etc/openvpn/ca.crt<br />
* /etc/openvpn/easy-rsa/keys/hostname.crt<br />
* /etc/openvpn/easy-rsa/keys/hostname.key</p>
<p><strong>Then the client should be setup</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openvpn
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>sample-config<span style="color: #000000; font-weight: bold;">/</span>client.conf client.conf</pre></div></div>

<p>Edit the client.conf file (edit all that you need to fit your config, the following are those I recommend):<br />
The fix for Vista I add (commented out) since I am lazy and usually just copy a old config file to the next client</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">remote my.domain.com <span style="color: #000000;">1194</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># a separate .crt/.key file pair</span>
<span style="color: #666666; font-style: italic;"># for each client.  A single ca</span>
<span style="color: #666666; font-style: italic;"># file can be used for all clients.</span>
ca ca.crt
cert clientName.crt
key clientName.key
&nbsp;
<span style="color: #666666; font-style: italic;">#fix for vista being stuid...</span>
;route-method exe
;route-delay <span style="color: #000000;">2</span></pre></div></div>

<p>Restart OpenVPN on the client:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>openvpn restart
 <span style="color: #000000; font-weight: bold;">*</span> Stopping virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                
 <span style="color: #000000; font-weight: bold;">*</span>   No VPN is running.
 <span style="color: #000000; font-weight: bold;">*</span> Starting virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                
 <span style="color: #000000; font-weight: bold;">*</span>   Autostarting VPN <span style="color: #ff0000;">'medihand'</span>                                         <span style="color: #7a0874; font-weight: bold;">&#91;</span> OK <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Same as with the server, the above means that is went well, a [fail] means that the logs should be read for details.</p>
<p>A word of caution: [ OK ] only means that the OpenVPN was started ok &#8211; no errors in config etc.<br />
There might still be issues with firewalls, wrong hostname (to the server) etc.<br />
Check ifconfig and ping the server to make sure it is working.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/30/adding-a-openvpn-client-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing OpenVPN (server) on ubuntu 10.04</title>
		<link>http://www.f15ijp.com/2010/08/30/installing-openvpn-on-ubuntu-10-04/</link>
		<comments>http://www.f15ijp.com/2010/08/30/installing-openvpn-on-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 12:39:44 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[tun]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=589</guid>
		<description><![CDATA[This is a quick note on how to install OpenVPN as a Ethernet tunnel (not a bridge) on ubuntu 10.04 install sudo apt-get install openvpn Server Certificates First, copy the easy-rsa directory to /etc/openvpn. sudo mkdir /etc/openvpn/easy-rsa/ sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/ You may also wish to adjust permissions in the easy-rsa directory to allow [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick note on how to install OpenVPN as a Ethernet tunnel (not a bridge) on ubuntu 10.04</p>
<p><strong>install</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openvpn</pre></div></div>

<p><strong>Server Certificates</strong></p>
<p>First, copy the easy-rsa directory to /etc/openvpn.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.0</span><span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>You may also wish to adjust permissions in the easy-rsa directory to allow the current user permission to create files.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> <span style="color: #007800;">$USER</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Next, edit /etc/openvpn/easy-rsa/vars but make sure you adjust at least the following values to values make sense to you:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">KEY_COUNTRY</span>=<span style="color: #ff0000;">&quot;SE&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">KEY_PROVINCE</span>=<span style="color: #ff0000;">&quot;Blekinge&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">KEY_CITY</span>=<span style="color: #ff0000;">&quot;Karlskrona&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">KEY_ORG</span>=<span style="color: #ff0000;">&quot;My organization&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">KEY_EMAIL</span>=<span style="color: #ff0000;">&quot;vpnhelp@example.com&quot;</span></pre></div></div>

<p>Enter the following to create the server certificates:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>easy-rsa<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">source</span> vars
.<span style="color: #000000; font-weight: bold;">/</span>clean-all
.<span style="color: #000000; font-weight: bold;">/</span>build-dh
.<span style="color: #000000; font-weight: bold;">/</span>pkitool <span style="color: #660033;">--initca</span>
.<span style="color: #000000; font-weight: bold;">/</span>pkitool <span style="color: #660033;">--server</span> server
<span style="color: #7a0874; font-weight: bold;">cd</span> keys
openvpn <span style="color: #660033;">--genkey</span> <span style="color: #660033;">--secret</span> ta.key
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> server.crt server.key ca.crt dh1024.pem ta.key <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><strong>Server Configuration</strong><br />
Lets start by copying the example config.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>sample-config-files<span style="color: #000000; font-weight: bold;">/</span>server.conf.gz <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>server.conf.gz</pre></div></div>

<p>Edit /etc/openvpn/server.conf changing (at least) the following options (change to values that make sense to you):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Change the VPN subnet address to one that makes sense to you (and don't collide with any other net)</span>
server 10.9.0.0 255.255.255.0
<span style="color: #666666; font-style: italic;">#If you wish the computers on the VPN to be able to connect to each other then uncomment</span>
client-to-client
<span style="color: #666666; font-style: italic;"># You can uncomment this out on</span>
<span style="color: #666666; font-style: italic;"># non-Windows systems.</span>
user nobody
group nogroup
<span style="color: #666666; font-style: italic;">#If this is uncommented then a separate log will be written for OpenVPN (If both log lines are uncommented, then syslog is used)</span>
log-append  openvpn.log
<span style="color: #666666; font-style: italic;">#To enable per client configurations uncomment:</span>
client-config-dir client-configs</pre></div></div>

<p>Restart the VPN:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>openvpn restart</pre></div></div>

<p>If the server failed to start:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>openvpn restart
 <span style="color: #000000; font-weight: bold;">*</span> Stopping virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                                                                                 
 <span style="color: #000000; font-weight: bold;">*</span>   No VPN is running.
 <span style="color: #000000; font-weight: bold;">*</span> Starting virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                                                                                 
 <span style="color: #000000; font-weight: bold;">*</span>   Autostarting VPN <span style="color: #ff0000;">'server'</span>                                                     <span style="color: #7a0874; font-weight: bold;">&#91;</span>fail<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Then you should check out the log (either syslog or the log you set in the config file) and solve the issues.<br />
It should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>openvpn restart
 <span style="color: #000000; font-weight: bold;">*</span> Stopping virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                                                                                 
 <span style="color: #000000; font-weight: bold;">*</span>   No VPN is running.
 <span style="color: #000000; font-weight: bold;">*</span> Starting virtual private network daemon<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>...                                                                                                 
 <span style="color: #000000; font-weight: bold;">*</span>   Autostarting VPN <span style="color: #ff0000;">'server'</span>                                                     <span style="color: #7a0874; font-weight: bold;">&#91;</span> OK <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/30/installing-openvpn-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux send a log as a mail from the linux console</title>
		<link>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/</link>
		<comments>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 11:00:22 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=584</guid>
		<description><![CDATA[Sometimes it is nice to send a log or some other file as a email to someone (or a part of a file) cat myfile.txt &#124; mail -s 'SUBJECT' example@mail.com; Change myfile.txt, SUBJECT and example@mail.com to something useful.]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is nice to send a log or some other file as a email to someone (or a part of a file)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> myfile.txt <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">'SUBJECT'</span> example<span style="color: #000000; font-weight: bold;">@</span>mail.com;</pre></div></div>

<p>Change myfile.txt, SUBJECT and example@mail.com to something useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL execute statements directly from the (linux) console</title>
		<link>http://www.f15ijp.com/2010/08/18/mysql-execute-statements-directly-from-the-bash-consol/</link>
		<comments>http://www.f15ijp.com/2010/08/18/mysql-execute-statements-directly-from-the-bash-consol/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 09:16:06 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[console]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=579</guid>
		<description><![CDATA[Executing a query quickly from the console is nice to be able to do (without having to enter the MySQL console). This will simply output the result to the console where you are. user@server:~$ mysql -uUSERNAME -p TABLENAME --execute &#34;REPAIR TABLE position&#34;; Replace USERNAME and TABLENAME with your vars If you would like the output [...]]]></description>
			<content:encoded><![CDATA[<p>Executing a query quickly from the console is nice to be able to do (without having to enter the MySQL console).</p>
<ul>
<li><strong>This will simply output the result to the console where you are.</strong>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> user<span style="color: #000000; font-weight: bold;">@</span>server:~$ mysql <span style="color: #660033;">-uUSERNAME</span> <span style="color: #660033;">-p</span> TABLENAME <span style="color: #660033;">--execute</span> <span style="color: #ff0000;">&quot;REPAIR TABLE position&quot;</span>;</pre></div></div>

<p>Replace USERNAME and TABLENAME with your vars</li>
<li><strong>If you would like the output to a file</strong>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> mysql <span style="color: #660033;">-uUSERNAME</span> <span style="color: #660033;">-p</span> TABLENAME <span style="color: #660033;">--execute</span> <span style="color: #ff0000;">&quot;SELECT * FROM test&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> test.sql;</pre></div></div>

<p>Replace USERNAME and TABLENAME with your vars</li>
<li><strong>If you would like the output to be sent as a email</strong>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> mysql <span style="color: #660033;">-uUSERNAME</span> <span style="color: #660033;">-p</span> TABLENAME <span style="color: #660033;">--execute</span> <span style="color: #ff0000;">&quot;SELECT * FROM test&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">'SUBJECT'</span> example<span style="color: #000000; font-weight: bold;">@</span>mail.com</pre></div></div>

<p>Replace USERNAME, TABLENAME, SUBJECT and example@mail.com with your vars</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/18/mysql-execute-statements-directly-from-the-bash-consol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP: Keep ie6 installed (don&#8217;t update ie)</title>
		<link>http://www.f15ijp.com/2010/08/11/windows-xp-keep-ie6-installed-dont-update-ie/</link>
		<comments>http://www.f15ijp.com/2010/08/11/windows-xp-keep-ie6-installed-dont-update-ie/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 08:46:33 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Windows 2000]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Internet Explorer 6]]></category>
		<category><![CDATA[Internet Explorer 7]]></category>
		<category><![CDATA[Internet Explorer 8]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=567</guid>
		<description><![CDATA[Keeping Internet Explorer 6 installed and don&#8217;t update to a safe (and nice) version. I only recommend doing this on a machine that should keep Internet Explorer 6 in order to do development testing. Disable Internet Explorer 7 Open up a registry editor and check if the key &#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0&#8243; exists, otherwise create it (the [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping Internet Explorer 6 installed and don&#8217;t update to a safe (and nice) version.<br />
I only recommend doing this on a machine that should keep Internet Explorer 6 in order to do development testing.</p>
<ul>
<li><strong>Disable Internet Explorer 7</strong> Open up a registry editor and check if the key &#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0&#8243; exists, otherwise create it (the key is the tree structure in regedit).<br />
Now enter a Key name &#8220;DoNotAllowIE70&#8243; as a DWORD and give it the value &#8220;1&#8243;.<br />
This will keep Internet Explorer 8 from installing on this computer.</li>
<li><strong>Disable Internet Explorer 8</strong> Open up a registry editor and check if the key &#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\8.0&#8243; exists, otherwise create it (the key is the tree structure in regedit).<br />
Now enter a Key name &#8220;DoNotAllowIE80&#8243; as a DWORD and give it the value &#8220;1&#8243;.<br />
This will keep Internet Explorer 8 from installing on this computer.</li>
</ul>
<p>The values mean the following:
<ul>
<li> When the key value name is not defined, distribution is not blocked.</li>
<li> When the key value name is set to 0, distribution is not blocked.</li>
<li> When the key value name is set to 1, distribution is blocked.</li>
</ul>
<p>If you need to do this on several computers then you can download Toolkits to do this from Microsoft (warning: read the instructions and verify that you ran it correctly on the first computer you run it on):</p>
<ul>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=4516A6F7-5D44-482B-9DBD-869B4A90159C&#038;displaylang=en">Toolkit to Disable Automatic Delivery of Internet Explorer 7</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=21687628-5806-4ba6-9e4e-8e224ec6dd8c&#038;displaylang=en">Toolkit to Disable Automatic Delivery of Internet Explorer 8</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/11/windows-xp-keep-ie6-installed-dont-update-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 unseting AddDefaultCharset (via .htaccess)</title>
		<link>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/</link>
		<comments>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:19:35 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AddDefaultCharset]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=561</guid>
		<description><![CDATA[Setting a default charset using .htaccess is a simple thing to do However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems). This is very easy to do just edit the .htaccess file and add a line [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/">Setting a default charset using .htaccess is a simple thing to do</a></p>
<p>However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems).</p>
<p>This is very easy to do just edit the .htaccess file and add a line that says</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddDefaultCharset</span> <span style="color: #0000ff;">OFF</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Finding the serial number of a hard drive</title>
		<link>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/</link>
		<comments>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 20:33:22 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[hdparm]]></category>
		<category><![CDATA[sd]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=557</guid>
		<description><![CDATA[Finding the serial number of a hard drive on a Linux console (as root) is simple with the right tool. The right tool in this case is hdparm (using the -i option). -i will query the device directly for the details. Example: themachine:/proc# hdparm -i /dev/sda &#160; /dev/sda: &#160; Model=ST31500341AS , FwRev=CC1H , SerialNo= 9VS21ZXM [...]]]></description>
			<content:encoded><![CDATA[<p>Finding the serial number of a hard drive on a Linux console (as root) is simple with the right tool.<br />
The right tool in this case is hdparm (using the -i option).<br />
-i will query the device directly for the details.</p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">themachine:<span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #666666; font-style: italic;"># hdparm -i /dev/sda</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda:
&nbsp;
 <span style="color: #007800;">Model</span>=ST31500341AS                            , <span style="color: #007800;">FwRev</span>=CC1H    , <span style="color: #007800;">SerialNo</span>=            9VS21ZXM
 <span style="color: #007800;">Config</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span> HardSect NotMFM HdSw<span style="color: #000000; font-weight: bold;">&gt;</span>15uSec Fixed DTR<span style="color: #000000; font-weight: bold;">&gt;</span>10Mbs RotSpdTol<span style="color: #000000; font-weight: bold;">&gt;</span>.5<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span>
 <span style="color: #007800;">RawCHS</span>=<span style="color: #000000;">16383</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">63</span>, <span style="color: #007800;">TrkSize</span>=<span style="color: #000000;">0</span>, <span style="color: #007800;">SectSize</span>=<span style="color: #000000;">0</span>, <span style="color: #007800;">ECCbytes</span>=<span style="color: #000000;">4</span>
 <span style="color: #007800;">BuffType</span>=unknown, <span style="color: #007800;">BuffSize</span>=0kB, <span style="color: #007800;">MaxMultSect</span>=<span style="color: #000000;">16</span>, <span style="color: #007800;">MultSect</span>=?<span style="color: #000000;">16</span>?
 <span style="color: #007800;">CurCHS</span>=<span style="color: #000000;">16383</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">63</span>, <span style="color: #007800;">CurSects</span>=<span style="color: #000000;">16514064</span>, <span style="color: #007800;">LBA</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>, <span style="color: #007800;">LBAsects</span>=<span style="color: #000000;">18446744072344861488</span>
 <span style="color: #007800;">IORDY</span>=on<span style="color: #000000; font-weight: bold;">/</span>off, <span style="color: #007800;">tPIO</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>min:<span style="color: #000000;">120</span>,w<span style="color: #000000; font-weight: bold;">/</span>IORDY:<span style="color: #000000;">120</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #007800;">tDMA</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>min:<span style="color: #000000;">120</span>,rec:<span style="color: #000000;">120</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 <span style="color: #000000; font-weight: bold;">*</span>udma6 
 <span style="color: #007800;">AdvancedPM</span>=no <span style="color: #007800;">WriteCache</span>=enabled
 Drive conforms to: unknown:  ATA<span style="color: #000000; font-weight: bold;">/</span>ATAPI-<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">*</span> signifies the current active mode</pre></div></div>

<p>Using the option -I instead gives even more information:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">themachine:<span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #666666; font-style: italic;"># hdparm -I /dev/sda</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda:
&nbsp;
ATA device, with non-removable media
        Model Number:       ST31500341AS                            
        Serial Number:      9VS21ZXM
        Firmware Revision:  CC1H    
        Transport:          Serial
Standards:
        Used: unknown <span style="color: #7a0874; font-weight: bold;">&#40;</span>minor revision code 0x0029<span style="color: #7a0874; font-weight: bold;">&#41;</span> 
        Supported: <span style="color: #000000;">8</span> <span style="color: #000000;">7</span> <span style="color: #000000;">6</span> <span style="color: #000000;">5</span> 
        Likely used: <span style="color: #000000;">8</span>
Configuration:
        Logical         max     current
        cylinders       <span style="color: #000000;">16383</span>   <span style="color: #000000;">16383</span>
        heads           <span style="color: #000000;">16</span>      <span style="color: #000000;">16</span>
        sectors<span style="color: #000000; font-weight: bold;">/</span>track   <span style="color: #000000;">63</span>      <span style="color: #000000;">63</span>
        <span style="color: #660033;">--</span>
        CHS current addressable sectors:   <span style="color: #000000;">16514064</span>
        LBA    user addressable sectors:  <span style="color: #000000;">268435455</span>
        LBA48  user addressable sectors: <span style="color: #000000;">2930277168</span>
        device <span style="color: #c20cb9; font-weight: bold;">size</span> with M = <span style="color: #000000;">1024</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1024</span>:     <span style="color: #000000;">1430799</span> MBytes
        device <span style="color: #c20cb9; font-weight: bold;">size</span> with M = <span style="color: #000000;">1000</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1000</span>:     <span style="color: #000000;">1500301</span> MBytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1500</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Capabilities:
        LBA, IORDY<span style="color: #7a0874; font-weight: bold;">&#40;</span>can be disabled<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        Queue depth: <span style="color: #000000;">32</span>
        Standby timer values: spec<span style="color: #ff0000;">'d by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = ?
        Recommended acoustic management value: 254, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
                Write-Read-Verify feature set
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
                Device-initiated interface power management
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
                unknown 206[12] (vendor specific)
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        240min for SECURITY ERASE UNIT. 240min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000c50014ec1f60
        NAA             : 5
        IEEE OUI        : c50
        Unique ID       : 014ec1f60
Checksum: correct</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/07/23/linux-finding-the-serial-number-of-a-hard-driv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
