<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rough Book &#187; Operating Systems</title>
	<atom:link href="http://vivin.net/category/nerdy-stuff/computers-nerdy-stuff/operating-systems-computers-nerdy-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivin.net</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Sun, 25 Jul 2010 03:01:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Downtime and System Upgrade</title>
		<link>http://vivin.net/2010/07/24/downtime-and-system-upgrade/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/07/24/downtime-and-system-upgrade/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 03:01:03 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[computer hardware]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hard-drives]]></category>
		<category><![CDATA[my website]]></category>
		<category><![CDATA[system upgrade]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1531</guid>
		<description><![CDATA[Sorry for the downtime. My webserver had a failing hard-drive and I figured that while I was replacing the hard-drive, I would upgrade the entire machine as well. The box was a Pentium 4 1.4Ghz with 512MB of RAM that I hadn&#8217;t upgraded since I first built it in 2002. Now it&#8217;s been upgraded to [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry for the downtime. My webserver had a failing hard-drive and I figured that while I was replacing the hard-drive, I would upgrade the entire machine as well. The box was a Pentium 4 1.4Ghz with 512MB of RAM that I hadn&#8217;t upgraded since I first built it in 2002. Now it&#8217;s been upgraded to a Pentium 4 2.4Ghz (hyper-threaded) with 1GB of RAM. Building from source will be a lot faster now! The whole upgrade process took a while because I was also in the process of upgrading another one of my machines and that took for EVER (some issues with shorting). Finally I had to install FreeBSD (version 8.0) on the new hard-drive as well as Apache, PHP, MySQL, WordPress etc. After I have everything set up, I&#8217;m going to make sure that I image the hard-drive so that I can restore it from backup easily.</p>
<br /><a href="http://vivin.net/?p=1531#comments" title="Comments on &quot;Downtime and System Upgrade&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/07/24/downtime-and-system-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Download ShapeWriter APK</title>
		<link>http://vivin.net/2010/06/22/download-shapewriter-apk/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/06/22/download-shapewriter-apk/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 16:43:34 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android 2.1]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[eclair]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mytouch]]></category>
		<category><![CDATA[shapewriter]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1522</guid>
		<description><![CDATA[I tried to install ShapeWriter from the Android Marketplace yesterday and couldn&#8217;t find it (I was trying to reinstall it after flashing my phone with Cyanogenmod 5.0.8). After searching the interwebs, I found out that it had been removed from the marketplace on June 20th indefinitely (supposedly for QA issues). Luckily I had backed up [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to install <a href="http://shapewriter.com">ShapeWriter</a> from the Android Marketplace yesterday and couldn&#8217;t find it (I was trying to reinstall it after flashing my phone with <a href="http://www.cyanogenmod.com/home/cyanogenmod-5-0-8-has-landed">Cyanogenmod 5.0.8</a>). After searching the interwebs, I found out that it had been removed from the marketplace on June 20th indefinitely (supposedly for QA issues). Luckily I had backed up the app using <a href="http://www.rerware.com/Android/default.aspx">MyBackup Pro</a> and still had the APK, so I was able to reinstall it. I&#8217;m putting the APK up here for anyone who needs to reinstall ShapeWriter.</p>
<p><a href="http://vivin.net/pub/shapewriter/com.shapewriter.android.softkeyboard.apk">Download ShapeWriter APK</a></p>
<br /><a href="http://vivin.net/?p=1522#comments" title="Comments on &quot;Download ShapeWriter APK&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/06/22/download-shapewriter-apk/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>GitHub broke my scp</title>
		<link>http://vivin.net/2010/03/09/github-broke-my-scp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/03/09/github-broke-my-scp/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:44:08 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1466</guid>
		<description><![CDATA[I set up git on my FreeBSD box so that I can commit my code to GitHub. Today I tried to scp some stuff over and I was met with this rather unhelpful message: vivin@serenity ~/Projects/code $ scp -r vivin@www.vivin.net:~/code/agnostic . Password: ps: Process environment requires procfs(5) Initializing new SSH agent... vivin@serenity ~/Projects/code $ I [...]]]></description>
			<content:encoded><![CDATA[<p>I set up <a href="http://en.wikipedia.org/wiki/Git_%28software%29">git</a> on my FreeBSD box so that I can commit my code to <a href="http://github.com/">GitHub</a>. Today I tried to scp some stuff over and I was met with this rather unhelpful message:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
ps: Process environment requires procfs(5)
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>I fixed the procfs problem by adding the following to my <em>/etc/fstab</em>:</p>
<pre class="brush: php">
proc                    /proc           procfs  rw              0       0
linproc                 /compat/linux/proc      linprocfs       rw      0       0
</pre>
<p>and then running:</p>
<pre>
vivin@enterprise ~
$ sudo mount /compat/linux/proc

vivin@enterprise ~
$ sudo mount /proc
</pre>
<p>So I try to scp again and I get:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>WTF? Then I remembered making some changes to my <em>.bashrc</em> to be able to commit to github:</p>
<pre class="brush: php">
function start_agent {
  echo &quot;Initializing new SSH agent...&quot;
  /usr/bin/ssh-agent | sed &#039;s/^echo/#echo/&#039; &gt; &quot;${SSH_ENV}&quot;
  echo succeeded
  chmod 600 &quot;${SSH_ENV}&quot;
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  /usr/bin/ssh-add;
}

# Source SSH settings, if applicable
if [ -f &quot;${SSH_ENV}&quot; ]; then
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  #ps ${SSH_AGENT_PID} doesn&#039;t work under cywgin
  ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ &gt; /dev/null || {
    start_agent;
  }
else
  start_agent;
fi
</pre>
<p>I pulled all that out of my <em>.bashrc</em> and made a separate shell script for it. After I did that, scp started working again. I had no idea that calling scp would actually run <em>.bashrc</em></p>
<br /><a href="http://vivin.net/?p=1466#comments" title="Comments on &quot;GitHub broke my scp&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/03/09/github-broke-my-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Trying out ChromeOS from a VMWare image</title>
		<link>http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:27:02 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Chrome OS]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1140</guid>
		<description><![CDATA[I was pretty excited when I saw the VMWare image for ChromeOS up for download. I immediately downloaded it to try it out. The zip file I got from gdgt has a vmdk file but no vmx file. I created one from scratch to try ChromeOS out (I&#8217;ve made a new zip with the vmdk [...]]]></description>
			<content:encoded><![CDATA[<p>I was pretty excited when I saw the VMWare image for ChromeOS up for download. I immediately downloaded it to try it out. The zip file I got from <a href="http://lifehacker.com/5408932/chrome-os-virtual-machine-build-ready-for-your-testing">gdgt</a> has a <em>vmdk</em> file but no <em>vmx</em> file. I created one from scratch to try ChromeOS out (I&#8217;ve made a new zip with the <em>vmdk</em> and the <em>vmx</em>. The link is at the end of this post.). It&#8217;s not too bad. The OS boots up really quick. The login screen is pretty spartan (look at the screenshots I have). You login with your Google/Gmail username and password. When you login, it opens up the Chrome browser. I wasn&#8217;t able to get anything else running other than the browser. Also, when I first logged in, Chrome complained that the security certificate for Gmail had been revoked. But I was able to login when I typed in the address for Gmail in again. The default tabs seem to be GMail and Google Calendar. I&#8217;m assuming that because it&#8217;s such an early build, you&#8217;re not able to try out the other stuff. Maybe there&#8217;s a way; I didn&#8217;t play around with it too much. There is a <em>Date and Time settings</em> menu that&#8217;s available from the browser, where you can set a few other options, like your proxy, SSL options, home page, and a few other advanced settings.<br />
<span id="more-1140"></span><br />
<strong>Update</strong></p>
<p>I was having a conversation with <a href="http://twitter.com/syalam">Sheehan</a> over twitter and I made a comment that &#8220;Chrome OS is doing the kiosk thing all over again&#8221;. I guess that&#8217;s true to an extent. ChromeOS will be running on approved hardware with an SSD. You&#8217;re probably not going to be able to install anything on the machine and everything seems to be a webapp. What this means is that <em>all</em> your data is online. To be honest, I don&#8217;t find very much use for that, but then again, I&#8217;m not part of the target market. I think this might be useful for people who are on-the-go and who need access to their data from anywhere in the world (well, anywhere in the world with an internet connection). I use my machine for a variety of things; mainly development. Since I also like to tinker with it from time to time, I&#8217;m always installing stuff on it. Google will need a very strong marketing campaign so that consumers understand <em>exactly</em> what they&#8217;re getting. They won&#8217;t be able to install applications (maybe webapps?) and they won&#8217;t be able to save arbitrary files to the machine. I wonder what this means for the online experience. What if they&#8217;re trying to download some sort of file? Where would they save it? Would Google provide online storage for the users? It&#8217;s a major paradigm shift. Like I mentioned before, your machine turns into a kiosk or a thin-client. Maybe some people won&#8217;t mind using one, but I view my machine as something much more and so I don&#8217;t think I will be satisfied.</p>
<p><strong>ChromeOS <em>.vmx</em> file for the <em>.vmdk</em></strong></p>
<pre class="brush: php">
.encoding = &quot;UTF-8&quot;
displayName = &quot;Chrome OS&quot;
guestOS = &quot;other&quot;
memsize = &quot;512&quot;

ethernet0.present= &quot;true&quot;
ethernet0.startConnected = &quot;true&quot;
ethernet0.virtualDev = &quot;e1000&quot;
ethernet0.connectionType = &quot;nat&quot;
ethernet0.addressType = &quot;generated&quot;
ethernet0.generatedAddress = &quot;00:0c:29:cd:8d:e6&quot;
ethernet0.generatedAddressOffset = &quot;0&quot;

usb.present = &quot;true&quot;

sound.present = &quot;false&quot;
sound.autodetect = &quot;true&quot;
sound.virtualDev = &quot;es1371&quot;
sound.fileName = &quot;-1&quot;
sound.startConnected = &quot;true&quot;

ide0:0.present = &quot;true&quot;
ide0:0.fileName=&quot;chrome-os-0.4.22.8-gdgt.vmdk&quot;
ide0:0.deviceType = &quot;disk&quot;
ide0:0.mode = &quot;persistent&quot;
ide0:0.redo = &quot;&quot;
ide0:0.writeThrough = &quot;false&quot;
ide0:0.startConnected = &quot;false&quot;

virtualHW.version = &quot;3&quot;
config.version = &quot;8&quot;

floppy0.present = &quot;false&quot;
</pre>
<p><strong>I&#8217;m no longer seeding the torrent. I suggest <a href="http://lifehacker.com/5408932/chrome-os-virtual-machine-build-ready-for-your-testing">downloading</a> the <em>vmdk</em> from gdgt (sign-up required, but just make a fake profile &#8211; no verification is performed) and using <a href = "http://vivin.net/pub/chrome-os/chrome-os.0.4.22.8-vivin.net.vmx">this</a> <em>vmx</em> file with it.</strong></p>

<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os/' title='ChromeOS Login Screen'><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-150x150.png" class="attachment-thumbnail" alt="ChromeOS Login Screen" title="ChromeOS Login Screen" /></a>
<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os-1/' title='ChromeOS Login Screen'><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-1-150x150.png" class="attachment-thumbnail" alt="ChromeOS Login Screen" title="ChromeOS Login Screen" /></a>
<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os-2/' title='Chrome browser in ChromeOS'><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-2-150x150.png" class="attachment-thumbnail" alt="Chrome browser in ChromeOS" title="Chrome browser in ChromeOS" /></a>
<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os-3/' title='Google calendar in ChromeOS'><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-3-150x150.png" class="attachment-thumbnail" alt="Google calendar in ChromeOS" title="Google calendar in ChromeOS" /></a>
<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os-4/' title='Date and Time settings'><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-4-150x150.png" class="attachment-thumbnail" alt="Date and Time settings" title="Date and Time settings" /></a>
<a href='http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/screenshot-chrome-os-5/' title='Date and Time, and other settings '><img width="150" height="150" src="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-5-150x150.png" class="attachment-thumbnail" alt="Date and Time, and other settings" title="Date and Time, and other settings" /></a>

<br /><a href="http://vivin.net/?p=1140#comments" title="Comments on &quot;Trying out ChromeOS from a VMWare image&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1140" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/11/20/trying-out-chromeos-from-a-vmware-image/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-150x150.png" />
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS.png" medium="image">
			<media:title type="html">ChromeOS Login Screen</media:title>
			<media:description type="html">ChromeOS Login Screen</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-1.png" medium="image">
			<media:title type="html">ChromeOS Login Screen</media:title>
			<media:description type="html">ChromeOS Login Screen</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-1-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-2.png" medium="image">
			<media:title type="html">Chrome browser in ChromeOS</media:title>
			<media:description type="html">Chrome browser in ChromeOS</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-2-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-3.png" medium="image">
			<media:title type="html">Google calendar in ChromeOS</media:title>
			<media:description type="html">Google calendar in ChromeOS</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-3-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-4.png" medium="image">
			<media:title type="html">Date and Time settings</media:title>
			<media:description type="html">Date and Time settings</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-4-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-5.png" medium="image">
			<media:title type="html">Date and Time, and other settings</media:title>
			<media:description type="html">Date and Time, and other settings</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2009/11/Screenshot-Chrome-OS-5-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1140" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Flu shot and bizarre network issues</title>
		<link>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:49:34 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[flu]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[vaccine]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1042</guid>
		<description><![CDATA[This last weekend I had drill and the medics gave us the seasonal-flu mist-vaccine. It&#8217;s the one where they squirt gooey, inactive virus up your nose. I&#8217;ve had the vaccine before without any adverse side-effects. Yeah, not this time. I got the shot on Saturday and I was fine on Sunday. Not so on Monday. [...]]]></description>
			<content:encoded><![CDATA[<p>This last weekend I had drill and the medics gave us the seasonal-flu mist-vaccine. It&#8217;s the one where they squirt gooey, inactive virus up your nose. I&#8217;ve had the vaccine before without any adverse side-effects. Yeah, not this time. I got the shot on Saturday and I was fine on Sunday. Not so on Monday. I woke up a few times in the middle of the night with a bit of a fever, but I figured that it would just go away. Yeah, didn&#8217;t happen. On Monday morning I felt like I had been run over by a semi. My throat felt like I had swallowed bits of broken glass. Needless to say, I didn&#8217;t go to work. I was bedridden most of the day, but towards the end I felt a little better. I tried to get a little work done but I wasn&#8217;t too successful since I had a hard time concentrating.<br />
<span id="more-1042"></span><br />
By around seven or eight in the evening I was checking my email and I realized that Gmail wasn&#8217;t picking up any mail from vivin.net. I thought that courier-imap might not be running, but it was. Gmail complained that the connection was timing out. Odd, because I hadn&#8217;t made any changes at all recently other than an <em>fsck</em> after a power failure. I decided to try out the POP3 tester over <a href="http://www.wormly.com/test_pop3_mail_server">here</a> and I also got a timeout error. However, when I did a command-line test of the POP3 server like so:</p>
<pre class="brush: php">
openssl s_client -connect localhost:995
</pre>
<p>Everything seemed fine. Furthermore, this problem seemed to be limited to both my FreeBSD servers. My Linux box seemed to be running fine. I tried a bunch of things. I restarted both machines, restarted the network interfaces, made sure firewalls weren&#8217;t running, reset my router&#8230; nothing seemed to work. Every time I tested the connection to the machines (using this awesome tool <a href="http://www.uptimeinspector.com/test-server-connection.html">here</a>), the connections would time out. What was even stranger was that a <em>netstat</em> showed connections to be in a SYN_RCVD state, which meant that the box had accepted the connection. It&#8217;s just that the response wasn&#8217;t getting out. Eventually I was so desperate that I decided to reinstall FreeBSD on one of the machines. I also posted to a BSD forum asking for help. I figured that next evening I could probably fix it after work.</p>
<p>Well, next morning I still felt terrible, but it wasn&#8217;t so bad. My throat wasn&#8217;t hurting as much and I didn&#8217;t have that much of a headache so I was able to work from home. Oh, and the installation had completed. I set everything up quickly and gave it a whirl. Nope. Same problem. Yeah, I was getting pretty frustrated and annoyed at this point. I went so far as to contemplate wiping my beloved FreeBSD off both machines and putting Linux on there. I updated my post at the forum and I checked on it periodically throughout the day as I kept working. Finally, a kind soul popped in to help me out. He helped me troubleshoot using <em>tcpdump</em> and I was able to confirm that the machine was responding to the incoming connection, but it wasn&#8217;t going out. Finally, he asked me to check the routing information. I&#8217;m not that well-versed with that so I didn&#8217;t see the problem until he pointed it out. The routing information was all wrong!</p>
<p>See, I have two network interfaces on the box. One for my internal network, and one pointing to the outside world. The one pointing to the outside world is statically configured, whereas the one for my internal network picks up its configuration from my AirPort Extreme router. What was happening was that <em>dhclient</em> was overwriting the route information. So when the machine tried to respond back, it saw its default route as the internal router, and <em>not</em> my modem! I had to update my <em>dhclient.conf</em> and force the router address to the correct one:</p>
<pre class="brush: php">
backoff-cutoff 2;
initial-interval 1;
retry 10;
select-timeout 0;
timeout 30;

interface &amp;quot;vr0&amp;quot; {
   supersede routers 209.x.y.54;
   supersede host-name &amp;quot;enterprise&amp;quot;;
   supersede domain-name &amp;quot;xxxx.xxx&amp;quot;;
   request subnet-mask,
           domain-name-servers;

   require subnet-mask,
           domain-name-servers;
}
</pre>
<p>The important line here is the one that says <em>supersede routers 209.x.y.54;</em> (I&#8217;ve hidden the actual numbers from teh hax0rs). This tells the <em>dhclient</em> to override the router information that it gets from the DHCP server. Once I did this, everything started working again. My thanks to <em>jggimi</em> at <a href = "http://www.daemonforums.org/showthread.php?t=3936">DaemonForums</a>!</p>
<br /><a href="http://vivin.net/?p=1042#comments" title="Comments on &quot;Flu shot and bizarre network issues&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/10/27/flu-shot-and-bizarre-network-issues/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1042" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 9.04 (Jaunty Jackalope) and Windows 7 dual-boot</title>
		<link>http://vivin.net/2009/10/23/ubuntu-9-04-jaunty-jackalope-and-windows-7-dual-boot/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/10/23/ubuntu-9-04-jaunty-jackalope-and-windows-7-dual-boot/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 07:28:41 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dual-boot]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1039</guid>
		<description><![CDATA[In my previous post I talked about the problems I had while installing Ubuntu and Windows 7 on my Alienware m7700 laptop. It took me about three days of hair-pulling before I was finally able to get it to work. First, I burnt a new copy of the ISO for Ubuntu 9.04. Then, I enabled [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://vivin.net/2009/10/21/ubuntu-and-win7-problems/" target="_blank">previous post</a> I talked about the problems I had while installing Ubuntu and Windows 7 on my Alienware m7700 laptop. It took me about three days of hair-pulling before I was finally able to get it to work. First, I burnt a new copy of the ISO for Ubuntu 9.04. Then, I enabled RAID on my system. I put the disks into <em>stripe</em> mode (the FastTrak Promise 378 does not support JBOD). This time, I got past the COMRESET error (<em>ata3: COMRESET failed (errno=-16)</em>) and was able to boot into the LiveCD. However, my joy was short-lived. The install would terminate (around the 40% mark) with the following message:</p>
<blockquote><p>[Errno 5] Input/output error</p>
<p>This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment.</p></blockquote>
<p><span id="more-1039"></span><br />
Fun stuff. So then, I burnt myself <em>another</em> copy of the install CD, making sure to burn this one at the lowest speed (1x) and then verifying the image. I also made sure that the MD5 sums on the ISO matched the one on the Ubuntu website. This time when I booted up, the install proceeded along further before dying at 78% with the same error. I restarted the installation multiple times only to see it fail at the same point. I started wondering if it was a problem with the hard-drive. Since the drive is SMART enabled, I decided to run some tests on it. From the LiveCD, I started up the terminal and installed <em>smartmontools</em> through apt-get (<em>sudo apt-get install smartmontools</em>). I then got some errors about unfulfilled dependencies and postfix (strange), but <em>smartmontools</em> seem to be installed so I didn&#8217;t think much of it. I followed the instructions at <a href="http://www.cyberciti.biz/tips/linux-find-out-if-harddisk-failing.html" target="_blank">this site</a> and tested my hard-drive. I even ran the long test which took about two hours to complete. The tests passed. At this point I was at my wit&#8217;s end. It wasn&#8217;t the image, the CD, or the hard-drive. It had to be a hardware problem. Was it the drive itself?</p>
<p>Finally I figured it out. It was mostly due to blind luck/intuition that I was able to figure it out. I vaguely remembered trying to install FreeBSD a few years ago and running into a problem with ACPI. So when the LiveCD booted up, I hit F6 and checked the first three options (acpi=off, noapic, nolapic). This time, the installation went without a hitch and now I&#8217;m able to dual-boot between Windows 7 and Ubuntu 9.04!</p>
<br /><a href="http://vivin.net/?p=1039#comments" title="Comments on &quot;Ubuntu 9.04 (Jaunty Jackalope) and Windows 7 dual-boot&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1039" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/10/23/ubuntu-9-04-jaunty-jackalope-and-windows-7-dual-boot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1039" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1039" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu and Win7 problems</title>
		<link>http://vivin.net/2009/10/21/ubuntu-and-win7-problems/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/10/21/ubuntu-and-win7-problems/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:32:02 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[audigy]]></category>
		<category><![CDATA[creative]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1032</guid>
		<description><![CDATA[Yesterday I decided to reformat my Alienware m7700 Area-51 machine. It&#8217;s supposedly a laptop, but it&#8217;s actually a beast and it has a power supply that emits as much power as a small nuclear plant. Anyway, I put in a 500Gb and a 120Gb drive, with the 120Gb as a slave. The machine comes with [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I decided to reformat my <a href="http://www.mobilewhack.com/reviews/alienware_area-51_m7700_notebook.html">Alienware m7700 Area-51</a> machine. It&#8217;s supposedly a laptop, but it&#8217;s actually a beast and it has a power supply that emits as much power as a small nuclear plant. Anyway, I put in a 500Gb and a 120Gb drive, with the 120Gb as a slave. The machine comes with a RAID controller (Promise SATA 378 TX2), but I have it turned off and in ATA mode. Win7 installed fine; the only problem I have is with the sound. My front speakers in my quadraphonic setup refuse to work. It&#8217;s strange. I even have the latest drivers from Creative for my Audigy2 ZS Notebook. It used to work fine before.</p>
<p>I figured I&#8217;d solve that problem later and decided to install Ubuntu 9.04 (Jaunty) on the 500Gb drive. The LiveCD boots up fine, but when I try to actually try out the LiveCD or even try to install Ubuntu, it fails. Everything hangs after this message:</p>
<pre class="brush: php">ata3: COMRESET failed (errno=-16)</pre>
<p>After searching on the internets, it seems to be a RAID controller issue and a fix exists in the kernel. So I don&#8217;t know why I still have the problem. If anyone knows of a solution, please let me know! I&#8217;m going to keep working on the problem and see if I can solve it.</p>
<br /><a href="http://vivin.net/?p=1032#comments" title="Comments on &quot;Ubuntu and Win7 problems&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1032" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/10/21/ubuntu-and-win7-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1032" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1032" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Running the JavaFX 1.1 SDK on Linux</title>
		<link>http://vivin.net/2009/04/30/running-the-javafx-11-sdk-on-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/04/30/running-the-javafx-11-sdk-on-linux/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 16:18:50 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[dmg]]></category>
		<category><![CDATA[dsl]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javafx]]></category>
		<category><![CDATA[javafx script]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ria]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://vivin.net/wordpress/?p=407</guid>
		<description><![CDATA[This is an update to my instructions on running the JavaFX 1.0 SDK on Linux. Those instructions do not work on the dmg image for the 1.1 version of the SDK. Mike (thanks Mike!) posted a comment on that blog mentioning a small change that needed to be made. To get JavaFX 1.1 on Linux, [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to my instructions on <a target = "_blank" href = "http://vivin.net/2008/12/04/running-the-javafx-10-sdk-on-linux/">running the JavaFX 1.0 SDK on Linux</a>. Those instructions do not work on the dmg image for the 1.1 version of the SDK.</p>
<p>Mike (thanks Mike!) posted a comment on that blog mentioning a small change that needed to be made. To get JavaFX 1.1 on Linux, first follow the steps in the original guide. When you need to mount the dmg, you need to provide an offset. So instead of the original command, do the following:</p>
<pre class="brush: php">
vivin@dauntless ~
$; sudo mount -o loop,offset=$((1024*17)) -t hfsplus javafx_sdk-1_0-macosx-universal.dmg.out javafx
</pre>
<p>The dmg should be mounted now.</p>
<br /><a href="http://vivin.net/wordpress/?p=407#comments" title="Comments on &quot;Running the JavaFX 1.1 SDK on Linux&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?407" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/04/30/running-the-javafx-11-sdk-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?407" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?407" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>An update to running aterm (or any other X app) rootless, without a DOS console on Cygwin</title>
		<link>http://vivin.net/2009/03/29/an-update-to-running-aterm-or-any-other-x-app-rootless-without-a-dos-console-on-cygwin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/03/29/an-update-to-running-aterm-or-any-other-x-app-rootless-without-a-dos-console-on-cygwin/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 23:46:08 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[aterm]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[x]]></category>

		<guid isPermaLink="false">http://vivin.net/wordpress/?p=406</guid>
		<description><![CDATA[A while ago, I wrote up a quick guide about running X/Windows applications (specifically, aterm) without root windows on Windows, using Cygwin. Recently I tried to set it up again and I realized that some of the information is slightly out of date. I&#8217;m also endeavoring to write a better guide. I&#8217;m assuming that you [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago, I wrote up a <a href="http://vivin.net/2007/03/27/running-aterm-or-any-other-x-app-rootless-without-a-dos-console-on-cygwin/" target="_blank">quick guide</a> about running X/Windows applications (specifically, <span style="font-family: courier new;">aterm</span>) without root windows on Windows, using Cygwin. Recently I tried to set it up again and I realized that some of the information is slightly out of date. I&#8217;m also endeavoring to write a better guide. I&#8217;m assuming that you have, at the very least, a decent understanding of building things from source. The process under Cygwin is pretty much the same as under any other *nix, but there are a few quirks. On the whole, it&#8217;s a whole lot easier than it used to be. This guide is primarily geared towards running <span style="font-family: courier new;">aterm</span> with a transparent background on a windows machine so that you can have a decent client for the Cygwin commandline, instead of the crappy Windows one.</p>
<p>I&#8217;m assuming that you already have Cygwin installed. If you don&#8217;t, you can get it from <a href="http://cygwin.com" target="_blank">here</a>. In addition to whatever other packages you have selected to customize your install, you also need development packages (gcc and friends), Xorg packages (headers, includes, and libraries), and a few graphics libraries (for <span style="font-family: courier new;">aterm</span>):</p>
<ul>
<li>Devel
<ul>
<li>gcc-core</li>
<li>gcc-g++</li>
<li>libXaw3d-devel (for <span style="font-family: courier new;">xv</span>)</li>
<li>libjpeg-devel (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libpng12-devel (for <span style="font-family: courier new;">aterm</span>)</li>
</ul>
</li>
<li>Libs
<ul>
<li>jpeg (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libXaw3d-devel</li>
<li>libXaw3d-7</li>
<li>libfreetype6</li>
<li>libjpeg-devel</li>
<li>libjpeg62 (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libjpeg6b (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libpng12 (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libpng12-devel (for <span style="font-family: courier new;">aterm</span>)</li>
<li>libtiff5 (for <span style="font-family: courier new;">aterm</span>, <span style="font-family: courier new;">xv</span>)</li>
<li>zlib-devel (for <span style="font-family: courier new;">aterm</span>)</li>
<li>zlib0 (for <span style="font-family: courier new;">aterm</span>)</li>
</ul>
</li>
<li>Utils
<ul>
<li>bzip2 (to handle .bz2 files)</li>
</ul>
</li>
<li>X11
<ul>
<li>libX11-devel</li>
<li>xinit</li>
<li>xsetroot (if <span style="font-family: courier new;">xv</span> doesn&#8217;t work for you)</li>
</ul>
</li>
</ul>
<p>After Cygwin finishes installing those packages, grab the sources for <span style="font-family: courier new;"><a href="http://www.afterstep.org/afterimage/getcode.php" target="_blank">libAfterImage</a></span>, <span style="font-family: courier new;"><a href="http://sourceforge.net/project/showfiles.php?group_id=888" target="_blank">aterm</a></span>, and <span style="font-family: courier new;"><a href="http://www.trilon.com/xv/downloads.html" target="_blank">xv</a></span>. Unpack the sources perform the requisite steps to build and install from source (<span style="font-family: courier new;">./configure</span>, <span style="font-family: courier new;">make</span>, and <span style="font-family: courier new;">make install</span> should work if all goes well).</p>
<p><strong><span style="font-family: courier new;">libAfterImage:</span></strong></p>
<p>If you get <span style="font-family: courier new;">&#8220;parse error before XErrorEvent&#8221;</span> errors while building <span style="font-family: courier new;">libAfterImage</span>, make sure that you didn&#8217;t forget to select the X11 development package.</p>
<p><strong><span style="font-family: courier new;">aterm</span>:</strong></p>
<p><span style="font-family: courier new;">gcc</span> on Cygwin expects <span style="font-family: courier new;">&#8211;rdynamic</span> and not <span style="font-family: courier new;">-rdynamic</span>. If you&#8217;re seeing these errors, edit the Makefiles under <span style="font-family: courier new;">src</span> and <span style="font-family: courier new;">src/graphics</span> within the <span style="font-family: courier new;">aterm</span> source directory. Change the &#8220;-rdynamic&#8221; to &#8220;&#8211;rdynamic&#8221;. The changes should be on line 54 for both files.</p>
<p><strong><span style="font-family: courier new;">xv</span>:</strong></p>
<p>Under the <span style="font-family: courier new;">tiff</span> directory within the <span style="font-family: courier new;">xv</span> sources, there is a file called <span style="font-family: courier new;">RANLIB.csh</span>. Edit this file and make sure that you ONLY have the following line in there:</p>
<pre class="brush: php">
ranlib $1 &gt;&amp; /dev/null
</pre>
<p>Otherwise the build process will fail. Additionally, you need to edit <span style="font-family: courier new;">xv.h</span>. This file lives right at the root of your <span style="font-family: courier new;">xv</span> source directory. If you do not perform the following change, you&#8217;ll get errors from gcc complaining that &#8220;<span style="font-family: courier new;">sys_errlist</span> has previously been defined&#8221;. Change line 119 of <span style="font-family: courier new;">xv.h</span> to:</p>
<pre class="brush: php">
/*extern char *sys_errlist[]; */    /* this too... */
</pre>
<p>What you&#8217;re doing is commenting out the definition for <span style="font-family: courier new;">sys_errlist</span> so that it doesn&#8217;t conflict with what has already been defined in the Cygwin header files. These changes should be the only ones you need to get <span style="font-family: courier new;">xv</span> compiling and running.</p>
<p>Now you need to set up two batch files. One to start up X rootlessly, and another to start up <span style="font-family: courier new;">aterm</span>. Before you do that, make sure you add <span style="font-family: courier new;">C:\cygwin\usr\bin</span> and <span style="font-family: courier new;">C:\cygwin\X11R6\usr\bin</span> to your <span style="font-family: courier new;">PATH</span> variable. You can do this by going to <em>My Computer &gt; Properties &gt; Advanced &gt; Environment Variables</em>. If you don&#8217;t do this, you&#8217;ll get &#8220;cygwin1.dll not found&#8221; errors while trying to run these batch files. The X windows binaries used to live in <span style="font-family: courier new;">C:\cygwin\usr\X11R6\bin</span>, but have since been moved to <span style="font-family: courier new;">C:\cygwin\usr\bin</span>. Therefore, the start-up batch-file now looks like this:</p>
<p><strong><span style="font-family: courier new;">xwin.bat:</span></strong></p>
<pre class="brush: php">
C:\cygwin\usr\X11R6\bin\run.exe C:\cygwin\usr\bin\xwin.exe -multiwindow -clipboard -silent-dup-error
C:\cygwin\usr\X11R6\bin\run.exe C:\cygwin\usr\local\bin\xv.exe -display :0 -root -quit -be -max /cygdrive/c/Documents\ and\ Settings/vivin/My\ Documents/My\ Pictures/Wallpapers/01707_spectrumofthesky_1920x1200.jpg
</pre>
<p>The first line starts up the X windowing system. The second line sets the wallpaper using <span style="font-family: courier new;">aterm</span>. You now need another batch file to run <span style="font-family: courier new;">aterm</span>, and that looks like this:</p>
<p><strong><span style="font-family: courier new;">aterm.bat</span></strong></p>
<pre class="brush: php">
C:\cygwin\usr\X11R6\bin\run.exe C:\cygwin\bin\bash.exe --login -i -c &quot;aterm -sh 80 -tr -trsb -fade 20 -tint gray -sb -st -sr -sl 1000 -tn xterm&quot;
</pre>
<p>This file starts <span style="font-family: courier new;">aterm</span> with the background image at 50% brightness, transparent background, transparent scrollbar, 20% fading on losing focus, gray tint, scrollbar, trough-less scrollbar, scrollbar on the right, 1000 scrollback lines, and with xterm terminal emulation. Like I mentioned in my original guide. <span style="font-family: courier new;">xv</span> will sometimes fail to start with <span style="font-family: courier new;">xwin</span>. If that is the case, you can modify <span style="font-family: courier new;">aterm.bat</span> to look like this:</p>
<p><strong><span style="font-family: courier new;">aterm.bat</span>:</strong></p>
<pre class="brush: php">
C:\cygwin\usr\X11R6\bin\run.exe C:\cygwin\bin\bash.exe --login -i -c &quot;xv -display :0 -root -quit -be -max /cygdrive/c/Documents\ and\ Settings/vivin/My\ Documents/My\ Pictures/Wallpapers/01707_spectrumofthesky_1920x1200.jpg &amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp; aterm -sh 80 -tr -trsb -fade 20 -tint gray -sb -st -sr -sl 1000 -tn xterm&quot;
</pre>
<p>Slightly inefficient, but it works. Now if you have a dual-monitor display, you&#8217;ll notice that the background image is stretched across both screens when you run <span style="font-family: courier new;">aterm</span>. This is probably not what you want. To fix this problem you need to change a few invocation options for <span style="font-family: courier new;">xv</span>. For this to work properly (meaning, not look crappy) both screens should be running at the same resolution:</p>
<pre class="brush: php">
xv -display :0 -root -quit -be -maxpect -rmode 1 /cygdrive/c/Documents\ and\ Settings/vivin/My\ Documents/My\ Pictures/Wallpapers/01707_spectrumofthesky_1920x1200.jpg
</pre>
<p>Notice the <span style="font-family: courier new;">-maxpect</span> and <span style="font-family: courier new;">-rmode 1</span> options. <span style="font-family: courier new;">-maxpect</span> expands the image to fill the screen while maintaining the aspect ratio, while <span style="font-family: courier new;">-rmode 1</span> sets the display mode on <span style="font-family: courier new;">xv</span> to <span style="font-family: courier new;">tiled</span>. So you should now have your wallpaper displaying on both screens now (under X) without being distorted.</p>
<p>Here&#8217;s what it looks like on my machine:</p>
<p style="text-align: center;"><a href="http://vivin.net/pub/x_with_xp/xp_aterm_trans_dualmonitor.png" target="_blank"><img title="aterm running on XP under X with a dual-monitor setup" src="http://vivin.net/php/image.php?source=/home/vivin/www/pub/x_with_xp/xp_aterm_trans_dualmonitor.png&amp;type=png&amp;height=0.25&amp;width=0.25" alt="aterm running on XP under X with a dual-monitor setup" /></a></p>
<p>This is on a dual-monitor setup with both screens running at 1920&#215;1200 resolution. I&#8217;ve set X&#8217;s background to be the same as my windows Wallpaper so that it looks cooler. Notice how the background image (inside <span style="font-family: courier new;">aterm</span>) is not stretched, but tiled across the two screens. That&#8217;s all there is to it. Seems like a bit of work, but I think it&#8217;s worth it. My main reason for going through all this trouble was to get a decent terminal running in windows. I guess I could have just used <span style="font-family: courier new;">xterm</span>, but <span style="font-family: courier new;">aterm</span> looks so much nicer, doesn&#8217;t it?</p>
<br /><a href="http://vivin.net/wordpress/?p=406#comments" title="Comments on &quot;An update to running aterm (or any other X app) rootless, without a DOS console on Cygwin&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?406" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/03/29/an-update-to-running-aterm-or-any-other-x-app-rootless-without-a-dos-console-on-cygwin/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:thumbnail url="http://vivin.net/php/image.php?source=/home/vivin/www/pub/x_with_xp/xp_aterm_trans_dualmonitor.png&#38;type=png&#38;height=0.25&#38;width=0.25" />
		<media:content url="http://vivin.net/php/image.php?source=/home/vivin/www/pub/x_with_xp/xp_aterm_trans_dualmonitor.png&#38;type=png&#38;height=0.25&#38;width=0.25" medium="image">
			<media:title type="html">aterm running on XP under X with a dual-monitor setup</media:title>
		</media:content>
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?406" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache2 and .htaccess with mod_rewrite on Ubuntu 8.04 (Hardy Heron)</title>
		<link>http://vivin.net/2009/03/26/apache2-and-htaccess-with-modrewrite-on-ubuntu-804-hardy-heron/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://vivin.net/2009/03/26/apache2-and-htaccess-with-modrewrite-on-ubuntu-804-hardy-heron/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 18:50:29 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://vivin.net/wordpress/?p=405</guid>
		<description><![CDATA[Apparently the default settings for .htaccess files and URL rewrites in Ubuntu (8.04 anyway) is kinda jacked. Apache wasn&#8217;t seeing my .htaccess files, and even after setting up the configuration correctly, I was getting Internal Server (500) errors from .htaccess files. The default setting for Apache2 on Ubuntu for .htaccess is &#8220;ignore it&#8221;. You need [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently the default settings for .htaccess files and URL rewrites in Ubuntu (8.04 anyway) is kinda jacked. Apache wasn&#8217;t seeing my .htaccess files, and even after setting up the configuration correctly, I was getting Internal Server (500) errors from .htaccess files. </p>
<p>The default setting for Apache2 on Ubuntu for .htaccess is &#8220;ignore it&#8221;. You need to enable it by going to <span style = "font-family:courier new">/etc/apache2/sites-available/default</span> and changing the <span style = "font-family:courier new">AllowOverride</span> directive, which you can find inside the <span style = "font-family:courier new">&#60;Directory&#62; &#8230; &#60;/Directory&#62;</span> tags:</p>
<pre class="brush: php">
AllowOverride ALL
</pre>
<p>If you want to enable URL rewrites, you need to enable the <span style = "font-family:courier new">mod_rewrite</span> module as it is not enabled by default:</p>
<pre class="brush: php">
[11:31:14] vivin@dauntless ~/Projects/www/skyblue
$ sudo a2enmod rewrite
Module rewrite installed; run /etc/init.d/apache2 force-reload to enable.

[11:31:20] vivin@dauntless ~/Projects/www/skyblue
$ sudo /etc/init.d/apache2 force-reload
 * Reloading web server config apache2
</pre>
<br /><a href="http://vivin.net/wordpress/?p=405#comments" title="Comments on &quot;Apache2 and .htaccess with mod_rewrite on Ubuntu 8.04 (Hardy Heron)&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?405" alt="Comments" /></a>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2009/03/26/apache2-and-htaccess-with-modrewrite-on-ubuntu-804-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?405" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?405" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	</item>
	</channel>
</rss>
