<?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</title>
	<atom:link href="http://purebsd.com/category/openbsd/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>Advocating BSD</title>
		<link>http://purebsd.com/advocating-bsd.html</link>
		<comments>http://purebsd.com/advocating-bsd.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Various]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=82</guid>
		<description><![CDATA[&#8211; or any other system, idea or product for that matter &#8211; Note: the text below is taken from Advocating OpenBSD. I only changed and added a few lines myself. I guess 95% remained original text. Both OpenBSD and FreeBSD are my operating systems of choice. I want to have many people use it, if only [...]]]></description>
			<content:encoded><![CDATA[<p>&#8211; or any other system, idea or product for that matter &#8211;</p>
<p>Note: the text below is taken from <a href="http://www.monkey.org/openbsd/advocating-openbsd.html">Advocating OpenBSD</a>. I only changed and added a few lines myself. I guess 95% remained original text.<br />
Both OpenBSD and FreeBSD are my operating systems of choice. I want to have many people use it, if only because then it has a higher chance of surviving. Many people want the same thing, and some of them are actively telling about OpenBSD and FreeBSD to other people, often in public newsgroups. This is advocacy, and it&#8217;s one good way to spread the word on OpenBSD and FreeBSD.</p>
<p>Unfortunately, some of these people seem to suffer from what has been called the Amiga syndrome: whenever anyone discusses computers, the stereotypical Amiga user will always claim that the Amiga is a better, faster, cheaper, more user-friendly computer than any other, ever, and any opposing view is treated as treachery, oppression, and a declaration of nuclear war. Some *BSD users are using the same tactics. They make both themselves and their preferred BSD flavor look bad. I&#8217;d like to stop this by making a few suggestions for advocating your favorite BSD flavor better.</p>
<p><strong>Stay calm.</strong> There&#8217;s no reason to get excited. If someone says something about your BSD flavor that you don&#8217;t like, so what? It&#8217;s just computers, it&#8217;s not important. Read again.</p>
<p><strong>Don&#8217;t take it personally.</strong> Even if a BSD flavor is your dream system, there&#8217;s no reason to be offended if someone points out problems with it (even if you wrote that part of the BSD flavor, which you probably didn&#8217;t). It&#8217;s not a statement about you personally. If they flame *BSD users, they&#8217;re idiots and you should ignore them. They&#8217;re probably just trying to get some attention.</p>
<p><strong>Ignore flame baits.</strong> Like I said, some people just want attention. They enjoy starting long flame wars by cross-posting something insulting to several unrelated groups (e.g., both to Linux and OpenBSD groups). Don&#8217;t respond to these posts. It isn&#8217;t productive. If you&#8217;re not convinced, see it this way: either they&#8217;re just trying to get people angry or they will stick to their standpoints and won&#8217;t ever be convinced by someone telling otherwise. In neither case it&#8217;s worth to react to those people.</p>
<p><strong>Stick to facts.</strong> If someone says something wrong about your BSD flavor, reply with the correct facts. Make sure they&#8217;re facts, though, not just something you heard about. Facts, not opinions. Don&#8217;t spread lies or rumors. Check your facts. If you don&#8217;t know how to do that, then perhaps you shouldn&#8217;t take part in the discussion, except perhaps by making questions. Even better, give references so that other people can also check the facts.</p>
<p><strong>your BSD flavor is not flawless.</strong> It has bugs, including design problems. If someone points out something that is wrong with your BSD flavor, acknowledge it and do something constructive, like forward it to the proper maintainer or fix it yourself. Find a workaround. Write a summary of the problem and make it publically available. Don&#8217;t just whine.</p>
<p><strong>Don&#8217;t flame other systems.</strong> Perhaps Linux does crash more often than your BSD flavor (although I have no hard data on this, just anecdotes, so I don&#8217;t know if it is true; remember, facts only). That doesn&#8217;t mean you tell it to every Linux user. If you must say something about other systems, keep to facts (and make doubly sure they&#8217;re facts) and present them. Politely.</p>
<p><strong>Don&#8217;t flame people because they use other systems.</strong> Ever.</p>
<p><strong>Bill Gates is not Satan.</strong> Some people claim that Microsoft&#8217;s business practices are immoral (or at least overly predatory). I don&#8217;t know if this is true, but using such claims as arguments does not make the discussion productive. Conspiracy theories sound really, really silly (as long as they&#8217;re theories; feel free to provide verified facts).</p>
<p><strong>We aren&#8217;t taking over the world.</strong> There&#8217;s no reason to get offended if someone claims many more people use Linux than your BSD flavor. It&#8217;s true. It doesn&#8217;t matter. No-one knows how many users your BSD flavor has. That doesn&#8217;t matter, either. Market share isn&#8217;t the goal. Solving problems is the goal. Having fun is the goal.</p>
<p><strong>Your BSD flavor can&#8217;t replace Windows.</strong> Windows has applications that your BSD flavor lacks. There&#8217;s no reason to get excited about it. Windows can&#8217;t replace your BSD flavor, either. No system is perfect for all things. Don&#8217;t make yourself look ridiculous by claiming that LaTeX is a better wordprocessor for the masses than MS Word. If you want your BSD flavor to have better applications than Windows, write them or encourage others with something better than talk.</p>
<p><strong>Avoid cross-posts.</strong> Many advocacy discussions live long because they&#8217;re cross-posted to many popular groups for specific systems. Whenever someone says something about one system, there&#8217;s a whole bunch of people who will jump on him, just because he&#8217;s supporting a system different from their&#8217;s. If you must cross-post advocacy discussions, only cross-post to advocacy groups (such as comp.os.OpenBSD.advocacy). Never, ever cross-post to other groups, it ruins them. If you respond to an advocacy thread that is cross-posted to a non-advocacy group, remove the non-advocacy group.</p>
<p><strong>Keep to the groups of your BSD flavor.</strong> Don&#8217;t go to other groups to pick a fight. Each advocacy group exists for discussion about one particular system. Don&#8217;t try to invade other advocacy groups. That&#8217;s rude. No-one likes big-mouthed strangers.</p>
<p><strong>See also:</strong></p>
<ul>
<li><a href="http://www.monkey.org/openbsd/advocating-openbsd.html">Advocating OpenBSD</a>, which was ripped and slightly modified to be presented right here (-:</li>
<li><a href="http://www.byte.com/art/9602/sec11/art8.htm">What Byte wrote about Linux users in Februrary, 1996</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/advocating-bsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Documentation</title>
		<link>http://purebsd.com/documentation.html</link>
		<comments>http://purebsd.com/documentation.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:39:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[Documentation]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=69</guid>
		<description><![CDATA[OpenBSD comes with useful documentation not viewable by man(1). Here I try to list some locations where they can be found on your system. /usr/share/sendmail &#8211; Sendmail&#8217;s documentation (and configuration files) /var/www/htdocs/manual &#8211; HTML documentation for Apache /usr/share/doc/html/bind &#8211; BIND9 HTML documentation /usr/share/doc &#8211; Many docs for applications found on an OpenBSD install]]></description>
			<content:encoded><![CDATA[<p>OpenBSD comes with useful documentation not viewable by man(1). Here I try to list some locations where they can be found on your system.<br />
/usr/share/sendmail &#8211; Sendmail&#8217;s documentation (and configuration files)</p>
<p>/var/www/htdocs/manual &#8211; HTML documentation for Apache</p>
<p>/usr/share/doc/html/bind &#8211; BIND9 HTML documentation</p>
<p>/usr/share/doc &#8211; Many docs for applications found on an OpenBSD install</p>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/documentation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Man pages</title>
		<link>http://purebsd.com/man-pages.html</link>
		<comments>http://purebsd.com/man-pages.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:38:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[man]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=67</guid>
		<description><![CDATA[Man pages are great resources of information. The man pages that come with OpenBSD are especially of use because of their excellent quality. Useful to beginners: help(1) &#8211; help for new users and administrators hier(7) &#8211; layout of the OpenBSD directory structure afterboot(8) &#8211; things to check after the first complete boot man(1) &#8211; display [...]]]></description>
			<content:encoded><![CDATA[<p>Man pages are great resources of information. The man pages that come with OpenBSD are especially of use because of their excellent quality.</p>
<p>Useful to beginners:</p>
<ul>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=help&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">help(1)</a> &#8211; help for new users and administrators</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=hier&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">hier(7)</a> &#8211; layout of the OpenBSD directory structure</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=afterboot&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">afterboot(8)</a> &#8211; things to check after the first complete boot</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=man&amp;sektion=1&amp;arch=i386&amp;apropos=0&amp;manpath=OpenBSD+Current">man(1)</a> &#8211; display manual pages</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ls&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">ls(1)</a> &#8211; list directory contents</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=less&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">less(1)</a> &#8211; view text files</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=kill&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">kill(1)</a> &#8211; terminate or signal a process</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ps&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">ps(1)</a> &#8211; show process status</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=top&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">top(1)</a> &#8211; display and refresh information about the (top) CPU processes</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ftp&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">ftp(1)</a> &#8211; FTP program (client)</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lynx&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">lynx(1)</a> &#8211; Text-based webbrowser</li>
</ul>
<p>Useful to intermediates:</p>
<ul>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=afterboot&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">afterboot(8)</a> &#8211; things to check after the first complete boot</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=netstat&amp;apropos=0&amp;sektion=1&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">netstat(1)</a> &#8211; show network status</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=dmesg&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">dmesg(8)</a> &#8211; display the system message buffer</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=find&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">find(1)</a> &#8211; walk a file hierarchy</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=locate&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">locate(1)</a> &#8211; find filenames quickly</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sh&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">sh(1)</a> &#8211; public domain Bourne shell</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=grep&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">grep(1)</a> &#8211; search for patterns in files</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=mount&amp;apropos=0&amp;sektion=8&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">mount(8)</a> &#8211; mount file systems</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=df&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">df(1)</a> &#8211; display free disk space</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=du&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">du(1)</a> &#8211; display disk usage statistics</li>
</ul>
<p>Useful to more advanced users:</p>
<ul>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=route&amp;apropos=0&amp;sektion=8&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">route(8)</a> &#8211; manually manipulate the routing tables</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">ifconfig(8)</a> &#8211; configure network interface parameters</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fstab&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">fstab(5)</a> &#8211; static information about the filesystems</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=xargs&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">xargs(1)</a> &#8211; construct argument list(s) and execute utility</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=awk&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">awk(1)</a> &#8211; pattern-directed scanning and processing language</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=dd&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">dd(1)</a> &#8211; convert and copy a file</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=strings&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">strings(1)</a> &#8211; print the strings of printable characters in files</li>
<li><a href="http://www.openbsd.org/cgi-bin/man.cgi?query=options&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html">options(4)</a> &#8211; miscellaneous kernel configuration options</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/man-pages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and OpenBSD</title>
		<link>http://purebsd.com/php-and-openbsd.html</link>
		<comments>http://purebsd.com/php-and-openbsd.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:37:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=65</guid>
		<description><![CDATA[PHP (4.0.6) installation process I followed: Download the PHP source package: wget 'http://www.php.net:8000/distributions/php-4.0.6.tar.gz' Extract the sources: tar xvfz php-4.0.6.tar.gz And cd to the php-4.0.6 directory. Configure PHP: ./configure --with-apxs --with-mysql=/usr/local \ --with-config-file-path=/var/www/conf --disable-xml \ --disable-pear --enable-bcmath --enable-magic-quotes Leave out the --with-mysql=/usr/local option if you don&#8217;t want MySQL support or MySQL is not installed. Compile PHP: make &#62; /dev/null [...]]]></description>
			<content:encoded><![CDATA[<p>PHP (4.0.6) installation process I followed:</p>
<ol type="1">
<li>Download the PHP source package:
<p><code> wget 'http://www.php.net:8000/distributions/php-4.0.6.tar.gz'</code></li>
<li>Extract the sources:
<p><code> tar xvfz php-4.0.6.tar.gz</code></p>
<p>And <code>cd</code> to the <code>php-4.0.6</code> directory.</li>
<li>Configure PHP:
<p><code> ./configure --with-apxs --with-mysql=/usr/local \<br />
--with-config-file-path=/var/www/conf --disable-xml \<br />
--disable-pear --enable-bcmath --enable-magic-quotes<br />
</code><br />
Leave out the <code>--with-mysql=/usr/local</code> option if you don&#8217;t want MySQL support or MySQL is not installed.</li>
<li>Compile PHP:
<p><code> make &gt; /dev/null</code></li>
<li>Stop Apache:
<p><code> /usr/sbin/apachectl stop</code></li>
<li>Install the PHP module:
<p><code> make install</code></p>
<p>or copy the <code>libphp4.so.0.0</code> in the <code>.libs/</code> directly to<code>/usr/lib/apache/modules/libphp4.so</code> if you like that better (-:</li>
<li>Edit <code>/var/www/conf/httpd.conf</code>:
<p>Make sure that the following line is present and commented out:</p>
<p><code>LoadModule php4_module /usr/lib/apache/modules/libphp4.so</code></p>
<p>Search for &#8220;<code>#AddType application/x-httpd-php .php</code>&#8221; and remove the # in front of it, thereby telling Apache the line isn&#8217;t a comment anymore.</p>
<p>I added also the .php3 extenstion to it, so files ending in .php3 are also processed by the PHP engine. The end result:</p>
<p><code> AddType application/x-httpd-php .php .php3</code></li>
<li>Start Apache:
<p><code> /usr/sbin/apachectl start</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/php-and-openbsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Packages</title>
		<link>http://purebsd.com/packages.html</link>
		<comments>http://purebsd.com/packages.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:36:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[packages]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=63</guid>
		<description><![CDATA[What are packages? Packages are the binary equivalent of the ports, prebuilt by the OpenBSD team for your convenience. Though there are far less prebuilt packages than there are ports available through the ports system in /usr/ports. Installation of a package If you don&#8217;t have them stored locally, packages can be found online in a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What are packages?</strong></p>
<p>Packages are the binary equivalent of the ports, prebuilt by the OpenBSD team for your convenience. Though there are far less prebuilt packages than there are ports available through the ports system in /usr/ports.</p>
<p><strong>Installation of a package</strong></p>
<p>If you don&#8217;t have them stored locally, packages can be found online in a directory on a FTP mirror site. Something like <code><em>ftp-site</em>/pub/OpenBSD/2.8/packages/i386/</code> for instance.</p>
<p>Installation from harddisk:</p>
<p><code> pkg_add tcsh-6.09.00.tgz</code></p>
<p>Of course, you could also install via the internet:</p>
<p><code> pkg_add ftp://ftp-site/<em>url</em>/tcsh-6.09.00-static.tgz</code></p>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/packages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ports Collection</title>
		<link>http://purebsd.com/the-ports-collection.html</link>
		<comments>http://purebsd.com/the-ports-collection.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=60</guid>
		<description><![CDATA[What are ports? Ports are third party software which haven&#8217;t had the thorough security audit as the native OpenBSD programs have had. The ports collection is installed on your disk as a large tree of directories representing the various programs with in them a Makefile which specifies the information needed to install a particular port. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What are ports?</strong></p>
<p>Ports are third party software which haven&#8217;t had the thorough security audit as the native OpenBSD programs have had. The ports collection is installed on your disk as a large tree of directories representing the various programs with in them a Makefile which specifies the information needed to install a particular port.</p>
<p><strong>Installation of a program in /usr/ports:</strong></p>
<ol type="1">
<li>Retrieve /pub/OpenBSD/2.8/ports.tar.gz from the nearest OpenBSD <a href="http://www.openbsd.org/ftp.html">mirror</a>.</li>
<li>Install with:<br />
<code>cd /usr ; tar xvfz /tmp/ports.tar.gz</code></li>
<li>Then <code>cd</code> to the directory of port you&#8217;d like to install.</li>
<li>Run <code>make</code> as user root and the source tarball retrieval, unpacking, configuration and compilation processes start automagically <img src='http://purebsd.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>Run <code>make install</code> as user root to install the package.</li>
<li>Afterwards, a .tgz binary package of the software you just compiled and installed can be found in <code>/usr/ports/packages/<em>arch</em>/</code> which you can use to speed up the installation process on other machines for instance.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/the-ports-collection.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logcheck explained</title>
		<link>http://purebsd.com/logcheck-explained.html</link>
		<comments>http://purebsd.com/logcheck-explained.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:33:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Logs]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=57</guid>
		<description><![CDATA[Intro Logcheck is a program that helps you in sorting out the relevant messages from the various (system) log files on Unix systems. It sifts through them on a regular basis (via crontab) and sends its findings to the system administrator by mail. That mail contains all the possibly important events, break-in attemts and other [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Intro</strong></p>
<p>Logcheck is a program that helps you in sorting out the relevant messages from the various (system) log files on Unix systems. It sifts through them on a regular basis (via crontab) and sends its findings to the system administrator by mail. That mail contains all the possibly important events, break-in attemts and other strange messages.</p>
<p>It was created by Psionic Software (now merged with Cisco) and is confirmed to run on many of the most popular Unix systems, including OpenBSD.</p>
<p><strong>Download</strong></p>
<p>Since www.psionic.com isn&#8217;t providing the package anymore (because of the merger with Cisco), you can <a href="http://web.archive.org/web/20060313055310/http://www.purebsd.com/files/logcheck-1.1.1.tar.gz">download Logcheck</a> from PureBSD.</p>
<p>You can also install the port (or package) called &#8220;logsentry&#8221;. LogSentry and Logcheck are the same thing, but since Psionics merger with Cisco it lives on with a different name.</p>
<p>The port is located in <code>/usr/ports/security/logsentry</code>. The binary package has a name equal or similar to &#8220;logsentry-1.1.1p1.tgz&#8221; and can be found on any FTP site carrying OpenBSD.</p>
<p><strong>Installation</strong></p>
<p>By source:<br />
<code> cd /tmp<br />
tar xvfz /location/of/logcheck-1.1.1.tar.gz<br />
cd logcheck-1.1.1<br />
make generic<br />
</code><br />
By port:<br />
<code> cd /usr/ports/security/logsentry<br />
make<br />
make install<br />
</code><br />
By binary package:<br />
<code> pkg_add logsentry-1.1.1p1.tgz<br />
</code><br />
<strong>Configuration</strong></p>
<p>Make sure that /usr/local/etc/logcheck.sh is setup the way you prefer.</p>
<p>If you do not want to have root receive mail from Logcheck, but a local user or remote user, edit the SYSADMIN variable:</p>
<p><code> SYSADMIN=alexdehaas@puur.rookgordijn.nl<br />
</code><br />
All &#8220;$LOGTAIL&#8221; lines should be <strong>commented out</strong>, except the ones for the OpenBSD log files:</p>
<p><code> # Generic and Linux Slackware 3.x<br />
#$LOGTAIL /var/log/messages &gt; $TMPDIR/check.$$</p>
<p># OpenBSD 3.4<br />
$LOGTAIL /var/cron/log &gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/authlog &gt;&gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/daemon &gt;&gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/maillog &gt;&gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/messages &gt;&gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/secure &gt;&gt; $TMPDIR/check.$$<br />
$LOGTAIL /var/log/wlanlog &gt;&gt; $TMPDIR/check.$$<br />
</code><br />
<strong>Running Logcheck</strong></p>
<p>Edit root&#8217;s crontab:<br />
<code><br />
crontab -e<br />
</code><br />
And add the following two lines:</p>
<p><code> # Security: Check every 30 minutes logfiles<br />
*/30 * * * * /usr/local/etc/logcheck.sh<br />
</code><br />
<strong>Filtering log messages</strong></p>
<p>If you do or do not wish to see certain log messages mailed to you, you can edit the<code>logcheck.[hacking,ignore,violations,violations.ignore]</code> files located in<code>/usr/local/etc</code>. All lines in those files are patterns in the regular expression format used by<code>grep</code>.</p>
<ul>
<li><code>logcheck.hacking</code>:<br />
This file contains lines which consist of patterns indicating an active system attack. You can add your own patterns to it when deemed necessary.</li>
<li><code>logcheck.violations</code>:<br />
This file contains lines with patterns indicating some sort of negative system activity. You can add your own patterns to it when deemed necessary.</li>
<li><code>logcheck.violations.ignore</code>:<br />
Lines of patterns in this file are used to filter out log messages that<code>logcheck.violations</code> picks up as being negative system events. In other words: the more specific pattern lines in <code>logcheck.violations.ignore</code> override the more generic pattern lines in <code>logcheck.violations</code>.</p>
<p>You can add your own exceptions to it. Examples:</p>
<p><code> sendmail.*: .*: Authentication-Warning: .*: .* owned process doing -bs<br />
sm-mta.*: ruleset=check_relay, .* reject=.* .*<br />
</code></li>
<li><code>logcheck.ignore</code>:<br />
This file contains lines with keywords indicating that a message should not be reported. Normally, all log messages are reported as &#8220;unusual system activity&#8221;, so you won&#8217;t miss anything not accounted for in the other logcheck files. So this is a catch-all file.</p>
<p>You can add your own exceptions to it. Examples:</p>
<p><code> dhcpd: DHCPDISCOVER from .* via xl0<br />
dhcpd: DHCPREQUEST for 10.0.* from .* via xl0<br />
dhcpd: DHCPOFFER on 10.0.* to .* via xl0<br />
dhcpd: DHCPACK on 10.0.* to .* via xl0<br />
wlanmon: WLAN bridge connection is just fine\.<br />
syslogd: restart<br />
spamd.*: .*\..*\..*\..*: connected \(.*\)<br />
spamd.*: .*\..*\..*\..*: disconnected after .* seconds\.<br />
spamd.*: .*\..*\..*\..*: \&lt;.*\&gt; -\&gt; \&lt;.*\&gt;<br />
spamd.*: .*\..*\..*\..*: From: .* To: .*<br />
ftp-proxy.*: accepted connection from 10.0.0.*:.* to .*<br />
cvs.*: connect from .*.intranet.atomicvoid.net<br />
</code><br />
Now log messages matching any of the above lines are being ignored by Logcheck.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/logcheck-explained.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

