<?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>Todd Smith Org &#187; Uncategorized</title>
	<atom:link href="http://www.toddsmith.org/wordpress/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toddsmith.org/wordpress</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 28 Nov 2012 10:14:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Quick Script to help you archive all those IOMega ZIP Disks</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/quick-script-to-help-you-archive-all-those-iomega-zip-disks/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/quick-script-to-help-you-archive-all-those-iomega-zip-disks/#comments</comments>
		<pubDate>Wed, 28 Nov 2012 10:13:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=229</guid>
		<description><![CDATA[base_file="Zip100_" base_dir="/Users/smith/Documents/GraphicDesign" while true ; do if [ -d "/Volumes/Zip 100" ] ; then vol_dir="/Volumes/Zip 100" elif [ -d "/Volumes/ZIP-100" ] ; then vol_dir="/Volumes/ZIP-100" elif [ -d "/Volumes/100zip" ] ; then vol_dir="/Volumes/100zip" fi if [ -d "${vol_dir}" ] ; then ls -1 $base_dir last=`ls -1 $base_dir/ &#124; cut -f2 -d_ &#124; tail -n1 &#124; sed [...]]]></description>
			<content:encoded><![CDATA[<pre>
base_file="Zip100_"
base_dir="/Users/smith/Documents/GraphicDesign"


while true ; do

    if [ -d "/Volumes/Zip 100" ] ; then
        vol_dir="/Volumes/Zip 100"
    elif [ -d "/Volumes/ZIP-100" ] ; then
        vol_dir="/Volumes/ZIP-100"
    elif [ -d "/Volumes/100zip" ] ; then
        vol_dir="/Volumes/100zip"
    fi

    if [ -d "${vol_dir}" ] ; then

        ls -1 $base_dir
        last=`ls -1 $base_dir/ | cut -f2 -d_ | tail -n1 | sed "s,^[0],,g"`
        echo "Last: ${base_dir}/${base_file}`printf '%02d' ${last}`/"
        if [ -f "${base_dir}/${base_file}`printf '%02d' ${last}`/.done" ] ; then
                #move to next one
                echo "${base_dir}/${base_file}`printf '%02d' ${last}`/ is DONE"
                next=`printf "%02d" $(($last + 1))`
                echo Next is "${base_dir}/${base_file}${next}/"
                mkdir "${base_dir}/${base_file}${next}/" &#038;&#038; \
                rsync -av --progress --stats "${vol_dir}/"* "${base_dir}/${base_file}${next}/" &#038;&#038; \
                touch "${base_dir}/${base_file}${next}/.done" &#038;&#038; \
                hdiutil detach "${vol_dir}"
        else
                #rsync copy to last &#038;&#038; \
                rsync -av --progress --stats "${vol_dir}/"* "${base_dir}/${base_file}`printf '%02d' ${last}`/" &#038;&#038; \
                touch "${base_dir}/${base_file}`printf '%02d' ${last}`/.done" &#038;&#038; \
                hdiutil detach "${vol_dir}"
        fi

        sleep 10

    else

        echo "Volume does not exist, sleeping for 5 seconds"
        sleep 5

    fi

done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/quick-script-to-help-you-archive-all-those-iomega-zip-disks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile Xen 3.4.1 on Ubuntu Howto</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/compile-xen-341-on-ubuntu-howto/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/compile-xen-341-on-ubuntu-howto/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 07:36:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=177</guid>
		<description><![CDATA[These are the commands that I used to compile and install Xen 3.4.1 on my Ubuntu Server. sudo su - apt-get update apt-get upgrade dpkg-reconfigure tzdata echo 'export EDITOR=/usr/bin/vi' >> /etc/profile apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig apt-get install build-essential g++ apt-get install python-dev python-twisted apt-get install bridge-utils [...]]]></description>
			<content:encoded><![CDATA[<p>These are the commands that I used to compile and install Xen 3.4.1 on my Ubuntu Server.</p>
<pre>
sudo su -
apt-get update
apt-get upgrade
dpkg-reconfigure tzdata
echo 'export EDITOR=/usr/bin/vi' >> /etc/profile
apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig
apt-get install build-essential g++
apt-get install python-dev python-twisted
apt-get install bridge-utils
apt-get install debootstrap
apt-get install reiserfsprogs
apt-get install mercurial
apt-get install gawk
apt-get install gettext openssl zlib1g-dev openssl libssl-dev libx11-dev
apt-get install libx86-dev bin86 bcc ncurses-dev texinfo
mkdir /usr/src/XEN
cd !$
wget http://bits.xensource.com/oss-xen/release/3.4.1/xen-3.4.1.tar.gz

hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg

tar zxf xen-3.4.1.tar.gz
cd xen-3.4.1

make prep-kernels

make dist

make install
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/compile-xen-341-on-ubuntu-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPSec between OpenBSD and Mac OS X Howto</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/ipsec-between-openbsd-and-mac-os-x-howto/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/ipsec-between-openbsd-and-mac-os-x-howto/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 11:54:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=184</guid>
		<description><![CDATA[IPSec between OpenBSD and Mac OS X Howto This Howto will give some basics about how to setup a roadwarrior style IPSec VPN between your OpenBSD gateway, and your road-warrior Mac OS X machine. What is road warrior? &#8211; This means your IP is changing all the time. It doesn&#8217;t necessarily mean that you carry [...]]]></description>
			<content:encoded><![CDATA[<h1>IPSec between OpenBSD and Mac OS X Howto</h1>
<p>This Howto will give some basics about how to setup a roadwarrior style IPSec VPN between your OpenBSD gateway, and your road-warrior Mac OS X machine.
</p>
<p>
What is road warrior? &#8211; This means your IP is changing all the time. It doesn&#8217;t necessarily mean that you carry bazookas to a knife fight on the road.
</p>
<h2>Configuring OpenBSD</h2>
<p> Edit your /etc/rc.conf to contain the following:</p>
<p class=pre>
isakmpd_flags=&#8221;-K4dv&#8221;
</p>
<p>Create the file /etc/ipsec.conf . Here&#8217;s what mine looks like&#8230; Kinda.</p>
<p class="pre">
ike passive from any to any \<br />
  main auth  hmac-sha1 enc aes group modp1024 \<br />
  quick auth hmac-sha1 enc aes psk YOURSHAREDKEYHERE
</p>
<p>Run the following command to get the ipsecctl command to configure your ISAKMPD using the /etc/ipsec.conf file we just created</p>
<p class="pre">ipsecctl -f /etc/ipsec.conf</p>
<h2>Configuring Mac OS X</h2>
<p>First download IPSecuritas from Lobotomo Software</p>
<p>Import the following config file, and be sure to change the line: sainfo subnet 172.16.175.4/32 any subnet 10.20.30.0/23 any to your local IP, and remote Subnet you want access to.</p>
<pre>
log notify;
path pre_shared_key "/Library/Application Support/Lobotomo Software/IPSecuritas/psk.txt";
path certificate "/Library/Application Support/Lobotomo Software/IPSecuritas/certs";

padding
{
        maximum_length 20;
        randomize on;
        strict_check off;
        exclusive_tail on;
}

timer
{
        counter 5;
        interval 5 seconds;
        persend 1;
        phase1 15 seconds;
        phase2 15 seconds;
}

# Connection "OpenBSD Gateway"
remote 192.149.131.95
{
        verify_cert off;
        verify_identifier off;
        initial_contact on;
        passive off;
        support_proxy off;
        generate_policy off;
        verify_cert off;
        send_cert on;
        send_cr on;
        mode_cfg off;
        ike_frag on;
        doi ipsec_doi;
        situation identity_only;
        nat_traversal off;
        exchange_mode main;
        proposal_check obey;
        nonce_size 16;
        my_identifier address;
        peers_identifier address;
        proposal
        {
                lifetime time 1800 seconds;
                encryption_algorithm aes 256;
                hash_algorithm sha1;
                authentication_method pre_shared_key;
                dh_group modp1024;
        }
}

sainfo subnet 172.16.175.4/32 any subnet 10.20.30.0/23 any
{
        lifetime time 1800 seconds;
        pfs_group modp1024;
        encryption_algorithm des, 3des, aes 256, aes 192, aes 128;
        authentication_algorithm hmac_md5, hmac_sha256;
        compression_algorithm deflate;
}

listen
{
        isakmp 172.16.175.4 [500];
        isakmp_natt 172.16.175.4 [4500];
        adminsock "/Library/Application Support/Lobotomo Software/IPSecuritas/admin.sock";

}
</pre>
<p>You should be in really good shape from this point.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/ipsec-between-openbsd-and-mac-os-x-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup RAID on Ubuntu Desktop</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/setup-raid-on-ubuntu-desktop/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/setup-raid-on-ubuntu-desktop/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 16:37:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=150</guid>
		<description><![CDATA[I have a client who needed a nice little web design station using open source software. One of the requirements is to have RAID. So, having used linux software RAID for about 10 years now, I am very comfortable with it. Unfortunately the installer in Ubuntu Intrepid does not seem to have support for configuring [...]]]></description>
			<content:encoded><![CDATA[<p>I have a client who needed a nice little web design station using open source software. One of the requirements is to have RAID. So, having used linux software RAID for about 10 years now, I am very comfortable with it. Unfortunately the installer in Ubuntu Intrepid does not seem to have support for configuring the software RAID, LVM, Encryption and all that rot.</p>
<p>So let&#8217;s do it from the terminal, Install as normal and then use the following process.</p>
<p>Change the partition types on your disk to <code>0xfd</code>. I reconfigured <code>/dev/sda</code> as follows:</p>
<pre>
root@ubuntu:~# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x965c0f26

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          20      160618+  fd  Linux raid autodetect
/dev/sda2              21       60000   481789350   fd  Linux raid autodetect
/dev/sda3           60001       60801     6434032+  83  Linux
root@ubuntu:~#
</pre>
<p>Then copy that partition table to <code>/dev/sdb</code></p>
<pre>
dd if=/dev/sda of=/dev/sdb count=1 bs=512
</pre>
<p>Now reboot, or Call &#8220;Call ioctl() to re-read partition table.&#8221;</p>
<p>Now it&#8217;s time to install <code>mdadm</code></p>
<pre>
apt-get -f -y install mdadm
</pre>
<p>And finally, setup the RAID</p>
<pre>
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
</pre>
<p>Verify the raid status with:</p>
<pre>
cat /proc/mdstat
</pre>
<p>Change the <code>/etc/fstab</code></p>
<p>instead of LABEL=blahblah</p>
<p>change to /dev/md0</p>
<p><span style="color: red;">I&#8217;m sorry, this is incomplete</span></p>
<p>R</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/setup-raid-on-ubuntu-desktop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iptables troubleshooting</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/iptables-troubleshooting/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/iptables-troubleshooting/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:49:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=86</guid>
		<description><![CDATA[Troubleshooting iptables v1.4.2: Unknown arg `(null)&#8217; Try adding -p to the equation root@host:~# iptables -I OUTPUT &#8211;dport 6660:6669 -j DROP iptables v1.4.2: Unknown arg `(null)&#8217; Try `iptables -h&#8217; or &#8216;iptables &#8211;help&#8217; for more information. root@host:~# iptables -I OUTPUT -p tcp &#8211;dport 6660:6669 -j DROP root@host:~#]]></description>
			<content:encoded><![CDATA[<h3>Troubleshooting</h3>
<h4>iptables v1.4.2: Unknown arg `(null)&#8217;</h4>
<p class="howto">
Try adding -p to the equation
</p>
<p class="pre">
root@host:~# iptables -I OUTPUT &#8211;dport 6660:6669 -j DROP<br />
iptables v1.4.2: Unknown arg `(null)&#8217;<br />
Try `iptables -h&#8217; or &#8216;iptables &#8211;help&#8217; for more information.<br />
root@host:~# iptables -I OUTPUT -p tcp &#8211;dport 6660:6669 -j DROP<br />
root@host:~#</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/iptables-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setup Trac on Ubuntu via APT</title>
		<link>http://www.toddsmith.org/wordpress/uncategorized/setup-trac-on-ubuntu-via-apt/</link>
		<comments>http://www.toddsmith.org/wordpress/uncategorized/setup-trac-on-ubuntu-via-apt/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 05:30:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.toddsmith.org/wordpress/?p=77</guid>
		<description><![CDATA[HOWTO Setup Trac on Ubuntu via APT Installing Trac]]></description>
			<content:encoded><![CDATA[<h2>HOWTO Setup Trac on Ubuntu via APT</h2>
<h3>Installing Trac</h3>
<p class="howto>First start by running <code>apt-get install trac</code>
</p>
<p>Nevermind, I decided not to install Trac</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toddsmith.org/wordpress/uncategorized/setup-trac-on-ubuntu-via-apt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
