<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Brad's Blog</title>
	<atom:link href="http://blmath.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blmath.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Dec 2011 04:32:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blmath.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Brad's Blog</title>
		<link>http://blmath.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blmath.wordpress.com/osd.xml" title="Brad&#039;s Blog" />
	<atom:link rel='hub' href='http://blmath.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ubuntu 11.04 Convert Movies for Ipod</title>
		<link>http://blmath.wordpress.com/2011/04/17/ubuntu-11-04-convert-movies-for-ipod/</link>
		<comments>http://blmath.wordpress.com/2011/04/17/ubuntu-11-04-convert-movies-for-ipod/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 16:18:29 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[AcidRip]]></category>
		<category><![CDATA[Arista]]></category>
		<category><![CDATA[faac]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[Natty]]></category>
		<category><![CDATA[Ubuntu 11.04]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=649</guid>
		<description><![CDATA[Its been a while since I&#8217;ve tried to install some movies on my Ipod, and the way I used to do it doesn&#8217;t work anymore!  I&#8217;ve already installed the beta of Ubuntu 11.04, and everything seems to work fairly well.  However, I couldn&#8217;t find support for faac for the audio codec, but I was able [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=649&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Its been a while since I&#8217;ve tried to install some movies on my Ipod, and the way I used to do it doesn&#8217;t work anymore!  I&#8217;ve already installed the beta of Ubuntu 11.04, and everything seems to work fairly well.  However, I couldn&#8217;t find support for <em>faac</em> for the audio codec, but I was able to use <em>aac</em> with the <em>-strict experimental</em> option.</p>
<p>To rip the DVD, I found the <em>AcidRip DVD Ripper</em> and the <em>Arista Transcoder</em> programs to work fairly well, but when they converted the movie for the ipod (in either mp4 of m4v format) it didn&#8217;t work.  I had to use ffmpeg instead to convert the video .  Here is an example for the movie Inglorious Bastards.  I looked up the requirements on Apple&#8217;s website for the video format on an Ipod, and this command worked successfully.  After converting the video I was able to use Banshee to load the video onto my Ipod.</p>
<p style="padding-left:30px;">ffmpeg -strict experimental -i inglourious_basterds.avi -f mp4 -vcodec libxvid -s 320&#215;240 -b 600k -r 30 -acodec aac -ar 48000 -ab 160k Inglorius\ Bastards.mp4</p>
<p>Apple specified the following requirements for the video format on their <a href="http://support.apple.com/kb/ht2729" target="_blank">website</a>:</p>
<ul>
<li><strong>H.264</strong><br />
File formats: .m4v, .mp4, and .mov<br />
Video: Up to 768 kbits/sec, 320 x 240, 30 frames per second (fps), Baseline Profile up to Level 1.3.<br />
Audio: AAC-LC up to 160 kbits/sec, 48 Khz, and stereo audio.</li>
<li><strong>MPEG-4</strong><br />
File formats: .m4v, .mp4, and .mov<br />
Video: Up to 2.5 Mbits/sec, 480 x 480, 30 fps, Simple Profile.<br />
Audio: AAC-LC up to 160 kbits/sec, 48 Khz, stereo audio.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=649&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2011/04/17/ubuntu-11-04-convert-movies-for-ipod/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>Passwords and Encryption Keys Fedora 13</title>
		<link>http://blmath.wordpress.com/2010/05/30/passwords-and-encryption-keys-fedora-13/</link>
		<comments>http://blmath.wordpress.com/2010/05/30/passwords-and-encryption-keys-fedora-13/#comments</comments>
		<pubDate>Sun, 30 May 2010 20:40:33 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Engimail]]></category>
		<category><![CDATA[Fedora 13]]></category>
		<category><![CDATA[Fedora 13 Goddard]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=623</guid>
		<description><![CDATA[The program Passwords and Encryption Tools can be used to create and manage SSH and PGP keys.  It can be accessed from the menu bar by going to Applications -&#62;  Accessories -&#62; Passwords and Encryption Keys, and provides a nice way to manage encryption keys in perhaps a more user friendly manner; although everything done [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=623&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The program <em>Passwords and Encryption Tools</em> can be used to create and manage SSH and PGP keys.  It can be accessed from the menu bar by going to <em>Applications -&gt;  Accessories -&gt; Passwords and Encryption Keys</em>, and provides a nice way to manage encryption keys in perhaps a more user friendly manner; although everything done using this tool can also be accomplished in the terminal.</p>
<p>In Ubuntu, encryption keys created using the Passwords and Encryption Keys<em> </em>program can be used to encrypt files by right clicking on them and selecting <em>Encrypt</em>, but apparently this option is not available in Fedora 13 (At least I don&#8217;t seem to have it).</p>
<h4>Creating a New PGP Key</h4>
<p><a href="http://blmath.files.wordpress.com/2010/05/passwd_and_enc_keys.png"><img class="alignleft size-medium wp-image-626" title="Passwords and Encryption Keys" src="http://blmath.files.wordpress.com/2010/05/passwd_and_enc_keys.png?w=300&#038;h=232" alt="" width="300" height="232" /></a>Before encrypting files and mail, a new PGP key must first be created, unless you already have one, by going to <em>File -&gt; New</em>.  Select <em>PGP Key</em> and then select continue.  Enter in your full name, email address, and a comment if you choose to.  Under the advanced key options, the encryption method and other encryption settings can be modified if you know what you&#8217;re doing.  By default the key will be created using RSA encryption.</p>
<p>When you&#8217;re ready, select <em>create</em> at the bottom of the screen.  A screen will pop up and request the pass-phrase for the key.  Enter in the pass-phrase and then hit <em>next</em>.  It will take a few moments for the key to be generated.</p>
<p>This creates both a public and private key.  The public key can be sent to anyone, and is used for encrypting files.  The private key should not be shared with anyone and hidden in a safe place.  It is used for decrypting files.</p>
<h4>Encrypting Files With Your PGP Key</h4>
<p>Encrypting files and folders can be done by using the<em> gpg</em> command.  However, only files can be encrypted using gpg.  To encrypt a folder, use the tar command to create a gzipped tar file, and then encrypt the compressed tar file.  To get started, open up a terminal and enter in the command below:</p>
<pre style="padding-left:30px;">gpg --list-keys</pre>
<p>This will list all of your PGP keys, but the public key id can also be found on the right side of the Passwords  and Encryption Keys window.  Take note of the key id for the public key you just created.    To encrypt a file run the following command, where <em>[key id]</em> is the id of your public key and <em>[file]</em> is the file you wish to encrypt:</p>
<pre style="padding-left:30px;"> gpg --default-key [key id] --encrypt [file]</pre>
<p>Make sure any files that are encrypted are not stored with the private key, or this would defeat the purpose of encrypting a file since the private key is used for decryption.</p>
<p>To decrypt a file run the following command:</p>
<pre style="padding-left:30px;">gpg --output [output file name] --decrypt [encrypted file].</pre>
<h4>Encrypting Mail Using Thunderbird</h4>
<p>In order to encrypt mail messages, Thunderbird requires the enigmail addon, which can be downloaded through yum.</p>
<pre style="padding-left:30px;">sudo yum install thunderbird-enigmail</pre>
<p>Once enigmail is installed, open up Thunderbird.  In the menu bar should be a new drop-down menu titled <em>OpenPGP</em>.  Go to <em>OpenPGP &#8211; &gt; Setup Wizard</em>.  Read through the next few screens carefully, and follow the steps.  Everything is fairly straight forward, and there should be no difficulty in setting things up.  Eventually a prompt will require the encryption key, and the one that was previously created can be chosen or alternatively a new one may be created.  At the end of the setup process it will be possible to sign and encrypt all email messages through Thunderbird.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/623/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/623/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/623/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=623&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/05/30/passwords-and-encryption-keys-fedora-13/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>

		<media:content url="http://blmath.files.wordpress.com/2010/05/passwd_and_enc_keys.png?w=300" medium="image">
			<media:title type="html">Passwords and Encryption Keys</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Xfoil on Fedora 12 Linux</title>
		<link>http://blmath.wordpress.com/2010/04/04/installing-xfoil-on-fedora-12-linux/</link>
		<comments>http://blmath.wordpress.com/2010/04/04/installing-xfoil-on-fedora-12-linux/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 13:12:55 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Aerospace]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[gfortran]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Xfoil]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=601</guid>
		<description><![CDATA[These are the steps that I went through to build Xfoil using double point precision on Fedora 12.  I used the gcc and gfortran compilers, and if you choose to use different ones, then some of the compiler flags may be different.  Before trying to build Xfoil, run the command sudo yum groupinstall “Development Tools”.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=601&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These are the steps that I went through to build Xfoil using double point precision on Fedora 12.  I used the gcc and gfortran compilers, and if you choose to use different ones, then some of the compiler flags may be different.  Before trying to build Xfoil, run the command <em>sudo yum groupinstall “Development Tools”</em>.  Not everything downloaded from the development group is needed to install Xfoil.  Alternatively, you can try to individually install the certain packages that are needed just to build Xfoil.</p>
<p>To get started first download the source file from <a href="http://web.mit.edu/drela/Public/web/xfoil/">http://web.mit.edu/drela/Public/web/xfoil/</a>.  Extract the source tar file, cd into the directory Xfoil, and then follow the steps below.</p>
<h4>Step 1 &#8211; Build the Orrs-Summerfield Database</h4>
<p>Use cd to switch into the Xfoil/orrs/ directory and then run <em>pwd</em>.  Copy the ouput from pwd, and then cd into the src/ directory.  Edit the file osmap.f and look for the line <em>DATA OSFILE / &#8216;/var/local/codes/orrs/osmap.dat&#8217; /</em>.  Change this line to <em>DATA OSFILE / &#8216;<span style="text-decoration:underline;">{Output from pwd}</span>/osmap.dat&#8217; /</em>, where {Output from pwd} is what was just copied before.</p>
<p>Now run <em>cd ../bin/</em> and edit the make file, MakeFile_DP.  Make the following changes to that file.</p>
<ol>
<li>Change <em>FC = f77</em> to <em>FC = gfortran.</em></li>
<li>Change <em>FLG = -O -r8</em> to <em>FLG = -O -fdefault-real-8 -fdefault-double-8</em>.</li>
<li>Look for the line <em>#  Uncomment for Intel Fortran Compiler</em>, and then comment out everything related to the Intel compiler.</li>
</ol>
<p>Then run the following commands:</p>
<p style="padding-left:30px;">[brad@localhost ~]$ make -f Makefile_DP osgen<br />
[brad@localhost ~]$ make -f Makefile_DP osmap.o<br />
[brad@localhost ~]$ cd ..<br />
[brad@localhost ~]$ bin/osgen osmaps_ns.lst</p>
<h4>Step 2 &#8211; Build the Plot Library</h4>
<p>Use the cd command to switch to the Xfoil/plotlib/ directory.  Open up the make file and then make the following changes.</p>
<ol>
<li>Find the line <em>PLTLIB=libPlt.a</em>.  Comment out this line and uncomment the line below it, which should read <em>PLTLIB = libPltDP.a</em>.</li>
<li>Find the section <em>Default compilers and flags, install commands</em>, and change the default compilers by setting <em>FC = gfortran</em> and <em>CC = gcc</em>.</li>
<li>Find the line <em>DP = -r8</em> and replace it with <em>DP = -fdefault-real-8 -fdefault-double-8</em>.  Make sure it is uncommented.</li>
<li>Comment out the line <em>include ./config.make</em>.</li>
</ol>
<p>Save and close the make file, and then run the<em> make</em> from the terminal.</p>
<h4>Step 3 &#8211; Make Programs in /bin</h4>
<p>Now switch to the Xfoil/bin/ directory, and open up the make file.  Then make the following changes.</p>
<ol>
<li>Set the BINDIR equal to /usr/local/bin (<em>BINDIR = /usr/local/lib</em>).</li>
<li>Find the line <em>PLTOBJ = ../plotlib/libPlt.a</em> and comment it out.</li>
<li>Find the line <em>###  Default compilers and flags</em>.</li>
<li>Change <em>FC = f77</em> to <em>FC = gfortran</em>.</li>
<li>Change <em>CC = cc</em> to <em>CC = gcc</em>.</li>
<li>Comment out the FFLAGS and FFLOPT variables.</li>
<li>Look for the line <em>### Intel Fortran Compiler</em>, and then comment out the next few lines for this compiler.  They are not needed.</li>
<li>Find the line <em>###Double precision option</em>.</li>
<li>Change <em>FFLAGS  = -O -r8 -CB</em> to <em>FFLAGS  = -O -fbounds-check -fdefault-real-8 -fdefault-double-8</em>.</li>
<li>Change <em>FFLOPT  = -O -r8 -CB</em> to <em>FFLOPT  = -O fbounds-check -fdefault-real-8 -fdefault-double-8</em>.</li>
<li>Comment out the second set of FFAGS and FFLOPT.  These variables only need to be set once.</li>
</ol>
<p>If you try to compile at this point you will get most likely get the following error.</p>
<p style="padding-left:30px;">gfortran -c -O -fbounds-check -fdefault-real-8 -fdefault-double-8  ../src/xoper.f<br />
../src/xoper.f:117.22:</p>
<p style="padding-left:30px;">IINPUT(I) = 2**31<br />
1<br />
Error: Arithmetic overflow at (1)<br />
make: *** [xoper.o] Error 1</p>
<p>There are two errors in the source code that need to be fixed.  The first one is in the file pplot.f and the second one is in the file xoper.f.  Running the following commands should fix these problems.  Note that before running the sed commands you want to be in the Xfoil/src/ directory.</p>
<p style="padding-left:30px;">[brad@localhost Xfoil]$ cd src/<br />
[brad@localhost src]$ sed -i &#8216;s/LOGICAL ERROR, LGETFN/LOGICAL ERROR, LGETFN, LERR/g&#8217; pplot.f<br />
[brad@localhost src]$ sed -i &#8216;s/IINPUT(I) = 2\*\*31/IINPUT(I) = HUGE(0)/g&#8217; xoper.f</p>
<p>Then change back to the Xfoil/bin/ directory and run make.</p>
<p style="padding-left:30px;">[brad@localhost bin]$ make xfoil<br />
[brad@localhost bin]$ make  pplot<br />
[brad@localhost bin]$ make pxplot</p>
<p>After I compiled everything, the xfoil command was not moved into /usr/local/bin.  This can be done manually by running <em>sudo cp xfoil /usr/local/bin/</em>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/601/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=601&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/04/04/installing-xfoil-on-fedora-12-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing AVL on Fedora 12 Linux</title>
		<link>http://blmath.wordpress.com/2010/04/02/install-avl-on-fedora-12-linux/</link>
		<comments>http://blmath.wordpress.com/2010/04/02/install-avl-on-fedora-12-linux/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 04:40:39 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Aerospace]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[aerodynamic analysis]]></category>
		<category><![CDATA[AVL]]></category>
		<category><![CDATA[gfortran]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[vortex lattice program]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=581</guid>
		<description><![CDATA[These are the steps that I went through to get AVL running on Fedora 12.  I used the gcc and gfortran compilers.  If you choose to use different ones, then some of the compiler flags may be different.  Before trying to build AVL, run the command sudo yum groupinstall &#8220;Development Tools&#8221;.  Not everything downloaded from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=581&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These are the steps that I went through to get AVL running on Fedora 12.  I used the gcc and gfortran compilers.  If you choose to use different ones, then some of the compiler flags may be different.  Before trying to build AVL, run the command <em>sudo yum groupinstall &#8220;Development Tools&#8221;</em>.  Not everything downloaded from the development group is needed to install AVL.  Alternatively, you can try to individually install the certain packages that are needed to build AVL, but if one package is missed then it could cause an aggravating headache later on.</p>
<p>To get started first download the source file from <a href="http://web.mit.edu/drela/Public/web/avl/" target="_blank">http://web.mit.edu/drela/Public/web/avl/</a>.  Extract the source tar file, cd into the directory Avl, and then follow the steps below.</p>
<h4>Step 1 &#8211; Build XPlot 11</h4>
<p>The first step is to build the XPlot11 library.  Change the current directory to plotlib/ and edit the file MakeFile.  Then make the following changes.</p>
<ol>
<li>Find the line <em>PLTLIB=libPlt.a</em>.  Comment out this line and uncomment the line below it, which should read <em>PLTLIB = libPltDP.a</em>.</li>
<li>Find the section <em>Default compilers and flags, install commands</em>, and change the default compilers by setting <em>FC=gfortran</em> and <em>CC=gcc</em>.</li>
<li>Find the line <em>DP = -r8</em> and replace it with <em>DP = -fdefault-real-8 -fdefault-double-8</em>.</li>
<li>Comment out the line <em>include ./config.make</em>.</li>
</ol>
<p>Save and close the make file, and then run the <em>sudo make</em> from the terminal.</p>
<h4>Step 2 &#8211; Build the Eispack Library</h4>
<p>Now change to the eispack/ directory.  Open up the make file and make the following changes.</p>
<ol>
<li>Change the compiler to gfortran by commenting out the current line, FC = f77, and placing below it <em>FC = gfortran</em>.</li>
<li>Change <em>FLG = -O</em> to <em>FLG = -O -fdefault-real-8 -fdefault-double-8.</em></li>
</ol>
<p>Save and close the file and then run <em>sudo make</em>.</p>
<h4>Step 3 &#8211; Build AVL</h4>
<p>Open up the Makefile in the bin/ directory and make the following changes.</p>
<ol>
<li>Set the BINDIR  equal to /usr/bin.</li>
<li>Change<em> libPlt.a</em> to <em>libPltDP.a.</em></li>
<li>Change <em>FC = f77</em> to <em>FC = gfortran</em>.</li>
<li>Change the compiler flags from <em>FFLAGS = -O -r8</em> to <em>FFLAGS = -O -fdefault-real-8 -fdefault-double-8.</em></li>
<li>Comment out all of the <em>Intel Fortran Compiler 8.x</em> options.</li>
</ol>
<p>Save the make file and then run <em>sudo make avl</em>.  When I ran this it did not copy the bin file, avl, to /usr/bin/.  After it compiles this can done manually by running s<em>udo cp avl /usr/bin/</em>.</p>
<p>Try running an example to see that everything works.  In the Avl folder open up the file session1.txt and follow along.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/581/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=581&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/04/02/install-avl-on-fedora-12-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Mount a Logical Volume</title>
		<link>http://blmath.wordpress.com/2010/04/01/how-to-mount-a-logical-volume/</link>
		<comments>http://blmath.wordpress.com/2010/04/01/how-to-mount-a-logical-volume/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:55:15 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[lvdisplay]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[pvs]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=571</guid>
		<description><![CDATA[I am currently running Fedora 12, and on /dev/sda3 I have two logical volumes: one for swap and one for the root partition.  If I try to mount the physical volume, /dev/sda3, then I get the following error: [brad@localhost ~]$ mount /dev/sda3 /mnt/disk mount: unknown filesystem type &#8216;LVM2_member&#8217; What I actually want to do is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=571&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am currently running Fedora 12, and on /dev/sda3 I have two logical volumes: one for swap and one for the root partition.  If I try to mount the physical volume, /dev/sda3, then I get the following error:</p>
<p style="padding-left:30px;">[brad@localhost ~]$ mount /dev/sda3 /mnt/disk<br />
mount: unknown filesystem type &#8216;LVM2_member&#8217;</p>
<p>What I actually want to do is &#8216;mount the root filesystem on /dev/sda3&#8242;.  First, use the command <em>pvs</em> to get information about the physical volumes on the computer.</p>
<p style="padding-left:30px;">[brad@localhost ~]$ sudo pvs<br />
PV         VG       Fmt  Attr PSize   PFree<br />
/dev/sda3  VolGroup lvm2 a-   200.24G    0</p>
<p>So the volume group <em>VolGroup </em>is on the physical volume <em>/dev/sda3</em><em></em>.    Then use the <em>lvdisplay</em> command to list the logical volumes in the volume group <em>VolGroup</em>.</p>
<p style="padding-left:30px;">[brad@localhost ~]$ sudo lvdisplay /dev/VolGroup<br />
&#8212; Logical volume &#8212;<br />
LV Name                /dev/VolGroup/lv_root<br />
VG Name                VolGroup<br />
LV UUID                j7d1k3-xELA-VQ7x-90T7-QwX1-62mc-0HgVaF<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 1<br />
LV Size                196.30 GB<br />
Current LE             50253<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:0</p>
<p style="padding-left:30px;">&#8212; Logical volume &#8212;<br />
LV Name                /dev/VolGroup/lv_swap<br />
VG Name                VolGroup<br />
LV UUID                G0AW8c-Pg1n-KFrL-koAj-pdhi-XjkK-LEGinf<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 1<br />
LV Size                3.94 GB<br />
Current LE             1008<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:1</p>
<p>From this output I know that the root filesystem is in the logical volume <em>/dev/VolGroup/lv_root</em>.  To mount this volume, I would run the following command:</p>
<p style="padding-left:30px;">[brad@localhost ~]$ mount /dev/VolGroup/lv_root /mnt/disk</p>
<p>You will have to create the folder /mnt/disk.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/571/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=571&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/04/01/how-to-mount-a-logical-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Create an Encrypted Partition</title>
		<link>http://blmath.wordpress.com/2010/03/24/how-to-create-an-encrypted-partition/</link>
		<comments>http://blmath.wordpress.com/2010/03/24/how-to-create-an-encrypted-partition/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 16:55:31 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Cryptsetup]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=514</guid>
		<description><![CDATA[This post is very similar previous one that I wrote on encrypting flash drives using cryptsetup, which may be useful since the procedure is very similar.  When installing Fedora, the option is given to encrypt the entire hard-drive, but sometimes this is unnecessary.  Instead it may be more convenient to simply have a separate encrypted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=514&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is very similar <a href="http://blmath.wordpress.com/2008/07/04/how-to-encrypt-usb-flash-device-with-crytsetup/">previous one</a> that I wrote on encrypting flash drives using <em>cryptsetup</em>, which may be useful since the procedure is very similar.  When installing Fedora, the option is given to encrypt the entire hard-drive, but sometimes this is unnecessary.  Instead it may be more convenient to simply have a separate encrypted partition to place more private information, and to leave the rest of the hard-drive decrypted.</p>
<p>First create the partition that you want to have encrypted.  This can be done by using a GParted live-cd.  The live image can be downloaded <a href="http://gparted.sourceforge.net/">here</a>, and GParted is very easy to use.  Simply shrink a current partition and then create a new one with the blank space left over.  It does not matter how you format the new partition since it will be rewritten later on.</p>
<p>The partition that I created was located on /dev/sda4, but you should of course use the location of your partition when going through the rest of the tutorial.</p>
<h4>Formatting the Partition and Creating the Device Mapper</h4>
<p>Encrypting the partition is easy and can be done in three steps.  The first step initializes the luks partition, the second opens the partition and creates a device mapper, and the third sets up the partition&#8217;s file system.  I have chosen <em>cryptmap</em> as the name of the device mapper, but the choice is arbitrary and can be changed to whatever you would like it to be.</p>
<pre style="padding-left:30px;">[brad@localhost ~]$ sudo cryptsetup luksFormat /dev/sda4
[brad@localhost ~]$ sudo cryptsetup luksOpen /dev/sda4 cryptmap
[brad@localhost ~]$ sudo mkfs.ext3 /dev/mapper/cryptmap
</pre>
<h4>Mounting the Partition</h4>
<p>The first command opens the luks partition and creates the device mapper, which I have named <em>cryptmap</em>.   After entering the command into the terminal, the password to decrypt the partition will be requested.  The device mapper can then be mounted to access the contents of the partition by using the second command given below.  The folder <em>/mnt/cryptpart </em>will have to have to be created, and the naming convention here is also arbitrary.</p>
<pre style="padding-left:30px;">[brad@localhost ~]$ sudo cryptsetup luksOpen /dev/sda4 cryptmap
[brad@localhost ~]$ sudo mount /dev/mapper/cryptmap /mnt/cryptpart</pre>
<h4>Unmounting the Partition</h4>
<p>There are actually two steps to unmounting the partition.  The first step is to unmount the device mapper.  However, at this point the information on the partition is still accessible because it can be remounted without the necessity of the decryption password.  Therefore, it is also important to close the luks partition after the mapper is umounted.</p>
<pre style="padding-left:30px;">[brad@localhost ~]$ sudo umount /dev/mapper/cryptmap
[brad@localhost ~]$ sudo cryptsetup luksClose /dev/mapper/cryptmap</pre>
<h4>No Password Prompt at Boot</h4>
<p>To prevent being requested to enter in the password for the luks partition every time the computer is restarted, add the phrase <em>rd_NO_LUKS</em> to the vmlinuz line in /boot/grub/grub.conf.  Do not do this if your root partition is encrypted or you won&#8217;t be able to boot the OS.  The /boot/grub/grub.conf file should have a section that looks similar to text below.  The line that starts with <em>kernel /vmlinuz </em>is broken up into three lines so that it can be pasted here.  This line may not be exactly the same as yours depending on what boot parameters you have and it should not be copied.  The purpose of the text below is just to illustrate where the place the parameter <em>rd_NO_LUKS</em>, which is highlighted with red text.</p>
<pre style="padding-left:30px;">default=0
timeout=1
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.32.9-70.fc12.i686)
 root (hd0,1)
 kernel /vmlinuz-2.6.32.9-70.fc12.i686 ro root=/dev/mapper/VolGroup-
 lv_root nomodeset noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16
 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet <span style="color:#ff0000;">rd_NO_LUKS</span>
 initrd /initramfs-2.6.32.9-70.fc12.i686.img
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/514/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=514&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/03/24/how-to-create-an-encrypted-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>Bash Function to Get Battery Charge</title>
		<link>http://blmath.wordpress.com/2010/03/19/bash-function-to-get-battery-charge/</link>
		<comments>http://blmath.wordpress.com/2010/03/19/bash-function-to-get-battery-charge/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 16:42:37 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Battery]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=507</guid>
		<description><![CDATA[I added these two functions to my bashrc.  The first one is used to get the battery charge, and the second returns the battery&#8217;s current capacity. function bchrg {      # Returns battery charge as a percentage.      now=`cat /sys/class/power_supply/BAT0/energy_now`      full=`cat /sys/class/power_supply/BAT0/energy_full`      out=`echo $now/$full*100 &#124; bc -l &#124; cut -c 1-5`      echo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=507&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I added these two functions to my bashrc.  The first one is used to get the battery charge, and the second returns the battery&#8217;s current capacity.</p>
<pre>function bchrg {
      # Returns battery charge as a percentage.
      now=`cat /sys/class/power_supply/BAT0/energy_now`
      full=`cat /sys/class/power_supply/BAT0/energy_full`
      out=`echo $now/$full*100 | bc -l | cut -c 1-5`
      echo "Charge: "$out"%"
  }

  function bcap {
      # Returns battery capacity as a percentage.
      design=`cat /sys/class/power_supply/BAT0/energy_full_design`
      current=`cat /sys/class/power_supply/BAT0/energy_full`
      out=`echo $current/$design*100 | bc -l | cut -c 1-5`
      echo "Capacity: "$out"%"
  }
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/507/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=507&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/03/19/bash-function-to-get-battery-charge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 12 Automatic Login</title>
		<link>http://blmath.wordpress.com/2010/03/18/fedora-automatic-login/</link>
		<comments>http://blmath.wordpress.com/2010/03/18/fedora-automatic-login/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 22:22:36 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[automatic login]]></category>
		<category><![CDATA[gdm]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=502</guid>
		<description><![CDATA[To set up Fedora to login automatically just open the file /etc/gdm/custom.conf, and then add the following three lines to the end of the file. [daemon] AutomaticLoginEnable=True AutomaticLogin=brad In the above brad is my user name.  Obviously you should use the user name you want to log into automatically. An alternative method is to login [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=502&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To set up Fedora to login automatically just open the file <em>/etc/gdm/custom.conf</em>, and then add the following three lines to the end of the file.</p>
<pre style="padding-left:30px;">[daemon]
AutomaticLoginEnable=True
AutomaticLogin=brad
</pre>
<p>In the above <em>brad</em> is my user name.  Obviously you should use the user name you want to log into automatically.</p>
<p>An alternative method is to login automatically after a certain amount of time.  To do this use the following four lines.</p>
<pre style="padding-left:30px;">[daemon]
TimedLoginEnable=True
TimedLogin=brad
TimedLoginDelay=5
</pre>
<p>The <em>TimedLoginDelay</em> option is used to  set the number of seconds to wait until the user is automatically logged in.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=502&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2010/03/18/fedora-automatic-login/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
		<item>
		<title>Print List of Contents of a Folder</title>
		<link>http://blmath.wordpress.com/2009/08/06/print-list-of-contents-of-a-folder/</link>
		<comments>http://blmath.wordpress.com/2009/08/06/print-list-of-contents-of-a-folder/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 03:07:34 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[chdir]]></category>
		<category><![CDATA[dir]]></category>
		<category><![CDATA[dos prompt]]></category>
		<category><![CDATA[ls]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=476</guid>
		<description><![CDATA[Sometimes it can be useful to print out a list of a folder&#8217;s contents.  The best way to do this on windows, in my opinion, is to use the commandline.  To open the prompt, hit Windows + R, and then type cmd into the prompt before hitting enter.  Afterwards, a screen should pop up that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=476&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes it can be useful to print out a list of a folder&#8217;s contents.  The best way to do this on windows, in my opinion, is to use the commandline.  To open the prompt, hit <em>Windows + R</em>, and then type <em>cmd</em> into the prompt before hitting enter.  Afterwards, a screen should pop up that looks similar to this:</p>
<div id="attachment_489" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-489" title="cmd prompt" src="http://blmath.files.wordpress.com/2009/08/cmd-prompt.jpg?w=300&#038;h=148" alt="Cmd Prompt" width="300" height="148" /><p class="wp-caption-text">Cmd Prompt</p></div>
<p>The basics you need to know are the <em>dir</em>, <em>chdir</em>, and <em>help</em> commands.  The  <em>dir</em> command outputs your current location and also the contents of the folder your in.  The <em>chdir</em> command lets you change your folder location.  However, to switch to another drive just type the drive letter followed by a colon.  For instance, to switch to the C drive type <em>C:</em>, and then hit enter.  For help with more options for <em>dir</em> and <em>chdir</em> just type <em>help dir</em> or <em>help chdir</em>.</p>
<h4>Print Folder Contents Using Windows</h4>
<ol>
<li>Hit the keys <em>Windows + R</em>.</li>
<li>Type <em>cmd</em> into the run prompt and then hit enter.</li>
<li>Use the <em>chdir</em> command to get the folder you wish.</li>
<li>Run the command <em>dir /b &gt; list.txt</em> to get a list of all the contents in the folder.</li>
<li>Print the file list.txt.</li>
</ol>
<h4>Print Folder Contents Using Linux</h4>
<ol>
<li>Open up a terminal.</li>
<li>Use <em>cd</em> to get to the folder you want the list of contents from.</li>
<li>Run the command <em>ls -a &gt; list.txt</em>.</li>
<li>Print the file list.txt.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/476/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/476/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/476/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=476&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2009/08/06/print-list-of-contents-of-a-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>

		<media:content url="http://blmath.files.wordpress.com/2009/08/cmd-prompt.jpg?w=300" medium="image">
			<media:title type="html">cmd prompt</media:title>
		</media:content>
	</item>
		<item>
		<title>Data Erasure and Recovery</title>
		<link>http://blmath.wordpress.com/2009/08/01/data-erasure-and-recovery/</link>
		<comments>http://blmath.wordpress.com/2009/08/01/data-erasure-and-recovery/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 17:36:01 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[data erasure]]></category>
		<category><![CDATA[data remanence]]></category>
		<category><![CDATA[dban]]></category>
		<category><![CDATA[scrub]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shred]]></category>
		<category><![CDATA[testdisk]]></category>

		<guid isPermaLink="false">http://blmath.wordpress.com/?p=462</guid>
		<description><![CDATA[When files/folders are deleted the information is not actually removed from your computer.  The file still exists, but the space that it exists on becomes free to be written over.  However, there are tools that you can use to erase this information completely so that it cannot be recovered. From what I&#8217;ve read, these tools [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=462&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When files/folders are deleted the information is not actually removed from your computer.  The file still exists, but the space that it exists on becomes free to be written over.  However, there are tools that you can use to erase this information completely so that it cannot be recovered. From what I&#8217;ve read, these tools actually just &#8220;make it harder&#8221; to recover information, and the best way to ensure that information is completely destroyed is to fry the hard drive by degaussing it or dissolving it in acid.</p>
<p>Normally I use a tool called <em>shred</em> to remove files, but it cannot remove directories.  There is another tool, called <em>scrub</em>, which can do this.  Shred and scrub work basically in the same way.  They just rewrite the disk space, where the file/folder is stored, over and over again to corrupt the information stored there.</p>
<p>Another tool you can use is called DBAN, which is a self contained boot disk that you can use to erase an entire hard drive.  It works basically the same way as shred and scrub by repeatdly rewritting then entire hard drive with random numbers.  The benefit of DBAN is that it can be booted from a CD, DVD, or USB and can erase the entire hard drive.  The homepage for DBAN is <a title="DBAN" href="http://www.dban.org/" target="_blank">here</a>.</p>
<h4>To use shred:</h4>
<ol>
<li>Open a terminal.</li>
<li>CD to where the file is stored.</li>
<li>Run the command <em>shred -vz &#8211;remove [file_name]</em>.</li>
</ol>
<p>The -v option is verbose so if you don&#8217;t want to see all the information shred will spit back at you the leave this option out.  The -z option rewrites the space on the final time with all zeros, and the  &#8211;remove option removes the file after it&#8217;s been rewritten.</p>
<p>Shred can be used recursively to erase a bunch of files in a folder by running <em>find [directory] -type f | xargs shred -zu</em>.</p>
<h4>Recovering Lost Information</h4>
<p>The best way to prevent loss of data is to backup your files.  I do this every once in a while on a separate hard-drive to also protect myself from hard-drive crashes.  In other cases, if just the operating system has crashed you can grab your files using a live-cd or live-usb.  I always keep a Fedora live-cd laying around, but there are others, such as Knoppix, that you can use as well.</p>
<p>However,  if you deleted a file/folder and didn&#8217;t repeatedly rewrite the disk space it was on, then you might be able to recover it using a program called <em>testdisk</em>, which I found <a title="TestDisk" href="http://www.cgsecurity.org/wiki/TestDisk" target="_blank">here</a>.  It can be used to scan drives to recover information, and it works on both Windows and Linux, although I have not tried it with Windows.</p>
<p>Here is the <a title="TestDisk Tutorial" href="http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step" target="_blank">tutorial</a> I used when learning how to use testdisk.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blmath.wordpress.com/462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blmath.wordpress.com/462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blmath.wordpress.com/462/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blmath.wordpress.com&amp;blog=7496646&amp;post=462&amp;subd=blmath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blmath.wordpress.com/2009/08/01/data-erasure-and-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8c44065662090c825510084333e5cf5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
