<?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>diginc</title>
	<atom:link href="http://diginc.us/feed/" rel="self" type="application/rss+xml" />
	<link>http://diginc.us</link>
	<description>\'dij-iŋk\</description>
	<lastBuildDate>Sat, 13 Feb 2010 20:08:32 +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>Spamato vs SpamBayes [Win7]</title>
		<link>http://diginc.us/2009/10/spamato-vs-spambayes-win7/</link>
		<comments>http://diginc.us/2009/10/spamato-vs-spambayes-win7/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 20:51:54 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Spamato]]></category>
		<category><![CDATA[SpamBayes]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=132</guid>
		<description><![CDATA[Which spam prevention product wins: SpamBayes vs Spamato?  SpamBayes is the clear winner in my mind.
I used Spamato with my outlook 2007 first and recently switched to Spambayes because Spamato simply wouldn&#8217;t work with Windows 7 even after going through an enormous hassle of hacking Microsoft&#8217;s .NET Framework 1.1 installer to get it to install [...]]]></description>
			<content:encoded><![CDATA[<p>Which spam prevention product wins: <a href="http://spambayes.sourceforge.net/">SpamBayes</a> vs <a href="www.spamato.net">Spamato</a>?  SpamBayes is the clear winner in my mind.</p>
<p>I used Spamato with my outlook 2007 first and recently switched to Spambayes because Spamato simply wouldn&#8217;t work with Windows 7 even after going through an enormous hassle of <a href="http://saranspot.blogspot.com/2009/02/installing-dotnet-framework-11-on.html">hacking Microsoft&#8217;s .NET Framework 1.1 installer</a> to get it to install in Windows 7.</p>
<p>I&#8217;m really glad I switched, SpamBayes has amazing accuracy when trained with your Spam/Ham folders.  It even has a &#8216;Junk Suspects&#8217; folder which has caught all (1 or 2) my ham messages which is mistook for spam.  I don&#8217;t think any Ham has ended up in the Junk folder unless it was an automated mail/newsletter and those quickly stopped going to junk after useing the &#8216;recovering from spam&#8217; toolbar button to improve training.</p>
<p>I used Spamato for more than a year and it works fairly well, I liked it and recommended it to others.  Every time I recommended it to a non technical person I cringed a little bit after remembering the fact that it requires a couple, not so simple to explain over the phone, prerequisites.</p>
<p>The finite accuracy seems better in SpamBayes and the installation is definitely a hell of a lot easier than Spamato.  </p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/10/spamato-vs-spambayes-win7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using fail2ban to open back door ports in your iptables</title>
		<link>http://diginc.us/2009/09/using-fail2ban-to-open-back-doors-ports-in-your-iptables/</link>
		<comments>http://diginc.us/2009/09/using-fail2ban-to-open-back-doors-ports-in-your-iptables/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 21:38:26 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[auth2accept]]></category>
		<category><![CDATA[auth2allow]]></category>
		<category><![CDATA[fail2accept]]></category>
		<category><![CDATA[fail2allow]]></category>
		<category><![CDATA[fail2ban]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=108</guid>
		<description><![CDATA[The opposite of fail2ban would probably be called auth2allow (authenticate to allow) or fail2allow &#8211; but that&#8217;s not necessary because fail2ban&#8217;s configs can be customized to do exactly what I&#8217;m talking about.  What am I talking about you ask?  Basically what I&#8217;ve done and am about to explain how to do is setup [...]]]></description>
			<content:encoded><![CDATA[<p>The opposite of <a href="http://www.fail2ban.org">fail2ban</a> would probably be called auth2allow (authenticate to allow) or fail2allow &#8211; but that&#8217;s not necessary because fail2ban&#8217;s configs can be customized to do exactly what I&#8217;m talking about.  What am I talking about you ask?  Basically what I&#8217;ve done and am about to explain how to do is setup fail2ban to look for a successful login on a FTP to allow the authenticated IP to get access to another port that isn&#8217;t as secure as FTP so is usually 100% black listed in IPTables.  It&#8217;s just a hack of a security mechanism to allow your self or others into places securely through obscure means.  Like most security it&#8217;s not perfect but it seems pretty solid in my mind.  </p>
<p>If someone can authenticate on the FTP (could even be anonymous ftp, but I&#8217;d recommend using a special username you want to specifically grant access) then fail2ban triggers an ALLOW command for their IP on some port (or all ports), for example SSH (22) or apache https (443) with a private site on it that you want to keep private and totally hidden from the internet at large.  This concept could really apply to anything.  Any command IPTables can run can be triggered through something fail2ban sees in a log file basically, the possibilities are endless.  In my example I&#8217;ll use https, port 443, but in real life I&#8217;m using an obscure port number and the program running on it that is not very secure by default.</p>
<p>So here are my slightly modified configuration files for setting up a custom fail2ban service that does the opposite of what fail2ban typically does.</p>
<p><span id="more-108"></span></p>
<p>In /etc/fail2bain/jail.conf I added:</p>
<pre>
 [vsftpd2allow443]

 enabled  = true
 port     = 443
 filter   = vsftpd-2-https
 banaction = iptables-accept-https
 logpath  = /var/log/vsftpd.log
 maxretry = 1
 bantime  = -1
</pre>
<p>filter has to match the name of the corresponding file in the <code>/etc/fail2ban/filter.d</code> folder.  banaction has to match the corresponding file in the <code>/etc/fail2ban/action.d</code> folder.  Max retry is 1 so the person doesn&#8217;t need to successfully login to the FTP more than once to get access to our secret port back door.  Bantime -1 should add the person for ever.  For added security try <code>bantime = 86400</code> for 1 days access (bantime uses seconds).</p>
<p>Next make a copy of a default action for a template:</p>
<pre>
 cp -vip /etc/fail2ban/action.d/iptables.conf /etc/fail2ban/action.d/iptables-accept-https.conf
</pre>
<p>Then modify all the DENYs to ACCEPT and change the port:</p>
<pre>
 actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
 # Becomes
 actionban = iptables -I fail2ban-<name> 1 -s <ip> -j ACCEPT

 actionunban = iptables -D fail2ban-<name> -s <ip> -j DROP
 # Becomes
 actionunban = iptables -D fail2ban-<name> -s <ip> -j ACCEPT

 port = ssh
 # Becomes
 port = 443
</pre>
<p>And lastly you need your fail2ban filter that watches vsftpd for successful authenticions of our special user who gets special ports opened up for them.  Since I&#8217;m using vsftpd as my FTP I just copied it&#8217;s current filter and modified it to look for good auths instead of bad auths. </p>
<pre>
 cp -vip /etc/fail2ban/filter.d/vsftpd.conf /etc/fail2ban/filter.d/vsftpd-2-accept-https.conf
</pre>
<p>Change &#8216;<code>specialuser</code>&#8216; to whatever FTP user you want to gain special access to your server.</p>
<pre>
 failregex = vsftpd(?:\(pam_unix\))?(?:\[\d+\])?:.* authentication failure; .* rhost=<HOST>(?:\s+user=\S*)?\s*$
     \[.+\] FAIL LOGIN: Client "<HOST>"\s*$
 # Becomes
 failregex = vsftpd(?:\(pam_unix\))?(?:\[\d+\])?:.* authentication failure; .* rhost=<HOST>(?:\s+user=\S*)?\s*$
     \[specialuser\] OK LOGIN: Client "<HOST>"\s*$
</pre>
<p>If you&#8217;re not using VFTPd then fail2ban has many other popular linux FTP client&#8217;s setup in the filter.d folder.  You should also look in your log file (<code>ls /var/log/*ftp*</code> should find it) to find out what syntax it uses to denote a successful FTP login because it will most likely be different than what VSFTPd uses.</p>
<p>Now you just need to remember the password for your <code>specialuser</code> and you just FTP to your server with that login from any computer in the world to open your hidden port to access your secret content.  This idea is mostly for personal use and I recommend against trying to have any beginner users use this as a mechanism for accessing content or even using it in a serious This slight modification isn&#8217;t revolutionary or anything and I may not be the first to come up with it but it definitely isn&#8217;t a well search indexed idea so I thought I&#8217;d throw this out there for others.</p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/09/using-fail2ban-to-open-back-doors-ports-in-your-iptables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My linux Quake 3 dedicated server setup notes (Ubuntu 9.04 server)</title>
		<link>http://diginc.us/2009/09/my-linux-quake-3-dedicated-server-setup-notes-ubuntu-9-04-server/</link>
		<comments>http://diginc.us/2009/09/my-linux-quake-3-dedicated-server-setup-notes-ubuntu-9-04-server/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 16:18:02 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=93</guid>
		<description><![CDATA[Not really a tutorial, mostly notes to my self so I remember how it&#8217;s done down the road.

adduser q3ds
cd /home/q3ds

Find linuxq3apoint-1.32b-3.x86.run, wget or upload to the q3ds user folder

chmod +x linuxq3apoint-1.32b-3.x86.run
./linuxq3apoint-1.32b-3.x86.run

# Returns...
# Verifying archive integrity...tail: cannot open `+6' for reading: No such file or directory
# Error in check sums 579851737 212141158
# This should fix that [...]]]></description>
			<content:encoded><![CDATA[<p>Not really a tutorial, mostly notes to my self so I remember how it&#8217;s done down the road.</p>
<p><span id="more-93"></span></p>
<pre>adduser q3ds
cd /home/q3ds
</pre>
<p>Find <a href="http://www.google.com/search?q=linuxq3apoint-1.32b-3.x86.run">linuxq3apoint-1.32b-3.x86.run</a>, wget or upload to the q3ds user folder</p>
<pre>
chmod +x linuxq3apoint-1.32b-3.x86.run
./linuxq3apoint-1.32b-3.x86.run

# Returns...
# Verifying archive integrity...tail: cannot open `+6' for reading: No such file or directory
# Error in check sums 579851737 212141158
# This should fix that error: 

export _POSIX2_VERSION=199209
./linuxq3apoint-1.31.x86.run 

# Returns...
# Verifying archive integrity...OK
# Uncompressing Quake III Arena Point Release 1.31 ..................................................................
# This installation doesn't support glibc-2.0 on Linux / x86_64
# Please contact Id software technical support at bugs@idsoftware.com
# The program returned an error code (1)
# OK, time for another fix:

sudo apt-get install ia32-libs linux32
# ... press Y <enter> to confirm install

# Try again with 32bit emulation

linux32 ./linuxq3apoint-1.31.x86.run 

# Go through the install and change the install path to /home/q3ds/quake3/
</pre>
<p>Copy/FTP baseq3/pak0.pk3 off our CD or backup into your /home/q3ds/quake3/baseq3 folder.</p>
<p>These are my console screens for running q3ded behind the scenes, they&#8217;re setup for my mod of choice &#8211; <a href="http://weaponsfactory.planetquake.gamespy.com/Quake3/">WFA</a> (whose install files are located @ <a href="http://bitblender.net">bitblender.net</a>:</p>
<p>q3start:</p>
<pre>
#!/bin/bash
echo "Starting WFA Server"
sleep 1
cd /home/q3ds/quake3
screen -L -A -m -d -S wfa-server ./q3ded +set fs_game wfa +set dedicated  2 +set sv_pure 0 +set gametype 4 +exec wfa-server.cfg
</pre>
<p>q3stop:</p>
<pre>
#!/bin/sh
screen -dr wfa-server -X quit
echo "Killing off wfa-server...";
</pre>
<p>q3restart:</p>
<pre>
#!/bin/bash
echo "Restarting WFA Server"
sleep 1
/home/q3ds/scripts/q3stop
sleep 1
/home/q3ds/scripts/q3start
</pre>
<p>q3console (ctrl+A+D to detach from console):</p>
<pre>
#!/bin/sh
sudo screen -x wfa-server
</pre>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/09/my-linux-quake-3-dedicated-server-setup-notes-ubuntu-9-04-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNUmp3d init.d with PIDs for running multiple instances of GNUmp3d</title>
		<link>http://diginc.us/2009/09/gnump3d-init-d-with-pids-for-running-multiple-instances-of-gnump3d/</link>
		<comments>http://diginc.us/2009/09/gnump3d-init-d-with-pids-for-running-multiple-instances-of-gnump3d/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 05:07:15 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gnump3d]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[invoke-rc.d]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=73</guid>
		<description><![CDATA[I made some modifications to my original gnump3d init.d script when I needed more than one instance of GNUmp3d running (for multiple folders completely separated).  I still haven&#8217;t quite figured out how to get the tag database to work for my second GNUmp3d instance, if anyone can help please leave a comment.  Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I made some modifications to my original gnump3d init.d script when I needed more than one instance of GNUmp3d running (for multiple folders completely separated).  I still haven&#8217;t quite figured out how to get the tag database to work for my second GNUmp3d instance, if anyone can help please leave a comment.  Here&#8217;s the script and some brief instructions:</p>
<p><span id="more-73"></span></p>
<p>/etc/init.d/gnump3d :</p>
<pre>
#!/bin/bash

gmconfig="/etc/gnump3d/gnump3d.conf"
gmport="54321"
gmpidfile="/var/run/gnump3d_$gmport.pid"

case "$1" in
start)
  if [ -f $gmpidfile ] ; then
    echo "GNUmp3d already running on port $gmport"
  else
    echo "Starting GNUmp3d."
    /usr/bin/gnump3d --background -config $gmconfig --port $gmport
    sleep 1
    ps -ef | grep -v "grep" | grep "config $gmconfig" | cut -c10-15 > $gmpidfile
  fi
;;
stop)
  if [ -f $gmpidfile ] ; then
    echo "Shutting down GNUmp3d."
    /bin/kill -9 $(cat $gmpidfile)
    rm $gmpidfile
  else
    echo "GNUmp3d isn't running on port $gmport yet"
  fi

;;
restart)
  $0 stop
  $0 start
;;
status)
  if [ -f $gmpidfile ] ; then
    echo "GNUmp3d running on port $gmport with config $gmconfig and pid $(cat $gmpidfile)"
    echo $(ps -ef | grep -v "grep" | grep "config $gmconfig")
    #echo
    # code to display the other instance of gnump3d here...
  else
    echo "GNUmp3d isn't running yet"
  fi
;;
*)
  echo "Usage: $0 {start|stop|restart|status}"
  exit 1
esac

exit 0
</pre>
<p>To run more than one copy of gnump3d with this simply make a copy of this script and call it something like gnump3d_2.</p>
<pre>sudo cp -vip /etc/init.d/gnump3d /etc/init.d/gnump3d_2</pre>
<p>Then change the new init.d script to point to your new config and port (pid file auto updates by port #).</p>
<pre>
gmconfig="/etc/gnump3d/gnump3d_2.conf"
gmport="54322"
</pre>
<p>Make a copy of the stock gnump3d config and modify the necessary lines.</p>
<pre>sudo cp -vip /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d_2.conf</pre>
<p>In my config I modified these lines:</p>
<pre>
port = 54322
root = /home/gnump3d_2
user = gnump3d_2
logfile = /var/log/gnump3d/access_2.log
errorlog = /var/log/gnump3d/error_2.log
now_playing_path = /var/cache/gnump3d_2/serving
tag_cache = /var/cache/gnump3d_2/song.tags
</pre>
<p>And lastly we&#8217;ll need to make the cache drectories:</p>
<pre>mkdir /var/cache/gnump3d_2/
mkdir /var/cache/gnump3d_2/serving
chmod -R 777 /var/cache/gnump3d_2
touch /var/cache/gnump3d_2/song.tags
</pre>
<p>And then you&#8217;re set to startup the second gnump3d instance.</p>
<pre>/etc/init.d/gnump3d_2 start</pre>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/09/gnump3d-init-d-with-pids-for-running-multiple-instances-of-gnump3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu SABnzbd+ protected by an apache2 proxy and htpasswd</title>
		<link>http://diginc.us/2009/02/ubuntu-sabnzbd-protected-by-an-apache2-proxy-and-htpasswd/</link>
		<comments>http://diginc.us/2009/02/ubuntu-sabnzbd-protected-by-an-apache2-proxy-and-htpasswd/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 00:00:48 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[sabnzbd]]></category>
		<category><![CDATA[usenet]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=35</guid>
		<description><![CDATA[Basic SABnzbd+ Setup &#8211; SAB for short.
There are plenty of tutorials out there which cover configuring a normal SAB installation so I won&#8217;t cover that here.  What I am going to do is make my SAB available through a web accessible passworded page, this can be accomplished with default SAB features by putting a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Basic SABnzbd+ Setup</strong> &#8211; SAB for short.</p>
<p>There are plenty of tutorials out there which cover configuring a normal SAB installation so I won&#8217;t cover that here.  What I am going to do is make my SAB available through a web accessible passworded page, this can be accomplished with default SAB features by putting a web username/password in the general configuration section.  However I find it annoying to have to enter the password when I&#8217;m on my internal 192.168 home network just to make it protected from the outside, and I don&#8217;t like the way it presents the username/password prompt in a website form rather than an generic apache pop-up.  I&#8217;m sure open accessibility could be fixed in the SABnzbd+ code but I&#8217;m not a pro python hacker yet so I&#8217;ll just stick to what I know.</p>
<p>Basically I want a generic pop-up password that is only for people outside my network so I&#8217;m not bothered with SAB passwords while at home (And I can&#8217;t get <a href="https://nzbdstatus.bountysource.com/">nzbdStatus</a> to work with a pass enabled).  The htpasswd also acts as a bit of camouflage and additional security.  There are some concepts which aren&#8217;t covered here which are required, you need to know how to configure your own SAB servers, Portforwarding or Firewall/iptables.</p>
<p>If you&#8217;re using a router, you&#8217;re going to want to make sure you&#8217;re not port forwarding the default SAB port of 8080 (which would make it wide open) and only are forwarding the apache2 port you setup for the SAB proxy.  If you&#8217;re not on an internal IP subnet and have a static IP assigned directly to the linux machine you&#8217;re doing this on then I expect you have enough knowledge of IPTables to block the SAB port and allow the proxy port.</p>
<p><span id="more-35"></span></p>
<p><strong>SABnzbd Daemon (optional)</strong></p>
<p>Download the latest SABnzbd version from http://www.sabnzbd.org/download/ to your favorite place to install python apps and optionally install a deamon to auto start SAB: <a href="http://artur.hefczyc.net/node/10">http://artur.hefczyc.net/node/10</a>.  Mine is modified to include a restart command:</p>
<p><code><br />
#!/bin/sh<br />
# Source: http://sabnzbd.wikidot.com/install-as-a-unix-daemon<br />
case "$1" in<br />
start)<br />
echo "Starting SABnzbd."<br />
/usr/bin/sudo -u sabuser -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /home/sabuser/.sabnzbd/sabnzbd.ini<br />
;;<br />
stop)<br />
echo "Shutting down SABnzbd."<br />
/usr/bin/wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=shutdown"<br />
;;<br />
restart)<br />
$0 stop<br />
$0 start<br />
;;<br />
*)<br />
echo "Usage: $0 {start|stop|restart}"<br />
exit 1<br />
esac<br />
exit 0<br />
</code><br />
At this point I&#8217;ll assume you have a working sabnzbd installation and have tested to confirm it&#8217;s working.</p>
<p><code>vi /home/sabuser/.sabnzbd/sabnzbd.ini</code><br />
Change <code>host = localhost</code> to <code>host = 192.168.0.53</code> to make it accessible from elsewhere besides the box running SAB.<br />
That&#8217;s all you need to do with SAB other than configure servers and preferences.</p>
<p><strong>Apache Proxy Setup</strong><br />
<code><br />
apt-get install apache2<br />
htpasswd -c /usr/local/src/SABnzbd/.htpasswd username # Enter your password when prompted<br />
a2enmod proxy<br />
a2enmod proxy_http<br />
a2enmod proxy_html</code></p>
<p>Ubuntu mod_proxy Denies all but default so you&#8217;ll need to make a similar modification to what follows &#8211; see your Apache error files for something like  if your proxy isn&#8217;t working.  You can either change <code>Deny from all</code> to <code>Allow from all</code> if you expect to be using it from any external IP address or individual IPs you&#8217;ll expect needing access (work IP).  In my case 192.168.0.1 port forwards so that&#8217;s the only one I need but I put in my entire internal subnet for testing purposes.<br />
<code>vi /etc/apache2/mods-enabled/proxy.conf</code><br />
<code>&lt;Proxy *&gt;<br />
  AddDefaultCharset off<br />
  Order deny,allow<br />
  Deny from all<br />
  Allow from 192.168.0.0/24<br />
&lt;Proxy&gt;</code></p>
<p>Add something like this to your apache2 vhost config (logs are optional)<br />
<code>vi /etc/apache2/conf.d/vhosts.conf</code><br />
<code><br />
Listen 8001 # Use whatever port you want, I usually use obscure ports that aren't regularly scanned.<br />
NameVirtualHost 192.168.0.53:8001  # Change 192.168.0.53 to whatever your SAB server's IP is (make sure it's static too).<br />
</code><code><br />
&lt;VirtualHost 192.168.0.53:8001&gt;<br />
ServerName sabuser.dyndns.org # Enter your hostname or <strong>static</strong> IP address here.  I use dyndns.org since I have a dynamic IP<br />
ProxyPass /sabnzbd http://192.168.0.53:8080/sabnzbd/<br />
ProxyPassReverse /sabnzbd http://192.168.0.53:8080/sabnzbd/<br />
ProxyPreserveHost On<br />
# Password Protect the external proxy only.<br />
&lt;Location /sabnzbd&gt;<br />
AuthUserFile /usr/local/src/SABnzbd/.htpasswd<br />
AuthName "Authenticate Yourself."<br />
AuthType Basic<br />
Require valid-user<br />
&lt;/Location&gt;<br />
# Alternate method, requires rewrite mod:<br />
#RewriteEngine   on<br />
#RewriteRule     (.*) http://192.168.0.53:8080/sabnzbd/$1 [P]<br />
&lt;/VirtualHost&gt;<br />
</code></p>
<p>References</p>
<p># Apache Proxy<br />
<a href="http://snippets.dzone.com/posts/show/1318">http://snippets.dzone.com/posts/show/1318</a><br />
<a href="http://mail-archives.apache.org/mod_mbox/httpd-users/200307.mbox/%3C20030723191854.43885.qmail@web40903.mail.yahoo.com%3E">http://mail-archives.apache.org/mod_mbox/httpd-users/200307.mbox/%3C20030723191854.43885.qmail@web40903.mail.yahoo.com%3E</a><br />
<a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html">http://httpd.apache.org/docs/2.2/mod/mod_proxy.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/02/ubuntu-sabnzbd-protected-by-an-apache2-proxy-and-htpasswd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MRTG Indexmaker Interface + Description</title>
		<link>http://diginc.us/2009/02/mrtg-indexmaker-interface-description/</link>
		<comments>http://diginc.us/2009/02/mrtg-indexmaker-interface-description/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 23:26:59 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://diginc.us/uncategorized/mrtg-indexmaker-interface-description/</guid>
		<description><![CDATA[I like to have interfaces and description, not one or the other.  So I do this.  Use your favorite editor to open indexmaker: vi /usr/bin/indexmaker
Find this part:

for ($$opt{section}) {
#    ...Skip ahead to descr...
            /^descr(iption)?$/ &#038;&#038;
     [...]]]></description>
			<content:encoded><![CDATA[<p>I like to have interfaces and description, not one or the other.  So I do this.  Use your favorite editor to open indexmaker: <code>vi /usr/bin/indexmaker</code></p>
<p>Find this part:<br />
<code><br />
for ($$opt{section}) {<br />
#    ...Skip ahead to descr...<br />
            /^descr(iption)?$/ &#038;&#038;<br />
              do{<br />
                  $section = "No Description for $item";<br />
                  $$rcfg{setenv}{$item} =~ /MRTG_INT_DESCR="(.+?)"/  #"<br />
                        and $section = $1;<br />
                  $$rcfg{pagetop}{$item} =~<br />
                          m,&lt;td>Description:&lt;/td&gt;\s*&lt;td&gt;\Q$section\E\s*([^&lt; ][^&gt;]+?)</td>
<p>,i<br />
                        and $section = $1;<br />
                  last;<br />
              };<br />
</code></p>
<p>The first &#8220;<code>and $section = $1;</code>&#8221; is a catch all to assign the interface name if there&#8217;s no description.  The second one overwrites it, replacing the int name if it does find a description.  So all you need to do is modify the second instance of &#8220;and $section = $1;&#8221;  to:</p>
<p><code>and $section = $section . " - " . $1;</code></p>
<p>And your MRTG index is infinitely improved!</p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/02/mrtg-indexmaker-interface-description/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Outlook 2007: None of the Authentication Methods Supported By This Client Are Supported By Your Server</title>
		<link>http://diginc.us/2009/02/outlook-2007-none-of-the-authentication-methods-supported-by-this-client-are-supported-by-your-server/</link>
		<comments>http://diginc.us/2009/02/outlook-2007-none-of-the-authentication-methods-supported-by-this-client-are-supported-by-your-server/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 22:17:04 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Bug by Design]]></category>
		<category><![CDATA[Outlook 2007]]></category>
		<category><![CDATA[Outlook 2k7]]></category>
		<category><![CDATA[SMTP Authentication]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=42</guid>
		<description><![CDATA[Can&#8217;t send from certain locations and keep having to turn on/off outgoing server SMTP Authentication in outlook 2007?  You might see this error too: &#8220;None of the Authentication Methods Supported By This Client Are Supported By Your Server&#8221;
My Answer:  Goto Email Accounts, Change the problem account, More Settings, Outgoing Server tab, and check [...]]]></description>
			<content:encoded><![CDATA[<p>Can&#8217;t send from certain locations and keep having to turn on/off outgoing server SMTP Authentication in outlook 2007?  You might see this error too: &#8220;<strong>None of the Authentication Methods Supported By This Client Are Supported By Your Server</strong>&#8221;</p>
<p>My Answer:  Goto Email Accounts, Change the problem account, More Settings, Outgoing Server tab, and check outgoing server require authentication and choose &#8220;Log on to incoming mail server before sending mail&#8221; instead of &#8220;Use same settings as incoming&#8221; &#8211; Outlook 2007 is the first and only mail program to require any of our mail servers to use this setting.  So far I&#8217;ve only confirmed the problem to be on older sendmail servers.  There can be other solutions to this error message but this is one I find most often resolves it.</p>
<p>The Question:  As a systems administrator I take calls for our tech support queue and one user called with a really odd problem.  Basically it&#8217;s detailed here:</p>
<p>http://thepursuitofalife.com/outlook-2007-error-none-of-the-authentication-methods-supported-by-this-client-are-supported-by-your-server/</p>
<p>Like the above link describes the user would have to disable SMTP auth in certain locations (That&#8217;s a workaround, not the solution), even though all our servers require SMTP authentication.  The above link eventually shares the true solution but it&#8217;s buried under many comments thanking the poster for the work around.  So I decided to help fellow googlers by making this post.</p>
<p>Update: Comments about other people&#8217;s experience with this error made me want to add my further experience with it.  I&#8217;ve seen this error a lot more often since I first made this post and am convinced it&#8217;s really some sort of bug with Outlook 2007.  Some people cannot get rid of the error and have to continually switch between &#8220;Log on to incoming mail server before sending mail&#8221; and &#8220;Use same settings as incoming&#8221; to keep outlook sending correctly.   Whereas if they switch to Windows Mail (The Vista and Windows 7 equivalent of outlook express) they never need to do anything but set &#8216;use same settings as incoming&#8217; and never have any problem sending.  If it&#8217;s not a &#8216;2007 Bug&#8217; then it&#8217;s definitely a Outlook 2007 incompatibility with certain MTAs &#8211; specifically (maybe just older) sendmail &#8211; our postfix servers don&#8217;t seem to have this bug, but like I just said only 2007 has this incompatibility so you can&#8217;t entirely blame sendmail.</p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/02/outlook-2007-none-of-the-authentication-methods-supported-by-this-client-are-supported-by-your-server/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Windows 7 &#8211; What I do after installing</title>
		<link>http://diginc.us/2009/01/windows-7-what-i-do-after-installing/</link>
		<comments>http://diginc.us/2009/01/windows-7-what-i-do-after-installing/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 16:23:02 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=25</guid>
		<description><![CDATA[I thought I&#8217;d make a list of applications I usually need after a fresh windows install and what order I install them in.  Since this time I&#8217;m using Windows 7 (W7) Beta I&#8217;ll be commenting about major differences I take notice of about W7 along the way too &#8211; I&#8217;ve had tastes of Vista [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d make a list of applications I usually need after a fresh windows install and what order I install them in.  Since this time I&#8217;m using Windows 7 (W7) Beta I&#8217;ll be commenting about major differences I take notice of about W7 along the way too &#8211; I&#8217;ve had tastes of Vista before so I know my way around their new control panel and other menu changes.  Note I&#8217;m running the 64-bit version so some of my links are to 64-bit apps/drivers.</p>
<p>Windows 7 bugged me about anti virus right away so I grabbed that first&#8230;<br />
<span id="more-25"></span><br />
<a href="http://free.avg.com/">AVG Free</a><br />
<a href="http://ie7.com/">Firefox 3</a><br />
Nvidia video drivers, found out they&#8217;re integrated in windows update for W7 Beta.<br />
<a href="http://www.uvnc.com/download/">UltraVNC</a> (for work)<br />
<a href="http://store.steampowered.com/about/">Steam</a> (For Team Fortress 2 and Left 4 Dead)<br />
Set my workgroup to reach my samba shares (control panel > system > change settings > workgroup)</p>
<p>W7 Then bugged me about a product key so I registered a windows live account and they emailed me one after a few steps through their site (Looks like they haven&#8217;t run out of their 2.5M keys yet)</p>
<p>While I was browsing some websites I noticed something foreign to me&#8230;ads, I realized I had forgotten the holy grail of Firefox addons, <a href="https://addons.mozilla.org/en-US/firefox/addon/1865">adblock+</a> and <a href="https://addons.mozilla.org/en-US/firefox/addon/1136">Filterset.g</a>.  Continuing my application installs&#8230;</p>
<p><a href="http://asia.creative.com/support/downloads/download.asp?MainCategory=1&#038;nRegionFK=&#038;nCountryFK=&#038;nLanguageFK=&#038;sOSName=Windows+Vista+64-bit&#038;region=2&#038;Product_Name=X-Fi+XtremeMusic&#038;Product_ID=14066&#038;modelnumber=&#038;driverlang=1033&#038;OS=27&#038;drivertype=0&#038;x=18&#038;y=9">Creative SBX-Fi Drivers</a><br />
<a href="http://www.foobar2000.org/">Foobar 2000</a> (music)<br />
<a href="http://www.videolan.org/vlc/">VLC</a> (video)<br />
<a href="http://www.cccp-project.net/">CCCP</a> (Video Codecs &#038; MPC)<br />
<a href="http://www.logitech.com/index.cfm/434/180&#038;cl=us,en?osid=13">Logitech G15</a> Keyboard Drivers.<br />
<a href="http://www.ventrilo.com/download.php">Ventrilo</a><br />
<a href="http://www.rarlab.com/download.htm">WinRar</a> (surprised I didn&#8217;t need it before now!)<br />
<a href="http://www.foxitsoftware.com/pdf/rd_intro.php">Foxit Reader</a> (Free Adobe Acrobat replacement &#038; improvement)<br />
<a href="http://www.geocities.com/davidayton/CDisplay">CDisplay</a> (aka Comic Book Reader)</p>
<p>I then &#8220;unpinned&#8221; Window Media Player and Internet Explorer from W7&#8217;s new taskbar and pinned Foobar and FF3 instead.  The new taskbar is a nice merger of quick launch icons and task bars applications.  </p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/01/windows-7-what-i-do-after-installing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up my HDTV HTPC with xUbuntu 8.10</title>
		<link>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/</link>
		<comments>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 23:36:26 +0000</pubDate>
		<dc:creator>Adam BH</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[hdtv]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=3</guid>
		<description><![CDATA[Here my chronicle of fixes and tasks I had to go through while setting up my HDTV HTPC / home server.
I upgraded from an older xUbuntu to xUbuntu 8.10 64-bit and the first thing I had to do is restore the windows file share where I backed up configurations, samba shares, and my Adaptec SATA [...]]]></description>
			<content:encoded><![CDATA[<p>Here my chronicle of fixes and tasks I had to go through while setting up my HDTV HTPC / home server.</p>
<p>I upgraded from an older xUbuntu to xUbuntu 8.10 64-bit and the first thing I had to do is restore the windows file share where I backed up configurations, samba shares, and my Adaptec SATA Raid 1210SA.  Then I had to conquer ATI&#8217;s proprietary drivers and restore my previous install&#8217;s server functionality.  Next time I&#8217;ll be finishing up the HTPC portion by configuring my TV Tuner with mythTV and installing Boxee as well &#8211; and maybe integrating the two together if possible.<br />
<span id="more-3"></span></p>
<p>Note: you can copy paste the code commands with the &#8220;<code># comments</code>&#8221; at the end because Linux will ignore everything after the #</p>
<p><b>Network Shares and Raid</b><br />
<code><br />
apt-get install samba # for sharing my raid storage across the network<br />
apt-get install smbfs # for mount.cifs to mount windows file shares<br />
apt-get install nfs-common # for the other mount types<br />
apt-get install dmraid # for my Adaptec SATA 1210SA Raid card (x2 320GB drives)<br />
apt-get install vim # because vi drives you insane after using vim<br />
</code></p>
<p>With the right programs installed I could reach my backups, test/setup my mounts permanently, and setup samba so I can start listening to my music right away again.<br />
<code><br />
mkdir /media/a-computer; mkdir /media/a-computer/backup # make a folder to mount to<br />
mount.cifs //192.168.0.51/backup /media/a-computer/backup -o guest,rw # mount my windows backups share<br />
tail -3 /media/a-computer/backup/fstab  >> /etc/fstab  # copy old fstab permanent mounts to new fstab<br />
</code><code><br />
tail -3 /media/a-computer/backup/fstab # outputs<br />
/dev/mapper/asr_1 /media/windows ntfs rw        0 0<br />
//192.168.0.51/usenet /media/a-computer/usenet cifs guest,rw,mand 0 0<br />
</code></p>
<p><b>Video Setup</b></p>
<p>I&#8217;m plugged into my Panasonic Viera 42&#8243; HDTV through an ATI HD2600XT and DVI-I to HDMI cable (from <a href="http://www.monoprice.com">monoprice</a>).  After installing xUbuntu 8.10 on a CRT Monitor (so I could read the text) I switched video cables and plugged in my HDTV only.  It booted into X with VESA drivers on &#8220;Default&#8221; resolution (not sure what res.,it wasn&#8217;t HD, but it worked on my TV somehow) and first thing that was obviously needing fixed is the text was too small to read.  </p>
<p>I quickly remembered you can&#8217;t fix the font size problems high resolutions in the XFCE menus.  You have to make a config change for X:<br />
<code>echo "Xft.dpi: 96" >> ~/.config/xfce4/Xft.xrdb</code></p>
<p>To install the video drivers I decided to just go through the menus instead of attempting it through command line (if you need to use apt-get I believe you need to manually add the proprietary apt-get rep source).  I went to Applications > System > Hardware Drivers > And There were ATI/AMD Proprietary drivers &#8211; after one click it launched the package manager and installed fglrx for me, very painless.  I also ran updates and rebooted at this time.</p>
<p>I had some issues with the fglrx video driver at first but to make a long story short, here&#8217;s how I finally got a good xorg.conf for it.<br />
<code><br />
dpkg-reconfigure xserver-xorg # This helped the next step make a more complete config<br />
aticonfig --initial # Before I ran the above step, this generated a very minimual xorg.conf<br />
aticonfig --resolution=0,1920x1080,1280x720 # Set my HDTV resolutions<br />
service gdm restart # Restart X and test new xorg.conf - booted into 1920x1080 for me<br />
</code></p>
<p>Being in 1080p resolution caused fonts to look a lot smaller, even with the xfce font DPI fix, so I increased font sizes in the menus: Applications > Settings > Settings Manager > User Interface &#038; Windows Manager.  I also increased the Panel sizes to 41 to make Icons bigger.  </p>
<p>Switching to fglrx enabled HD resolutions but it also gave me black bars around my screen.  To fix this at first I was trying to utilize the aticonfig&#8217;s overscan tv functions since I&#8217;m using a TV.  however my display isn&#8217;t detected as a &#8220;TV&#8221; type for whatever reason, as this shows:<br />
<code># aticonfig --query-monitor<br />
Connected monitors: tmds1<br />
Enabled monitors: tmds1</code><code><br />
aticonfig --tv-info<br />
The TV is not connected<br />
The TV geometry is "0x0+0+0"<br />
</code></p>
<p>After a lot of Googling and experimenting with various aticonfig commands I came to this solution: <code>aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0</code> &#8211; This fixed my underscan black bars but isntead created an overscan problem (screen was bigger than TV borders).  I managed to fix this by tweaking the resolution (not sure if this causes pixel stretching but it doesn&#8217;t look bad &#8211; may just be a work around).  Here&#8217;s my overscan fix autostart script which lowers my resolution and bump the screen into center position:<br />
<code>#!/bin/bash<br />
# Add this script to autostarting apps, these commands don't seem to save<br />
aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0<br />
# X was over by 28 pixels on each side (1920 normal)<br />
aticonfig --set-dispattrib=tmds1,sizeX:1866<br />
aticonfig --set-dispattrib=tmds1,positionX:+28<br />
# Y was over by 16 pixels on each side (1080 normal)<br />
aticonfig --set-dispattrib=tmds1,sizeY:1048<br />
aticonfig --set-dispattrib=tmds1,positionY:+16<br />
</code><br />
X/Y overscan values needing adjustment may be different for you</p>
<p><b>Diversion 001</b><br />
With my video completely setup I needed to test it out:<br />
<code>sudo apt-get install vlc</code><br />
I checked out some videos, normal video started skipping, HDVideos were artifacting, skipping, and top showed them taking over 50% of my CPU most of the time&#8230;that&#8217;s not right, never had this problem on my previous installs (windows XP or xubuntu 8.04).  Investigation revealed my CPU frequency is set to the minimum of 1000mhz of 2200mhz max.  Google revealed an application I hadn&#8217;t heard of before that was quite easy to use and fixed this problem:<br />
<code>apt-get install cpufrequtils<br />
cpufreq-set -g performance # Sets frequency to max</code></p>
<p>I thought that was very odd, maybe a bug with Intrepid Ibex?</p>
<p><b>Torrents, usenet/Sabnzbd, and GNUMp3D</b></p>
<p>Next I setup my uTorrent webui to act as a central torrent server for my home.  If you need instructions on setting up webui see <a href="http://forum.utorrent.com/viewtopic.php?id=14565">uTorrent&#8217;s webui post</a>.  I already set it up in wine previously so I&#8217;m just restoring from a backup here: </p>
<p><code>sudo apt-get isntall wine # We need wine to run uTorrent<br />
cp -vip /media/a-computer/backup/uTorrent.exe .~/wine/drive_c/Program\ Files/uTorrent/  # Get the exe<br />
rsync -aP /media/a-computer/backup/adam/.wine/drive_c/windows/profiles/adam/Application\ Data/uTorrent/ ~/.wine/drive_c/windows/profiles/adam/Application\ Data/uTorrent/ # I need the app data folder where webui is saved<br />
cp -vip root/startup-uTorrent.sh /home/adam # Copy my startup script<br />
cat /home/adam/startup-uTorrent.sh # It's a simple script needed for auto start on boot<br />
#!/bin/sh<br />
wine /home/adam/.wine/drive_c/Program\ Files/uTorrent/uTorrent.exe &#038;<br />
</code></p>
<p>Then I add the script to the startup applications list through Applications > Settings > Settings Managed > Autostarted apps > Add > Then Enter a description and the path /home/adam/startup-uTorrent.sh</p>
<p>References:</p>
<p>http://ubuntuforums.org/showthread.php?t=225721</p>
<p>http://www.phoronix.com/forums/showthread.php?p=36734#post36734</p>
<p>http://ubuntuforums.org/showthread.php?p=5842624</p>
<p>http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils</p>
<p>Brain</p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/feed/</wfw:commentRss>
		<slash:comments>8</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! -->