<?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>An Lár &#187; Server</title>
	<atom:link href="http://an-lar.com/category/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://an-lar.com</link>
	<description>Town center, We are in, We live in.</description>
	<lastBuildDate>Mon, 29 Jun 2009 19:43:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Part Two]Building a Server with DesktopBSD 1.6(Database Server)</title>
		<link>http://an-lar.com/2008/03/part-twobuilding-a-server-with-desktopbsd-16database-server/</link>
		<comments>http://an-lar.com/2008/03/part-twobuilding-a-server-with-desktopbsd-16database-server/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 19:40:05 +0000</pubDate>
		<dc:creator>liduan</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[DesktopBSD]]></category>

		<guid isPermaLink="false">http://www.an-lar.com/archives/33</guid>
		<description><![CDATA[There are a whole lot of Database platform in the IT world. For instance , Oracle,  Firebird, Sybase etc. I only choose two of them in this tutorial, they are mysql and postgresql.  Mysql is a open source project. It is a most popular database component in the personal hosting service. It can [...]]]></description>
			<content:encoded><![CDATA[<p><big>There are a whole lot of Database platform in the IT world. For instance , Oracle,  Firebird, Sybase etc. I only choose </big><img style="float: right; margin-top: 10px; margin-bottom: 10px; margin-left: 10px" src="http://liduan.cn/images/icon/mysqlandpostgresql.jpg" alt="" width="102" height="104" /><big>two of them in this tutorial, they are mysql and postgresql.  Mysql is a open source project. It is a most popular database component in the personal hosting service. It can work very well with PHP together. And, postgresql is also a open source project base on the BSD license. It&#8217;s an object-relational database system. compare with mysql. postgresql is more powerful feature like Views, Triggers, and Unions. on the other hand, the speed of mysql is faster than postgresql.</big></p>
<p><big>The ports system also will be used in building database. make sure your <a href="http://www.an-lar.com/archives/30">ports system has been update</a>. and versions of mysql and postgresql need be latest.</big></p>
<p><span id="more-33"></span><br />
<span style="text-decoration: underline;"><big><strong>1. MySQL 5.1 </strong></big></span><br />
<big>First of all, changing to root user by command &#8220;su&#8221;.</big></p>
<p><strong><big>1.1 Installation MySQL5.1</big></strong><br />
<big>Then, changing to mysql ports directory to install mysql 5.1.</big><br />
<code>
<pre class="brush: cpp">
$ cd /usr/ports/databases/mysql51-server/
$ make install clean</pre>
<p></code></p>
<p><big>You can use following option.</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;WITH_CHARSET=charset    Define the primary built-in charset (latin1).
WITH_XCHARSET=list         Define other built-in charsets (may be &#039;all&#039;).
WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes          Enable secure connections.
WITH_LINUXTHREADS=yes        Use the linuxthreads pthread library.
WITH_PROC_SCOPE_PTH=yes Use process scope threads
(try it if you use libpthread).
BUILD_OPTIMIZED=yes             Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes                    Build a static version of mysqld.
(use it if you need even more speed).
WITH_NDB=yes                          Enable support for NDB Cluster.&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;
</pre>
<p><big>For example:</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$ make WITH_CHARSET=utf8 WITH_XCHARSET=all
WITH_COLLATION=utf8_unicode_ci BUILD_OPTIMIZED=yes
install clean&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;
</pre>
<p><big><strong>1.2 Start MySQL server</strong></big><br />
<big>after a long time of waiting.you could start mysql server. add a line in the "/etc/rc.conf"</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;mysql_enable=&quot;YES&quot;</pre>
<p></code><br />
<big>and. using command start server.</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$ /usr/local/ect/rc.d/mysql-server start</pre>
<p></code></p>
<p><strong><big>1.3 Configuration MySQL</big></strong><br />
<big>set the password of root user.</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$ mysql -u root -p</pre>
<p></code></p>
<p><big><span style="text-decoration: underline;"><strong><br />
2. PostgreSQL</strong></span></big><br />
<big>Keeping you currently in the root account.</big></p>
<p><big><strong>2.1 Installation PostgreSQL 8.3</strong></big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$ /usr/ports/databases/postgresql83-server
make config install clean</pre>
<p></code><br />
<big>The you can choose model that you need in the Configuration interface.</big></p>
<p align="center"><img src="http://www.an-lar.com/wp-content/uploads/2008/03/clipboard02.jpg" alt="" width="527" height="319" /></p>
<p><big>add several new lines after finish installation in the file of "/etc/rc.conf"</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;postgresql_enable=&quot;YES&quot;
postgresql_data=&quot;/var/db/pgsql/data&quot;  # you can change to your location
postgresql_flags=&quot;-w -s -m fast&quot;
postgresql_initdb_flags=&quot;--encoding=utf-8 --lc-collate=C&quot;
postgresql_class=&quot;default&quot;</pre>
<p></code></p>
<p><strong><big>2.2 Configuration</big></strong><br />
<big>make sure you have /var/db/pgsql/data directory in your location, if you do not have this directory. you need creat it by root account and change owner to user "pgsql" by command "chown". such as:</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;mkdir /var/db/pgsql/data
chown pgsql:pgsql /var/db/pgsql/data</pre>
<p></code></p>
<p><big>A simple database should be created by user "pgsql". </big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$ su pgsql   // using the root account to do this
$ initdb -D /var/db/pgsql/data
$ createuser -p  //change the password of database user &quot;pgsql&quot;.&lt;/code&gt;&lt;code&gt;</pre>
<p></code><code></code></p>
<p><big>Last but not least, start server:</big><br />
<code>
<pre class="brush: bash">&lt;/code&gt;&lt;code&gt;$  /usr/local/etc/rc.d/postgresql start</pre>
<p></code></p>
<p><big><br />
Next, we will build PHP development environment with Apache2 in the DesktopBSD.<br />
To be continued...</big></p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;partner=sociable" title="Print"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;bodytext=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="Digg"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="Sphinn"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;notes=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="del.icio.us"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;t=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Facebook"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Mixx"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;annotation=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="Google Bookmarks"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;body=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="email"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://hellotxt.com/?status=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29+http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="HelloTxt"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/hellotxt.png" title="HelloTxt" alt="HelloTxt" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Live"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;desc=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="MyShare"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;t=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="MySpace"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;t=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;s=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="Tumblr"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29%20-%20http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="Twitter"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;t=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&opener=bm&amp;ei=UTF-8&amp;d=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="Yahoo! Bookmarks"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://yigg.de/neu?exturl=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;exttitle=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Yigg"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="BlogMemes Fr"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/" title="BlogMemes Fr" alt="BlogMemes Fr" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://cgi.fark.com/cgi/fark/farkit.pl?h=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="Fark"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="FriendFeed"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Haohao"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;source=An+L%C3%A1r+Town+center%2C+We+are+in%2C+We+live+in.&amp;summary=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="LinkedIn"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;bm_description=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;plugin=soc" title="MisterWong"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;partner=sociable" title="PDF"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;body=There%20are%20a%20whole%20lot%20of%20Database%20platform%20in%20the%20IT%20world.%20For%20instance%20%2C%20Oracle%2C%20%20Firebird%2C%20Sybase%20etc.%20I%20only%20choose%20two%20of%20them%20in%20this%20tutorial%2C%20they%20are%20mysql%20and%20postgresql.%20%20Mysql%20is%20a%20open%20source%20project.%20It%20is%20a%20most%20popular%20database%20compon" title="Ping.fm"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://an-lar.com/feed/" title="RSS"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="Slashdot"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F&amp;story_title=%5BPart%20Two%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28Database%20Server%29" title="Socialogs"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-twobuilding-a-server-with-desktopbsd-16database-server%2F" title="Technorati"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://an-lar.com/2008/03/part-twobuilding-a-server-with-desktopbsd-16database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Part One]Building a Server with DesktopBSD 1.6(introduction)</title>
		<link>http://an-lar.com/2008/03/part-onebuilding-a-server-with-desktopbsd-16introduction/</link>
		<comments>http://an-lar.com/2008/03/part-onebuilding-a-server-with-desktopbsd-16introduction/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 22:57:47 +0000</pubDate>
		<dc:creator>liduan</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[DesktopBSD]]></category>

		<guid isPermaLink="false">http://www.an-lar.com/archives/30</guid>
		<description><![CDATA[Why is DesktopBSD neither freeBSD or Linux. Firstly, DesktopBSD 1.6 is base on Freebsd 6.3. It is distribution ofFreeBSD. And Linux is same pretty good, but BSD is more better in old machine such as PIII cpu, 128M memory, Linux maybe can run in these kind of computers, but Linux can&#8217;t run other applications like [...]]]></description>
			<content:encoded><![CDATA[<p><big>Why is DesktopBSD neither freeBSD or Linux. Firstly, DesktopBSD 1.6 is base on Freebsd 6.3. It is distribution of</big><img SRC="http://www.liduan.cn/images/icon/desktopbsd.jpg" STYLE="float: right; margin-top: 10px; margin-bottom: 10px; margin-left: 10px" /><big>FreeBSD. And Linux is same pretty good, but BSD is more better in old machine such as PIII cpu, 128M memory, Linux maybe can run in these kind of computers, but Linux can&#8217;t run other applications like postgresql. </big></p>
<p><big>     And, DesktopBSD have pretty good graphical interface environment with KDE. that should save time of configuration of GUI. DesktopBSD also uses the ports system. we can easily install any software.</big></p>
<p><big>I plan to build a server support following service:</big></p>
<p><big>1. Databases service such as MySQL, PostgreSQL.<br />
2. PHP development environment with Apache2<br />
3. Files share service like NFS and Samba.<br />
4. JSP/Java development environment with Tomcat6<br />
5. FTP server<br />
6. DNS and Mail server.<br />
</big><br />
<span id="more-30"></span><br />
<big>I use a very old machine DELL  *D400*. </big></p>
<p><big>Before building the server, we need install a DesktopBSD system into a machine. DesktopBSD support a graphical installer, it allow to partition disks and create users. It is easy to use. Some screenshots show how to install a DesktopBSD in <a HREF="http://www.desktopbsd.net/index.php?id=42">here</a>.</big></p>
<p><big>After installation, we will to refresh the ports-tree. cvsup or portsnap could be used. I like use cvsup. In the DesktopBSD or Freebsd 6.3. there is a change for cvsup. command is csup not cvsup.</big><br />
<big><code>su<br />
cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile<br />
 </code><br />
</big></p>
<p><big>makes you into root user, and change the configuration of cvsup</big><big><big>edit  file </big><big><br />
<code>ee /etc/ports-supfile</code></big></p>
<p><big>change this line</big><big><br />
<code>*default host= CHANGE_THIS.FreeBSD.org</code></big><br />
<big>To:</big><br />
<big><code>*default host= cvsup5.FreeBSD.org</code></big></p>
<p><big>Back to command line, update teh prots-tree</big><big><br />
<code>csup -g -L 2 /etc/ports-supfile<br />
cd /usr/ports<br />
make fetchindex</code></big></p>
<p><big><br />
Next, we will build databases service in the DesktopBSD.<br />
To be continued&#8230;<br />
</big></p>
<p></big></p>



Share and Enjoy:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;partner=sociable" title="Print"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;bodytext=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="Digg"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="Sphinn"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;notes=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="del.icio.us"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;t=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Facebook"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Mixx"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;annotation=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="Google Bookmarks"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;body=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="email"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://hellotxt.com/?status=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29+http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="HelloTxt"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/hellotxt.png" title="HelloTxt" alt="HelloTxt" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Live"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://myshare.url.com.tw/index.php?func=newurl&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;desc=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="MyShare"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/myshare.png" title="MyShare" alt="MyShare" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;t=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="MySpace"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;t=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;s=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="Tumblr"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29%20-%20http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="Twitter"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;t=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&opener=bm&amp;ei=UTF-8&amp;d=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="Yahoo! Bookmarks"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://yigg.de/neu?exturl=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;exttitle=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Yigg"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/yiggit.png" title="Yigg" alt="Yigg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="BlogMemes Fr"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/" title="BlogMemes Fr" alt="BlogMemes Fr" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://cgi.fark.com/cgi/fark/farkit.pl?h=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;u=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="Fark"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="FriendFeed"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Haohao"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;source=An+L%C3%A1r+Town+center%2C+We+are+in%2C+We+live+in.&amp;summary=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="LinkedIn"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;bm_description=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;plugin=soc" title="MisterWong"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;partner=sociable" title="PDF"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;body=Why%20is%20DesktopBSD%20neither%20freeBSD%20or%20Linux.%20Firstly%2C%20DesktopBSD%201.6%20is%20base%20on%20Freebsd%206.3.%20It%20is%20distribution%20ofFreeBSD.%20And%20Linux%20is%20same%20pretty%20good%2C%20but%20BSD%20is%20more%20better%20in%20old%20machine%20such%20as%20PIII%20cpu%2C%20128M%20memory%2C%20Linux%20maybe%20can%20run%20in%20these" title="Ping.fm"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://an-lar.com/feed/" title="RSS"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29&amp;url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="Slashdot"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F&amp;story_title=%5BPart%20One%5DBuilding%20a%20Server%20with%20DesktopBSD%201.6%28introduction%29" title="Socialogs"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fan-lar.com%2F2008%2F03%2Fpart-onebuilding-a-server-with-desktopbsd-16introduction%2F" title="Technorati"><img src="http://anlar.duan.li/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://an-lar.com/2008/03/part-onebuilding-a-server-with-desktopbsd-16introduction/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
