<?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>jason schaefer</title>
	<atom:link href="http://jasonschaefer.com/feed" rel="self" type="application/rss+xml" />
	<link>http://jasonschaefer.com</link>
	<description>documentation and stuff</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:32:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>* Creating a custom wordlist for john the ripper</title>
		<link>http://jasonschaefer.com/archives/255</link>
		<comments>http://jasonschaefer.com/archives/255#comments</comments>
		<pubDate>Thu, 08 Apr 2010 18:32:11 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[cracking]]></category>
		<category><![CDATA[john the ripper]]></category>
		<category><![CDATA[jtr]]></category>
		<category><![CDATA[shadow]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=255</guid>
		<description><![CDATA[I wanted a larger wordlist than the default /usr/share/john/password.lst, with only 3115 words. Openwall sells a really great wordlist, but if you don&#8217;t need anything that fancy you can follow these instructions. The apt-get bit is debian specific. I will install dictionaries and then concatenate them all into one file, remove duplicates, lower case and [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted a larger wordlist than the default /usr/share/john/password.lst, with only 3115 words. Openwall sells a really <a href="http://www.openwall.com/wordlists/">great wordlist</a>, but if you don&#8217;t need anything that fancy you can follow these instructions. The apt-get bit is debian specific. I will install dictionaries and then concatenate them all into one file, remove duplicates, lower case and configure john to use the new list.</p>
<pre class="brush:plain">
apt-get install john wamerican-huge wamerican-insane wamerican-large wamerican-small wamerican aspell
aspell dump master > custom-wordlist
cat /usr/share/john/password.lst >> custom-wordlist
cat /usr/share/dict/american-english* >> custom-wordlist
</pre>
<p>  You can concatenate more wordlists into the custom-wordlist file as you find them. Debian has lots more dictionary type packages. For instance, apt-cache search wordlists. Use dpkg -L [installed-package-name] to find where the actual word list file is installed.<br />
  Lets count how many lines (words) are in our wordlist so far:</p>
<pre class="brush:plain">wc -l custom-wordlist</pre>
<p>  I got 1484152, There must be tons of duplicates. Lets get rid of them. We can also lowercase everything, since john toggles case automatically for us.</p>
<pre class="brush:plain">tr A-Z a-z < custom-wordlist.txt > custom-wordlist_lowercase</pre>
<p>  Now we remove the duplicates</p>
<pre class="brush:plain">sort -u custom-wordlist_lowercase > custom-wordlist_lowercase_nodups</pre>
<p>  How many lines do we have now?</p>
<pre class="brush:plain">wc -l custom-wordlist_lowercase_nodups
613517</pre>
<p>  Now we can set john up to use our custom wordlist file. </p>
<pre class="brush:plain">Edit the file /etc/john/john.conf
Wordlist = [path to custom-wordlist_lowercase_nodups]</pre>
<p>  Now we are ready to crack some passwords! First, combine the passwd and shadow files. This will allow john to use the GECOS information from the passwd file. GECOS is the user information fields such as first, last and phone. These fields will be used by john to make a more educated guess as to what that users password might be.</p>
<pre class="brush:plain">unshadow passwd shadow > unshadow.txt</pre>
<p>  run john against the resulting unshadow.txt file</p>
<pre class="brush:plain">john unshadow.txt
Loaded 15 password hashes with 15 different salts (FreeBSD MD5 [32/64 X2])</pre>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* Flashing a BIOS update using only free tools (FreeDOS, etc)</title>
		<link>http://jasonschaefer.com/archives/209</link>
		<comments>http://jasonschaefer.com/archives/209#comments</comments>
		<pubDate>Fri, 12 Mar 2010 08:52:41 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[documentation]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[bios]]></category>
		<category><![CDATA[freedos]]></category>
		<category><![CDATA[gpl]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wodim]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=209</guid>
		<description><![CDATA[The wonderful world of motherboard BIOS updates, is still old fashioned. Updates are often still built for Microsoft Windows environments. Often requiring MS DOS. Those of us who don&#8217;t have DOS, a floppy drive, an install of Windows 98 to create a bootable floppy, cheesy Pâté, or MS Windows for that matter &#8230;.. Here is [...]]]></description>
			<content:encoded><![CDATA[<p>The wonderful world of motherboard BIOS updates, is still old fashioned. Updates are often still built for Microsoft Windows environments. Often requiring MS DOS. Those of us who don&#8217;t have DOS, a floppy drive, an install of Windows 98 to create a bootable floppy, cheesy Pâté, or MS Windows for that matter &#8230;.. Here is a way one can flash that BIOS of your mobo using, our favorite free software licensed, operating systems and tools.</p>
<p>DISCLAIMER: Don&#8217;t attempt this unless you know what you are doing. I have never had problems doing this, BUT many things can go wrong and you CAN easily &#8220;brick&#8221; your hardware. Proceed at your own risk!!</p>
<p>We will be using <a href="http://www.freedos.org/">FreeDOS</a>, a wonderfully free and royalty exempt Microsoft DOS compatible operating system. Licensed under the General Public License (GPL).<br />
Note: As usual, my posts require some knowledge of the command line.</p>
<pre class="brush:plain">
wget http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz
gunzip FDOEM.144.gz
mkdir floppy
sudo mount -o loop FDOEM.144 floppy/
ls floppy
</pre>
<p>you should see these files:<br />
AUTOEXEC.BAT  COMMAND.COM  CONFIG.SYS  KERNEL.SYS  README  sys.com</p>
<p>Download your BIOS update file from the manufacturer or vendor.<br />
Note: Sometimes, the update will be distributed as a .exe (Windows Executable) file. Most likely it will actually be a compressed zip archive. You can use unzip to extract the .exe file.</p>
<p>Download the update using wget, then unzip the resulting image file &#8220;FDOEM.144&#8243; into the mounted folder: &#8220;floppy/&#8221;</p>
<pre class="brush:plain">
wget http://path-to-your-bios-update/BIOS_UPDATE.zip
sudo unzip BIOS_UPDATE.zip -d floppy/
</pre>
<p>In this case, the following files are extracted from the BIOS_UPDATE.zip file:<br />
inflating: BIOS.WPH<br />
inflating: OEMPHL.EXE<br />
inflating: OPTIONS.BAT<br />
inflating: PHLASH16.EXE<br />
inflating: releasenotes.txt<br />
inflating: 1.BAT</p>
<p>now, move to the previous directory (cd ..), and un-mount the FDOEM.144 image:</p>
<pre class="brush:plain">
cd ..
sudo umount floppy/
</pre>
<p>generate the iso image:</p>
<pre class="brush:plain">
genisoimage -o flashboot.iso -b FDOEM.144 FDOEM.144
</pre>
<p>Now burn flashboot.iso to CD using wodim:</p>
<pre class="brush:plain">
wodim flashboot.iso
</pre>
<p>Now you can boot from that cd and run your flash utility!! Read the BIOS update instructions on how to do this.. </p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/209/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* Transition away from MBR to GPT booting</title>
		<link>http://jasonschaefer.com/archives/190</link>
		<comments>http://jasonschaefer.com/archives/190#comments</comments>
		<pubDate>Fri, 19 Feb 2010 06:44:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[documentation]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=190</guid>
		<description><![CDATA[Recently, I was installing debian on a new server and grub2 would not install gave me this error: &#8220;This GPT partition label has no BIOS Boot Partition; embedding won&#8217;t be possible! grub-setup: error: Embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.&#8221; Of course, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I was installing debian on a new server and grub2 would not install gave me this error:</p>
<p>&#8220;This GPT partition label has no BIOS Boot Partition; embedding won&#8217;t be possible! grub-setup: error: Embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.&#8221;</p>
<p>Of course, it being grub2, I jumped to the conclusion that grub2 was the problem. I installed legacy grub and got nowhere. The final error was:<br />
&#8220;file /boot/grub/stage1 not read correctly&#8221;<br />
No matter what I do, it would not install. So, I went back to the original message and gave grub2 its due process. Turns out this Dell T410 uses GPT (GUID Partition Table) which is an extension of EFI. The &#8220;BIOS Boot Partition&#8221; is an actual partition on the hard drive. Grub2 embeds the core.img (multiboot boot kernel) into this BIOS boot partition instead of the MBR.<br />
Here are two great resources on this subject:<br />
<a href="http://www.rodsbooks.com/gdisk/index.html"> http://www.rodsbooks.com/gdisk/index.html</a> and<br />
<a href="http://grub.enbug.org/BIOS_Boot_Partition">http://grub.enbug.org/BIOS_Boot_Partition</a></p>
<p>So, the solution:<br />
I had to re-install Debian with a small partition. Apparently it can be under a few hundred KiB but space is cheap and I didn&#8217;t want to have more problems, so I made mine 10MB and put it at the beginning of the disk. In the Debian partitioner, set the partition under &#8220;use as:&#8221; to &#8220;Reserved BIOS boot area&#8221;. Then continue with the rest of your partitions and install. Grub2 installed with no problems this time!</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/190/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* thunderbird &amp; lightning &#124; contacts, calendar, mail syncing for gmail</title>
		<link>http://jasonschaefer.com/archives/143</link>
		<comments>http://jasonschaefer.com/archives/143#comments</comments>
		<pubDate>Sat, 19 Dec 2009 23:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[documentation]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[contacts]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[lightning]]></category>
		<category><![CDATA[syncing]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=143</guid>
		<description><![CDATA[. Automatic email setup add-on: Gmail IMAP Account Setup THUNDERBIRD VERSION 3 HAS NATIVE SUPPORT FOR GMAIL. Manual email instructions: Setup Thunderbird according to gmail&#8217;s imap instructions At the bottom of gmail&#8217;s instructions you will see &#8220;recommended settings&#8220;. Don&#8217;t follow the first recommendation, regarding deleting. Instead of actually (permanently) deleting email we can have it [...]]]></description>
			<content:encoded><![CDATA[<p>.<br />
<strong>Automatic email setup add-on:</strong> <a href="https://addons.mozilla.org/en-US/thunderbird/addon/6381">Gmail IMAP Account Setup</a> THUNDERBIRD VERSION 3 HAS NATIVE SUPPORT FOR GMAIL.</p>
<p><strong>Manual email instructions:</strong> Setup Thunderbird according to <a href="http://mail.google.com/support/bin/answer.py?hl=en&amp;answer=77662">gmail&#8217;s imap instructions</a></p>
<p>At the bottom of gmail&#8217;s instructions you will see &#8220;<a href="http://mail.google.com/support/bin/answer.py?answer=78892#">recommended settings</a>&#8220;. Don&#8217;t follow the first recommendation, regarding deleting. Instead of actually (permanently) deleting email we can have it moved to the Trash folder, as if you were using the gmail web interface. Gmail has strange folders structure in imap. Here are a few steps to work with gmail folders (Of course, they call them labels <img src='http://jasonschaefer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Under Account settings -&gt; Copies and Folders<br />
1. un-check &#8220;place a copy in&#8230; sent&#8221;<br />
2. change  &#8220;drafts and templates&#8221; to Other -&gt; [your gmail address] -&gt; [Gmail] -&gt; Drafts<br />
<strong>Note:</strong> Sent and Drafts will automatically show up in their respective folders, as long as you send mail through smtp.gmail.com.<br />
3. Go to Options/Preferences (under tools or edit menu). Go to Advanced -&gt; Config Editor. In the Filter box, type &#8220;mail.server.server&#8221; and look for the gmail address. Whichever number is in the X place of mail.server.serverX, is what you want to use for the new value.<br />
Right click New -&gt; String &#8220;enter mail.server.serverX.trash_folder_name&#8221; (X is the number that correlates to your gmail account, from above). Next enter &#8220;[Gmail]/Trash&#8221;. Restart Thunderbird. Delete something, if it does not go into the [Gmail]/Trash folder restart again. It should work after that. Now you can delete the Trash folder (represented as [Imap]/Trash in gmail)</p>
<p><strong>Contact syncing:</strong> A few options.<br />
A very popular and stable add-on <a href="https://addons.mozilla.org/en-US/thunderbird/addon/6095">Zindus</a> Its great but does not support the address field syncing. (Enter your user/pass under Tools -&gt; Zindus)<br />
<a href="https://addons.mozilla.org/en-US/thunderbird/addon/8451">gContactSync</a> has support for the address field but is very early in development. If any contacts have an empty email field it adds a @nowhere.invalid email address in Tbird. Thankfully this is not synced to your gmail account!<br />
Also, This looks promising but does not work with Tbird3 <a href="https://addons.mozilla.org/en-US/thunderbird/addon/7307">Google Contacts</a>.<br />
BACKUP CONTACTS BEFORE SYNCING!</p>
<p><strong>Calendar Sharing:</strong> Use the add-on <a href="https://addons.mozilla.org/en-US/thunderbird/addon/2313">Lightning</a> (aka sunbird as a Tbird add on).  Lightning 1.0b1 does not integrate with Thunderbird 3 toolbar layout very well. It messed up the &#8220;file&#8221; &#8220;edit&#8221; and &#8220;view&#8221; menus. Although, they aren&#8217;t really missed by anyone and are sort of accessible if you really need them. Try it for yourself, its not too bad.<br />
For native support follow the <a href="http://www.google.com/support/calendar/bin/answer.py?hl=en&amp;answer=99358">Google sunbird instructions for CalDav</a> (recommended)<br />
There is also another plugin called <a href="https://addons.mozilla.org/en-US/thunderbird/addon/4631">Provider for Google Calendar</a> that can be used..</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/143/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* Spoof MAC address in Windows</title>
		<link>http://jasonschaefer.com/archives/56</link>
		<comments>http://jasonschaefer.com/archives/56#comments</comments>
		<pubDate>Tue, 13 Oct 2009 21:25:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[documentation]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[spoof]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=56</guid>
		<description><![CDATA[start -> run -> regedit make a backup, if you want. goto: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} look through the list of subkeys (0000, 0001, etc) DriverDesc keyword will tell you which network adapter. For example, &#8220;NVIDIA nForce Networking Controller&#8221; when you find it, right click and add -> new -> string value new keyword: Value Name: = NetworkAddress [...]]]></description>
			<content:encoded><![CDATA[<p>start -> run -> <strong>regedit</strong><br />
make a backup, if you want.<br />
goto:</p>
<pre class="brush: plain">
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
</pre>
<p>look through the list of subkeys (0000, 0001, etc)<br />
<strong>DriverDesc</strong> keyword will tell you which network adapter. For example, &#8220;NVIDIA nForce Networking Controller&#8221;<br />
when you find it, right click and <strong>add -> new -> string value</strong></p>
<p>new keyword:</p>
<pre class="brush: plain">
Value Name: = NetworkAddress
Value Data: = your new MAC, with no space or : For example, 0019DB71C830
</pre>
<p>then type:</p>
<pre class="brush: plain">
ipconfig /release
ipconfig /renew
ipconfig /all   (to verify the new mac took)
</pre>
<p>Now your a l33t Winblows H4|<3r. If you want to go back to your hardware MAC, remove the NetworkAddress key and restart the interface.</p>
<p>FYI, in gnu/linux follow these simple steps to change your MAC address</p>
<pre class="brush: plain">ifconfig eth0 hw ether 00:19:DB:71:C8:30</pre>
<p>if you get this error</p>
<pre class="brush: plain">SIOCSIFHWADDR: Device or resource busy - you may need to down the interface</pre>
<p>do this</p>
<pre class="brush: plain">ifconfig eth0 down</pre>
<p>and try to change the MAC again.</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* Free Wireless in Santa Fe, NM</title>
		<link>http://jasonschaefer.com/archives/41</link>
		<comments>http://jasonschaefer.com/archives/41#comments</comments>
		<pubDate>Mon, 12 Oct 2009 18:13:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wireless]]></category>
		<category><![CDATA[santa fe]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=41</guid>
		<description><![CDATA[Here is a list of free wireless spots in Santa Fe. I&#8217;m sure I will miss some or make errors, please let me know. * Santa Fe Baking Company (one of the first and best wireless spots in town, lots of seating and ample power, food and kitchen smell can be harsh) * Pyramid Cafe [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of free wireless spots in Santa Fe. I&#8217;m sure I will miss some or make errors, please let me know.</p>
<p>* <a href="http://maps.google.com/places/us/nm/santa-fe/w-cordova-rd/504/-santa-fe-baking-co-&amp;-cafe?gl=us">Santa Fe Baking Company</a> (one of the first and best wireless spots in town, lots of seating and ample power, food and kitchen smell can be harsh)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/w-cordova-rd/505/-pyramid-cafe?gl=us">Pyramid Cafe</a> (VERY fast internet, Amazing Mediterranean food)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/2nd-st/1814/-second-street-brewery?gl=us">Second Street Brewery</a> (very solid reliable connection, inside or out. great beer too!)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/baca-st/930/-counter-culture?hl=en&amp;gl=us">Counter Culture Cafe</a> (the qwest connection goes down a lot, the ap is too far from the seating area, but great place to hang, eat and work)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/canyon-rd/821/-teahouse?hl=en&amp;gl=us">Teahouse</a> (The best selection of teas and generally good internet, very relaxing place. great food too)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/aztec-st/317/-aztec-cafe?hl=en&amp;gl=us">Aztec Cafe</a> (small but friendly environment, good coffee and sandwiches)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/cerrillos-rd/4056/-blue-corn-cafe-&amp;-brewery?hl=en&amp;gl=us">Blue Corn</a> (the bar downtown has it, ask the bar tender for password (indiapaleale). The southside is open AP and I think the essid is jaguar)<br />
* <a href="http://maps.google.com/maps/place?cid=11633852963867287663&amp;q=flying%2Bstar%2Bsanta%2Bfe%2Bnm&amp;hl=en&amp;gl=us">Flying Star Cafe</a> (the wireless is always slow, food is overpriced and not very good. They use sputnik as a captive portal, its annoying to ask users to sign up for internet. I login with user: free pass: wireless)<br />
* <a href="http://maps.google.com/maps/place?cid=4963057524569207422&amp;q=santa%2Bfe%2Bbrewing%2Bcompany%2Bsanta%2Bfe%2Bnm&amp;hl=en&amp;gl=us">Santa Fe Brewing Company</a> (its awesome they provide internet so far out of town)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/bisbee-ct/5/-backroad-pizza?hl=en&amp;gl=us">Backroad Pizza</a> (south side location has it, not sure about the 2nd street location)<br />
* <a href="http://maps.google.com/places/us/nm/santa-fe/s-guadalupe-st/320/-cafe-dominic?hl=en&amp;gl=us">Cafe Dominics</a> (Fast net and decent food)<br />
* <a href="http://maps.google.com/maps/place?cid=13338196817836186161&amp;q=joes+diner+santa+fe+nm&amp;gl=us&amp;hl=en&amp;cd=1&amp;cad=src:pplink,view:map&amp;ei=_WPkS8OSFYf4M53S-IoN">Joe&#8217;s</a> Good food, friendly staff, good internet<br />
* <a href="http://maps.google.com/maps/place?oe=utf-8&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a&amp;um=1&amp;ie=UTF-8&amp;q=body+of+santa+fe+nm&amp;fb=1&amp;gl=us&amp;hq=body+of&amp;hnear=Santa+Fe,+NM&amp;cid=4750373795995985444">Body</a> (great healthy food, limited seating in front cafe area, back dining area reserved for no computers and no cell phones <img src='http://jasonschaefer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/41/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* Linux-Libre and Realtime patch</title>
		<link>http://jasonschaefer.com/archives/21</link>
		<comments>http://jasonschaefer.com/archives/21#comments</comments>
		<pubDate>Sun, 11 Oct 2009 21:48:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[documentation]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linuxlibre]]></category>
		<category><![CDATA[realtime]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=21</guid>
		<description><![CDATA[I wanted to share some notes on patching the Linux Libre kernel with realtime capabilities. The Linux-Libre project pulls out all the un-free bits from standard Linux. Contrary to popular belief, Linux has many non-free parts, small binary or obfuscated pieces of code for various hardware. I have a Lenovo T61 laptop. I removed the [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to share some notes on patching the Linux Libre kernel with realtime capabilities. The Linux-Libre project pulls out all the un-free bits from standard Linux. Contrary to popular belief, Linux has many non-free parts, small binary or obfuscated pieces of code for various hardware. I have a Lenovo T61 laptop. I removed the Intel wireless pci express card and put in a Atheros AR5008 wifi card using ath9k completely free wireless driver. Now my system (as far as I can tell:-) is completely free.</p>
<p>I make music and the realtime patch makes the latency of my system and soundcard very low. This is a unique advantage that the gnu/linux operating system gives its users. I highly recommend a realtime patch for anyone working with audio and video on gnu/linux.</p>
<p>Start by getting the rt patch <a href="http://www.kernel.org/pub/linux/kernel/projects/rt/">http://www.kernel.org/pub/linux/kernel/projects/rt/</a> for the kernel version you want to compile.<br />
Then get the corresponding Linux-Libre version <a href="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/">http://www.linux-libre.fsfla.org/pub/linux-libre/releases/</a></p>
<pre class="brush: plain">
tar xfvj linux-2.6.29.6-libre1.tar.bz2
cd linux-2.6.29.6
bzcat ../patch-2.6.29.6-rt23.bz2 | patch -p1
</pre>
<p>Now Linux is patched with realtime<br />
now its time for</p>
<pre class="brush: plain">make menuconfig</pre>
<p>from the <a href="http://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO">RT How to</a>:<br />
* enable CONFIG_PREEMPT_RT<br />
* activated the High-Resolution-Timer Option (Attention, the amount of supported platforms by the HR timer is still very limited. Right now the option is only supported on x86 systems, PowerPC and ARM Support are however in queue.)<br />
* disabled all Power Management Options like ACPI or APM (not all ACPI functions are &#8220;bad&#8221;, but you will have to check very carefully to find out which function will affect your real time system. Thus it&#8217;s better to simply disable them all if you don&#8217;t need them. APM, however, is a no-go.) NOTE: Since rt patch 2.6.18-rt6 you will probably have to activate ACPI option to activate high resolution timer. Since the TSC timer on PC platforms, as used in the previous versions, are now marked as unsuitable for hrt mode due to many lacks of functionalities and reliabilties, you will need i.E. pm_timer as provided by ACPI to use as clock source. To activate the pm_timer, you can just activate the ACPI_SUPPORT in menuconfig and deactivate all other sub modules like &#8220;fan&#8221;, &#8220;processor&#8221; or &#8220;button&#8221;. If you have an old pc, which lacks ACPI support, you migh have problems using the high resolution timer.</p>
<p>I personally have not removed my power management options, as I use a laptop and want these features. I don&#8217;t notice any problems but have not tried it without them to know what I&#8217;m missing.</p>
<p>then compile the kernel, the debian way</p>
<pre class="brush: plain">fakeroot make-kpkg kernel_image</pre>
<pre class="brush: plain">sudo dpkg -i linux-image-2.6.29.6-libre1-lapkah_2.6.29.6-libre1-lapkah-10.00.Custom_i386.deb</pre>
<p>Here is my latest <a href="http://jasonschaefer.com/stuff/config_linux-libre_and_realtime_2.6.33_.config_for_Lenovo_T61">config </a> and the <a href="http://jasonschaefer.com/stuff/linux-image-2.6.33-libre-lapkah_2.6.33-libre-lapkah-10.00.Custom_i386.deb">debian package for libre realtime for lenovo t61</a></p>
<p>~ May your kernel build and your modules have your back ~</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/21/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>* Silverlight (Microsoft) and Moonlight (Novell) Digital Restrictions Management frustrations</title>
		<link>http://jasonschaefer.com/archives/10</link>
		<comments>http://jasonschaefer.com/archives/10#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:43:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Control]]></category>
		<category><![CDATA[DRM]]></category>
		<category><![CDATA[moonlight]]></category>
		<category><![CDATA[netflix]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=10</guid>
		<description><![CDATA[Moonlight is a Free implementation of Microsoft Silverlight. Its a Mono project, http://www.mono-project.com/Moonlight. I have read rumors that 2.0 will have support for Netflix. I went to install the 2.0 dev (currently 1.99.5). Logged into netflix and was denied. I was confused because moonlights dev website says that 1.99.5 is complete except for bug testing [...]]]></description>
			<content:encoded><![CDATA[<p>Moonlight is a Free implementation of Microsoft <a href="http://en.wikipedia.org/wiki/Silverlight">Silverlight</a>. Its a Mono project, <a href="http://www.mono-project.com/Moonlight">http://www.mono-project.com/Moonlight</a>. I have read rumors that 2.0 will have support for Netflix. I went to install the 2.0 dev (currently 1.99.5). Logged into netflix and was denied. I was confused because moonlights dev website says that 1.99.5 is complete except for bug testing and a security audit. I did more reading and found that its not a limitation of moonlight at all, its the DRM (Digital Restrictions Management) that Netflix licenses from Microsoft called Play Ready. This is why we can&#8217;t watch Netflix with Moonlight. Another case where the end user suffers at the hands of DRM. The industry again is trying to control the user and hope no one cares. So what, if people save the movie streams from Netflix, you can copy as many dvd&#8217;s as you want when they show up in the mail! What happened to Fair Use? The move to hosted content is highly desireable by these industries. Now they can tell you what, how and when. Since its hosted on their servers, you can&#8217;t do a thing about it (other than not use it). Ugghh. I am disappointed&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>* openwrt, firewall to block public wireless from private lan</title>
		<link>http://jasonschaefer.com/archives/3</link>
		<comments>http://jasonschaefer.com/archives/3#comments</comments>
		<pubDate>Thu, 08 Oct 2009 02:14:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://jasonschaefer.com/?p=3</guid>
		<description><![CDATA[A while ago Second Street Brewery asked for a good stable public wireless internet connection. Of course, the solution was obvious, openwrt on a linksys wrt54gl. The office, point of sale and public networks all share the same gateway. The problem was segregating the public wireless network from the private office lan. Sam (http://thepromisedlan.org) and [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago Second Street Brewery asked for a good stable public wireless internet connection. Of course, the solution was obvious, openwrt on a linksys wrt54gl. The office, point of sale and public networks all share the same gateway. The problem was segregating the public wireless network from the private office lan. Sam (<a href="http://thepromisedlan.org">http://thepromisedlan.org</a>) and I set out to setup a firewall to protect them. This is what we came up with:</p>
<p>check if the following is in /etc/config/firewall otherwise, add it</p>
<pre class="brush: plain">
config include
option path /etc/firewall.user
</pre>
<p>and in /etc/firewall.user we put:</p>
<pre class="brush: plain">
#Insert this into the chain, so 10.1.10.0/24 (office) can connect to public 192.168.10.0/24.
#This rule gets repeated by the setup script /etc/init.d/firewall.
iptables -I FORWARD 1 -m state --state RELATED,ESTABLISHED -j ACCEPT

#block all traffic to any possible private network address (10.*.*.*, 172.16-32.*.*, 192.168.*.*)
iptables -I FORWARD 2 -d 192.168.0.0/16 -j DROP
iptables -I FORWARD 2 -d 172.16.0.0/12 -j DROP
iptables -I FORWARD 2 -d 10.0.0.0/8 -j DROP
</pre>
<p>If you would like to have remote administration on the openwrt so you can access the luci web interface and ssh from the wan side of the router, you can change /etc/config/firewall wan zone to allow it. !!WARNING!! If you are directly connected to the internet, this will expose your open ports to the world. You should take precautions to secure them before changing this firewall rule.</p>
<pre class="brush: plain">
config 'zone'
option 'name' 'wan'
option 'input' 'REJECT' #<- change this to ACCEPT
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'masq' '1'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jasonschaefer.com/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
