<?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>Computerglitch Research Project</title>
	<atom:link href="http://www.computerglitch.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.computerglitch.net</link>
	<description></description>
	<lastBuildDate>Thu, 19 Aug 2010 13:53:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Public IP</title>
		<link>http://www.computerglitch.net/?p=492</link>
		<comments>http://www.computerglitch.net/?p=492#comments</comments>
		<pubDate>Wed, 18 Aug 2010 18:36:02 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=492</guid>
		<description><![CDATA[It seems as though every time I try to get my public IP address from [...]]]></description>
			<content:encoded><![CDATA[<p>It seems as though every time I try to get my public IP address from a website I&#8217;m shown a slew of ads, messy formats and otherwise unattractive pages. I was looking for a VERY simple way get my public IP address added into a script I was creating and got frustrated with the options available. </p>
<p><center><a href="http://www.computerglitch.net/ip"><img src="images/ipdisplay.png" border="0"></a></center></p>
<p>I decided to create a very simplistic web page that cleanly displays IP addresses and also supports a back-end for displaying public addresses to the command line as needed. I also worked in a small proxy detector to test if the client is coming from a proxy and display what information it could gather from the client about the proxy. </p>
<p>I will be adding more one line commands to the page as I stumble across them, trying to keep the format of the commands as simple as possible.</p>
<p><center><a href="http://www.computerglitch.net/ip">My IP Address &#8211; Computerglitch Public IP Address Display</a></center></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=492</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Port Relay With Relayd</title>
		<link>http://www.computerglitch.net/?p=464</link>
		<comments>http://www.computerglitch.net/?p=464#comments</comments>
		<pubDate>Fri, 06 Aug 2010 14:19:03 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=464</guid>
		<description><![CDATA[I recently had a project where I needed to move an internal web server to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a project where I needed to move an internal web server to the the external DMZ of the network. The setup originally was using PF to redirect all external connections to port 80 to the internal webserver on port 80. The decision was made to move the internal webserver to the external DMZ for security.<br />
<center><img src="images/openbsd_relayd.png"></center></p>
<p>I had originally planned on setting up the new server in the DMZ giving it a public IP address, updating the DNS record and going happily about my business but I decided to try something a little different. OpenBSD has a very cool load balancing program named <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=relayd.conf&#038;sektion=5">Relayd</a> (which used to be called hoststated). It can be setup to forward, reverse, redirect or accelerate packets.</p>
<p>For my use I wanted Relayd to act as a tcp port relay and redirect all www packets bound for my public IP to be redirected to my webserver in the DMZ, you can see the traffic flow below:</p>
<div class="command">
internet  &#8211;>  relayd forward (box1)  &#8211;>  server (box2)
</div>
<p>
To achieve this I edited my /etc/relayd.conf as follows:</p>
<div class="command">
box1_addr=&#8221;10.1.1.2&#8243;<br />
box1_port=&#8221;80&#8243;<br />
box2_addr=&#8221;10.1.1.3&#8243;<br />
box2_port=&#8221;80&#8243;</p>
<p>## TCP port relay and forwarder<br />
#<br />
protocol &#8220;tcp_service&#8221; {<br />
                   tcp { nodelay, socket buffer 65536 }<br />
           }</p>
<p>           relay &#8220;tcp_forwarder&#8221; {<br />
                   listen on $box1_addr port $box1_port<br />
                   protocol &#8220;tcp_service&#8221;<br />
                   forward to $box2_addr port $box2_port<br />
           }
</p></div>
<p>Once my /etc/relayd.conf setting was in place I started relayd with the following command:</p>
<div class="command">
relayd -f /etc/relayd.conf
</div>
<p>Additionally to make sure Relayd starts at boot time I added the following to my /etc/rc.conf.local file:</p>
<div class="command">
relayd_flags=&#8221;"
</div>
<p>And with that, all web traffic bound for my network is being successfully relayed to my external webserver in the DMZ, no changes to DNS were made.</p>
<p>References: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=relayd&#038;sektion=8&#038;format=html">http://www.openbsd.org/cgi-bin/man.cgi?query=relayd&#038;sektion=8&#038;format=html</a> | <a href="https://calomel.org/relayd.html">https://calomel.org/relayd.html</a>  | <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=relayd.conf&#038;sektion=5&#038;format=html">http://www.openbsd.org/cgi-bin/man.cgi?query=relayd.conf&#038;sektion=5&#038;format=html</a></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=464</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synergy</title>
		<link>http://www.computerglitch.net/?p=430</link>
		<comments>http://www.computerglitch.net/?p=430#comments</comments>
		<pubDate>Wed, 14 Jul 2010 14:14:36 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=430</guid>
		<description><![CDATA[Many of the Synergy instructions I found were redundant and not to the point. I [...]]]></description>
			<content:encoded><![CDATA[<p>Many of the Synergy instructions I found were redundant and not to the point. I have a CentOS box and a Windows XP box I wanted to be able to easily switch between. Instead of using a KVM switch I decided to use Synergy to switch between two monitors (I do a lot of monitoring from my Linux box and like to be able to view my graphs and charts 24/7).<br />
<center><br />
<a title="Synergy" rel="lightbox" href="http://www.computerglitch.net/images/synergyset.jpg" ><img src="/images/synergyset_thumb.jpg" border="0" alt="" /></a><br />
</center><br />
To setup Synergy I first installed it on CentOS:</p>
<p><div class="command">
# yum install synergy
</div>
<p>
You may need to install the RPMforge repository. Details on how to do this are here:<br />
<a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">http://wiki.centos.org/AdditionalResources/Repositories/RPMForge</a></p>
<p>Once Synergy is installed you must configure it. First edit /etc/synergy.conf<br />
For reference my systems are: xp=WindowsXP Box | despina=CentOS Box (replace xp and despina with your system names)</p>
<div class="command">
#vi /etc/synergy.conf
</div>
<div class="command">
section: screens<br />
xp:<br />
despina:</p>
<p>end</p>
<p>section: links</p>
<p>xp:<br />
right = despina</p>
<p>despina:<br />
left = xp</p>
<p>end
</p></div>
<p>This tells Synergy that to access my Windows XP system, move the mouse off the right side of the screen on my CentOS system.</p>
<p>To make Synergy start at bootup I added the following to my /etc/rc.local file:</p>
<div class="command">
# vi /etc/rc.local
</div>
<div class="command">
#!/bin/sh<br />
#<br />
# This script will be executed *after* all the other init scripts.<br />
# You can put your own initialization stuff in here if you don&#8217;t<br />
# want to do the full Sys V style init stuff.</p>
<p>/usr/bin/synergyc -f xp &amp;
</p></div>
<p>This tells Synergy to connect to my Windows XP system at startup. I also wanted to have Synergy start at the very initial login page, to do that I had to do the following:</p>
<div class="command">
Edit /etc/gdm/Init/Default and add the following line at the very end but before exit 0 line:<br />
<br />
/usr/bin/synergyc -f xp &amp;<br />
<br />
Now add the following to the very top (after the #!/bin/sh line) of the /etc/gdm/PreSession/Default file:<br />
<br />
/usr/bin/synergyc -f xp &amp;
</div>
<p>Now to configure my Windows XP system. I simply downloaded and installed from <a href="http://synergy2.sourceforge.net/">http://synergy2.sourceforge.net/</a></p>
<p>Once it was installed I hit the Configure button and setup my screens like the following screenshot:<br />
<center><br />
<a title="Synergy" rel="lightbox" href="http://www.computerglitch.net/images/syn1.jpg" ><img src="/images/syn1_thumb.jpg" border="0" alt="" /></a><br />
</center><br />
And that&#8217;s it. I can now move between systems simply by moving my mouse to the edge of the screen.<br />
<br />
References:  <a href="http://synergy2.sourceforge.net/">http://synergy2.sourceforge.net/</a> | <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">http://wiki.centos.org/AdditionalResources/Repositories/RPMForge</a></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=430</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk IO</title>
		<link>http://www.computerglitch.net/?p=402</link>
		<comments>http://www.computerglitch.net/?p=402#comments</comments>
		<pubDate>Wed, 30 Jun 2010 14:45:13 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=402</guid>
		<description><![CDATA[I recently had some disk IO issues with ESXi using a iSCSI datastore for VM’s. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had some disk IO issues with ESXi using a iSCSI datastore for VM’s. The storage device was a Buffalo Tech Terastation IS Model TS-RIGL/R5 F/W 1.01. This storage device was being used to house our VM&#8217;s including our production email server.</p>
<p><center><a title="Disk IO" rel="lightbox" href="http://www.computerglitch.net/images/read.jpg"><img src="/images/read_thumb.jpg" border="0" alt="" /></a></center><br />
</p>
<p>We started noticing high loads on the email server and noted that the processes weren&#8217;t causing high CPU usage and the memory available was more than enough. Once we ran various tests and eliminated a CPU or memory bottleneck we turned to disk IO. We knew we went out on a limb using cheaper hardware for our storage but had no idea the IO would be this terrible.</p>
<p>A good test to see what kind of write speeds you are getting is to write a file to the disk in question such as:</p>
<div class="command"># time dd if=/dev/zero of=testfile bs=8192 count=488281</div>
<p>This command will write a 4GB file named &#8216;testfile&#8217; to the current location. A good write should come off looking something like this:</p>
<div class="command"># time dd if=/dev/zero of=testfile bs=8192 count=488281<br />
488281+0 records in<br />
488281+0 records out<br />
3999997952 bytes (4.0 GB) copied, 103.593 seconds, 38.6 MB/s</p>
<p>real 1m46.786s<br />
user 0m0.197s<br />
sys 0m7.446s</p>
</div>
<p>However when I ran this command against our Terastation I was getting the following results:</p>
<p><center><a title="Disk IO" rel="lightbox" href="http://www.computerglitch.net/images/diskio.jpg"><img src="/images/diskio_thumb.jpg" border="0" alt="" /></a></center><br />
</p>
<p>We have since moved off of the Terastations and are using them solely for backup storage. For backup storage these systems fit the bill perfectly (cheap large capacity, sacrificing disk IO). We moved our production VM&#8217;s to a Dell Powervault MD3000i and performance has improved 10 fold.</p>
<p>You get what you pay for.</p>
<p>Helpful links:<br />
<a href="http://www.linux.com/archive/feature/131063">http://www.linux.com/archive/feature/131063</a><br />
<a href="http://it.toolbox.com/blogs/database-soup/testing-disk-speed-the-dd-test-31069">http://it.toolbox.com/blogs/database-soup/testing-disk-speed-the-dd-test-31069</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=402</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios NRPE on Solaris 8</title>
		<link>http://www.computerglitch.net/?p=353</link>
		<comments>http://www.computerglitch.net/?p=353#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:33:43 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=353</guid>
		<description><![CDATA[First off I installed the nagios plugins on the Solaris server so all of the [...]]]></description>
			<content:encoded><![CDATA[<p>First off I installed the nagios plugins on the Solaris server so all of the commands I would need to monitor the server with remotely would be available. The package I found worked was <a href="http://www.computerglitch.net/other/nagios-plugins-1.3.1_3-sol8-sparc-local">nagios-plugins-1.3.1_3-sol8-sparc-local</a>.</p>
<p><strong>Make sure you add the user and group &#8220;nagios&#8221; to the system before beginning.</strong></p>
<p>With the package in hand I simply issued the following command on the Solaris server:</p>
<div class=command>
# pkgadd -d nagios-plugins-1.3.1_3-sol8-sparc-local<br />
<br />
The following packages are available:<br />
  1  UVTngsplg     nagios-plugins
</div>
<p>The package installed all of the plugins to: /usr/local/lib/nagios/plugins</p>
<p>Once the nagios plugins were installed I began the NRPE installation. <a href="http://nagios.sourceforge.net/docs/1_0/addons.html#nrpe">NRPE</a> allows a remote server to receive commands from a Nagios server for monitoring. This allows you to monitor things like disk, cpu and memory usage remotely and setup alerts as needed. NRPE can be downloaded from the <a href="http://www.nagios.org/download/addons/">Nagios addon page</a>.</p>
<p>Once the package is downloaded unzip the tarball:</p>
<div class=command>
# gzip -dc nrpe-2.12.tar.gz | tar xvf -
</div>
<p>Next enter the directory and configure the source. When you configure the code you may get the following the error shown below:</p>
<div class=command>
# ./configure<br />
&#8230;.<br />
checking for SSL headers&#8230; SSL headers found in /usr/local/ssl<br />
checking for SSL libraries&#8230; configure: error: Cannot find ssl libraries
</div>
<p>To fix this you will need to tell figure where to find the ssl libraries. In my case the libraries were located in: /usr/local/ssl/lib<br />
The full command can be seen below:</p>
<div class=command>
# ./configure &#8211;with-ssl=/usr/local/ssl/lib<br />
&#8230;<br />
checking for SSL headers&#8230; SSL headers found in /usr/local/ssl<br />
checking for SSL libraries&#8230; SSL libraries found in /usr/local/ssl/lib</p>
<p>*** Generating DH Parameters for SSL/TLS ***<br />
Generating DH parameters, 512 bit long safe prime, generator 2<br />
This is going to take a long time
</p></div>
<p>Once the configure is complete it&#8217;s time to &#8220;make&#8221;. When I issued &#8220;make&#8221; I was getting the following error seen below.</p>
<div class=command>
# make<br />
nrpe.c: In function `get_log_facility&#8217;:<br />
nrpe.c:617: error: `LOG_AUTHPRIV&#8217; undeclared (first use in this function)<br />
nrpe.c:617: error: (Each undeclared identifier is reported only once<br />
nrpe.c:617: error: for each function it appears in.)<br />
nrpe.c:619: error: `LOG_FTP&#8217; undeclared (first use in this function)<br />
*** Error code 1<br />
make: Fatal error: Command failed for target `nrpe&#8217;<br />
Current working directory /tmp/nrpe-2.12/src<br />
*** Error code 1<br />
make: Fatal error: Command failed for target `all&#8217;
</div>
<p>To fix this issue you need to edit the file in src/nrpe.c on lines 616-619 and replace them with the following:</p>
<div class=command>
else if(!strcmp(varvalue,&#8221;authpriv&#8221;))<br />
                log_facility=LOG_AUTH;<br />
        else if(!strcmp(varvalue,&#8221;ftp&#8221;))<br />
                log_facility=LOG_DAEMON;
</div>
<p>Once you make this change you should be able to successfully &#8220;make&#8221;</p>
<div class=command>
# make<br />
cd ./src/; make ; cd ..<br />
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/ssl/lib  -lssl -lcrypto -lnsl -lsocket  ./snprintf.o -liberty<br />
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o check_nrpe check_nrpe.c utils.c -L/usr/local/ssl/lib  -lssl -lcrypto -lnsl -lsocket -liberty</p>
<p>*** Compile finished ***
</p></div>
<p>Next, install the included nrpe.cfg sample config file to /usr/local/nagios/etc</p>
<div class=command>
# make install-daemon-config<br />
./install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc<br />
./install-sh -c -m 644 -o nagios -g nagios sample-config/nrpe.cfg /usr/local/nagios/etc
</div>
<p>I edited the nrpe.cfg file to allow my Nagios server&#8217;s IP access. Replace 192.168.0.14 with the IP of your Nagios server. The line edited can be seen below:</p>
<div class=command>
# vi /usr/local/nagios/etc/nrpe.cfg</p>
<p># ALLOWED HOST ADDRESSES<br />
# This is an optional comma-delimited list of IP address or hostnames<br />
# that are allowed to talk to the NRPE daemon.<br />
#<br />
# Note: The daemon only does rudimentary checking of the client&#8217;s IP<br />
# address.  I would highly recommend adding entries in your /etc/hosts.allow<br />
# file to allow only the specified host to connect to the port<br />
# you are running this daemon on.<br />
#<br />
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd</p>
<p>allowed_hosts=192.168.0.14
</p></div>
<p>Next I copied the src/nrpe binary to the same directory as the ssl libraries /usr/local/ssl/lib. I did this so nrpe would have no problem finding the libraries it needed to start. I&#8217;m sure there are many other ways of doing this but this was the easiest for me.</p>
<div class=command>
# cp /tmp/nrpe-2.12/src/nrpe /usr/local/ssl/lib
</div>
<p>Once the binary was copied I simply fired it from the /usr/local/ssl/lib directory and specified where my config file was:</p>
<div class=command>
# cd /usr/local/ssl/lib<br />
# ./nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
</div>
<p>Now I have NRPE listening on my Solaris 8 server happily accepting commands from Nagios server for status monitoring. Some of the commands I&#8217;m issuing to monitor the status can be seen in the excerpt of my nrpe.cfg file below:</p>
<div class=command>
command[check_disk]=/usr/local/lib/nagios/plugins/check_disk -w 30% -c 20% -p /<br />
command[check_disk_usr]=/usr/local/lib/nagios/plugins/check_disk -w 7% -c 6% -p /usr<br />
command[check_disk_var]=/usr/local/lib/nagios/plugins/check_disk -w 20% -c 15% -p /var<br />
command[check_disk_users]=/usr/local/lib/nagios/plugins/check_disk -w 9% -c 6% -p /users<br />
command[check_disk_docs]=/usr/local/lib/nagios/plugins/check_disk -w 10% -c 5% -p /docs<br />
command[check_disk_opt]=/usr/local/lib/nagios/plugins/check_disk -w 20% -c 10% -p /opt<br />
command[check_disk_opt1]=/usr/local/lib/nagios/plugins/check_disk -w 20% -c 10% -p /opt1<br />
command[check_memory]=/usr/local/lib/nagios/plugins/check_memory<br />
command[check_cpu]=/usr/local/lib/nagios/plugins/check_cpu 35 25
</div>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=353</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Monitoring</title>
		<link>http://www.computerglitch.net/?p=350</link>
		<comments>http://www.computerglitch.net/?p=350#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:33:27 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=350</guid>
		<description><![CDATA[I use Nagios at work to monitor all of my critical production servers. We have [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://www.nagios.org/">Nagios</a> at work to monitor all of my critical production servers. We have a older Solaris 8 SPARC server that quietly sits handling database queries using <a href="http://www-01.ibm.com/software/data/informix/">Informix</a>. Most of the time this server never needs to be touched but recently it has had some performance issues. Once we discovered the problem I decided to also add it to the pool of servers Nagios monitors. Needless to say, monitoring Solaris 8 with Nagios had its challenges to get setup.</p>
<p><center><img src="images/nagiosthumb.jpg"></center></p>
<p>I wrote up a <a href="http://www.computerglitch.net/?p=353">detailed paper</a> explaining the process and how to get around some of the problems I encountered while trying to get <a href="http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf">NRPE</a> to play nicely with Solaris 8.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=350</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Setup</title>
		<link>http://www.computerglitch.net/?p=321</link>
		<comments>http://www.computerglitch.net/?p=321#comments</comments>
		<pubDate>Wed, 16 Dec 2009 21:53:28 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=321</guid>
		<description><![CDATA[I changed a couple of things around on my work setup I thought I&#8217;d share. [...]]]></description>
			<content:encoded><![CDATA[<p>I changed a couple of things around on my work setup I thought I&#8217;d share. First of all I moved to <a href="http://www.fluxbox.org/">Fluxbox</a> as my windowmanager on my Linux box. Fluxbox is lightweight, highly customizable and since I&#8217;m usually using a terminal to get things done it fits the bill perfect. I&#8217;m using <a href="http://conky.sourceforge.net/">conky</a> as a lightweight system monitor to keep tabs on things like CPU usage, memory usage, network load, etc.</p>
<p>Below you can see my current Linux desktop. Conky is running on the bottom left of the screen with my customizations. My .conkyrc file can be found <a href="http://www.computerglitch.net/bin/conkyrc.txt" target="cwindow">here</a>.</p>
<p><center><a title="Fluxbox Desktop" rel="lightbox" href="http://www.computerglitch.net/images/motd/Screenshot-1.jpg"><img src="/images/motd/Screenshot-1_thumb.jpg" border="0" alt="" /></a></center></p>
<p>
<p>
As you can see I&#8217;m using two programs with conky. One to check my gmail account and another to check the current weather conditions. The perl script I&#8217;m using to check gmail can be found <a href="http://www.computerglitch.net/bin/gmail.pl" target="cwindow">here</a>. To keep up with local weather conditions I&#8217;m using a script that can be found <a href="http://www.computerglitch.net/bin/weather.tar.gz">here</a>.</p>
<p>I also replaced my KVM setup in favor of having another monitor and using <a href="http://synergy2.sourceforge.net/" target="cwindow">synergy</a> to hop between systems. I&#8217;ll be writing a short paper on configuring synergy with a Linux and Windows system in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=321</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kickstart Installations</title>
		<link>http://www.computerglitch.net/?p=308</link>
		<comments>http://www.computerglitch.net/?p=308#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:51:24 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=308</guid>
		<description><![CDATA[This is a small paper on setting up a Kickstart server. I used CentOS in [...]]]></description>
			<content:encoded><![CDATA[<p>This is a small paper on setting up a Kickstart server. I used CentOS in this paper. A quick over view on Kickstart installations can be found here: <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-kickstart2.html" target="cwindow">Kickstart Installation</a></p>
<p>First configure a <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/ch-nfs.html" target="cwindow">NFS</a> server that will store your Kickstart configuration files, and the install ISO&#8217;s. This is what my /etc/exports file looks like:</p>
<div class=command>
/kicks/                         *(rw,sync)<br />
/nfs-shares/CentOS_5.3_i386     *(ro,no_root_squash)
</div>
<p>The /kicks/ directory stores the kickstart configuration.<br />
The /nfs-shares/CentOS_5.3_i386 stores the install ISO&#8217;s.</p>
<p>This is an example of my ks.cfg file for Kickstart installation, this is a very simple configuration. Many more options can be configured as can be seen here: <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-kickstart2-options.html">Kickstart Options</a></p>
<p>Example ks.cfg stored in /kicks/ks.cfg:</p>
<div class=command>
# Kickstart file automatically generated by anaconda.<br />
install<br />
nfs &#8211;server=nfs-serve.mydomain.com &#8211;dir=/nfs-shares/CentOS_5.3_i386<br />
lang en_US.UTF-8<br />
keyboard us<br />
xconfig &#8211;startxonboot<br />
network &#8211;device eth0 &#8211;bootproto dhcp &#8211;hostname station.mydomain.com<br />
rootpw &#8211;iscrypted $KxSiDWLjnyp10lqty$<br />
firewall &#8211;enabled &#8211;port=22:tcp<br />
authconfig &#8211;enableshadow &#8211;enablemd5<br />
selinux &#8211;enforcing<br />
timezone &#8211;utc America/New_York<br />
bootloader &#8211;location=mbr &#8211;driveorder=sda &#8211;append=&#8221;rhgb quiet&#8221;<br />
# The following is the partition information you requested<br />
# Note that any partitions you deleted are not expressed<br />
# here so unless you clear all partitions first, this is<br />
# not guaranteed to work<br />
clearpart &#8211;all &#8211;drives=sda<br />
part /boot &#8211;fstype ext3 &#8211;size=100 &#8211;ondisk=sda<br />
part pv.2 &#8211;size=0 &#8211;grow &#8211;ondisk=sda<br />
volgroup VolGroup00 &#8211;pesize=32768 pv.2<br />
logvol swap &#8211;fstype swap &#8211;name=LogVol01 &#8211;vgname=VolGroup00 &#8211;size=256 &#8211;grow &#8211;maxsize=512<br />
logvol / &#8211;fstype ext3 &#8211;name=LogVol00 &#8211;vgname=VolGroup00 &#8211;size=1024 &#8211;grow<br />
%packages<br />
@development-libs<br />
@editors<br />
@text-internet<br />
@gnome-desktop<br />
@dialup<br />
@core<br />
@base<br />
@ftp-server<br />
@network-server<br />
@base-x<br />
@web-server<br />
@smb-server<br />
@mail-server<br />
@server-cfg<br />
@admin-tools<br />
@development-tools<br />
kexec-tools<br />
bridge-utils<br />
device-mapper-multipath<br />
vnc-server<br />
xorg-x11-server-Xnest<br />
xorg-x11-server-Xvfb<br />
imake<br />
-sysreport
</div>
<p>Next I&#8217;ll boot the system to be kickstarted with the netinstall.iso for the CentOS 5.3 distro. (<a href="http://centos.eecs.wsu.edu/5.3/isos/i386/CentOS-5.3-i386-netinstall.iso">CentOS-5.3-i386-netinstall.iso</a>)</p>
<p>Once the system is booted from the netinstall ISO enter the following a the boot prompt to begin the Kickstart installation.</p>
<div class=command>
linux ks=nfs:192.168.4.17:/kicks/ks.cfg
</div>
<p>(replace 192.168.4.17 with your NFS server)</p>
<p>Sit back and enjoy the automated installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=308</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse Shell</title>
		<link>http://www.computerglitch.net/?p=272</link>
		<comments>http://www.computerglitch.net/?p=272#comments</comments>
		<pubDate>Tue, 08 Dec 2009 18:04:00 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=272</guid>
		<description><![CDATA[I was recently researching a simple way to create a reverse shell on a remote [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently researching a simple way to create a reverse shell on a remote machine without having to install any additional tools. A general overview of what a reverse shell is may be in order, this page explains the process: <a href="http://www.plenz.com/reverseshell" target="cwindow">http://www.plenz.com/reverseshell</a></p>
<p>While researching I stumbled upon a great discussion on various methods for doing this. My goal was to start a listener on my system using <a href="http://en.wikipedia.org/wiki/Netcat" target="cwindow">netcat</a>, then connect to the remote system and establish a reverse shell to my system without using any installed tools on the remote system.</p>
<p>The discussion on the subject can be seen here: <a href="http://www.gnucitizen.org/blog/reverse-shell-with-bash/" target="cwindow">http://www.gnucitizen.org/blog/reverse-shell-with-bash/</a>. As you can see many interesting ways of achieving this goal have been posted.</p>
<p>The method I ended up using can be seen in the screenshot below. </p>
<p><center><a title="Reverse Shell" rel="lightbox" href="http://www.computerglitch.net/images/motd/reverse_screen.jpg"><img src="/images/motd/reverse_screen_thumb.jpg" border="0" alt=""></a></center></p>
<p>
<p>
On the right you see I started netcat on my machine &#8220;despina&#8221; listening on port 8181. On the left I connect to the remote machine &#8220;backup&#8221; with an IP of 192.168.4.10. Once I&#8217;m on the remote machine I connect back to my machine &#8220;despina&#8221; using the bash command on the left. Once the command is executed I&#8217;m immediately greeted with a shell on my machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=272</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Observing</title>
		<link>http://www.computerglitch.net/?p=248</link>
		<comments>http://www.computerglitch.net/?p=248#comments</comments>
		<pubDate>Mon, 30 Nov 2009 16:50:57 +0000</pubDate>
		<dc:creator>furiousrabbit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.computerglitch.net/?p=248</guid>
		<description><![CDATA[I had a client that needed to monitor multiple computers at the same time from [...]]]></description>
			<content:encoded><![CDATA[<p>I had a client that needed to monitor multiple computers at the same time from one central location. Cost was a issue, so I started to research ways to do this &#8220;on the cheap&#8221;.</p>
<p>The first thing I stumbled upon was <a href="http://www.s-code.com/products/vncmanager/" target="cwindow">SmartCode VNC Manager</a>. This looked like a nice product but was cost prohibitive. Digging further I found a project that was started by a teacher for his students computer lab. The projects website is <a href="http://thetechnologyteacher.wordpress.com/vncthumbnailviewer/" target="cwindow">http://thetechnologyteacher.wordpress.com/vncthumbnailviewer/</a>. Once I got VNC installed on all of the client computers, setting up VncThumbnailViewer on the monitoring computer was simple.</p>
<p>Below is a screen shot of the thumbnail viewer with six workstations active and a example of the simple configuration file that can be used to load multiple workstations quickly.</p>
<p><center><a title="VNCThumbs" rel="lightbox" href="http://www.computerglitch.net/images/motd/vncobs.jpg"><img src="/images/motd/vncobs_thumb.jpg" border="0" alt="" /></a> &nbsp; &nbsp; &nbsp; <a title="VNCConf" rel="lightbox" href="http://www.computerglitch.net/images/motd/vncconf.jpg"><img src="/images/motd/vncconf_thumb.jpg" border="0" alt="" /></a></center></p>
<p>
<p>
If you&#8217;re looking for a cheap alternative to monitor multiple workstations from one central system I&#8217;d recommend giving this project a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computerglitch.net/?feed=rss2&amp;p=248</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
