<?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>/dev/random &#187; Linux</title>
	<atom:link href="http://www.codymays.net/content/category/geekery/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codymays.net</link>
	<description>The CPUID of my brain...</description>
	<lastBuildDate>Wed, 04 Aug 2010 18:31:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The knack</title>
		<link>http://www.codymays.net/content/2007/02/08/the-knack/</link>
		<comments>http://www.codymays.net/content/2007/02/08/the-knack/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 01:59:22 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geek Humor]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NetBSD]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=70</guid>
		<description><![CDATA[There are times when people or companies make you mad, this is one of them. I was planning on beginning this post with a video from youtube called &#8220;The Knack.&#8221; It was a family guy video about computer and electronic tinkering. Well, Sony somehow feels that this 1:01 minute long clip violates their copyrights, so [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when people or companies make you mad, this is one of them. I was planning on beginning this post with a video from youtube called &#8220;The Knack.&#8221; It was a family guy video about computer and electronic tinkering. Well, Sony somehow feels that this 1:01 minute long clip violates their copyrights, so it has been removed in the last round of DMCA cease and desists on youtube. So, I won&#8217;t be starting this post off this way&#8230;</p>
<p>Last week, I got &#8220;The Knack.&#8221; It seems to bite any computer guy that comes into contact with Digital Equipment Corporation (DEC) hardware. It all started when a fellow programmer friend of mine sent me a link to a DEC Easy WebServer. This is a relabeled DEC Alpha Multia that shipped with Windows NT 4.0 Server. It included some sort of Netscape software for setting up a webserver easily.  Well, I figured I would go ahead and add it to my watch list, since it was only $20 + shipping. I continued browsing and around and found a DEC VAXstation 3100 for $18 + shipping. I have been wanting a VAX for a while, so I bought it. 2 days later, I bought the DEC Easy WebServer.</p>
<p>So in total, I spent over $100 in a week on computer hardware that is older than me.(almost as old as me in the Multia&#8217;s case) The VAXstation came and it ended up missing the whole SCSI controller board, so I&#8217;m still looking for one of those. The Multia came today and works great, but it seems to operate in &#8220;Space heater emulation mode&#8221; all the time, I&#8217;d hate to see it under a full CPU load.</p>
<p>I tried installing OpenBSD/Alpha on the Multia tonight, with little luck. The installer boots and then says it can find no drives, but the hardware compatibility list clearly says the Multia is supported. So, I tried to find Debian net boot floppy images and failed. I&#8217;m currently installing FreeBSD/Alpha as I&#8217;m writing this, hopefully it works better.</p>
<p>Here are a few pictures of my new machines, more pictures of the Multia can be found <a href="http://beta.zooomr.com/smartsets/codymays/10069">here</a>; more pictures of the VAXstation can be found <a href="http://beta.zooomr.com/smartsets/codymays/9697">here</a>.</p>
<div style="width:240px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/720041/" title="Zooomr Photo Sharing :: Photo Sharing"><img src="http://static.zooomr.com/images/720041_3de72fd87a_m.jpg" width="240" height="160" alt="DEC Alpha - Multia EasyWebServer" border="0" style="border:1px solid #000;" /></a></div>
<div style="width:240px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/720021/" title="Zooomr Photo Sharing :: Photo Sharing"><img src="http://static.zooomr.com/images/720021_eca56a6d83_m.jpg" width="240" height="160" alt="DEC Alpha - Multia EasyWebServer" border="0" style="border:1px solid #000;" /></a></div>
<div style="width:240px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/701844/" title="Zooomr Photo Sharing :: Photo Sharing"><img src="http://static.zooomr.com/images/701844_2f644dc51a_m.jpg" width="240" height="160" alt="VAXstation 3100" border="0" style="border:1px solid #000;" /></a></div>
<div style="width:240px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/701837/" title="Zooomr Photo Sharing :: Photo Sharing"><img src="http://static.zooomr.com/images/701837_b879518b4b_m.jpg" width="240" height="160" alt="VAXstation 3100" border="0" style="border:1px solid #000;" /></a></div>
<p>School has been crazy lately. I&#8217;ve been loaded down with homework most of the time, and on top of that I&#8217;ve been drafted by a few of the teachers at school to participate in the FBLA competitions. I&#8217;ll be competing in the single person test on computer networking. The test is a 100 question test given at a local university. I&#8217;m competing in the area my school does really bad in, so I hope I can change the tradition&#8230;</p>
<p>As I said above, school has been crazy lately. This has had it&#8217;s negative effects on Threadbound. When I do have time to code, I&#8217;m working on my client&#8217;s website, which I got sometime after my last post, or I&#8217;m doing coding for thunder-it.com. Today, I&#8217;ve been hit with a new block of inspiration and ideas for threadbound, so hopefully I can make some time to work on it. The stuff I came up with today is definitely new for the area I plan to implement it in.</p>
<p>For those of you still not quite sure about this whole Web 2.0 thing, check out the video below. It&#8217;s the best one I&#8217;ve ever seen that describes how I feel about it.<br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/6gmP4nk0EOE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/6gmP4nk0EOE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2007/02/08/the-knack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Apple for Thanksgiving.</title>
		<link>http://www.codymays.net/content/2006/11/22/an-apple-for-thanksgiving/</link>
		<comments>http://www.codymays.net/content/2006/11/22/an-apple-for-thanksgiving/#comments</comments>
		<pubDate>Thu, 23 Nov 2006 04:08:40 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geek Humor]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=67</guid>
		<description><![CDATA[I would like to wish everyone that reads this blog a happy Thanksgiving. Hope you all don&#8217;t eat too much. I know I will be tomorrow&#8230;maybe even with an Apple. Yep, my new 17&#8243; MacBook Pro finally came on Monday and today is the first day I&#8217;ve really put the time into learning how to [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to wish everyone that reads this blog a happy Thanksgiving. Hope you all don&#8217;t eat too much. I know I will be tomorrow&#8230;maybe even with an Apple. Yep, my new 17&#8243; MacBook Pro finally came on Monday and today is the first day I&#8217;ve really put the time into learning how to use OS X. So far, I&#8217;m completely amazed, it&#8217;s a very nice system. I like how all the applications seem to work together for even simple tasks.</p>
<p>The Kenwood Apple Store was true to their word, they called me the day they came in. I ended up getting to the store around 6:30-7pm and it was packed. These things must be selling like hotcakes because I know they sold 3 of them while we were waiting on the cashier to see if they had any 2gb ram sticks in stock &#8212; which they didn&#8217;t. So I&#8217;m still 1gb of ram short until my reserved stick comes in. They do have a nice deal going right now though. You can get an HP Photosmart C3180 printer for free with your MacBook if you are buying it on a college discount. You have to pay upfront, but you get a rebate for the full price of the printer, similar to how they were running the iPod deals.</p>
<p>So far my experience of moving from Linux to OSX has been pretty grand, as I hinted at above. The built in wireless coupled with my new WRT45G, that I hadn&#8217;t tested the wireless on, seem to be working much better than my old setup. It&#8217;s so nice having wireless again, no cat5 cable to get tangled up in my mouse. Application-wise, I have already found a replacement for everything I used on Linux. I knew all of these before I even owned a Mac though, since I talk to/code with a few people that own a mac.</p>
<p>Heck, in the three days I&#8217;ve had this thing, I&#8217;ve already spent $50 in software. I bought <a href="http://macromate.com">textmate</a> since it appears to be the best coding text editor on the planet for the mac and web 2.0 crew. I&#8217;m definitely liking it so far, but I&#8217;m on the hunt for PHP plugins now. They are a bit saturated with Ruby plugins. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I still need to get a legal copy of Photoshop CS2 for this box though. If only it was cheaper&#8230;</p>
<p>I&#8217;ve also had the joy of being able to run a lot of my favorite Linux applications on this thing. Fink is quite a nice system. I already have X11 running at startup, without that stupid xterm. I&#8217;ve modified my shell settings so everything I need to start X apps from Terminal.app is there and ready to go. I suggest all of you go out and install <a href="http://www.rhythmiccanvas.com/software/xdroplets/index.html">Xdroplets</a>. Combined with this custom X11 setup and Xdroplets, I have a pretty standard application interface for running my old applications, such as XMMS or Konqueror for testing.</p>
<p>To give you some idea of how fast this laptop is, I have two benchmarks for you. While I was writing this post, I started a compile of Apache 2.0.59 to start setting up my development environment for <a href="http://www.threadbound.com">ThreadBound</a>. Here are the command that I ran:</p>
<blockquote><p>
$ ./configure<br />
$ export MAKEOPTS=&#8221;-j6&#8243;<br />
$ time make
</p></blockquote>
<p>What are the results? Astounding, considering this is a 10-20 minute compile on my old Athlon64 3200+ laptop&#8230;</p>
<blockquote><p>
real    1m37.240s<br />
user    0m53.671s<br />
sys     0m37.242s
</p></blockquote>
<p>The other benchmark is from when I installed Windows XP on my friend&#8217;s MacBook Pro, which is identical to the one I bought. After installing Counter-Strike: Source, we ran the video stress test. These machines averaged 114 FPS on it. This test set all of the settings on high, so we tried it. We were getting about 60-90 FPS at 1680&#215;1050 during games. This just goes to show you the performance of this machine. Considering that people don&#8217;t know that the x1600 graphics cards they ship with are underclocked by around 45% below what ATI ships them as, due to heat. So I&#8217;m going to have to overclock them a bit and see how it does.</p>
<p>Here is a nice picture of my MacBook Pro:</p>
<div style="width:500px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/435556/" title="Zooomr Photo Sharing :: Photo Sharing"><img src="http://static.zooomr.com/images/435556_931ea66bff.jpg" width="500" height="376" alt="Macbook Pro Core 2 Duo Opening" border="0" style="border:1px solid #000;" /></a><span style="float:left;">Macbook Pro Core 2 Duo Opening</span> Hosted on <strong>Zooom<span style="color:#9EAE15;">r</span></strong></div>
<p>More pictures of it can be found <a href="http://beta.zooomr.com/smartsets/codymays/6140">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/11/22/an-apple-for-thanksgiving/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A bit of a test</title>
		<link>http://www.codymays.net/content/2006/09/25/a-bit-of-a-test/</link>
		<comments>http://www.codymays.net/content/2006/09/25/a-bit-of-a-test/#comments</comments>
		<pubDate>Tue, 26 Sep 2006 00:41:01 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=63</guid>
		<description><![CDATA[The past few weeks have been pretty insane. I have not only had a lot to do at school, but a lot going on too. My Counter-Strike: Source addiction is coming back too, thanks to a bunch of my friends at school and our newly formed clan. I wont&#8217; have much time for anything the [...]]]></description>
			<content:encoded><![CDATA[<p>The past few weeks have been pretty insane. I have not only had a lot to do at school, but a lot going on too. My Counter-Strike: Source addiction is coming back too, thanks to a bunch of my friends at school and our newly formed clan. I wont&#8217; have much time for anything the rest of the week though. Tomorrow and Wednesday I have PLAN testing, which is basically the pre-ACT test. Then I have a week to do my PSAT practice booklet and take the PSAT. Fun times ahead. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In other news, I would like to leak a bit of news on one of my new projects that I am co-developing with a network operator for the<a href="http://wyldryde.org">WyldRyde.org</a> IRC network, <a href="http://www.damnsmallbsd.org">DamnSmallBSD</a>. It is a take off of the very first linux distribution I ever used, <a href="http://www.damnsmalllinux.org">Damn Small Linux</a>. Our goals are similar, but we are based on a completely different operating system, FreeBSD. We also have some cool ideas to keep it modular for people looking to remaster it. Keep your eyes open, the cd is bootable, we just haven&#8217;t done much work on the userland yet.</p>
<p>Over the past day, I also broke back into some PHP. ThreadBound officially moved a step closer to it&#8217;s main goal. Here is a little hint of a very early page:</p>
<div style="width:500px;text-align:right;"><a href="http://beta.zooomr.com/photos/codymays/230218/" title="Zooomr :: Photo Sharing"><img src="http://static.zooomr.com/images/230218_20636fef9a.jpg" width="500" height="237" alt="ThreadBound - preview" border="0" style="border:1px solid #000;" /></a><span style="float:left;">ThreadBound &#8211; preview</span> Hosted on <strong>Zooom<span style="color:#9EAE15;">r</span></strong></div>
<p>I have also been contacted to do some more work for <a href="http://www.thunderit.com">ThunderIT.com</a>, so I&#8217;m very happy about that. The project I&#8217;ll be working on is very cool. Hopefully some of the cash I get from this job will help me get a new laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/09/25/a-bit-of-a-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A guide to Linux&#8217;s kernel SysReq kernel interface</title>
		<link>http://www.codymays.net/content/2006/06/20/a-guide-to-linuxs-kernel-sysreq-kernel-interface/</link>
		<comments>http://www.codymays.net/content/2006/06/20/a-guide-to-linuxs-kernel-sysreq-kernel-interface/#comments</comments>
		<pubDate>Tue, 20 Jun 2006 23:18:49 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=55</guid>
		<description><![CDATA[If you have ever suffered a kernel panic on a Linux system, only to reboot and find you need to fsck your harddrive, you will find these short cuts handy. I know I have needed something like this many times while messing around with Gentoo kernels and borked installs. If you have compiled your kernel [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever suffered a kernel panic on a Linux system, only to reboot and find you need to fsck your harddrive, you will find these short cuts handy. I know I have needed something like this many times while messing around with Gentoo kernels and borked installs. If you have compiled your kernel with a yes to Magic SysRq key (CONFIG_MAGIC_SYSRQ) in the kernel .config file, you will have the ability to use these shortcuts.</p>
<p>By pressing Alt + SysReq + any of the keys below, you can perform any of the functions listed:</p>
<ul>
<li>r &#8211; Turns off keyboard raw mode and sets it to XLATE.cc</li>
<li>k &#8211; Secure Access Key (SAK) Kills all programs on the current virtual console</li>
<li>b &#8211; Will immediately reboot the system without syncing or unmounting your disks</li>
<li>c &#8211; Will perform a kexec reboot in order to take a crashdump.</li>
<li>o &#8211; Will shut your system off (if configured and supported)</li>
<li>s &#8211; Will attempt to sync all mounted filesystems</li>
<li>u &#8211; Will attempt to remount all mounted filesystems read-only</li>
<li>p &#8211; Will dump the current registers and flags to your console</li>
<li>t &#8211; Will dump a list of current tasks and their information to your console</li>
<li>m &#8211; Will dump current memory info to your console</li>
<li>v &#8211; Dumps Voyager SMP processor info to your console</li>
<li>0-9 &#8211; Sets the console log level, controlling which kernel messages will be printed to your console. (&#8217;0&#8242;, for example would make it so that only emergency messages like PANICs or OOPSes would make it to your console.)</li>
<li>f &#8211; Will call oom_kill to kill a memory hog process</li>
<li>e &#8211; Send a SIGTERM to all processes, except for init</li>
<li>i &#8211; Send a SIGKILL to all processes, except for init</li>
<li>l &#8211; Send a SIGKILL to all processes, INCLUDING init (Your system will be non-functional after this.)</li>
<li>h &#8211; Will display help ( actually any other key than those listed above will display help. but &#8216;h&#8217; is easy to remember <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>There are more suggestions in the official Linux kernel Documentation directory (that&#8217;s where this came from). See /usr/src/linux/Documentation/sysrq.txt for more information on this handy kernel feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/06/20/a-guide-to-linuxs-kernel-sysreq-kernel-interface/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bring back that old computer! Make it useful for modern day activities, but with a twist!</title>
		<link>http://www.codymays.net/content/2006/05/04/bring-back-that-old-computer-make-it-useful-for-modern-day-activities-but-with-a-twist/</link>
		<comments>http://www.codymays.net/content/2006/05/04/bring-back-that-old-computer-make-it-useful-for-modern-day-activities-but-with-a-twist/#comments</comments>
		<pubDate>Fri, 05 May 2006 01:28:40 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=24</guid>
		<description><![CDATA[So you have an old computer stuffed in your closet, but you think it's too old to do anything? Probably not, but do you remember the good old days of 80x25 text mode? Many people think that this is completely useless nowadays, after being spoiled with desktop environments like KDE, gnome, and Aqua. The truth is that they're wrong. You can do many things in text mode that you can do in vga/vesa.]]></description>
			<content:encoded><![CDATA[<p>So you have an old computer stuffed in your closet, but you think it&#8217;s too old to do anything? Probably not, but do you remember the good old days of 80&#215;25 text mode? Many people think that this is completely useless nowadays, after being spoiled with desktop environments like KDE, gnome, and Aqua. The truth is that they&#8217;re wrong. You can do many things in text mode that you can do in vga/vesa.</p>
<p>First off let me tell you about how we&#8217;ll get this thing started. I am assuming you can at least turn the computer on and get into the BIOS. You&#8217;ll need a CD drive, a harddrive of at least 4gb, and an internet connection on the old computer. I&#8217;ll be using FreeBSD in this article, but many of these applications are easily available in source for Linux or any other Unix.</p>
<h2>Install FreeBSD</h2>
<p>First off, you&#8217;ll need to grab the latest FreeBSD iso from <a href="http://freebsd.org">FreeBSD.org</a> and burn it to a cd. Now, go into your computer&#8217;s bios and set the cd drive to be the first boot device, stick the cd in, and reboot. Once the cd starts up, you should see the following:<br />
<a href="http://www.codymays.net/FreeBSD/full/install/sysinstall1.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/sysinstall1.png" alt="sysinstall" /></a></p>
<p>Now, navigate down to Standard and press enter.  Press enter on the next menu that comes up telling you that you need to setup a partition scheme and you should see the screen below:</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/fdisk.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/fdisk.png" alt="Fdisk" /></a></p>
<p>This is where we create what is known to BSD users as a slice. A slice is basically one of the four &#8220;primary&#8221; partitions in DOS terms. I&#8217;m assuming these computers have small harddrives, so let&#8217;s just go ahead and use Auto, so press the &#8216;A&#8217; key. Now the list should have the slice added. Press &#8216;Q&#8217; to save the changes and move to the next step.</p>
<p>A menu should come up with three options at the bottom, they are BootMgr, Standard, and None. Move down to Standard, press enter, and press enter again on the Ok in the next menu.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/boot_manager_menu.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/boot_manager_menu.png" alt="FreeBSD Boot manager menu" /></a></p>
<p>Now you should see a screen very similar to what you saw when editing the slices. I&#8217;m not going to go into details about slices or partitions here, but a quick look in <a href="http://freebsd.org/handbook">the FreeBSD Handbook</a> should give you plenty of information. Just go ahead and press &#8216;A&#8217; on this window, then press &#8216;Q&#8217;.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/disklabel.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/disklabel.png" alt="disklabel" /></a></p>
<p>Shortly after you press Q, you should get a window asking you to choose your distribution. Scroll down with the arrow key and press enter on developer. Immediately after pressing enter, a window will come up asking if you would like to install the FreeBSD ports collection. Choose yes. Now press the arrow key back up to X Exit and press enter.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/distrochoose.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/distrochoose.png" alt="Choosing a distrobution" /></a></p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/enable_ports.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/enable_ports.png" alt="Enable Ports" /></a></p>
<p>A menu asking you to select the media type should come up now. Since we are using the CD, select CD/DVD and press enter. Press enter on the screen that tells you this is your last chance to backup and FreeBSD will begin to install.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/media.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/media.png" alt="Choosing a media" /></a></p>
<p>After a few minutes you will see your success. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Press enter.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/success.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/success.png" alt="Success" /></a></p>
<p>You should now see a menu asking if you want to configure any Ethernet or SLIP/PPP network devices. I will assume you have one and let&#8217;s walk through it. Press enter with &#8220;Yes&#8221; highlighted.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/config_netdev.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/config_netdev.png" alt="Choosing a distribution" /></a></p>
<p>After pressing enter, you will see a menu with a list of network devices. You should select the device from the list and press enter. Normally your NIC is the first in the list, but this may be completely different on your setup.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/netdev_list.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/netdev_list.png" alt="Network device list" /></a></p>
<p>Select No on the IPv6 configuration window that comes up and Yes on the DHCP menu. Enter a hostname in the input box. The hostname can be anything you wish, but try to keep it short. Press enter until &#8220;Ok&#8221; is highlighted and press it again.</p>
<p>A window should now pop up asking if you want to configure the machine as a network gateway. Choose no here. After that, you should see a window asking if you would like to configure inetd and the services it provides. Choose &#8220;Yes&#8221; here, because we are going to want to enable ftp access to the machine. Now, the usual enabling-network-services-can-provide-a-security-hole menu comes up. Go ahead and choose &#8220;Yes&#8221; again. Press &#8220;Yes&#8221; one more time to bring up an editor. </p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/ee.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/ee.png" alt="EE the editor" /></a></p>
<p>Remove the #&#8217;s from in front of both ftp&#8217;s so that it looks like this:</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/ee_inetd.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/ee_inetd.png" alt="Editing inetd" /></a></p>
<p>Press Escape and a menu will open and press the A key.</p>
<p>Now we get into quite a few configuration menus. First, a menu asking if you want to enable SSH will come up, enable this. SSH will allow us to have a headless system so you don&#8217;t need a monitor for the old dinosaur, but only an SSH client. Do NOT enable anonymous ftp access to the box, that&#8217;s a very stupid thing to do. Select no for the next two menus having to do with NFS setup. You may edit your console settings with the menu that comes up yet, but I didn&#8217;t bother to. Of course you&#8217;ll want to set your time zone, so do that when the menu comes up, just make sure you choose no on CMOS clock menu.</p>
<p>We&#8217;re almost done! Enable the Linux binary compatibility when the menu comes up. You can enable the mouse in the menu that comes up next, but it&#8217;s not required. Don&#8217;t bother browsing the packages because we will be installing ports.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/linux_compat.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/linux_compat.png" alt="Linux compatibility" /></a></p>
<p>You must choose yes on the window that asks if you would like to enable any additional user accounts. This will be essential for when we go to setup SSH because I&#8217;m not going to enable root SSH, but allow root access over SSH via <a href="http://www.courtesan.com/sudo/">sudo.</a> After selecting yes, you will see a window like the one shown below. You will want to select Users, then you will see the second image below. You only need to add a username and password. Once you have done that, change the shell text box so that it says /bin/tcsh. The 3rd image below should be what you have before you select okay. When the original menu comes back up choose Exit.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/ugroupedit.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/ugroupedit.png" alt="group editing" /></a></p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/useredit.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/useredit.png" alt="User edit" /></a></p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/useredit2.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/useredit2.png" alt="User edit 2" /></a></p>
<p>Go ahead and follow the directions for setting the root password that will come up next. Make sure you make this password high security because if anyone gets root access to your machine, you&#8217;ll get to start all over. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Choose no on the next menu to visit the configuration menu again. Now chose &#8220;Exit Install&#8221; and follow the directions.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/exitinstall.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/exitinstall.png" alt="Exit sysinstall" /></a></p>
<h2>Configuring FreeBSD</h2>
<p>After the install is done you will be directed to reboot your machine, after taking the cd out. When you boot it up you will see a message that says to just type a bunch of junk and press enter, do so. This is for unblocking entropy and will only happen on this boot. Once it is finished booting up, you should see this:</p>
<p><a href="http://www.codymays.net/FreeBSD/full/install/firstlight.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/install/firstlight.png" alt="first light" /></a></p>
<p>At the login prompt, type root as the username and then the password you set for root. If you don&#8217;t already know, root is the most powerful account available in a Unix system. Root allows you to do anything you want, including destroy the system. This is why you should not enable root over SSH or give out your root password. We&#8217;ll be using root here to install ports and setup some configuration files.</p>
<p>The first thing we should do is update our ports collection so we have all of the latest bug fixes. So at the prompt type the following:</p>
<blockquote><p>
hostname# pkg_add -r cvsup-without-gui &#038;&#038; rehash
</p></blockquote>
<p>pkg_add allows us to install packages without having to compile them. I prefer to compile my ports, but you are more than welcome to use pkg_add. Rehash causes the internal hash table of the contents of the directories in the path variable to be recomputed, with the new binaries we just installed.</p>
<p>Here comes the fun part that can take a while, depending on how out dated your ports collection is. Run the following:</p>
<blockquote><p>
hostname# cd /usr/share/examples/cvsup<br />
hostname# ee ports-supfile
</p></blockquote>
<p>You should now see a screen like the one below:<br />
[IMG eeportssupfile]<br />
Scroll down until you find this line:</p>
<blockquote><p>
*default host=CHANGE_THIS.FreeBSD.org
</p></blockquote>
<p>and change it so that it&#8217;s one of the domains listed <a href="http://www.freebsd.org/doc/handbook/cvsup.html#CVSUP-MIRRORS">here</a> or just use the following:</p>
<blockquote><p>
*default host=cvsup5.FreeBSD.org
</p></blockquote>
<p>Now press ^[ (the escape key) and then press A to save our changes. What this does is checkout the latest ports collection from one of the cvs servers (cvsup5 in this case). So to start it, do the following:</p>
<blockquote><p>
hostname# cvsup ports-supfile
</p></blockquote>
<p>After a few minutes this should finish and take you back to a command prompt. </p>
<h2>Installing Sudo</h2>
<p>I'm going to make you install sudo as I said above. Once this is installed, I'll show you how to setup a "headless" system so you can unplug the keyboard/monitor and push the machine back into the closet. You'll just need a network and power cable. Let's get started! Sudo stands for superuser do. This allows any user added to the sudoers file to execute certain commands, all commands, or even get a root shell without having to directly login as root. This has quite a few benefits. The main thing is that you don't have to enable root over SSH and it makes you think of what you are about to execute as root. This can keep you from screwing your system over, so from here on out, let's consider it a bad thing to use the full root user unless absolutely needed.</p>
<p>First thing we'll need to do is change to the ports directory.</p>
<blockquote><p>
hostname# cd /usr/ports/security/sudo<br />
hostname# make install clean &#038;&#038; rehash<br />
</blockquote<br />
This will download the sudo source, compile, and install sudo. Now, I'll assume you'll want that second user you added to have root access, since this will be your main account from now on, so we'll need to edit the sudoers file.</p>
<blockquote><p>
hostname# cd /usr/local/etc<br />
hostname# ee sudoers
</p></blockquote>
<p>Now, this will bring the ee text editor again. Find these lines:</p>
<blockquote><p>
# User privilege specification<br />
root    ALL=(ALL) ALL
</p></blockquote>
<p>Remember that second user we added during the install? Add the following under "root    ALL=..." from above, but replacing username with whatever the username of the account that you added was.</p>
<blockquote><p>
username    ALL=(ALL) ALL
</p></blockquote>
<p>Go ahead and save the file like we did before. Now we're ready to go headless, but before we do that, let's make sure you'll have access to the machine, before I tell you that you can remove your physical access to the box. Now run the command below:</p>
<blockquote><p>
hostname# sockstat
</p></blockquote>
<p>You should see sshd somewhere in the 2nd column. Now, you are ready to go to a headless system. </p>
<h2>How to use SSH</h2>
<p>I will quickly go over how to use SSH here for Windows and Unix. I will first start with Unix. On a unix machine you can open a console and run:</p>
<blockquote><p>
hostname# ssh username@ipaddress
</p></blockquote>
<p>If your username is the same as the one on the server, you do not need username@, but just the IP. If it is different, make sure username is replaced with the user you wish to log into the box with. To find the IP address of the old computer, you'll need to have physical access to the box. Run the following command on it after logging in.</p>
<blockquote><p>
hostname# ifconfig
</p></blockquote>
<p>You should see a screen similar to the following:</p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/ifconfig.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/ifconfig.png" alt="ifconfig" /></a></p>
<p>Your IP address should be in a location similar to the red circle and chances are that it will not be the same as the one in the picture. The IP address you want is going to be under the network device you configured during installation. From there on out, login is pretty obvious and it's just like as if you were sitting in from of the monitor. Use the command <i>exit</i> to close the ssh session.</p>
<p>Windows is a bit different because it does not have a built in client, so you will need to download one. I highly recommend <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>. On the downloads page, make sure you download putty.exe and not the other ones, because they lack SSH. Once downloaded, double click on the file. You should see a window come up like the one below. <strong>Note:</strong> Your fonts will not look as bad as they are in these screenshots. I am running PuTTY via <a href="http://winehq.org">Wine</a> on FreeBSD because I do not have a Windows computer handy. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/putty.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/putty.png" alt="putty" /></a></p>
<p>After filling in the IP address, as in the screenshot above, you will see the following window pop up. Click Yes on the security alert. This just tells us that it hasn't cached the SSH key.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/putty2.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/putty2.png" alt="putty2" /></a></p>
<p>Below is an ugly example of PuTTY running. Once again, I am terribly sorry I don't have my fonts setup correctly in wine. It will look much better on native Windows. Here on out it's just like having physical access as well.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/config/putt3.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/config/putt3.png" alt="putty3" /></a></p>
<h2>Office Utilities</h2>
<p>So we know you'll eventually need to do some work -- thanks to the guy that said I'm going to work all of my life and save up money the whole time. First thing you will probably needs is an email client. I suggest mutt. It is an extremely nice and feature complete text mode email client. Make sure you have logged into your second user account for the rest of this article.</p>
<blockquote><p>
hostname# cd /usr/ports/mail/mutt &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>This will download the mutt source, compile, and install it, just like we did with sudo. I would like to cover the setup of mutt, but there is a great guide <a href="http://mutt.blackfish.org.uk/">here</a> that would definately out do me. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now I know you'll need a calender sometime. Besides the default unix cal program there are many other alternatives. I'm going to install <a href="http://palcal.sourceforge.net/">Pal</a> for you.</p>
<p>The first thing you need to do is run the following commands:</p>
<blockquote><p>
hostname#cd /usr/ports/deskutils/pal &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>As with the install of sudo, this will download, compile, and install pal. From there, I suggest you run <i>man pal</i> and read what is in the man page. Here is a quick way to get started though:</p>
<blockquote><p>
hostname# pal -m
</p></blockquote>
<p>Pal -m is interactive mode. This allows you to add/remove events, and even set up notifications of events.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/pal-m.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/pal-m.png" alt="pal -m" /></a></p>
<p>Assuming you are like any other person, you will need some way to read your PDF and Word documents. How would you do this in text mode? Easy! We harness the power provided by <a href="http://www.winfield.demon.nl/">antiword</a> and pdftotext (part of the xpdf project).</p>
<p>To install antiword, run the following:</p>
<blockquote><p>
hostname# cd /usr/ports/textproc/antiword &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>This will install antiword and allow you to view your documents as a text document. This also has ample documentation once installed, so I won't cover its usage. Please run the command antiword to see a quick list of what to do, or run <i>man antiword</i> to see the full system documentation.</p>
<p>To install pdftotext, you need to run the following:</p>
<blockquote><p>
hostname# cd /usr/ports/graphics/xpdf/ &#038;&#038; sudo make WITHOUT_X11=yes install clean &#038;&#038; rehash
</p></blockquote>
<p>Make sure you include the WITHOUT_X11 or you will spend hours compiling the X server and all of it's dependencies. With pdftotext, you can convert PDF files to text or HTML documents to view in a web browser. I will not cover how to use pdftotext because you can just type in pdftotext and press enter at the prompt to get a quick how to. If you want more in depth information, run <i>man pdftotext</i>.</p>
<p>That brings us to our last office application, a web browser. Aren't we all spoiled by great applications like Firefox? I mean we have tabbed browsing, multiple download support, and good security. I bet you are thinking this is impossible in text mode, but you should know by now that it isn't. Elinks provides everything I just stated and is just as easy to use.  To install Elinks, run the following commands:</p>
<blockquote><p>
hostname# cd /usr/ports/www/elinks &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>Once you have let it compile and install, you should be able to run the command <i>elinks</i> to open the browser. Once opened, it should look something like this:</p>
<p><a href="http://www.codymays.net/FreeBSD/full/elinks.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/elinks.png" alt="Elinks" /></a></p>
<p>To start using it, just enter the address and press enter. Over ssh, you can usually use your mouse to interact with it, to some extent. If not, you'll need to use the up and down arrow keys. To open the main menu, press the escape key and use the arrow keys to navigate it.</p>
<p>Hopefully you understand all of the work that can be done in text mode and I'm only scratching the surface! Once you learn the application parameters and find new applications on your own, you will see how quickly you accomplish tasks.</p>
<h2>Keeping in Touch - Chat</h2>
<p>Besides using email, you are probably going to need a way to keep in touch with your friends and family. You have probably lost all hope in using any modern instant messenger in text mode, but once again, you should know better. I will introduce you to an application that allows you to use AIM and ICQ from within text mode. So let's get installing!</p>
<p>As usual, run the following command:</p>
<blockquote><p>
hostname# cd /usr/ports/net-im/naim &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>Once you have it installed, run the command <i>naim</i> and you should see the image below.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/naim.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/naim.png" alt="naim" /></a></p>
<p>It will take a while to get used to, but to login you need to type <i>/connect yourScreenName</i> and then you will need to type your password and press enter. You should also notice that the bar above where you type gives you hints. You should also familiarize yourself with the /help command.</p>
<p>If you would like to know more about the other features of naim, I suggest you read the man page as usual. Run the command <i>man naim</i> to see it.</p>
<p>For you geeks out there -- that means you. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  You probably already know about this one, but I'm going to go over it anyway. The most famous text mode client of them all, irssi. Irssi is a full featured IRC client that supports multiple servers, multiple chat channels, perl scripting, theming, and many other features. So, why stop now? Let's get installing! The command is as you guessed it:</p>
<blockquote><p>
hostname# cd /usr/ports/irc/irssi &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>To use irssi all you need to do is run the command irssi. From there, you have all of your basic irc commands, plus a few irssi specific ones for controlling the window. Here is a run down on connection to an irc network. In this case, we'll use an irc network I helped found, <a href="http://thewildcard.org">The Wildcard.</a></p>
<p>First thing you need to do is run irssi and type /server irc.thewildcard.org. Once you are connected, type /join #main and /join #equality. This will put you in two channels. You can then switch between windows using /win window#. In this example, /win 1 would be the server window and /win 2 and /win 3 would be #main and #equality. Everything else is just as you would expect with an IRC client.<br />
[IMG irssi]</p>
<h2>Gaming</h2>
<p>There are a ton of games that can be played in text mode. I am only going to show you how to set up a few smaller games, but if you are a more advanced user, you can compile SDL to use ASCII as its output mode. You can then plan Quake and any other SDL application from within a console. You may want to google libaa and libcaca for more information on doing this.</p>
<p>First of all, let&#8217;s get you set up with one of the most addicting text mode games that I have ever seen, Nethack. Nethack is an amazing game, it is as if the developers thought of almost every possible thing. I guess that is why it is still popular. So here goes&#8230;</p>
<blockquote><p>
hostname# cd /usr/ports/games/nethack34-nox11/ &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>Once it is done, that&#8217;s all there is to it! Just run the command nethack and go. You may want to read the man page (by running <i>man nethack</i>) or visit <a href="http://www.nethack.org">www.nethack.org</a> for more information.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/nethack.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/nethack.png" alt="Nethack!" /></a></p>
<p>After you spend weeks playing Nethack, you may want to play some good old classics. There are plenty of those in text form. I&#8217;ll start off with nInvaders. This is by far one of the coolest text mode Space Invaders clone that I have ever seen. To install it run:</p>
<blockquote><p>
hostname# cd /usr/ports/games/nInvaders &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>Once installed, it&#8217;s pretty simple. Run the command <i>nInvaders</i> and use the right/left arrows to move and the spacebar to shoot.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/nInvaders.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/nInvaders.png" alt="nInvaders" /></a></p>
<p>If you want to go with another classic, you can play BSDtris. This is a full features ASCII Tetris clone. To install:</p>
<blockquote><p>
hostname# cd /usr/ports/games/bsdtris &#038;&#038; sudo make install clean &#038;&#038; rehash
</p></blockquote>
<p>As soon as that finishes up, all you have to do is run the command <i>bsdtris</i> and follow the key guides, on the screen, to play.</p>
<p><a href="http://www.codymays.net/FreeBSD/full/bsdtris.png" rel="shadowbox[post-24];player=img;"><img src="http://www.codymays.net/FreeBSD/thumbnails/bsdtris.png" alt="BSDtris" /></a></p>
<h2>Wrapping it all up</h2>
<p>I hope this has opened the world to some of you people afraid of text mode. There is a whole new world of software out there waiting for you to discover it. I suggest starting at sites like <a href="http://www.freshports.org">freshports.org</a> and <a href="http://freshmeat.net">freshmeat.net</a> and just start browsing. There are many more things that can be installed from the FreeBSD ports collection, but you should at least know the basics. If you have any questions, don&#8217;t hesitate to reply to this post or join us in IRC.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/05/04/bring-back-that-old-computer-make-it-useful-for-modern-day-activities-but-with-a-twist/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jayant lives again!</title>
		<link>http://www.codymays.net/content/2006/03/06/jayant-lives-again/</link>
		<comments>http://www.codymays.net/content/2006/03/06/jayant-lives-again/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 03:34:58 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=32</guid>
		<description><![CDATA[I must say I&#8217;m proud of the progress with Jayant. It can now serve basic html pages and handle 404&#8217;s. Each connection is processed via a pthread as I said the in the previous post. I fixed two buffer overflows in it today as well. 
Tomorrow I&#8217;m going to try to get a mime type [...]]]></description>
			<content:encoded><![CDATA[<p>I must say I&#8217;m proud of the progress with Jayant. It can now serve basic html pages and handle 404&#8217;s. Each connection is processed via a pthread as I said the in the previous post. I fixed two buffer overflows in it today as well. </p>
<p>Tomorrow I&#8217;m going to try to get a mime type system up. I want to the /etc/mime.types file if possible, this means I&#8217;m going to need a custom parser for it. I&#8217;m debating whether to write one, or go the easy route and find a public domain one. I guess it just depends on how much time school gives me.</p>
<p>As of today, Jayant also runs on two platforms with no modifications, FreeBSD and linux. So I can only assume it will run on any other unix. I&#8217;ll be trying BeOS within the next few days, as well as a native SkyOS compile.</p>
<blockquote><p>
cody@devnulled:/home/cody/jayant>./jhttpd<br />
Server Port: 8181<br />
Server Log Dir: /home/cody/jayant<br />
Server Signature: JayantHTTP (FreeBSD) 1.0.0<br />
Adding callback for fd 3<br />
Realloc&#8217;ing fd_tasks<br />
No callback for 1<br />
No callback for 2<br />
Listening on port 8181 fd 3
</p></blockquote>
<blockquote><p>
cody@laptop:~/jayant$ ./jhttpd<br />
Server Port: 8181<br />
Server Log Dir: /home/cody/jayant<br />
Server Signature: JayantHTTP (Linux) 1.0.0<br />
Adding callback for fd 3<br />
Realloc&#8217;ing fd_tasks<br />
No callback for 1<br />
No callback for 2<br />
Listening on port 8182 fd 3
</p></blockquote>
<p>Here is a little bite to chew on, the first page served by it:<br />
<a href="http://www.codymays.net/images/jayant/jhttpd.png" rel="shadowbox[post-32];player=img;"><img src="/images/jayant/jhttpd_small.png" alt="jhttpd" /></a><br />
Click for larger image</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/03/06/jayant-lives-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian GNU/kFreeBSD</title>
		<link>http://www.codymays.net/content/2006/02/15/debian-gnukfreebsd/</link>
		<comments>http://www.codymays.net/content/2006/02/15/debian-gnukfreebsd/#comments</comments>
		<pubDate>Thu, 16 Feb 2006 02:32:11 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.codymays.net/content/2006/02/15/debian-gnukfreebsd/</guid>
		<description><![CDATA[I have been extremely busy with school this week, but tonight I had about an hour to do something. So I decided to try out Debian GNU/kFreeBSD. This is a very interesting OS to me because of my love of both Debian and FreeBSD.
Many people ask about the name. It stands for GNU userland and [...]]]></description>
			<content:encoded><![CDATA[<p>I have been <em>extremely</em> busy with school this week, but tonight I had about an hour to do something. So I decided to try out <a href="http://www.debian.org/ports/kfreebsd-gnu/">Debian GNU/kFreeBSD</a>. This is a very interesting OS to me because of my love of both Debian and FreeBSD.</p>
<p>Many people ask about the name. It stands for GNU userland and kernel of FreeBSD. Not only does it come with glibc and the rest of the GNU userland, but it also has most of the Debian packages ported over for use with the apt-get port.</p>
<p>I highly recommend people try it that may want to use BSD as a server, but can&#8217;t leave their linux setup. They are extremely similar with this setup. Only problem I noticed was that you need to manually run dhclient and reboot on the first bootup to get it to setup your nic correctly. Other than that, I&#8217;ll be looking forward to getting a working gnome or KDE port on this system. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/02/15/debian-gnukfreebsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache Apache Apache&#8230;why aren&#8217;t you working working?</title>
		<link>http://www.codymays.net/content/2006/01/24/apache-apache-apachewhy-arent-you-working-working/</link>
		<comments>http://www.codymays.net/content/2006/01/24/apache-apache-apachewhy-arent-you-working-working/#comments</comments>
		<pubDate>Wed, 25 Jan 2006 02:01:34 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=20</guid>
		<description><![CDATA[I&#8217;ve just spent a good two to three hours of my time screwing with the Apache 2.0.54 Ubuntu Linux package, just to get mod_rewrite to work properly. So if you have an Error 500 when adding &#8220;RewriteEngine On&#8221; to your .htaccess, this is the fix for you.

cd /etc/apache2
sudo nano apache2.conf
Add Options +FollowSymLinks
sudo /etc/init.d/apache2 force-restart

and you [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just spent a good two to three hours of my time screwing with the Apache 2.0.54 Ubuntu Linux package, just to get mod_rewrite to work properly. So if you have an Error 500 when adding &#8220;RewriteEngine On&#8221; to your .htaccess, this is the fix for you.</p>
<ol>
<li>cd /etc/apache2</li>
<li>sudo nano apache2.conf</li>
<li>Add Options +FollowSymLinks</li>
<li>sudo /etc/init.d/apache2 force-restart</li>
</ol>
<p>and you should be up and running. Hope that assists you people out there. I know I spent too much time on that. <img src='http://www.codymays.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2006/01/24/apache-apache-apachewhy-arent-you-working-working/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>KVM Review</title>
		<link>http://www.codymays.net/content/2005/12/16/kvm-review/</link>
		<comments>http://www.codymays.net/content/2005/12/16/kvm-review/#comments</comments>
		<pubDate>Fri, 16 Dec 2005 20:31:18 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=12</guid>
		<description><![CDATA[Well, after a week of waiting, my KVM came. This is the model I bought. It features rack mounts, 8 ports, hot key switching, manual switching, keyboard/mouse/monitor reset without power down, and auto scan.
After spending an hour and a half rewiring my room to get one extra plug, I discovered I had an empty plug [...]]]></description>
			<content:encoded><![CDATA[<p>Well, after a week of waiting, my KVM came. <a href="http://www.monoprice.com/products/product.asp?c_id=101&#038;cp_id=10102&#038;cs_id=1010202&#038;p_id=2011&#038;style=&#038;seq=1&#038;format=2#description">This</a> is the model I bought. It features rack mounts, 8 ports, hot key switching, manual switching, keyboard/mouse/monitor reset without power down, and auto scan.</p>
<p>After spending an hour and a half rewiring my room to get one extra plug, I discovered I had an empty plug right next to where I wanted the KVM&#8230;so I ended up unrewiring. So now I had it installed and I was dying to test it out. So I hooked devnulled(this server) and sputneek(my athlon64 gaming box) to the kvm. The keyboard I used was a Logitech Cordless Desktop Express.</p>
<p>After powering on the KVM it auto scanned for connected computers and changed the light color for the port to green. Since I was testing it on sputneek first, I pressed the first button to put us on that computer. Now I&#8217;m going to pause and say a few things I found odd before I got to this point. When I was flipping through the instruction paper, it had warnings about how the device can cause some radio interference. I still to this day have no clue why, but it did. When gnome came up on the computer, my mouse would just go psycho when I would move it and my screen was a bit blurry.</p>
<p>To fix this wonderful problem was fairly simple. I booted ubuntu backup, and since my keyboard worked, switched to tty1 and ran a sudo dpkg-reconfigure -y xserver-xorg &#038;&#038; sudo killall gdm &#038;&#038; gdm &#038;&#038; exit. That fixed it as it basically recreated my xorg.conf with the new hardware that it detected, as the mouse and keyboard identify as different devices from my Logitech ones. That also fixed the blurriness issues I had.</p>
<p>On devnulled, there was no problem at all. It worked beautifully.</p>
<p>Pictures:<br />
<a href="/wp-content/kvm.jpg" rel="shadowbox[post-12];player=img;"><img src="/wp-content/kvm_thumb.jpg" alt="kvm1" /></a></p>
<p><a href="/wp-content/kvm2.jpg" rel="shadowbox[post-12];player=img;"><img src="/wp-content/kvm2_thumb.jpg" alt="kvm2" /></a></p>
<p><a href="/wp-content/kvm3.jpg" rel="shadowbox[post-12];player=img;"><img src="/wp-content/kvm3_thumb.jpg" alt="kvm3" /></a></p>
<p><a href="/wp-content/kvm_back.jpg" rel="shadowbox[post-12];player=img;"><img src="/wp-content/kvm_back_thumb.jpg" alt="kvm back" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2005/12/16/kvm-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>test</title>
		<link>http://www.codymays.net/content/2005/12/09/test/</link>
		<comments>http://www.codymays.net/content/2005/12/09/test/#comments</comments>
		<pubDate>Fri, 09 Dec 2005 19:36:02 +0000</pubDate>
		<dc:creator>Cody Mays</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Daily Grindage]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Geek Humor]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Reading]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.codymays.net/?p=6</guid>
		<description><![CDATA[
#include 

int main()
{
        printf("BBBBBBBB\n");
        return 0;
}

]]></description>
			<content:encoded><![CDATA[<pre lang="c">
#include <stdlib .h>

int main()
{
        printf("BBBBBBBB\n");
        return 0;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.codymays.net/content/2005/12/09/test/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
