<?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; server</title>
	<atom:link href="http://purebsd.com/tag/server/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.1</generator>
		<item>
		<title>Setting up a CVS server</title>
		<link>http://purebsd.com/setting-up-a-cvs-server.html</link>
		<comments>http://purebsd.com/setting-up-a-cvs-server.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:27:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daemons]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[CVS]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Setting up]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=46</guid>
		<description><![CDATA[Here I&#8217;ll describe how to setup a CVS server that is accessed by CVS clients via the &#171;pserver protocol&#187;. The end result is a service that CVS clients connect to in order to use the CVS repositories on your system. Edit /etc/inetd.conf to add the &#171;cvs&#187; service: cvspserver stream tcp nowait cvs /usr/libexec/tcpd /usr/bin/cvs -f --allow-root=/home/cvs [...]]]></description>
			<content:encoded><![CDATA[<p>Here I&#8217;ll describe how to setup a CVS server that is accessed by CVS clients via the &laquo;pserver protocol&raquo;. The end result is a service that CVS clients connect to in order to use the CVS repositories on your system.</p>
<ol type="1">
<li>Edit <code>/etc/inetd.conf</code> to add the &laquo;cvs&raquo; service:<br />
<code>cvspserver stream tcp nowait cvs /usr/libexec/tcpd /usr/bin/cvs -f --allow-root=/home/cvs pserver</code></li>
<li>Edit <code>/etc/services</code> to add the cvspserver protocol:<br />
<code>cvspserver 2401/tcp</code></li>
<li>Edit <code>/etc/hosts.allow</code> to allow connections from certain hosts to the &laquo;cvs&raquo; service:<br />
<code>cvs: 192.168.0. botte-coders.example.org .aars.it</code></li>
<li>Add the &laquo;cvs&raquo; user mentioned in <code>/etc/inetd.conf</code> to /etc/master.passwd:<br />
<code>cvs:*:80:80::0:0:CVS:/home/cvs:/usr/local/bin/bash</code><br />
Run <code>pwd_mkdb -p /etc/master.passwd</code> to regenerate <code>/etc/passwd</code>.</p>
<p>Create the group &laquo;cvs&raquo;:<br />
<code>/etc/group:<br />
cvs:*:80:<br />
</code><br />
Create the home directory for user &laquo;cvs&raquo;:<br />
<code>mkdir /home/cvs<br />
chmod 700 /home/cvs<br />
</code></li>
<li>Init the CVSROOT directory in /home/cvs:<br />
<code>su -l cvs<br />
cvs -d /home/cvs init<br />
</code></li>
<li>Create and/or edit the file <code>/home/cvs/CVSROOT/passwd</code>. This file will list the users able to connect to the &laquo;cvs&raquo; service:<br />
<code>su -l cvs<br />
cd /home/cvs/CVSROOT<br />
touch passwd<br />
chmod 600 passwd<br />
vi passwd<br />
</code><br />
The file will look something like this:<br />
<code>harry:ZrLzRsjAPL7iQ:cvs<br />
klaas:Rf0DZbqhHM.Z.:cvs<br />
sjaak:kLruwLTHOsOXT2:cvs<br />
cvsusers:ORA7SfF0sRkD.:cvs<br />
</code><br />
&laquo;harry&raquo;, &laquo;klaas&raquo; and &laquo;sjaak&raquo; are the cvs users. &laquo;cvsusers&raquo; is the common user account for the developers working on a certain website project. It is mainly meant for doing cvs checkouts in the production environment.</li>
<li>Finally, create the common user account &laquo;cvsusers&raquo; to keep your developers happy. You know how to do that, don&#8217;t you? (-:</li>
<li>Now all developers should set their CVSROOT environment and execute a <code>cvs login</code>:<br />
<code>export CVSROOT=":pserver:&lt;username&gt;@yourserver.com:/home/cvs"<br />
cvs login<br />
cd ~public_html/<br />
cvs -q checkout PROJECTNAME</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/setting-up-a-cvs-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a DHCP server</title>
		<link>http://purebsd.com/setting-up-a-dhcp-server.html</link>
		<comments>http://purebsd.com/setting-up-a-dhcp-server.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:05:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daemons]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Setting up]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=39</guid>
		<description><![CDATA[This is a guide to the (hopefully) succesful configuration and usage of the DHCP server distributed with the OpenBSD base install. Follow these pointers: Edit /etc/rc.conf.local to start the DHCP server automatically: dhcpd_flags="-q" # for normal use: "-q" Create/edit the file /etc/dhcpd.conf to configure dhcpd: # $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $ # # DHCP server [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guide to the (hopefully) succesful configuration and usage of the DHCP server distributed with the OpenBSD base install.</p>
<p>Follow these pointers:</p>
<ol type="1">
<li>Edit <code>/etc/rc.conf.local</code> to start the DHCP server automatically:
<p><code> dhcpd_flags="-q" # for normal use: "-q"<br />
</code></li>
<li>Create/edit the file <code>/etc/dhcpd.conf</code> to configure <code>dhcpd</code>:
<p><code> # $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $<br />
#<br />
# DHCP server options.<br />
# See dhcpd.conf(5) and dhcpd(8) for more information.</p>
<p>shared-network LOCAL-NET {<br />
option routers 10.0.0.3;<br />
option domain-name "intranet.atomicvoid.net";<br />
option domain-name-servers 10.0.0.3;</p>
<p>subnet 10.0.0.0 netmask 255.255.255.0 {<br />
range 10.0.0.100 10.0.0.200;<br />
}</p>
<p>host miranda {<br />
hardware ethernet 00:00:39:3b:68:0d;<br />
fixed-address miranda.intranet.atomicvoid.net;<br />
}</p>
<p>host andromeda {<br />
hardware ethernet 00:50:fc:0c:3e:32;<br />
fixed-address andromeda.intranet.atomicvoid.net;<br />
}<br />
}<br />
</code><br />
For a more detailed working example, see my <a href="hhttp://www.purebsd.com/dhcpd.conf.txt">dhcpd.conf file</a>.</p>
<p>The &laquo;host&raquo; directives inform the DHCP server to allocate a &laquo;fixed-address&raquo; to requests with a MAC address equal to the one listed by &laquo;hardware ethernet&raquo;.<br />
The &laquo;subnet&raquo; directive informs the DHCP server that all DHCP requests result in a allocation of an IP address in the range of [10.0.0.100 - 10.0.0.200] if a client&#8217;s MAC address is not listed by one of the &laquo;host&raquo; directives.</li>
<li>Create/edit the file <code>/etc/dhcpd.interfaces</code> to list the interfaces <code>dhcpd</code> should listen on for DHCP requests:
<p><code> # $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $<br />
#<br />
# List of network interfaces served by dhcpd(8).<br />
#<br />
# ep0<br />
# ed0 le0<br />
# de1<br />
xl0<br />
</code><br />
In this case, only DHCP request entering via the interface <code>xl0</code> will be seen and handled by the DHCP daemon.</li>
<li>Reboot the system to have the changes take effect. Alternately, you can execute
<p><code> /usr/sbin/dhcpd -q xl0<br />
</code><br />
to start the DHCP server. Option &laquo;-q&raquo; quiets the chatter of the DHCP server and &laquo;xl0&#8243; is the interface on which the DHCP server should listen for requests.</li>
<li>Check <code>/var/log/daemon</code> if the DHCP server was started succesfully.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/setting-up-a-dhcp-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

