<?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; freebsd</title>
	<atom:link href="http://blog.oliverhansen.com/index.php/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oliverhansen.com</link>
	<description>A techie&#39;s not-so-technical weblog</description>
	<lastBuildDate>Sun, 27 Nov 2011 23:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>

	<item>

		<title>Force FreeBSD to Run Startup Scripts Without Rebooting</title>

		<link>http://blog.oliverhansen.com/index.php/2008/02/19/force-freebsd-to-run-startup-scripts-without-rebooting/</link>

		<comments>http://blog.oliverhansen.com/index.php/2008/02/19/force-freebsd-to-run-startup-scripts-without-rebooting/#comments</comments>

		<pubDate>Tue, 19 Feb 2008 20:51:17 +0000</pubDate>

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

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[startup]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/index.php/2008/02/19/force-freebsd-to-run-startup-scripts-without-rebooting/</guid>


		<description><![CDATA[<p>I wondered about this for quite a while and eventually saw the answer while looking for other information. Sometimes I make a change to some startup files and I just want to rerun the startup without having to go through POST and all the other startup before the computer gets to the OS.</p>
<p>With root privileges [...]]]></description>

	
		<content:encoded><![CDATA[<p>I wondered about this for quite a while and eventually saw the answer while looking for other information. Sometimes I make a change to some startup files and I just want to rerun the startup without having to go through POST and all the other startup before the computer gets to the OS.</p>
<p>With root privileges execute the command:<br />
<code>shutdown now</code></p>
<p>This will give you a screen that looks like<br />
<code>Enter full pathname of shell or RETURN for /bin/sh:</code></p>
<p>Press enter to select the shell. I&#8217;m not qualified to say if this is the same as booting into single user mode or not.</p>
<p>Type<br />
<code>exit</code></p>
<p>The system will run the startup scripts and ask you to log in just as usual!</p>
<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/2008/06/29/use-nslookup-to-find-mx-records-on-windows/" rel="bookmark" class="crp_title">Use nslookup To Find MX Records</a></li><li><a href="http://blog.oliverhansen.com/index.php/2008/03/25/small-bash-script-to-count-seconds/" rel="bookmark" class="crp_title">Small Bash Script to Count Seconds</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/02/19/force-freebsd-to-run-startup-scripts-without-rebooting/feed/</wfw:commentRss>


	
	</item>

	
	<item>

		<title>What Device Is My Serial Port In FreeBSD?</title>

		<link>http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/</link>

		<comments>http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/#comments</comments>

		<pubDate>Tue, 02 Oct 2007 04:37:44 +0000</pubDate>

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

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apc ups]]></category>
		<category><![CDATA[com port]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[serial port]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/</guid>


		<description><![CDATA[<p>Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my FreeBSD server on the serial port. The install of apcupsd went quite well but when it came time to set the device to be used in the config file I couldn&#8217;t figure out which device [...]]]></description>

	
		<content:encoded><![CDATA[<p>Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my <a href="http://blog.oliverhansen.com/index.php/2007/02/23/my-network-attached-storage-solution/">FreeBSD server</a> on the serial port. The install of <a href="http://www.apcupsd.com/">apcupsd </a>went quite well but when it came time to set the device to be used in the config file I couldn&#8217;t figure out which device it was! I looked at the output of <a href="http://nixdoc.net/man-pages/FreeBSD/man8/dmesg.8.html">dmesg </a>to see all the devices that were found on startup. I saw <strong>sio0 </strong>which mentioned a COM port so I thought maybe that would be it. I tried using <strong>/dev/sio0</strong> but that didn&#8217;t work so I even restarted the computer to check the BIOS and made sure the serial port was enabled. It was. Another restart had me looking at <strong>sio0 </strong>again. It made sense to me as well for <strong>S</strong>erial <strong>I</strong>nput/<strong>O</strong>utput but still didn&#8217;t work.</p>
<p>Ok, to Google I went and finally found <a href="http://marc.info/?l=freebsd-questions&#038;m=114238132627780&#038;w=2">this little gem from the freebsd mailing list</a>. The thread mentioned the same message I was getting </p>
<blockquote><p>sio0: configured irq 4 not in bitmap of probed irqs 0<br />
sio0: port may not be enabled<br />
sio0: &#60;16550A-compatible COM port&#62; port 0x3f8-0x3ff irq 4 flags 0&#215;10 on acpi0
</p></blockquote>
<p>about <strong>sio0 </strong>but the person asking seemed to know something I didn&#8217;t. They knew that FreeBSD normally uses <strong>cuad0 </strong>for the serial device. I have no idea why or how that came about. Can&#8217;t even figure out how that naming convention came about but I&#8217;m sure there are some out there who know. Well, now I know &#8212; I put <strong>/dev/cuad0</strong> in the config file and now my APC UPS is talking to my FreeBSD box! I might write about the details later but <a href="http://www.apcupsd.com/">apcupsd </a>is pretty cool because it will allow my box to find the percentage of battery left on the UPS when it is running on batteries and when it gets to a certain percent the computer can shut itself off properly before losing power!</p>
<p>Google to the rescue again!</p>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><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/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/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>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/2007/10/01/what-device-is-my-serial-port-in-freebsd/feed/</wfw:commentRss>


	
	</item>

	
	<item>

		<title>Updating My FreeBSD Installation &#8212; Automatically</title>

		<link>http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/</link>

		<comments>http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/#comments</comments>

		<pubDate>Fri, 28 Sep 2007 06:19:41 +0000</pubDate>

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

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/</guid>


		<description><![CDATA[<p>My APC Smart-UPS 700XL arrived yesterday so I decided to do the first step in relocating my server from next to my TV in my bedroom to inside my closet. The server is just a desktop PC size and isn&#8217;t extremely loud but it is noticeable when sleeping. I actually think it took me a [...]]]></description>

	
		<content:encoded><![CDATA[<p>My APC Smart-UPS 700XL arrived yesterday so I decided to do the first step in relocating my server from next to my TV in my bedroom to inside my closet. The server is just a desktop PC size and isn&#8217;t extremely loud but it is noticeable when sleeping. I actually think it took me a while to sleep last night because I wasn&#8217;t used to the quiet! I will eventually have 2 or 3 computers running full time so I wanted them to have a place to be and a UPS for at least the <a href="http://blog.oliverhansen.com/index.php/2007/02/23/my-network-attached-storage-solution/"><span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> box</a>. So now the <span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> box is in my closet with the UPS. Soon I hope to have the UPS smart port connected to the <span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> box so if power is not restored the box will shut itself off properly before losing power completely.</p>
<p>After relocating the <span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> box, I decided I should try to keep my FreeBSD 6.2 server installation updated and do it regularly. I had done an update previously when I <a href="http://blog.oliverhansen.com/index.php/2007/08/05/recovering-my-freebsd-nas-server-from-a-hard-drive-failure/">discovered my hard drive was bad</a> but after reinstalling everything I hadn&#8217;t done another. <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/">The FreeBSD Handbook</a> is a great resource and I went there to see the method for <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html">updating the ports tree</a>. Keeping the ports tree up to date is important so whenever you decide to install a new program you have the latest information.<span id="more-153"></span></p>
<p>The main suggested way to keep the ports tree up to date is to use <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html">CVsup</a>. </p>
<ul>
<li>First <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html">install CVSup as directed on the upgrading ports page</a>. </li>
<li>Continue following the instructions on the page by running CVSup and then I suggest taking the advice of creating your own <strong>supfile</strong>. The <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS">server closest to you will</a> matter if you are outside the US but if inside, I have no idea which of the servers on the list are closest to me so just pick your favorite number and go from there!</li>
<li>Follow the instructions in <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html">section 4.5.4.2</a> and install the port <strong>portupgrade</strong>.</li>
<li>At least the first time you run <strong>portupgrade</strong>, you should use the <strong>-ai</strong> option so it will ask you to confirm before you actually upgrade each port. If you find you want every port upgraded then you can get rid of the <strong>-i</strong> part of the option.</li>
</ul>
<p>I created a script to run the CVSup and made a <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html">crontab</a> to run the script every Sunday night. I&#8217;ll have to wait until this Sunday to see if it works because I don&#8217;t feel like debugging it now by changing the timing of the crontab. I know the script runs when called from the command line. I didn&#8217;t include the portupgrade part in the script because I don&#8217;t want to be upgrading my ports all the time. If it&#8217;s working and there is no security fix then I really don&#8217;t need to upgrade it. But this way if I need to upgrade it, the current port is already there.</p>
<p />
<p><strong>*Note*</strong> <em>You should also keep the stable or current system tree up to date as well. I am using the stable because I just need things to work; not be the latest and greatest. This can be done by using CVSup but changing the supfile to one you will find in <strong>/usr/share/examples/cvsup/stable-supfile</strong></em></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/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/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>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/2007/09/27/updating-my-freebsd-installation-automatically/feed/</wfw:commentRss>


	
	</item>

	
</channel>

</rss>
