<?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; FreeBSD7</title>
	<atom:link href="http://www.surlyjake.com/category/freebsd7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Jun 2010 21:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to update my sparc FreeBSD install</title>
		<link>http://www.surlyjake.com/freebsd7/how-to-update-my-sparc-freebsd-install/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-update-my-sparc-freebsd-install</link>
		<comments>http://www.surlyjake.com/freebsd7/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 u copy the default [...]]]></description>
			<content:encoded><![CDATA[<p>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)</p>
<p>Install cvsup:</p>
<pre><code># cd /usr/ports/net/cvsup-without-gui/
# make install</code></pre>
<p>install fastest cvsup:
<pre><code>
# cd /usr/ports/sysutils/fastest_cvsup/
# make install
# fastest_cvsup -c u</code></pre>
<p>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>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/freebsd7/how-to-update-my-sparc-freebsd-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automysqlbackup.sh.2.5 on FreeBSD</title>
		<link>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=automysqlbackupsh25-on-freebsd</link>
		<comments>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 18:38:27 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=309</guid>
		<description><![CDATA[Automysqlbackup is a great tool. It&#8217;s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this: ./automysqlbackup.sh.2.5: Command not found. To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it [...]]]></description>
			<content:encoded><![CDATA[<p>Automysqlbackup is a great tool. It&#8217;s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this:</p>
<pre><code>./automysqlbackup.sh.2.5: Command not found.</code></pre>
<p>To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it references the path &#8216;/bin/sh&#8217;. In freebsd, bash is installed at &#8216;/usr/local/bin/bash.&#8217; If you haven&#8217;t already, install bash:</p>
<pre><code>pkg_add -r bash</code></pre>
<p>Then all you have to do is edit automysqlbackup.sh.2.5. Look for</p>
<pre><code>#!/bin/bash</code></pre>
<p>and change it to</p>
<pre><code>#!/usr/local/bin/bash</code></pre>
<p>Now you should be able to launch it properly by running &#8216;./automysqlbackup.sh.2.5&#8242;. creating a symlink would probably work, but i like this better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD time updates with ntpdate and ntpd</title>
		<link>http://www.surlyjake.com/freebsd7/freebsd-time-updates-with-ntpdate-and-ntpd/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=freebsd-time-updates-with-ntpdate-and-ntpd</link>
		<comments>http://www.surlyjake.com/freebsd7/freebsd-time-updates-with-ntpdate-and-ntpd/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 05:53:33 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=107</guid>
		<description><![CDATA[So FreeBSD&#8217;s time is out of wack. Two options: 1. ntpdate. This is manual. To run a time sync manually, just run ntpdate -b pool.ntp.org You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc/rc.conf: ntpdate_enable="YES" ntpdate_hosts="[your ntp server]" This works, but if [...]]]></description>
			<content:encoded><![CDATA[<p>So FreeBSD&#8217;s time is out of wack. Two options:</p>
<p>1. ntpdate. This is manual. To run a time sync manually, just run</p>
<pre><code>ntpdate -b pool.ntp.org
</code></pre>
<p>You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc/rc.conf:</p>
<pre><code>ntpdate_enable="YES"
ntpdate_hosts="[your ntp server]"</code></pre>
<p>This works, but if you don&#8217;t reboot often, could be unreliable.</p>
<p>2. ntdp. ntpd just runs all the time and keeps you nsync with internet time servers. You would want to use this for servers that you don&#8217;t reboot all the time. for this:</p>
<p>create an /etc/ntpd.conf file:</p>
<pre><code>server pool.ntp.org
driftfile /etc/ntp.drift
logfile /var/log/ntpd.log</code></pre>
<p>you can start ntpd manually:</p>
<pre><code>ntpd
</code></pre>
<p>and/or add a startup entry for it in /etc/rc.conf:</p>
<pre><code>ntpd_enable="YES"</code></pre>
<p>I recommend setting up both of these on servers. Ntpdate will snap your system to a good point before you begin synchronizing with ntpd. ntpd by itself will take a lot longer to get you synced up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/freebsd7/freebsd-time-updates-with-ntpdate-and-ntpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webalizer installation on freebsd 7</title>
		<link>http://www.surlyjake.com/freebsd7/webalizer-installation-on-freebsd-7/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=webalizer-installation-on-freebsd-7</link>
		<comments>http://www.surlyjake.com/freebsd7/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/webalizer<br />
make<br />
make install<br />
make clean<br />
rehash<br />
mkdir /usr/local/www/stats<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>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/freebsd7/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/freebsd7/savecore-reboot-after-panic/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=savecore-reboot-after-panic</link>
		<comments>http://www.surlyjake.com/freebsd7/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 />
savecore /var/crash /dev/ad0b<br />
exit<br />
exit to multi-user</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/freebsd7/savecore-reboot-after-panic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD MYSQL configuration</title>
		<link>http://www.surlyjake.com/mysql/freebsd-mysql-configuration/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=freebsd-mysql-configuration</link>
		<comments>http://www.surlyjake.com/mysql/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 MySQL. 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>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/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/mysql/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces</link>
		<comments>http://www.surlyjake.com/mysql/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 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 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_recovery = 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 database.</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>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->