<?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>Oliver Hansen &#187; linux</title>
	<atom:link href="http://blog.oliverhansen.com/index.php/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oliverhansen.com</link>
	<description>A techie&#39;s not-so-technical weblog</description>
	<lastBuildDate>Wed, 05 May 2010 15:44:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>

	<item>

		<title>Install pfSense on Symantec 5420 Security Gateway</title>

		<link>http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/</link>

		<comments>http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/#comments</comments>

		<pubDate>Wed, 18 Nov 2009 21:32:31 +0000</pubDate>

		<dc:creator>Oliver</dc:creator>

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[5420]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pfsense]]></category>
		<category><![CDATA[symantec]]></category>
		<category><![CDATA[unix]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/?p=567</guid>


		<description><![CDATA[<p>I need to give credit to this post in the pfSense forums which showed that this was possible. This box is pretty nice in that the processor is a Celeron 2.0GHz and it has 6 onboard Intel 10/100 NICs which are preferred by far over the usual Realtek NICs found in embedded devices. It was [...]]]></description>

	
		<content:encoded><![CDATA[<p>I need to give credit to <a href="http://forum.pfsense.org/index.php/topic,17843.0.html">this post in the pfSense forums</a> which showed that this was possible. This box is pretty nice in that the processor is a Celeron 2.0GHz and it has 6 onboard Intel 10/100 NICs which are preferred by far over the usual Realtek NICs found in embedded devices. It was just by chance that I saw the post the other day even though it had been posted a while back. My company had two of these donated a while back but we weren&#8217;t using them because we had no real need to muck with the licensing when the hardware was discontinued. Have a look at what you can find these <a href="http://www.google.com/products?oe=UTF-8&#038;sourceid=navclient&#038;gfns=1&#038;q=Symantec+5420+Security+Gateway&#038;um=1&#038;ie=UTF-8&#038;ei=L2YES4ajB5DSsgOC3YGXBg&#038;sa=X&#038;oi=product_result_group&#038;ct=title&#038;resnum=4&#038;ved=0CCEQrQQwAw">Symantec 5420 Security Gateway</a> for these days. The author of the post gave a few tips but no real instructions so after I got it working I thought I would put together a step-by-step guide.</p>
<p>First, what you will need:</p>
<ul>
<li>A knowledge of how to install pfSense &#8211; This guide assumes you have installed pfSense before. If you have not, look at the <a href="http://doc.pfsense.org/index.php/InstallationGuide">detailed instructions on the pfSense wiki</a>.</li>
<li>1 Symantec 5420 Security Gateway &#8211; these can be found secondhand since they are discontinued</li>
<li>1 IDE HDD (Hard Drive)</li>
<li>1 computer that can boot from CD &#8211; you will not need this after the install is finished</li>
<li>1 computer with a serial port and a serial cable &#8211; this can be the same computer that you boot with but must have an OS</li>
</ul>
<p><span id="more-567"></span></p>
<ol>
<li>Burn a copy of the <a href="http://www.pfsense.org/index.php?option=com_content&#038;task=view&#038;id=58&#038;Itemid=46">latest stable version of pfSense</a> &#8211; I chose 1.2.3-RC3 which I have used and is quite stable.</li>
<li>Open the case of the Symantec 5420 and remove the HDD and the CF-to-IDE adapter. Put them both aside in case you want to revert to the Symantec system at some point.</li>
<li>Take a HDD that can be erased and put it in your PC &#8211; remove all other HDDs  from the computer so you don&#8217;t overwrite the wrong one and set this one to Master.</li>
<li>Boot the pfSense CD and choose &#8220;Easy Install&#8221; which will give you the kernel option we need at the end.</li>
<li>After the files are copied to the hard disk, choose &#8220;Embedded Kernel&#8221; from the custom kernel choices &#8211; this will give us output to the serial port since the Symantec 5420 does not have a monitor output or keyboard inputs.</li>
<li>When the install finishes, choose reboot and wait for the computer to shut down. Before it boots again, turn the computer off and remove the HDD.</li>
<li>Install the HDD into the Symantec 5420 and ensure the jumper is set to Master.</li>
<li>Plug in your serial cable from your running PC and the Symantec 5420 serial port and begin a serial connection with <a href="http://www.google.com/url?q=http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&#038;ei=zSADS-aiO4_ssQOLlNS4BA&#038;sa=X&#038;oi=smap&#038;resnum=1&#038;ct=result&#038;cd=1&#038;ved=0CAsQqwMoAA&#038;usg=AFQjCNGhgiMXTL2-wtEDMQRdxsND7APsmw">PuTTY</a> or another client program and connect using 9600 8-N-1 settings.</li>
<li>Turn on the Symantec 5420 and see the boot screen come up on your terminal window after about 15 seconds. <strong>Important: Make sure to choose boot option 2: ACPI Disabled</strong>. If it does not boot, go back and check your steps. Ensure you chose the Embedded kernel during install.</li>
<li>When the system boots, it should recognize all the hardware and then prompt you to set up the interfaces just like a normal pfSense installation.</li>
<li>This step seems to only happen if the drive was not Master in the computer it was installed in. If it doesn&#8217;t boot the first time and you get a &#8220;mountroot>&#8221; prompt it is because the name of the drive was different in the machine you installed pfSense on. As the prompt will tell you, type &#8220;?&#8221; to see a list of the possible valid partitions. You want to replace the first part (drive name) with what you see in the currently installed and possible drive partitions. If you got the message &#8220;Trying to mount root from <strong>ufs:/dev/ad2s1a</strong>&#8221; but your valid drives all start with <strong>ad0</strong>, then type &#8220;<strong>ufs: ad0s1a</strong>&#8220;. Once the computer has booted you will need to take one more step to avoid this in future boots. You will need to edit the file <strong>/etc/fstab</strong> and change the drive reference (ad0 in the example) to be correct. You can edit this file through the web interface in pfSense or using <strong>vi </strong>or <strong>ee </strong>from the shell command prompt. Note: this tip was taken straight from the <a href="http://blog.pfsense.org/?p=509">official pfSense book</a> which I recommend buying if you are using pfSense frequently.</li>
<li>Next, to make sure it boots with ACPI disabled by default you will need to make another edit. <strong>/boot/device.hints</strong> is the file. Add a line at the bottom that says <strong>hint.acpi.0.disabled=&#8221;1&#8243;</strong>. Now when the system is booted, boot with ACPI disabled will be default.<br />
<br /><em>*Note that this has been reported to be unnecessary for others. I had no luck with ACPI enabled the first time I tried but that could have been related to something else. </em></li>
</ol>
<p>Currently I do not know of a way to get the LCD screen functioning. There is an LCDproc package for pfSense but the driver is unknown. Hopefully this will change soon. Thanks as well to <a href="http://gnuler.blogspot.com/">Gnuler</a> (page in spanish &#8211; <a href="http://translate.google.com/translate?js=y&#038;prev=_t&#038;hl=en&#038;ie=UTF-8&#038;u=http%3A%2F%2Fgnuler.blogspot.com%2F2008%2F08%2Freciclando-un-appliance.html&#038;sl=es&#038;tl=en&#038;history_state0=">link to english</a>) who seems to be the first record of someone trying out Linux on this box.<br />

<a href='http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/imag0007/' title='Opening Case'><img width="150" height="150" src="http://blog.oliverhansen.com/wp-content/uploads/2009/11/IMAG0007-150x150.jpg" class="attachment-thumbnail" alt="Opening Case" title="Opening Case" /></a>
<a href='http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/imag0010/' title='Remove Hard Drive'><img width="150" height="150" src="http://blog.oliverhansen.com/wp-content/uploads/2009/11/IMAG0010-150x150.jpg" class="attachment-thumbnail" alt="Remove Hard Drive" title="Remove Hard Drive" /></a>
<a href='http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/imag0011/' title='Remove Hard Drive Bracket'><img width="150" height="150" src="http://blog.oliverhansen.com/wp-content/uploads/2009/11/IMAG0011-150x150.jpg" class="attachment-thumbnail" alt="Remove Hard Drive Bracket" title="Remove Hard Drive Bracket" /></a>
<a href='http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/photo/' title='Kernel Choice'><img width="150" height="150" src="http://blog.oliverhansen.com/wp-content/uploads/2009/11/photo-150x150.jpg" class="attachment-thumbnail" alt="Kernel Choice" title="Kernel Choice" /></a>
</p>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><li><a href="http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/" rel="bookmark" class="crp_title">What Device Is My Serial Port In FreeBSD?</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/08/05/recovering-my-freebsd-nas-server-from-a-hard-drive-failure/" rel="bookmark" class="crp_title">Recovering My FreeBSD <span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> Server From A Hard Drive Failure</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/" rel="bookmark" class="crp_title">Updating My FreeBSD Installation &#8212; Automatically</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>

	

		<wfw:commentRss>http://blog.oliverhansen.com/index.php/2009/11/18/install-pfsense-on-symantec-5420-security-gateway/feed/</wfw:commentRss>


	
	</item>

	
	<item>

		<title>Reply On Top Of Message In Thunderbird 2.0.0.18 Linux</title>

		<link>http://blog.oliverhansen.com/index.php/2008/12/10/reply-on-top-of-message-in-thunderbird-20018-linux/</link>

		<comments>http://blog.oliverhansen.com/index.php/2008/12/10/reply-on-top-of-message-in-thunderbird-20018-linux/#comments</comments>

		<pubDate>Thu, 11 Dec 2008 01:46:57 +0000</pubDate>

		<dc:creator>Oliver</dc:creator>

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reply]]></category>
		<category><![CDATA[thunderbird]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/?p=359</guid>


		<description><![CDATA[<p>I know I found the option to do this in Windows but I couldn&#8217;t find it in my Linux Mint version of Thunderbird. The default behavior seems to be starting your reply at the bottom of the last message you received which is actually considered good etiquette for mailing lists and such but when responding [...]]]></description>

	
		<content:encoded><![CDATA[<p>I know I found the option to do this in Windows but I couldn&#8217;t find it in my <a href="http://www.linuxmint.org/">Linux Mint</a> version of Thunderbird. The default behavior seems to be starting your reply at the bottom of the last message you received which is actually considered good etiquette for mailing lists and such but when responding to personal emails I like to reply on the top.</p>
<p>For some reason I couldn&#8217;t find this in the normal settings so I went to advanced under <strong>Edit -> Preferences -> Advanced</strong>. Under the <strong>General</strong> tab, click on<strong> Config Editor</strong> then type &#8220;reply&#8221; into the filter box. The entry you want is <em>mail.identity.default.reply_on_top</em> which was set to &#8220;0&#8243;. Set it to &#8220;1&#8243; (true in boolean) and you&#8217;re set!</p>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><li><a href="http://blog.oliverhansen.com/index.php/2008/10/20/etcgrubmessagemint-file-not-found-on-linux-mint/" rel="bookmark" class="crp_title">/etc/grub/message.mint &#8211; file not found on Linux Mint</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/" rel="bookmark" class="crp_title">What Device Is My Serial Port In FreeBSD?</a></li><li><a href="http://blog.oliverhansen.com/index.php/2009/01/27/using-ias-radius-for-client-vpn-authentication-to-cisco-pix/" rel="bookmark" class="crp_title">Using <span class="ubernym uttAbbreviation" onmouseover="domTT_activate(this, event, 'content', 'Internet Authentication Service' );"><abbr class="uttAbbreviation">IAS</abbr></span> (<span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Remote Authentication Dial In User Service' );"><acronym class="uttAcronym">RADIUS</acronym></span>) For Client VPN Authentication To Cisco PIX</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>

	

		<wfw:commentRss>http://blog.oliverhansen.com/index.php/2008/12/10/reply-on-top-of-message-in-thunderbird-20018-linux/feed/</wfw:commentRss>


	
	</item>

	
	<item>

		<title>Finally I Can Upload Photos In WordPress 2.5!</title>

		<link>http://blog.oliverhansen.com/index.php/2008/05/31/upload-photos-in-wordpress-25-with-linux-flash-issues/</link>

		<comments>http://blog.oliverhansen.com/index.php/2008/05/31/upload-photos-in-wordpress-25-with-linux-flash-issues/#comments</comments>

		<pubDate>Sat, 31 May 2008 20:35:42 +0000</pubDate>

		<dc:creator>Oliver</dc:creator>

				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[flash upload]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Photos]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/?p=199</guid>


		<description><![CDATA[<p>I&#8217;ve been a bit bad about uploading photos lately and I&#8217;ll tell you why. After I upgraded to WordPress 2.5 I found I couldn&#8217;t upload anything while using Linux. I tried on my work laptop which runs Vista and it worked just fine so I used that for the photos of my mom&#8217;s fence. Now [...]]]></description>

	
		<content:encoded><![CDATA[<p>I&#8217;ve been a bit bad about uploading photos lately and I&#8217;ll tell you why. After I upgraded to <a href="http://www.wordpress.org/">WordPress 2.5</a> I found I couldn&#8217;t upload anything while using Linux. I tried on my work laptop which runs Vista and it worked just fine so I used that for the <a href="http://blog.oliverhansen.com/index.php/2008/05/20/mothers-day-gift-building-a-fence/">photos of my mom&#8217;s fence</a>. Now that I have a <a href="http://blog.oliverhansen.com/index.php/2008/05/28/first-day-at-a-new-job/">new job</a> I don&#8217;t have a work laptop at the moment so that&#8217;s not possible.</p>
<p>Now I had read about <a href="http://wordpress.org/support/topic/164999?replies=1">issues with the new WordPress 2.5 gallery upload feature</a> that now uses Flash. Most of those issues seemed to be caused by permissions and plugins though; server-side issues. My problems are not at the server as a Windows based computer seems to work just fine. At home I am still running <a href="http://www.linuxmint.com/">Linux Mint</a> which I have run since about December. I <a href="http://www.cyberciti.biz/tips/linux-install-flash-player-10.html">updated to the latest Flash 10</a> build and I still had the same issue.<span id="more-199"></span></p>
<p>The problem for me was I would get the screen to select files to upload but as soon as I selected one or more and clicked ok, the browser (Firefox 2.0.14) would stop responding and eventually I would have to kill the process. I finally dug around on the <a href="http://wordpress.org/support/topic/176415?replies=2">WordPress forums</a> and found something relating to this issue on a tracker from the days of the Release Candidate 2.5 version. Apparently someone made a <a href="http://trac.wordpress.org/attachment/ticket/6406/no-flash-uploader.php?format=raw">plugin to disable the flash part of the uploading</a> process. That is the solution for me. The fact that it took me so long to find the solution because there are so many other issues with the Flash Uploader is quite disturbing. The <a href="http://trac.wordpress.org/ticket/6406">discussion on the bug tracker</a> is also of interest because it seems the developers did not want to include a setting to turn off the Flash Uploader because it might make people think they <a href="http://trac.wordpress.org/ticket/6406#comment:11">didn&#8217;t have confidence in it working.</a> Well if it doesn&#8217;t work in quite a few cases then I don&#8217;t see why you <em>would</em> have confidence in it!</p>
<p>Ok, so now I can upload photos so I can finally get around to putting up some of my trip to Singapore in April.</p>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><li><a href="http://blog.oliverhansen.com/index.php/2008/06/02/vacation-in-singapore/" rel="bookmark" class="crp_title">Vacation in Singapore</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/09/27/wordpress-23-incoming-links-coming-from-your-own-site/" rel="bookmark" class="crp_title">WordPress 2.3 Incoming Links Coming From Your Own Site?</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/07/05/sataytube-my-favorite-wordpress-plugin/" rel="bookmark" class="crp_title">SatayTube &#8212; My Favorite WordPress Plugin</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>

	

		<wfw:commentRss>http://blog.oliverhansen.com/index.php/2008/05/31/upload-photos-in-wordpress-25-with-linux-flash-issues/feed/</wfw:commentRss>


	
	</item>

	
	<item>

		<title>Small Bash Script to Count Seconds</title>

		<link>http://blog.oliverhansen.com/index.php/2008/03/25/small-bash-script-to-count-seconds/</link>

		<comments>http://blog.oliverhansen.com/index.php/2008/03/25/small-bash-script-to-count-seconds/#comments</comments>

		<pubDate>Wed, 26 Mar 2008 06:05:30 +0000</pubDate>

		<dc:creator>Oliver</dc:creator>

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[unix]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/index.php/2008/03/25/small-bash-script-to-count-seconds/</guid>


		<description><![CDATA[<p>So the short story is I got a small UPS for my tv, xbox and cable modem so that I won&#8217;t be interrupted by small power hiccups. I decided I wanted to know how long my CRT tv and xbox would continue while watching a movie so I needed something to count with while I [...]]]></description>

	
		<content:encoded><![CDATA[<p>So the short story is I got a small UPS for my tv, xbox and cable modem so that I won&#8217;t be interrupted by small power hiccups. I decided I wanted to know how long my CRT tv and xbox would continue while watching a movie so I needed something to count with while I unplugged the power to test it.</p>
<p>Now I&#8217;m sure others have written scripts and I could probably have just used the clock on the computer but I decided it couldn&#8217;t be too difficult to figure out how to write a script to do this. I knew that I basically had to just create a loop that would print a number increasing by one and then wait one second and repeat. I just had to find the right commands. About 10 to 15 minutes of searching later and I had this:<br />
<span id="more-181"></span></p>
<p><code>#!/bin/bash<br />
#A very basic time counting script.<br />
#init value of x<br />
x=1<br />
#make y 1 less than x<br />
y=$((x-1))<br />
echo "Counting from $y..."      #Output what number we are beginning from<br />
        while [ $x -ge 0 ]      #While $x is >= 0 (all the time)<br />
        do<br />
                sleep 1         #Wait one second<br />
                echo $x         #Echo value of $x<br />
                x=$((x+1))      #Increase $x by 1<br />
        done<br />
</code></p>
<p>Some of the methods are a little different from what I am used to. To increase $x by 1, I am used to $x++. Bash is different I guess. There may be simpler ways to do this as well. If so, please leave a comment as I&#8217;m hopeful to learn.</p>
<p>Sample output:<br />
<code><br />
$ ./count.sh<br />
Counting from 0...<br />
1<br />
2<br />
3<br />
4<br />
5</code></p>
<p>Also note this script will continue to run until the user types the escape sequence &#8216;<em>Ctrl+C</em>&#8216;.</p>
<p>Some sources used to find what I needed:</p>
<ul>
<li><a href="http://www.panix.com/~elflord/unix/bash-tute.html">http://www.panix.com/~elflord/unix/bash-tute.html</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-unix-pause-command.html">http://www.cyberciti.biz/tips/linux-unix-pause-command.html</a> &#8211; Actually found the sleep command in the comments. Excellent site!</li>
</ul>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><li><a href="http://blog.oliverhansen.com/index.php/2007/10/28/cron-is-different-in-freebsd-and-linux/" rel="bookmark" class="crp_title">Cron is Different in FreeBSD and Linux</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/" rel="bookmark" class="crp_title">Updating My FreeBSD Installation &#8212; Automatically</a></li><li><a href="http://blog.oliverhansen.com/index.php/2008/02/19/force-freebsd-to-run-startup-scripts-without-rebooting/" rel="bookmark" class="crp_title">Force FreeBSD to Run Startup Scripts Without Rebooting</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>

	

		<wfw:commentRss>http://blog.oliverhansen.com/index.php/2008/03/25/small-bash-script-to-count-seconds/feed/</wfw:commentRss>


	
	</item>

	
</channel>

</rss>