<?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>OpenBSD and FreeBSD resources &#187; OpenBSD main</title>
	<atom:link href="http://purebsd.com/category/openbsd/openbsd-main/feed" rel="self" type="application/rss+xml" />
	<link>http://purebsd.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 Jun 2010 06:01:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Frequently Asked Questions</title>
		<link>http://purebsd.com/frequently-asked-questions.html</link>
		<comments>http://purebsd.com/frequently-asked-questions.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:43:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[OpenBSD main]]></category>
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=76</guid>
		<description><![CDATA[Error: specified device does not match mounted device Installing OpenBSD on a SPARC Classic went fine but while booting it wouldn&#8217;t change the root partition to read-write mode, because &#8220;specified device does not match mounted device&#8221; (mount shows it as &#8220;root_device&#8221;, not something like /dev/sd0a) Solution: Both boot-device and nvramrc variables in the PROM of [...]]]></description>
			<content:encoded><![CDATA[<ol type="1">
<li><strong>Error: specified device does not match mounted device</strong><br />
Installing OpenBSD on a SPARC Classic went fine but while booting it wouldn&#8217;t change the root partition to read-write mode, because &#8220;specified device does not match mounted device&#8221; (mount shows it as &#8220;root_device&#8221;, not something like /dev/sd0a)</p>
<p><strong>Solution:</strong> Both boot-device and nvramrc variables in the PROM of the machine could be set to Linux (or an other OS) specific settings. After you clean and/or reconfigure the PROM settings, the system will boot correctly. Probably (-:<br />
How to clean-up? Type &#8220;STOP-A&#8221; on your keyboard and enter the &#8220;new command mode&#8221; of the SUN boot PROM. Type &#8220;set-defaults&#8221;. That will set everything at default. Type &#8220;printenv&#8221; to review the current settings.</li>
<li><strong>Error: strange pciide timeouts</strong><br />
If this kernel message shows up on the console and in the log files<br />
<code>May 29 16:04:25 server /bsd: pciide0:1:0: device timeout, c_bcount=0, c_skip=0</code><br />
you will certainly not like it. But there is hope!</p>
<p><strong>Solution:</strong> If you have a CDROM connected to the same IDE ribbon cable as the harddisk, chances are that&#8217;s causing the trouble. Try if removing the CDROM off the IDE cable works. If there is a CDROM, but not on the same cable as a harddisk, try to disconnect the CDROM device completely of the IDE subsystem. In other words, pull the cable out of the CDROM.</li>
<li>More to come.. if you just ask me (-:</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/frequently-asked-questions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concurrent System Administration</title>
		<link>http://purebsd.com/concurrent-system-administration.html</link>
		<comments>http://purebsd.com/concurrent-system-administration.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[OpenBSD main]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=74</guid>
		<description><![CDATA[Introduction In order to have a smooth working system administration process, the various system administrators somehow have to cooperate in a specific way. Book keeping Some bookkeeping helps in this process: /root/MUTATIONS: A file where each atomic action of a sysadmin is documented. Preferable with date ordered entries. /var/mail: Make use of the e-mail phenomenon [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>In order to have a smooth working system administration process, the various system administrators somehow have to cooperate in a specific way.</p>
<p><strong>Book keeping</strong></p>
<p>Some bookkeeping helps in this process:</p>
<ol type="1">
<li>/root/MUTATIONS:
<ul>A file where each atomic action of a sysadmin is documented. Preferable with date ordered entries.</ul>
</li>
<li>/var/mail:
<ul>Make use of the e-mail phenomenon to update your co-admins of the latest important changes!</ul>
</li>
<li>/etc/motd:
<ul>Update this file to inform your co-admins and users of important changes.</ul>
</li>
<li>/dev/oral/communication:
<ul>Use this device to communicate with your collegues before doing anything that could have/will have a rather large impact on the running system.</ul>
</li>
</ol>
<p><strong>Other points of attention</strong></p>
<p>Having some standard habits and procedures can be helpful too:</p>
<ol type="1">
<li>*-dist files:
<ul>If a sysadmin is the first to alter a certain file, for example /etc/rc.conf, it is wise to make a backup to /etc/rc.conf-dist, in order to preserve the original file. Later on, you can review the differences between the original and the new version of that file.<br />
If a *-dist file already exists, it should NOT be over- written. When you&#8217;d feel safer to have a backup of the latest version, copy the file to something like *-old. The *-dist files are the original files of the original installation of the Operating System you&#8217;re using.</ul>
</li>
<li>installations of third party sofware:
<ul>If you need to install a program that&#8217;s both in the binary package collection and in the /usr/ports collection, choose for the former. No needless compiling and wasting diskspace, bandwidth and CPU cycles.</ul>
</li>
<li>installation of already present software:
<ul>Make use of the already present software on the system. OpenBSD for instance, comes with Apache out of the box. No use retrieving, compiling and installing it yourself. Installed software has been reviewed by the OpenBSD team, who patch it when necessary for security fixes.</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/concurrent-system-administration.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing OpenBSD</title>
		<link>http://purebsd.com/installing-openbsd.html</link>
		<comments>http://purebsd.com/installing-openbsd.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:41:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[OpenBSD main]]></category>
		<category><![CDATA[Installing]]></category>
		<category><![CDATA[Setting up]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=71</guid>
		<description><![CDATA[The installation of OpenBSD is pretty easy and straightforward. Setup I use: - CPU: Intel Pentium-I 233MHz - RAM: 128MB - HD: 10GB, 15GB - FD: 1,44&#8243; - NIC: Realtek 8139, 3Com 3c905 100Base-TX A log file of the installation process of OpenBSD 2.9 is available here. It was retrieved from a FTP mirror, not created [...]]]></description>
			<content:encoded><![CDATA[<p>The installation of OpenBSD is pretty easy and straightforward.</p>
<p>Setup I use:</p>
<p>- CPU: Intel Pentium-I 233MHz<br />
- RAM: 128MB<br />
- HD: 10GB, 15GB<br />
- FD: 1,44&#8243;<br />
- NIC: Realtek 8139, 3Com 3c905 100Base-TX</p>
<p>A log file of the installation process of OpenBSD 2.9 is available <a href="http://web.archive.org/web/20060313055209/http://www.purebsd.com/files/log29.txt">here</a>. It was retrieved from a FTP mirror, not created by me. It is meant to give an impression of how the installation process looks like. The installation of OpenBSD 3.4 is just slightly different.</p>
<p>The OpenBSD v3.4 installation process went as follows (mail me if I forget important steps and/or info):</p>
<ol type="1">
<li>Connect to the nearest OpenBSD FTP <a href="http://web.archive.org/web/20060313055209/http://www.openbsd.org/ftp.html">mirror</a>.</li>
<li>Go to the <code>/pub/OpenBSD/3.4/i386</code> directory. Use something other than <em>i386</em> if you install on an other platform.</li>
<li>Retrieve the installation floppy image (floppy34.fs). This should be enough to start the install in most situations.</li>
<li>Burn the installation floppy to a floppy disk:<br />
Example: <code>dd if=floppy34.fs of=/dev/fd0</code></li>
<li>Boot the system from the floppy disk.</li>
<li>When asked for <code>/bin/sh</code> just hit the enter key.</li>
<li>For installation hit &#8220;i&#8221;, for a upgrade &#8220;u&#8221;. Only the installation option is covered here. I like clean installs.</li>
<li>If you&#8217;d like to use the complete disk for OpenBSD enter &#8220;yes&#8221;.</li>
<li>Now configure your OpenBSD disk slice. This is done by the label editor. Type &#8220;?&#8221; for help, &#8220;x&#8221; to exit without saving changes and &#8220;q&#8221; to exit and save changes. To add an partition type &#8220;a x&#8221; where &#8220;x&#8221; is the partition you&#8217;d like to add. Type &#8220;p&#8221; to see all partions. Partition &#8220;a&#8221; is often the / (root) partion, &#8220;b&#8221; is reserved for a potential swap partition, &#8220;c&#8221; is a sort of symbolic partition representing the whole disk, the rest of the letters are free to (ab)use.
<p>You would probably a separate partition for <code>/</code>, <code>/tmp</code>, <code>/var</code>, <code>/usr</code> and <code>/home</code>. My suggestion for a small (2G HD, 32MB RAM) home server/workstation system:</p>
<p><code> /     : 128 MB<br />
swap  : 128 MB<br />
/tmp  : 128 MB<br />
/var  : 256 MB<br />
/usr  : 1048 MB<br />
/home : the rest<br />
</code><br />
If you got the space, a 10G harddisk for instance and 64MB RAM, you could do it like this:</p>
<p><code> /     : 128 MB<br />
swap  : 128 MB<br />
/tmp  : 512 MB<br />
/var  : 1024 MB<br />
/usr  : 2048 MB<br />
/home : 1024 MB<br />
/vol  : the rest<br />
</code><br />
With a real small server, say 1G HD and 16MB RAM, you could probably do best by using this kind of layout:</p>
<p><code> /     : 64 MB<br />
swap  : 96 MB<br />
/usr  : the rest<br />
</code><br />
And symlink <code>/var</code>, <code>/tmp</code> and <code>/home</code> to respectively <code>/usr/var</code>, <code>/usr/tmp</code> and<code>/usr/home</code>.</p>
<p>Above layouts are rough indications and can vary enormously from system to system. Database servers might/should want a bigger <code>/var</code> for instance. A lot of users wanting space for their files could warrant more space being allocated to <code>/home</code>.</p>
<p>Hit &#8220;q&#8221; to exit and save your configuration when done.</li>
<li>The install process then presents a chance to initialize more disks (if found) via the same process explained a step earlier. If you&#8217;re satisfied with your disk(s), enter &#8220;done&#8221; and hit return. The install process shows all partitions and their respective mount points of all disks initialized for you to review. Hitting return will show the next partition and its moint point. This is an endless loop. When everything is okay, enter &#8220;done&#8221; and hit return, to escape the endless loop and continue.</li>
<li>The install formats your disks and partitions and continues by asking if you&#8217;d like to setup networking. Answer the simple questions and hit return at the default answer of no, when it asks if you&#8217;d like to escape to a shell environment.</li>
<li>The install mounts your partitions and asks for the root password. Type it carefully and remember it! (-;</li>
<li>Next, if you&#8217;d like to run the XFree86 X Window System, answer yes to the question prompted. If your setting up a server, answering no will be a good decision in most cases.</li>
<li>Now, you&#8217;re ready to download the base install files via FTP, HTTP and some other neat protocols. Select your favourite and select which packages it should install. To select or deselect a package simply type in the full name of it, including the ending &#8220;.tgz&#8221;.</li>
<li>When you&#8217;re done installing those nice tarballs answer no to the &#8220;extract more sets&#8221; question. The install creates some files in <code>/etc</code> and lets you choose your timezone. Select a cool looking zone and hit the return key.</li>
<li>Finally, you&#8217;re almost done! You only have to reboot the system now! But wait until the install process tells you it&#8217;s save, before doing that.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/installing-openbsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating the system</title>
		<link>http://purebsd.com/updating-the-system.html</link>
		<comments>http://purebsd.com/updating-the-system.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:44:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD main]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=23</guid>
		<description><![CDATA[There are two ways to retrieve the source code and ports collection of OpenBSD. One is with CVS and one is with CVSup. The latter is preferred by me and described on its own page. The CVS way follows below. PS: this page will be restructured soon. Introduction With OpenBSD updating the kernel, the system utilities or [...]]]></description>
			<content:encoded><![CDATA[<p>There are two ways to retrieve the source code and ports collection of OpenBSD. One is with CVS and one is with <a href="http://purebsd.com/cvsup.html">CVSup</a>. The latter is preferred by me and described on its <a href="http://purebsd.com/cvsup.html">own page</a>. The CVS way follows below.<br />
PS: this page will be restructured soon.</p>
<p><strong>Introduction</strong></p>
<p>With OpenBSD updating the kernel, the system utilities or the ports collection is a rather simple and straightforward process. All sources of the above mentioned pieces that make up the OpenBSD operating system are stored in CVS.</p>
<p>CVS is a system that allows for Concurrent Versions Control for one or more software projects. It allows the people of the OpenBSD project to work on the same set of sources.</p>
<p>For you, the end-user of OpenBSD it is handy too. It allows you to retrieve via a simple CVS command to retrieve the latest set of patches from a certain branch of OpenBSD.</p>
<p>Here, we&#8217;ll concentrate on updating the stable branch of the OpenBSD 3.4 kernel and system utilities.</p>
<p><strong>Getting the sources</strong></p>
<p>First, we need to lay our hands on the system sources. There are roughly three places to get them:</p>
<ol type="1">
<li>One of the two of your OpenBSD CDs if you have those</li>
<li>A FTP mirror containing a OpenBSD tree</li>
<li>From a OpenBSD CVS server</li>
</ol>
<p>I myself prefer method two, for it&#8217;s faster than downloading it from CVS and I don&#8217;t have the official CDs. On one of the many mirrors you should <code>cd</code> your way into the subtree of the OpenBSD version you&#8217;re interested in and download the following three files:</p>
<ol type="1">
<li>ports.tar.gz</li>
<li>src.tar.gz</li>
<li>srcsys.tar.gz</li>
</ol>
<p>Create a directory called <code>src</code> in <code>/usr</code> if it doens&#8217;t exists. <code>cd</code> to <code>/usr/src</code> and extract the files<code>src.tar.gz</code> and <code>srcsys.tar.gz</code> in that directory.<br />
<code>cd</code> to <code>/usr</code> and extract <code>ports.tar.gz</code>.</p>
<p><code> # cd /usr/src<br />
# tar xfz ~alex/download/src.tar.gz<br />
# tar xfz ~alex/download/srcsys.tar.gz<br />
# cd ..<br />
# tar xfz ~alex/download/ports.tar.gz<br />
</code><br />
<strong>Updating the sources</strong></p>
<p>Now, we&#8217;ll try to contact a friendly CVS server and try to squeeze some updates and/or patches out of it.</p>
<p>First, set these environment variables:</p>
<p><code> export CVS_RSH="/usr/bin/ssh"<br />
export CVSROOT="anoncvs@anoncvs.se.openbsd.org:/cvs"<br />
export CVS_IGNORE_REMOTE_ROOT="1"<br />
</code><br />
Then change your working directory to <code>/usr/src</code> and update the source tree by issueing this command:</p>
<p><code> cvs -d $CVSROOT -q update -rOPENBSD_3_4 -Pd</code></p>
<p><strong>Recompiling the kernel</strong></p>
<p>See <a href="http://purebsd.com/building-a-custom-kernel.html">Configuring the kernel</a> for this.</p>
<p><strong>Recompiling the software in the base system</strong></p>
<p><code>su</code> to root and change directory to <code>/usr/src/<em>dir</em>/<em>toolname</em></code></p>
<p><code> # cd /usr/src<br />
# cd libexec/telnetd<br />
# make obj<br />
# make depend<br />
# make<br />
# make install<br />
</code><br />
<strong>Recompiling software in the ports collection</strong></p>
<p>Coming soon..</p>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/updating-the-system.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

