<?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>SurlyJake &#187; FreeBSD 7</title>
	<atom:link href="http://www.surlyjake.com/tag/freebsd-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to update my sparc FreeBSD install</title>
		<link>http://www.surlyjake.com/2009/03/how-to-update-my-sparc-freebsd-install/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-update-my-sparc-freebsd-install</link>
		<comments>http://www.surlyjake.com/2009/03/how-to-update-my-sparc-freebsd-install/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 15:43:07 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[FreeBSD 7]]></category>
		<category><![CDATA[freebsd-update sparc]]></category>
		<category><![CDATA[sparc]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=112</guid>
		<description><![CDATA[So the spanking new freebsd-update doesn&#8217;t work for sparc systems&#8230; boo. Have to do everything manually. Here&#8217;s what I remember. Let me know if I forgot something, or its wrong.(very likely) Install cvsup: # cd /usr/ports/net/cvsup-without-gui/ # make install install fastest cvsup: # cd /usr/ports/sysutils/fastest_cvsup/ # make install # fastest_cvsup -c us Replace &#8220;us&#8221; with [...]]]></description>
			<content:encoded><![CDATA[<p>So the spanking new freebsd-<a href="http://www.surlyjake.com/tag/update/" class="st_tag internal_tag" rel="tag" title="Posts tagged with update">update</a> doesn&#8217;t work for <a href="http://www.surlyjake.com/tag/sparc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sparc">sparc</a> systems&#8230; boo. Have to do everything manually. Here&#8217;s what I remember. Let me know if I forgot something, or its wrong.(very likely)</p>
<p>Install cvsup:</p>
<pre><code># cd /usr/ports/net/cvsup-without-gui/
# make install</code></pre>
<p>install fastest cvsup:</p>
<pre><code>
# cd /usr/ports/sysutils/fastest_cvsup/
# make install
# fastest_cvsup -c us</code></pre>
<p>Replace &#8220;us&#8221; with your country if it&#8217;s different. copy the default supfile to our own before editing.</p>
<pre><code>
# cp /usr/share/examples/cvsup/stable-supfile /etc/stable-supfile
# cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile
</code></pre>
<p>edit both of them and change the</p>
<pre><code>
*default host=
</code></pre>
<p>to the fastest cvsup server from the &#8220;fastest cvsup&#8221;</p>
<p>then update the ports</p>
<pre><code>
# cvsup -L2 -g /etc/ports-supfile
# cvsup -L2 -g /etc/stable-supfile</code></pre>
<p>Then i guess we try to build the world. see if something breaky.</p>
<pre><code>
# cd /usr/src
# make buildworld
</code></pre>
<p>Recompiled kernel. I have my own kernel called &#8220;MYSPARC2&#8243;. Yours might just be &#8220;GENERIC&#8221;</p>
<pre><code>
# cd /usr/src
# make buildkernel KERNCONF=MYSPARC2
# make installkernel KERNCONF=MYSPARC2</code></pre>
<p>rebooted into single user mode then:</p>
<pre><code># mount -u /
# mount -a -t ufs
# swapon -a</code></pre>
<p>Now you are ready to install the new world.</p>
<pre><code># cd /usr/src
# make installworld</code></pre>
<p>After that was done, mergemaster to update your configs:</p>
<pre><code>mergemaster -v</code></pre>
<p>Then used portmaster to upgrade all of the ports.</p>
<pre><code># portmaster -a</code></pre>
<p>Basically everything i know about BSD comes from or stems from something I&#8217;ve read at freebsdmadeeasy.com</p>
<p>source: <a href="http://www.freebsdmadeeasy.com/tutorials/freebsd/updating-freebsd-with-cvsup.php" target="_blank">http://www.freebsdmadeeasy.com/tutorials/freebsd/updating-freebsd-with-cvsup.php</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/03/how-to-update-my-sparc-freebsd-install/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/03/how-to-update-my-sparc-freebsd-install/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>webalizer installation on freebsd 7</title>
		<link>http://www.surlyjake.com/2008/11/webalizer-installation-on-freebsd-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=webalizer-installation-on-freebsd-7</link>
		<comments>http://www.surlyjake.com/2008/11/webalizer-installation-on-freebsd-7/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:05:54 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[FreeBSD 7]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[webalizer]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=100</guid>
		<description><![CDATA[cd /usr/ports/www/webalizer make make install make clean rehash mkdir /usr/local/www/stats webalizer -o /usr/local/www/stats /var/log/httpd-access_log After that, just added it to the root crontab crontab -e like this: 0 * * * * /usr/local/bin/webalizer -o /usr/local/www/stats /var/log/httpd-access_log &#62; /var/log/webalizer-hourly That runs every hour, so that the stats are kept up-to-date.]]></description>
			<content:encoded><![CDATA[<p><code>cd /usr/ports/www/<a href="http://www.surlyjake.com/tag/webalizer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with webalizer">webalizer</a><br />
make<br />
make install<br />
make clean<br />
rehash<br />
mkdir /usr/local/www/<a href="http://www.surlyjake.com/tag/stats/" class="st_tag internal_tag" rel="tag" title="Posts tagged with stats">stats</a><br />
webalizer -o /usr/local/www/stats /var/log/httpd-access_log<br />
</code><br />
After that, just added it to the root crontab<br />
<code>crontab -e<br />
</code><br />
like this:<br />
<code>0 * * * * /usr/local/bin/webalizer -o /usr/local/www/stats /var/log/httpd-access_log &gt; /var/log/webalizer-hourly<br />
</code><br />
That runs every hour, so that the stats are kept up-to-date.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/11/webalizer-installation-on-freebsd-7/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/11/webalizer-installation-on-freebsd-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>savecore? reboot after panic?</title>
		<link>http://www.surlyjake.com/2008/09/savecore-reboot-after-panic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=savecore-reboot-after-panic</link>
		<comments>http://www.surlyjake.com/2008/09/savecore-reboot-after-panic/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 13:56:07 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[FreeBSD 7]]></category>
		<category><![CDATA[panic]]></category>
		<category><![CDATA[savecore]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=32</guid>
		<description><![CDATA[scary. I updated freebsd, and i can only think that i messed it up when i tried to &#8220;shutdown -h&#8221; to get it shutdown so i could reboot. anyways, when i rebooted, i saw this message. apparently there was a kernel dump on my swap drive. But problem is that i didn&#8217;t have enough room [...]]]></description>
			<content:encoded><![CDATA[<p>scary. I updated freebsd, and i can only think that i messed it up when i tried to &#8220;shutdown -h&#8221; to get it shutdown so i could reboot. anyways, when i rebooted, i saw this message. apparently there was a kernel dump on my swap drive. But problem is that i didn&#8217;t have enough room on /var/crash to make it happen. i redirected the commands ot the /usr/home/ program.</p>
<p><a href=" http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html" target="_blank">http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html</a><br />
<code>fsck -p<br />
mount -a -t ufs<br />
make sure /var/crash is writable<br />
<a href="http://www.surlyjake.com/tag/savecore/" class="st_tag internal_tag" rel="tag" title="Posts tagged with savecore">savecore</a> /var/crash /dev/ad0b<br />
exit<br />
exit to multi-user</code></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/09/savecore-reboot-after-panic/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/09/savecore-reboot-after-panic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD MYSQL configuration</title>
		<link>http://www.surlyjake.com/2008/09/freebsd-mysql-configuration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freebsd-mysql-configuration</link>
		<comments>http://www.surlyjake.com/2008/09/freebsd-mysql-configuration/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 23:27:49 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[FreeBSD 7]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=26</guid>
		<description><![CDATA[FreeBSD does not automatically include a default my.cnf for MySQL. Instead, a set of sample configuration files can be found under /usr/local/share/mysql. These configuration files include my-small.cnf, my-medium.cnf, my-large.cnf, my-innodb-heavy-4G, and my-huge.cnf. The appropriate file can be copied and used as a template configuration by performing the following actions: cd /usr/local/share/mysql/ cp /usr/local/share/mysq/mysql-large.cnf /etc/my.cnf /usr/local/etc/rc.d/mysql-server [...]]]></description>
			<content:encoded><![CDATA[<div class="storycontent">
<p>FreeBSD does not automatically include a default <code>my.cnf</code> for <a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">MySQL</a>. Instead, a set of sample configuration files can be found under <code>/usr/local/share/mysql</code>. These configuration files include <code>my-small.cnf</code>, <code>my-medium.cnf</code>, <code>my-large.cnf</code>, <code>my-innodb-heavy-4G</code>, and <code>my-huge.cnf</code>. The appropriate file can be copied and used as a template configuration by performing the following actions:<br />
<code>cd /usr/local/share/mysql/<br />
cp /usr/local/share/mysq/mysql-large.cnf /etc/my.cnf<br />
/usr/local/etc/rc.d/mysql-server restart</code></p>
<p>thanks to <a href="http://www.barik.net/archive/2008/05/26/114616/" target="_blank">http://www.barik.net/archive/2008/05/26/114616/</a> for the tip.</div>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/09/freebsd-mysql-configuration/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/09/freebsd-mysql-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what not to do in MySQL&#8230; and how to pick up the pieces</title>
		<link>http://www.surlyjake.com/2008/09/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces</link>
		<comments>http://www.surlyjake.com/2008/09/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 03:31:13 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[FreeBSD 7]]></category>
		<category><![CDATA[recovery]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=14</guid>
		<description><![CDATA[note to self&#8230; do NOT kill mysql processes from phpmyadmin&#8217;s control panel and force mysql to quit. Bad things happen. In this case, mysql wouldnt start again. InnoDB&#8217;s indexes, binary logs, etc. were all out of sync. The 20 page log explaining all the ways the DB couldn&#8217;t start is located in the DB&#8217;s data [...]]]></description>
			<content:encoded><![CDATA[<p>note to self&#8230; do NOT kill <a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">mysql</a> processes from phpmyadmin&#8217;s control panel and force <a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">mysql</a> to quit. Bad things happen. In this case, <a href="http://www.surlyjake.com/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MySQL">mysql</a> wouldnt start again. InnoDB&#8217;s indexes, binary <a href="http://www.surlyjake.com/tag/logs/" class="st_tag internal_tag" rel="tag" title="Posts tagged with logs">logs</a>, etc. were all out of sync. The 20 page log explaining all the ways the DB couldn&#8217;t start is located in the DB&#8217;s data dir, which in my case was in /dbdisks/&lt;hostname&gt;.err.</p>
<p>To tell mysql to pick up the messy pieces and throw up whats left of your data, edit or create /etc/my.cnf and add this little line to the &#8220;[mysqld]&#8221; section:</p>
<p><code>innodb_force_<a href="http://www.surlyjake.com/tag/recovery/" class="st_tag internal_tag" rel="tag" title="Posts tagged with recovery">recovery</a> = 3<br />
</code></p>
<p>The command is talked aboot <a href="http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html" target="_blank">here</a> the number is btw 1 and 6. bigger the number, the more drastic and desperate it is. I tried 4, and it pulled the tables with no data. 1 gave me nothing. but 3 let me start and mysqldump my <a href="http://www.surlyjake.com/tag/database/" class="st_tag internal_tag" rel="tag" title="Posts tagged with database">database</a>.</p>
<p><code>mysqldump -u root -p &lt;dbname &gt; /path/to/.sql/file<br />
</code></p>
<p>so once the dump was completed, i moved the db data directory, commented out the &#8220;innodb_force_recovery&#8221; line, and restarted the computer. At restart the db data dir was re-created by mysql. fresh and clean. this deletes EVERYTHING. even users. re-import the data with</p>
<p><code>mysql -u root &lt;dbname&gt; &lt; /path/to/.sql/file<br />
</code></p>
<p>go ahead and create the users needed, and set root password again. There you go.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/09/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/09/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

