<?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; update</title>
	<atom:link href="http://www.surlyjake.com/tag/update/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>Updating FreeBSD ports nicely using nice</title>
		<link>http://www.surlyjake.com/2010/06/updating-freebsd-ports-nicely-using-nice/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updating-freebsd-ports-nicely-using-nice</link>
		<comments>http://www.surlyjake.com/2010/06/updating-freebsd-ports-nicely-using-nice/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:34:22 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD8]]></category>
		<category><![CDATA[Compiling]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd ports]]></category>
		<category><![CDATA[portupgrade]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=595</guid>
		<description><![CDATA[Thanks to: http://scottspare.com/bsdfun/?p=75 for pointing me in the right direction. Compiling port updates can take a while and slow down your server. What you can do is use the &#8216;nice&#8217; utility to force the processes to a lower priority. This will help your server to run almost normally during an update. When you use the [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to: <a href="http://scottspare.com/bsdfun/?p=75" target="_blank">http://scottspare.com/bsdfun/?p=75</a> for pointing me in the right direction. <a href="http://www.surlyjake.com/tag/compiling/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Compiling">Compiling</a> port updates can take a while and slow down your server. What you can do is use the &#8216;nice&#8217; utility to force the processes to a lower priority. This will help your server to run <em>almost</em> normally during an <a href="http://www.surlyjake.com/tag/update/" class="st_tag internal_tag" rel="tag" title="Posts tagged with update">update</a>.</p>
<p>When you use the &#8216;nice&#8217; command inside of csh or tcsh, you need to mind that you give the full path to the binary so you dont use the built-in &#8216;nice&#8217; command.</p>
<pre><code># /usr/bin/nice -n 10 {your update command}</code></pre>
<p>What i use is:</p>
<pre><code># /usr/bin/nice -n 10 <a href="http://www.surlyjake.com/tag/portupgrade/" class="st_tag internal_tag" rel="tag" title="Posts tagged with portupgrade">portupgrade</a> -aRrP</code></pre>
<p>Man page for &#8216;nice&#8217;: <a href="http://www.freebsd.org/cgi/man.cgi?query=nice&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+8.0-RELEASE&amp;format=html" target="_blank">http://www.freebsd.org/cgi/man.cgi?query=nice&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+8.0-RELEASE&amp;format=html</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/06/updating-freebsd-ports-nicely-using-nice/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/06/updating-freebsd-ports-nicely-using-nice/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 <a href="http://www.surlyjake.com/tag/freebsd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with FreeBSD">freebsd</a>-<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>script to update wordpress</title>
		<link>http://www.surlyjake.com/2008/11/script-to-update-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=script-to-update-wordpress</link>
		<comments>http://www.surlyjake.com/2008/11/script-to-update-wordpress/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 21:02:37 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=119</guid>
		<description><![CDATA[Why? Because i&#8217;m lazy. I&#8217;ll update this to see if it works #!/bin/sh #your current site will be backed up to your home folder with the date in the name #change this to whatever you want BACKUPNAME="wordpress_site_b4_update" BACKUPDATE=`date +%y%m%d` #this is the path to your wordpress site's root SITEROOT="/usr/local/www/" #here she goez... cd ~ tar [...]]]></description>
			<content:encoded><![CDATA[<p>Why? Because i&#8217;m lazy. I&#8217;ll <a href="http://www.surlyjake.com/tag/update/" class="st_tag internal_tag" rel="tag" title="Posts tagged with update">update</a> this to see if it works<br />
<code>#!/bin/sh<br />
#your current site will be backed up to your home folder with the date in the name<br />
#change this to whatever you want<br />
BACKUPNAME="<a href="http://www.surlyjake.com/tag/wordpress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with wordpress">wordpress</a>_site_b4_update"<br />
BACKUPDATE=`date +%y%m%d`<br />
#this is the path to your wordpress site's root<br />
SITEROOT="/usr/local/www/"<br />
#here she goez...<br />
cd ~<br />
tar -pczf "$BACKUPNAME""$BACKUPDATE".tar.gz "$SITEROOT"<br />
cd /usr/local<br />
fetch http://wordpress.org/latest.tar.gz<br />
tar -xzf latest.tar.gz<br />
rm latest.tar.gz<br />
cp -R wordpress/* "$SITEROOT"/<br />
rm -R wordpress<br />
chown -R www "$SITEROOT"<br />
</code></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/11/script-to-update-wordpress/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/11/script-to-update-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD time updates with ntpdate and ntpd</title>
		<link>http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freebsd-time-updates-with-ntpdate-and-ntpd</link>
		<comments>http://www.surlyjake.com/2008/11/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 <a href="http://www.surlyjake.com/tag/freebsd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with FreeBSD">FreeBSD</a>&#8217;s <a href="http://www.surlyjake.com/tag/time/" class="st_tag internal_tag" rel="tag" title="Posts tagged with time">time</a> is out of wack. Two options:</p>
<p>1. <a href="http://www.surlyjake.com/tag/ntpdate/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpdate">ntpdate</a>. 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. <a href="http://www.surlyjake.com/tag/ntpd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ntpd">ntpd</a> 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>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2008/11/freebsd-time-updates-with-ntpdate-and-ntpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

