<?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>Blogternals &#187; Linux</title>
	<atom:link href="http://www.blogternals.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogternals.com</link>
	<description>Knowledge Belongs to the World!</description>
	<lastBuildDate>Wed, 11 Aug 2010 12:32:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Changing the timezone on Fedora and CentOS</title>
		<link>http://www.blogternals.com/2010/05/06/changing-the-timezone-on-fedora-and-centos/</link>
		<comments>http://www.blogternals.com/2010/05/06/changing-the-timezone-on-fedora-and-centos/#comments</comments>
		<pubDate>Thu, 06 May 2010 16:10:03 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux distribution]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Red Hat]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1293</guid>
		<description><![CDATA[Image by courtneyBolton via Flickr Setting the timezone on CentOS. This is going to take me longer to write this article up than actually showing you how to accomplish this. This is pretty much a fairly simple operation. There are loads of timezone data files stored in: ?View Code BASH/usr/share/zoneinfo I have seen many people [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl style="width: 250px;" class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/56966627@N00/4554578422"><img src="http://www.blogternals.com/wp-content/uploads/2010/05/4554578422_a9e43ac145_m.jpg" alt="timezones_map" title="timezones_map" height="120" width="240"></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/56966627@N00/4554578422">courtneyBolton</a> via Flickr</dd>
</dl>
</div>
</div>
<p>Setting the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Time_zone" title="Time zone" rel="wikipedia">timezone</a> on <a class="zem_slink" href="http://www.centos.org/" title="CentOS" rel="homepage">CentOS</a>. This is going to take me longer to write this article up than actually showing you how to accomplish this.  This is pretty much a fairly simple operation. There are loads of timezone <a class="zem_slink" href="http://en.wikipedia.org/wiki/Data_file" title="Data file" rel="wikipedia">data files</a> stored in:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1293code5'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12935"><td class="code" id="p1293code5"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo</pre></td></tr></table></div>

<p>I have seen many people explain this many ways. There are system commands to run, they are scripts, but by far the simplest way I know of is to just the replace the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Symbolic_link" title="Symbolic link" rel="wikipedia">symbolic link</a> located at:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1293code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12936"><td class="code" id="p1293code6"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo</pre></td></tr></table></div>

<p>So for my CentOS install, to set my machine to <a class="zem_slink" href="http://maps.google.com/maps?ll=51.5080555556,-0.124722222222&amp;spn=0.1,0.1&amp;q=51.5080555556,-0.124722222222%20%28London%29&amp;t=h" title="London" rel="geolocation">London</a> time, I use:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1293code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12937"><td class="code" id="p1293code7"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">date</span>
Thu May  <span style="color: #000000;">6</span> <span style="color: #000000;">11</span>:<span style="color: #000000;">50</span>:07 EDT <span style="color: #000000;">2010</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo<span style="color: #000000; font-weight: bold;">/</span>Ameica<span style="color: #000000; font-weight: bold;">/</span>Chicago <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime</pre></td></tr></table></div>

<p>Now check it&#8217;s the timezone you expect. You may to dig around to find the correct timezone but you get the point.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1293code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12938"><td class="code" id="p1293code8"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">date</span>
Thu May  <span style="color: #000000;">6</span> <span style="color: #000000;">11</span>:<span style="color: #000000;">50</span>:<span style="color: #000000;">33</span> CDT <span style="color: #000000;">2010</span></pre></td></tr></table></div>

<p>I imagine this works on <a class="zem_slink" href="http://www.redhat.com" title="Red Hat" rel="homepage">Redhat</a> and <a class="zem_slink" href="http://fedoraproject.org/" title="Fedora" rel="homepage">Fedora</a> as well, but I can’t be sure on other <a class="zem_slink" href="http://en.wikipedia.org/wiki/Linux_distribution" title="Linux distribution" rel="wikipedia">Linux distros</a>.</p>
<p>Enjoy and Have a Good&#8217;n!</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=6afd5786-51ab-40ad-81a9-7da925c9eb78"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2010/05/06/changing-the-timezone-on-fedora-and-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Linux Shell</title>
		<link>http://www.blogternals.com/2010/01/25/the-linux-shell/</link>
		<comments>http://www.blogternals.com/2010/01/25/the-linux-shell/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 21:20:08 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Command-line interface]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[Environment variable]]></category>
		<category><![CDATA[Folder]]></category>
		<category><![CDATA[Home directory]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1257</guid>
		<description><![CDATA[Image via Wikipedia Today I am going to step back a little bit and cover a subject that seems to be a pivotal make it or break it moment in most would be Linus users. For those of us who are long past the transition days between M$ and Linux, can still remember the day [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl style="width: 310px;" class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/Image:Knoppix_mr02.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/24/Knoppix_mr02.jpg/300px-Knoppix_mr02.jpg" alt="Knoppix Linux desktop" title="Knoppix Linux desktop" height="225" width="300"></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/Image:Knoppix_mr02.jpg">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>Today I am going to step back a little bit and cover a subject that seems to be a pivotal make it or break it moment in most would be Linus users. For those of us who are long past the transition days between M$ and <a class="zem_slink" href="http://en.wikipedia.org/wiki/Linux" title="Linux" rel="wikipedia">Linux</a>, can still remember the day we found out that the Linux shell (a.k.a The Terminal) is where we would spend most of our time trying to customize our Linux distro, or in some cases trying to get our favorite distro working. Anyway I understand that in this day and time Linux is getting better about meeting the needs or the graphical point and click user, but still by far the shell is the most powerful tool in any Linux users arsenal. </p>
<p>So lets get started!<br />
<span id="more-1257"></span></p>
<h3>Shells</h3>
<p>The Shell is also known as the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Command-line_interface" title="Command-line interface" rel="wikipedia">command line</a> for those new to Linux, and the shell is also used to execute your commands (sometimes without you even knowing it). Common examples include tcsh, bash, zsh, ksh, ash,&#8230;. However, there are two main styles: Korn Shells (bash is the main one) and C Shells (tcsh is the main one). A note about Windows shells; they suck, do not work properly, and do very little expect execute commands. Now on the contrast *nix shells are full programming environments with your imagination as the limit. Shells read your commands, interpret them and execute system process.<br />
      If the command is a built-in (eg cd skoleLinux), your shell does it internally. Otherwise, it searches the PATH environment variable for a program matching with that name. Here&#8217;s my PATH (and how to display it):</p>
<p>The difference between one shell and another lies mostly in the details of the interpretation and what built-in commands are available. The shells are the main owners/maintainers of Environment variables (eg $PATH, $CVS_RSH, $UID). One major difference between bash and tcsh is the built-in command used to set/modify your <a class="zem_slink" href="http://en.wikipedia.org/wiki/Environment_variable" title="Environment variable" rel="wikipedia">environment variables</a>.</p>
<p>In bash, to set an environment variable you do things like:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code18'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125718"><td class="code" id="p1257code18"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>X11:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>games:<span style="color: #000000; font-weight: bold;">/&lt;</span>a <span style="color: #007800;">class</span>=<span style="color: #ff0000;">&quot;zem_slink&quot;</span> <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://en.wikipedia.org/wiki/Home_directory&quot;</span> <span style="color: #007800;">title</span>=<span style="color: #ff0000;">&quot;Home directory&quot;</span> <span style="color: #007800;">rel</span>=<span style="color: #ff0000;">&quot;wikipedia&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>home<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;/</span>asanford<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$PATH</span>
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>X11:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>games:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>asanford<span style="color: #000000; font-weight: bold;">/</span>bin</pre></td></tr></table></div>

<p>In tcsh, you would do:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code19'); return false;">View Code</a> TCSH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125719"><td class="code" id="p1257code19"><pre class="tcsh" style="font-family:monospace;">setenv PATH /usr/local/bin:/usr/bin
setenv PATH $PATH:/usr/bin/X11:/usr/games:/home/asanford/bin
echo $PATH
        /usr/local/bin:/bin:/usr/bin/X11:/usr/games:/home/asanford/bin</pre></td></tr></table></div>

<p>I recommend using bash. It&#8217;s the standard shell in almost any modern day Linux installation, and it&#8217;s the one most people will generally assume you are using when trying to help you out.</p>
<h3>BASH</h3>
<p>A few useful facts about bash:</p>
<p>   1. ~/.bash_profile (ie the file .bash_profile in your home dir)</p>
<p>      All commands in this file are executed when you start bash. So you can put customizations in there, such as setting environment variables. You might like to create the file with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code20'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125720"><td class="code" id="p1257code20"><pre class="bash" style="font-family:monospace;">              <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CVS_RSH</span>=<span style="color: #c20cb9; font-weight: bold;">ssh</span>
              <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CVS_ROOT</span>=<span style="color: #ff0000;">&quot;:ext:asanford@cvs.example.com:/var/lib/cvs&quot;</span></pre></td></tr></table></div>

<p>      the above commands would be executed every time you login. Then you wouldn&#8217;t need to type the commands every time you want to use CVS, they&#8217;d be set every time in advance.<br />
   2. alias</p>
<p>      If you type a command a lot (eg ssh -X -C asanford@example.com): you can create a shortcut by:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code21'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125721"><td class="code" id="p1257code21"><pre class="bash" style="font-family:monospace;">      <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">forty</span>=<span style="color: #ff0000;">&quot;ssh -t -X -C asanford@example.com &quot;</span></pre></td></tr></table></div>

<p>      so, from then on, every time you type &#8220;forty&#8221; on the command line, when bash interprets it, it will substitute the above longer string delaying your inevitable arthritis. This is something you would put in your ~/.bash_profile<br />
   3. It&#8217;s a full programming environment.</p>
<p>      Without going into gory details, it will suffice to say that you can write if, else, while, for, &#8230; etc. directly into bash and it will interpret it. For example, the following command will loop over a bunch of infidel usernames, deleting their home directories.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code22'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125722"><td class="code" id="p1257code22"><pre class="bash" style="font-family:monospace;">         <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> asanford ksanford john
         <span style="color: #000000; font-weight: bold;">do</span>
              <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> ~<span style="color: #007800;">$i</span><span style="color: #000000; font-weight: bold;">/</span>
         <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>   4. Wildcards and other special characters</p>
<p>      If you do</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125723"><td class="code" id="p1257code23"><pre class="bash" style="font-family:monospace;">              <span style="color: #c20cb9; font-weight: bold;">ls</span> foo_<span style="color: #000000; font-weight: bold;">*</span>.txt</pre></td></tr></table></div>

<p>      you&#8217;ll get a listing of all files beginning with &#8220;foo_&#8221; and ending &#8220;.txt&#8221; . In DOS, you can similarly do</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125724"><td class="code" id="p1257code24"><pre class="bash" style="font-family:monospace;">      <span style="color: #c20cb9; font-weight: bold;">dir</span> <span style="color: #000000; font-weight: bold;">*</span></pre></td></tr></table></div>

<p>      . However, in DOS, the dir program reads the * and evaluates it. Here, BASH evaluates the * and ls sees the list of files as its options. `ls` itself does not understand wildcards. When it interpets the command it looks for certain special characters to interpret:</p>
<p>              * means a sequence of one or more characters (a wildcard)<br />
              ? means a single character (a wildcard)<br />
              $ means the following characters make up an env variable (eg $PATH)<br />
              [acde] means a single character matching any of a,c,d or e<br />
              [0-9] means any digit<br />
              ~ shorthand for home directory</p>
<p>      As a case in point, if you are ever in a directory with a huge number of files (say 100,000) and you want to delete or list the files, you might try:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code25'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125725"><td class="code" id="p1257code25"><pre class="bash" style="font-family:monospace;">          asanford<span style="color: #000000; font-weight: bold;">@</span>shual$ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">*</span>
          <span style="color: #c20cb9; font-weight: bold;">bash</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">rm</span>: Argument list too long</pre></td></tr></table></div>

<p>      It won&#8217;t work. This is because bash evaluates the *, all 100,000 filenames end up as arguments (options) to the command and `rm` can&#8217;t handle this. One solution is as follows explaining this in detail is outside the scope of this document but trust me it works:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1257code26'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p125726"><td class="code" id="p1257code26"><pre class="bash" style="font-family:monospace;">          asanford<span style="color: #000000; font-weight: bold;">@</span>shual$ <span style="color: #c20cb9; font-weight: bold;">ls</span> . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gawk</span> <span style="color: #ff0000;">'{print &quot;rm -f &quot;$1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bash</span></pre></td></tr></table></div>

<p>      So bash launches the rm command once for each file * matches instead of once for all files. </p>
<h3>The Basics</h3>
<p>You may have noticed that each time you start Xwindows, a shell window, similar to a DOS window in Win95/98, appears. This is the powerhouse of the Linux OS, and from here you can execute copy, compile, move, find and edit commands just as easily as in dos. Unfortunately, there are different commands used in the Linux shell than in DOS, so I&#8217;ll explain a few of them. Remember that commands are case sensitive in Linux, so LS is not the same command as ls, and will return an error.</p>
<p><strong>Changing Directories</strong> &#8211; You&#8217;ll need this more often than anything.</p>
<p>Just as in DOS, the cd (Change Directory) command is used. When the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Shell_%28computing%29" title="Shell (computing)" rel="wikipedia">command shell</a> opens, it opens in your own (Most of the time there are some exceptions), home directory. If you ever need to return to your own home directory, just enter cd and press return. As in DOS, to move out one level in a <a class="zem_slink" href="http://en.wikipedia.org/wiki/Folder_%28computing%29" title="Folder (computing)" rel="wikipedia">directory tree</a>, type <a class="zem_slink" href="http://en.wikipedia.org/wiki/Cd_%28command%29" title="Cd (command)" rel="wikipedia">cd ..</a> You can go to the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Root_directory" title="Root directory" rel="wikipedia">root</a> directory of your Linux OS and all it&#8217;s drives by typing cd /. Note how in Linux, there is a backslash instead of a forward slash. Another thing is that Hard Disks are not mounted as drive c, drive d and so on. They are placed as folders, and to all intents and purposes look just like one big hard disk. To find out what disks are mounted, where, and what capacity they are and have left, type df (I remember this using, disk free, relating to free space). If you want to go to one of the <a class="zem_slink" href="http://en.wikipedia.org/wiki/User_%28computing%29" title="User (computing)" rel="wikipedia">user accounts</a> on your machine, you can cd ~username, and that&#8217;ll take you to where their account resides (Assuming you have permission to enter their directory).</p>
<p><strong>Need to know what is in a directory?</strong></p>
<p>DOS has that crappy dir command, but where is the Linux version? It&#8217;s replaced by ls. ls, can be remembered as a list (Acronym) of what is in that directory. It is quite confusing to look at, and its harder to separate what is a folder, what is a file, and what can be run. In DOS, there are a vast number of switched, or options, that can be added to the basic command dir to give more information. Linux is not left behind, and adds even more commands to confuse yourself with *grin*. ls -m (remember this as more), is similar to dir /w, giving horizontal lines of filenames and directory names. ls -l is a switch that will give the full names of the files, and then give the permissions of the files (Who is entitiled to execute them), and whether or not they are executable. If an X is present in the attributes, that file is a program, and can be run by typing ./nameoffile. Files can only be run if they have the ./ prefix before them. The other attributes you will learn as time progresses and you become more familiar with the Operating System. The best usage of ls, is ls &#8211;color. This gives a wide listing, with colors assigned to various file types. When using this option, directories are in blue, and executables in green. This option is by far the best. Typing ls &#8211;color can get annoying as I found after a while, so its possible to create a text file with &#8216;ls &#8211;color&#8217; contained, and then allow that file to be executed. By placing this file in the path, and changing its name to lss, you could use it quite frequently! I will show how to do this at a later date.</p>
<p><strong>File name completion</strong></p>
<p>Ok now the nicest features about a Linux shell, as opposed to the DOS shell, is that it can (if configured to do so and most distros do by default) complete file names and directory names for you. The TAB button, located above Caps-Lock, is the completion key. Once you have typed in the beginning of a file, or directory, pressing TAB will search for a list of possible file or directory names. If more than one option is presented, nothing will appear, you will most likely get some sort ot audible bell or screen flicker, and pressing TAB a second time will present a complete listing of all the available completion candidates, enter a few more characters of the option you want, and press TAB again.</p>
<p><strong>Copying files</strong></p>
<p>This is an interesting one. For copying internally between mounted drives, it&#8217;s very similar to the DOS syntax. to copy blah.xxx from the current directory to /root/, the syntax is cp blah.xxx /root/, just remember that if something is going into a lower level directory to give the full path, including the forward slash.<br />
Moving or Renaming Files</p>
<p>Again, ths syntax is very similar to the DOS syntax. If you want to rename blah.xxx to xxx.blah, the command is mv blah.xxx xxx.blah, fairly simple. If you are just relocating the file, remember that two files with the same name cannot reside in the same directory, so you will have to give a directory name, just like the description in the Copying section above.<br />
Working with MS-DOS floppy disks</p>
<p>Now one of the most useful things to now is how to wiping the screen clean and have the first line at the top of the screen or window. To clear a screen full of text, just type in `clear` from the command line</p>
<p>Any way I hope this has been a helpful introduction for someone out there.</p>
<p>Enjoy and Have a Good&#8217;n!</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=49552732-50d8-4c42-b9f1-2ea9f057143d"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2010/01/25/the-linux-shell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora 12 (Constantine) &#8211; Just Linux?</title>
		<link>http://www.blogternals.com/2009/12/07/fedora-12-constantine-just-linux/</link>
		<comments>http://www.blogternals.com/2009/12/07/fedora-12-constantine-just-linux/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 03:52:09 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reveiw]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1185</guid>
		<description><![CDATA[Fedora has always been one of the strongest distributions, I mean come on they are sponsored by RedHat. Once upon a time I used Fedora religiously and there was no-one anywhere which could change my mind. One day the Fedora Project people, I&#8217;ll just say there are many which know which version I refer to [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora has always been one of the strongest distributions, I mean come on they are sponsored by RedHat. Once upon a time I used Fedora religiously and there was no-one anywhere which could change my mind. One day the Fedora Project people, I&#8217;ll just say there are many which know which version I refer to here, decided to do some really crazy stuff and they actually turned my against the very distro I was promoting to my peers. Any way after hanging around another nameless distro for a while I decided to stroll over to <a href="http://www.fedoraproject.org/">FedoraProject.org</a> and see what was going on. Initially I had nothing but the bad memories looming in my head, and thought to myself, umm I think I&#8217;ll load this new Fedora 12 up and see what was under the hood.<br />
<span id="more-1185"></span><br />
I have to admit that I was so hesitant to load Fedora on a live machine that I initially installed it on a VM (Virtual Machine). WOW were my first words, I remember them very vividly. Seems the FedoraProject has gotten this distro loading fast and I mean leaps ahead of other distros out there. I know that someone can point one out that loads faster, but I am talking about the mainstream distros here.<br />
This release brings some very impressive new features that I have been waiting on for quite some time. It&#8217;s a strong update that puts the distro back on the right track and addresses several serious problems that I have encountered in past releases.<br />
Fedora 12 also brings improved power management, performance optimizations, new virtualization enhancements, and a lot of other great stuff, I mean I have to say they nailed it this time. A lot of the improvements will also boost Fedora&#8217;s suitability for netbooks, which is a big thing for certain people these days. There are also other spins that you will want to check out.<br />
It would seem that the Fedora target audience will remain that of users who are voluntarily switching to Linux, have some technical familiarity with computers, are willing to contribute time to the project in some capacity.  Over the long haul focusing on the target audience&#8217;s needs will have a positive impact for all users and keep the project moving forward in a very positive posture and keep a enthusiastic outlook for the over all longevity of the Linux platform.<br />
The new automated bug reporting feature is one of the main things that jumps out at me as a huge step forward for the Fedora Project. The new feature will allow even the most novice users to feel like they are contributing, and for good reason they are. True detailed testing is easily accomplished in house, but can anyone really test all the hardware scenarios out there, I think not. Anyway this feature I think will move all Linux distros screaming forward.<br />
You can <a href="http://fedoraproject.org/">download Fedora 12 from the project&#8217;s official website</a>. The installer is available in a complete DVD imagein Live CD images that are tailored for specific desktop environments.<br />
My final thoughts are very positive for Fedora and in fact I think after several releases they have finally won me back.<br />
<img src="http://www.blogternals.com/wp-content/uploads/2009/11/fedora-logo-150x130.jpg" alt="fedora-logo" title="fedora-logo" width="150" height="130" class="alignright size-thumbnail wp-image-1166" /><br />
Enjoy and Have a Good&#8217;n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/12/07/fedora-12-constantine-just-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introducing SSHMenu</title>
		<link>http://www.blogternals.com/2009/09/28/introducing-sshmenu/</link>
		<comments>http://www.blogternals.com/2009/09/28/introducing-sshmenu/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 14:44:59 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Carousel]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[gnome panel]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1032</guid>
		<description><![CDATA[OK, I stumbled across one of the most useful apps I have discovered in a long time, SSHMenu. SSHMenu is a panel applet for GNMOME (I have been informed it can be used outside of GNOME as well) that keeps track of all your regular SSH connections and makes them available with a single mouse [...]]]></description>
			<content:encoded><![CDATA[<p>OK, I stumbled across one of the most useful apps I have discovered in a long time, <a href="http://">SSHMenu</a>. <a href="http://sshmenu.sourceforge.net/">SSHMenu</a> is a panel applet for GNMOME (I have been informed it can be used outside of GNOME as well) that keeps track of all your regular SSH connections and makes them available with a single mouse click. Here&#8217;s a screenshot to give you the basic idea (I got this from there home page located <a href="http://sshmenu.sourceforge.net/">http://sshmenu.sourceforge.net/</a>):<br />
<span id="more-1032"></span><br />
<a href="http://www.blogternals.com/wp-content/uploads/2009/09/sshmenu_screenshot.png"><img src="http://www.blogternals.com/wp-content/uploads/2009/09/sshmenu_screenshot-300x160.png" alt="sshmenu_screenshot" title="sshmenu_screenshot" width="300" height="160" class="aligncenter size-medium wp-image-1033" /></a></p>
<p>Each menu option will allow you to open an SSH session in a new terminal window. You can organize the connections into groups of hosts using separator bars or sub-menus. You can even open all the connections on a submenu (in separate windows or tabs) with one click.</p>
<p><a href="http://www.blogternals.com/wp-content/uploads/2009/09/prefs_dialog.png"><img src="http://www.blogternals.com/wp-content/uploads/2009/09/prefs_dialog-287x300.png" alt="prefs_dialog" title="prefs_dialog" width="287" height="300" class="aligncenter size-medium wp-image-1038" /></a></p>
<p>Here&#8217;s a killer feature found in <a href="http://sshmenu.sourceforge.net/">SSHMenu</a> , imagine you just connected to a production server and the terminal window had a red-tinted background, to remind you to tread carefully, well using terminal profiles, <a href="http://sshmenu.sourceforge.net/">SSHMenu</a>  allows you to specify colours, fonts, transparency and a variety of other settings on a per-connection basis. You can even set window size and position, talk about convenient.</p>
<p>The latest source distribution can be downloaded from <a href="http://sourceforge.net/project/showfiles.php?group_id=196084">here</a>, but you&#8217;ll probably want to get a pre-built package for your platform if possible.</p>
<p>If you&#8217;re running Debian, Ubuntu, etc &#8230; you can install the packages directly from the repository locate <a href="http://sshmenu.sourceforge.net/download/deb_repo.html">here</a>. Downloading from these repositories will ensure that the Ruby and GTK dependencies are resolved automatically.</p>
<p>There are <a href="http://sshmenu.sourceforge.net/download/install.html">manual installation</a> instructions that describe all the files in the distribution and where you need to put them on your system to make them work. This information is really targeted at people who wish to build packages for other OS distributions.</p>
<p>For more information setting up <a href="http://sshmenu.sourceforge.net/">SSHMenu</a>  you can visit this page <a href="http://sshmenu.sourceforge.net/setup/">http://sshmenu.sourceforge.net/setup/</a></p>
<p>Enjoy and Have a Good&#8217;n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/09/28/introducing-sshmenu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu DIGIPRO T-8000U T-6000U T-5500U 12000U 14000U</title>
		<link>http://www.blogternals.com/2009/09/05/ubuntu-digipro-t-8000u-t-6000u-t-5500u-12000u-14000u/</link>
		<comments>http://www.blogternals.com/2009/09/05/ubuntu-digipro-t-8000u-t-6000u-t-5500u-12000u-14000u/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 21:49:28 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Carousel]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Aiptek]]></category>
		<category><![CDATA[digipro]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=995</guid>
		<description><![CDATA[OK, I recently purchased a DigiPro T-6000U Graphics Tablet to use with Ubuntu (More Specifically Jaunty Jackalope or AKA 9.04) and it took me a while to figure out how to get it working, but as I found out in the end it is way easier than I thought to get it working, and I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blogternals.com/wp-content/uploads/2009/09/T-6000U-unit.jpg"><img src="http://www.blogternals.com/wp-content/uploads/2009/09/T-6000U-unit-150x150.jpg" alt="T-6000U-unit" title="T-6000U-unit" width="150" height="150" class="alignleft size-thumbnail wp-image-1023" /></a>OK, I recently purchased a DigiPro T-6000U Graphics Tablet to use with Ubuntu (More Specifically Jaunty Jackalope or AKA 9.04) and it took me a while to figure out how to get it working, but as I found out in the end it is way easier than I thought to get it working, and I was trying to &#8220;over do it&#8221;. My biggest problem was that not to many people were sharing the information about installing a DigiPro but rather they were sharing how to install an Aiptek graphic&#8217;s tablet. The reason for this was not at first apparent but DigiPro tablets are using Aiptek hardware, and you can see this by running the following two commands with the tablet plugged in, (When you run the commands without the tablet plugged in you will notice you will not find Aiptek in the list unless you have other Aiptek hardware).<br />
<span id="more-995"></span></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p995code30'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p99530"><td class="code" id="p995code30"><pre class="shell" style="font-family:monospace;">grep -i name /proc/bus/input/devices
lshal | grep Aiptek</pre></td></tr></table></div>

<p>The following information is for installing aiptek-based USB tablets for Linux and X11, not to be confused with the older serial-based hyper pen module. This tablet is also known as a Dolphin, Medion (Aldi tablet), Nisis and a few other generic brands.</p>
<p>The xserver-xorg-input-aiptek package must be installed to use this tablet, this is where I ran into my biggest troubles. I keep trying to install wizardpen drivers because all my searches for Ubuntu and DigiPro were leading me to results that linked to wizardpen drivers instructions, hence why I am writing this. To install run the following command.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p995code31'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p99531"><td class="code" id="p995code31"><pre class="shell" style="font-family:monospace;">sudo apt-get install xserver-xorg-input-aiptek</pre></td></tr></table></div>

<p>Support for the Aiptek tablet has improved a tremendous amount in a short time since Ubuntu 8.04. One of the more confusing things is setting the correct configuration setup for HAL. The settings for the tablet are now stored with HAL, and no longer requires one to have to edit the xorg.conf file. The following will fix you up; create a file named 10-aiptek.fdi, in the directory /etc/hal/fdi/policy with the following content (make note if your tablet has 1024 levels of pressure sensitivity use 1023 instead of 511):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p995code32'); return false;">View Code</a> XHTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p99532"><td class="code" id="p995code32"><pre class="xhtml" style="font-family:monospace;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; 
&lt;deviceinfo version=&quot;0.2&quot;&gt;
  &lt;device&gt;
    &lt;match key=&quot;info.product&quot; contains=&quot;Aiptek&quot;&gt;
      &lt;merge key=&quot;input.x11_driver&quot; type=&quot;string&quot;&gt;aiptek&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.SendCoreEvents&quot; type=&quot;string&quot;&gt;true &lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.USB&quot; type=&quot;string&quot;&gt;On&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.Type&quot; type=&quot;string&quot;&gt;stylus&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.Mode&quot; type=&quot;string&quot;&gt;absolute&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.zMin&quot; type=&quot;string&quot;&gt;0&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.zMax&quot; type=&quot;string&quot;&gt;511&lt;/merge&gt;
      &lt;merge key=&quot;input.x11_options.KeepShape&quot; type=&quot;string&quot;&gt;On&lt;/merge&gt;
    &lt;/match&gt;
  &lt;/device&gt;
&lt;/deviceinfo&gt;</pre></td></tr></table></div>

<p>All you need to do now is to restart udev and xorg or for simplicity just reboot, for newbies I recommend rebooting just to be safe.</p>
<p>Now most people will be using their tablets to draw in GIMP but almost everyone will notice that if they try and use it now the 512/1024 pressure sensitive feature will not be working, not to worry this is a GIMP configuration problem. To configure GIMP to use the pressure sensitive feature navigate here in the menus Edit >> Preferences >> Input Devices >> Configure Extended Input Devices &#8230;  Now you need set the mode to either window or screen I screen but the choice is yours. Save your settings and restart GIMP for good measure and off you go.</p>
<p>Some tablets (6000U, 12000U, 14000U) seems to use Wacom drivers, if you experience problems with button presses (Your mouse pointer freezes), but you can move the cursor try the updated packets for Wacom.</p>
<p>(I think I&#8217;ll write a review on this tablet too I like it a lot)</p>
<p>Enjoy and Have a Good’n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/09/05/ubuntu-digipro-t-8000u-t-6000u-t-5500u-12000u-14000u/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Install LAMP: Linux Apache2 MySQL PHP5</title>
		<link>http://www.blogternals.com/2009/08/27/ubuntu-install-lamp-linux-apache2-mysql-php5/</link>
		<comments>http://www.blogternals.com/2009/08/27/ubuntu-install-lamp-linux-apache2-mysql-php5/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 01:24:09 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=963</guid>
		<description><![CDATA[First off, this one will be quick and painless, and only applies to those who are installing Apache2, MySQL, and PHP5 after the fact. The major step that stumps most people is getting PHP5 to work, more on this in a moment. If you are doing any kind of PHP development at all, most will [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blogternals.com/wp-content/uploads/2009/08/linux-apache-mysql-php.jpg"><img src="http://www.blogternals.com/wp-content/uploads/2009/08/linux-apache-mysql-php.jpg" alt="linux-apache-mysql-php" title="linux-apache-mysql-php" width="125" height="77" class="alignleft size-full wp-image-970" /></a>First off, this one will be quick and painless, and only applies to those who are installing Apache2, MySQL, and PHP5 after the fact. The major step that stumps most people is getting PHP5 to work, more on this in a moment. If you are doing any kind of PHP development at all, most will want to have there own sandbox to develop in. Here’s the quickest and easiest way to get a LAMP Installation up and running on your Ubuntu box.<br />
<span id="more-963"></span><br />
We are going to be working in a terminal on the command line, so be comfortable with how to use it before going on any further (As if this statement even needs to be made, we are working with Linux here). You will want to make sure that you have the extra repositories below added to Ubuntu’s sources.list file, if they don&#8217;t exists already,  as you can tell we are using Jaunty Jackalope (Ubuntu 9.04) here.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p963code38'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p96338"><td class="code" id="p963code38"><pre class="bash" style="font-family:monospace;">    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.blogternals.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=963&amp;download=sources.list">sources.list</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p96339"><td class="code" id="p963code39"><pre class="bash" style="font-family:monospace;">    <span style="color: #666666; font-style: italic;">## main &amp; restricted repositories</span>
    deb http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted
    deb-src http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted
&nbsp;
    deb http:<span style="color: #000000; font-weight: bold;">//</span>security.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted
    deb-src http:<span style="color: #000000; font-weight: bold;">//</span>security.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted
&nbsp;
    <span style="color: #666666; font-style: italic;">## universe repositories</span>
    deb http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty universe
    deb-src http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty universe
    deb http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates universe
    deb-src http:<span style="color: #000000; font-weight: bold;">//</span>us.archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates universe
&nbsp;
    deb http:<span style="color: #000000; font-weight: bold;">//</span>security.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security universe
    deb-src http:<span style="color: #000000; font-weight: bold;">//</span>security.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security universe</pre></td></tr></table></div>

<p>Real quick here update apt-get!</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p963code40'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p96340"><td class="code" id="p963code40"><pre class="bash" style="font-family:monospace;">    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></td></tr></table></div>

<p>Now we install the needed packages for our LAMP installation.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p963code41'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p96341"><td class="code" id="p963code41"><pre class="bash" style="font-family:monospace;">    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 php5 libapache2-mod-php5 mysql-server</pre></td></tr></table></div>

<p>Now the default location for your files will be located in /var/www/. If you were to put a file named index.php in the root folder /var/www/ it should render and display the rendered content, for some us however it will prompt us to download this file, or worse show the actual contents of the file, both cases not good. If you are one the later here, running the next set of commands will fix you right up.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p963code42'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p96342"><td class="code" id="p963code42"><pre class="bash" style="font-family:monospace;">    <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>
    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> php5.conf ..<span style="color: #000000; font-weight: bold;">/</span>mods-enabled
    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> php5.load ..<span style="color: #000000; font-weight: bold;">/</span>mods-enabled
    <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload</pre></td></tr></table></div>

<p>You should now have your LAMP installation running. Now you should read up on configuring each of the components but I will save that for another day. </p>
<p>Enjoy and Have a Good’n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/08/27/ubuntu-install-lamp-linux-apache2-mysql-php5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WINDOWS VISTA AERO vs LINUX UBUNTU BERYL</title>
		<link>http://www.blogternals.com/2009/08/13/windows-vista-aero-vs-linux-ubuntu-beryl/</link>
		<comments>http://www.blogternals.com/2009/08/13/windows-vista-aero-vs-linux-ubuntu-beryl/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:12:37 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[AERO]]></category>
		<category><![CDATA[BERYL]]></category>
		<category><![CDATA[DESKTOP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SOFTWARE]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VISTA]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[XGL]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=870</guid>
		<description><![CDATA[WINDOWS VS LINUX the song:HERE COME THE HOTSTTEPER. This is an older video, but what a great one it is, that shows how far behind Microsoft is actually falling despite all the attempts to hide and/or deny it! Now, I am not going to go off on a tangent here just watch the video and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img src="" /></p>
<p><span id="more-870"></span></p>
<p>WINDOWS VS LINUX the song:HERE COME THE HOTSTTEPER. </p>
<p>This is an older video, but what a great one it is, that shows how far behind Microsoft is actually falling despite all the attempts to hide and/or deny it! Now, I am not going to go off on a tangent here just watch the video and be ready to be amazed. (If you are a Linux user this will come as no surprise!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/08/13/windows-vista-aero-vs-linux-ubuntu-beryl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Migration Story &#8211; Windows to Ubuntu 9.04 (Jaunty Jackalope)</title>
		<link>http://www.blogternals.com/2009/06/23/a-migration-story-windows-to-ubuntu-9-04-jaunty-jackalope/</link>
		<comments>http://www.blogternals.com/2009/06/23/a-migration-story-windows-to-ubuntu-9-04-jaunty-jackalope/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 19:44:58 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=753</guid>
		<description><![CDATA[So, you have decided for one reason or another to give up Windows and switch to Linux. One of the problems is that most people don&#8217;t know how to accomplish this and those who do understand have already done. Human nature dictates that most people, once they learn how something is done become sensitized as [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have decided for one reason or another to give up Windows and switch to Linux. One of the problems is that most people don&#8217;t know how to accomplish this and those who do understand have already done. Human nature dictates that most people, once they learn how something is done become sensitized as to how hard it was to gain that knowledge. I decided to think back and then document exactly what one needs to do in order to migrate successfully from Windows to Ubuntu. When I say successfully I mean completely including getting flash and Java to work in Firefox, installing the most needed codecs for  your Media Player files, MP3s and DVDs. Also perhaps setting email and for a good measure a few tips and ticks. During this guide I will be showing you how use what is provided by the default Ubuntu install and only installing minimal applications. I will not be showing you how to install what I think are the best applications for doing things, I&#8217;ll just be showing you how to get things working and installing the minimal apps to get things working. </p>
<p><span id="more-753"></span></p>
<p>One problem you may or may not have considered is all your files and settings. Now I am not trying to talk you out of moving to Linux just making you aware of troubles you will be facing when trying to migrate over. If you opt to re-size your Windows partition and install Ubuntu in a dual boot environment, the Ubuntu installer will prompt you to transfer your files and settings over from your Windows installation. If you are going to opt to obliterate Windows all together you will want to back up your files and settings before you begin (I would back up my files in either case). Make sure you back up your Internet Explorer bookmarks or FireFox bookmarks or both as the case may apply to you. Ubuntu will be able to read from (and even write to) Windows partitions, so copying files from a Windows partition to your new Ubuntu file system is possible. So if you are just choosing to use a new Hard drive then you will not need to back up your data before hand. If those files are on a server (shared), you can get to them via smb (included by default in e.g. Ubuntu&#8217;s nautilus file browser). In this case, you will have to log on to that server with a user account known to that server, and with the necessary permissions to at least copy files and directories, but that&#8217;s easy to set up.</p>
<p>OpenOffice will open MS Office documents, spreadsheets and presentations, Visio and MS Projects clones work towards compatibility with files created with the Microsoft products, pdf&#8217;s are not problem, Adobe even releases a Linux version, &#8230; But your mileage may vary as so things still don&#8217;t port but this will be the exception I promise.</p>
<p>If you were already using Firefox on Windows, this is going to be pretty straightforward. We already know we can copy between the two file systems, and Firefox keeps all settings inside a user profile so moving thins around will be easy. If you are using IE I suggest you install FireFox right now and then import your IE bookmarks to FireFox and then continue this will make life so much easier for you.</p>
<p>As for the rest of your media you will just need to copy things over and then learn the new applications you are going to use to read, listen, or view them. Pretty straightforward here.</p>
<p>OK, lets get our hands dirty, The first thing you need to do is print this article out so you can have it own hand or at the very least write down the URL or bookmark before you begin installing Ubuntu. You should have already downloaded Ubuntu 9.04 and burned it to a CD, if not you need to do so now <a href="http://releases.ubuntu.com/9.04/">here is a link if you need it</a>, for those not sure you need the Desktop version. OK, go ahead and install Ubuntu. If you need help with that <a href="https://help.ubuntu.com/9.04/installation-guide/i386/d-i-intro.html">here is a link</a>.</p>
<p>So you have Ubuntu installed now this is where I enter with some very useful information that is missing in most manuals when you switch to Linux. The reason most install guide leave you here is because Linux is about choice, and they expecet you to make your own choices, but what about the simple everyday things we use our computers for. Media, mail, and the Web (This is where flash and Java come in). They are most likely not working at this point an most Linux distro and there is of coarse a reason for that as well. Now, I am not going to dive to deep into the legalities of why codecs are missing and things don&#8217;t quite work but just understand that there are legal ramification for the maintainers and they have to watch out for their own interests.</p>
<p>OK, So I am going to give you a little bash script here to run from the command line.  This should get your Shinny New Ubuntu running with all the restricted stuff installed, Flash Working as well as Java.</p>
<p><br class="spacer_" /></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.blogternals.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=753&amp;download=migrate.sh">migrate.sh</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p75344"><td class="code" id="p753code44"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> flashplugin-nonfree ubuntu-restricted-extras w64codecs msttcorefonts sun-java6-jre sun-java6-plugin sun-java6-fonts
<span style="color: #c20cb9; font-weight: bold;">sudo</span> fc-cache <span style="color: #660033;">-fv</span></pre></td></tr></table></div>

<p><br class="spacer_" /></p>
<p>On the Windows XP system or in your backup files, look in your profile folder : &#8230;\Documents and Settings\%username%\Application Data\Mozilla\Firefox\Profiles\xxxx.default\, where xxxx is a random name. Copy this folder.</p>
<p>On the Ubuntu system, you will look in your $HOME for &#8230;/.mozilla/firefox/yyyy.default (where $HOME = /home/your_user_name and yyyyyyyy is another random name). Note that .mozilla is a hidden folder : if your copying in a file browser, you may have to tell it to show hidden files. Copy the XP Firefox profile (xxxx.default) to $HOME/.mozilla/firefox/xxxx.default, then change the Path in $HOME/.mozilla/firefox/profiles.ini to xxxx.default and delete yyy.default &#8211; or rename xxxx.default to yyyy.default. You get the idea : just replace the new Ubuntu profile with your old XP Firefox profile.</p>
<p>As for your email, if you are not using an online provider such as gmail, yahoo, or the like, then you will need to consult the documentation on how to migrate that information from windows to Linux and in some cases it will not be possible or extremely difficult. In the earlier case you will not have lost anything. In that later case worst case scenario you will have lost your old emails, configured you email client (Most likely Evolution), and will get future emails. There are several types of email accounts POP3, IMAP, and Exchange and this is all beyond the scope of this article.</p>
<p>Now if you move all your backed up data to your new Ubuntu box you should be good to go. Just go ahead and browse around the menus and you should find everything nicely labeled.</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/06/23/a-migration-story-windows-to-ubuntu-9-04-jaunty-jackalope/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu (Jaunty Jackalope) PHP, ASP.NET Side by Side with Apache2</title>
		<link>http://www.blogternals.com/2009/05/02/ubuntu-jaunty-jackalope-php-aspnet-side-by-side-with-apache2/</link>
		<comments>http://www.blogternals.com/2009/05/02/ubuntu-jaunty-jackalope-php-aspnet-side-by-side-with-apache2/#comments</comments>
		<pubDate>Sat, 02 May 2009 13:28:24 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jackalope]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=352</guid>
		<description><![CDATA[This guide will help you install both PHP5 and ASP.NET modules for APACHE2 on Ubuntu Jaunty Jackalope. This guide may also help other Debian users as well but I am not 100% positive it will work for them. This tutorial expects that you are at least familiar with the linux command line and are comfortable executing commands on the command line (i.e no hand holding is done in this tutorial) If you have any questions or comments or feel I should add something to this tutorial please feel free to leave a comment.]]></description>
			<content:encoded><![CDATA[<p>This guide will help you install both PHP5 and ASP.NET modules for APACHE2 on Ubuntu Jaunty Jackalope. This guide may also help other Debian users as well but I am not 100% positive it will work for them. This tutorial expects that you are at least familiar with the linux command line and are comfortable executing commands on the command line (i.e no hand holding is done in this tutorial) If you have any questions or comments or feel I should add something to this tutorial please feel free to leave a comment.</p>
<p><span id="more-352"></span></p>
<p>First you  will need to install the php mod for apache if you do not already have it installed</p>
<p style="padding-left: 30px;"># sudo apt-get install libapache2-mod-php5</p>
<p>Now on your root web directory directory (for this tutorial we will assume the default /var/www/)</p>
<p style="padding-left: 30px;"># sudo -u www-data vim /var/www/hello.php</p>
<p>And paste the following:</p>
<p style="padding-left: 30px;"><?php echo "Hello World!"; ?></p>
<p>Now you can check the output by navigating to http://127.0.0.1/hellop.php or http://www.<domainname>.com/hello.php You should see in the browser window simply &#8220;Hello World!&#8221; If you see anything other than this stop and start over.</p>
<p>Next we will be installing the .NET module for apache2.</p>
<p style="padding-left: 30px;"># sudo apt-get install libapache2-mod-mono mono-apache-server2</p>
<p>Now we don&#8217;t want to have to bother configuring apache manually to handle ASP.NET 1.0 or ASP.NET 2.0 lets just let the system decide for its self so we will run the following command.</p>
<p style="padding-left: 30px;"># sudo a2dismod mod_mono; a2enmod mod_mono_auto</p>
<p>This next step may or may not apply to you but I am putting it in here for good measure because if the file does not exists you only get ASP.NET 1.0 support.</p>
<p style="padding-left: 30px;"># sudo ln -s /usr/bin/mod-mono-server2 /usr/bin/mod-mono-server</p>
<p>Now lets run a test on the ASP stuff</p>
<p style="padding-left: 30px;"># sudo -u www-data vim /var/www/hello.aspx</p>
<p>And paste the following:</p>
<p style="padding-left: 30px;"><% HelloWorldLabel.Text = "Hello World!"; %><br />
 <html><br />
 <body></p>
<form id="form1" runat="server">
 <asp:Label runat="server" id="HelloWorldLabel" /><br />
 </form>
<p>
 </body><br />
 </html></p>
<p>Now test the ASP page http://127.0.0.1/hello.aspx. Again you should simple see &#8220;Hello World!&#8221; and nothing else.<br />
Congratulations you have now enabled PHP5 and ASP.NET for APACHE2 on Ubuntu Jaunty Jackalope</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/05/02/ubuntu-jaunty-jackalope-php-aspnet-side-by-side-with-apache2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu Static IP Configuration</title>
		<link>http://www.blogternals.com/2009/05/01/ubuntu-static-ip-configuration/</link>
		<comments>http://www.blogternals.com/2009/05/01/ubuntu-static-ip-configuration/#comments</comments>
		<pubDate>Fri, 01 May 2009 13:48:53 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=346</guid>
		<description><![CDATA[These instructions are for Ubuntu but may also apply to a Debian installation. This is actually quite simple. The main thing most people leave when witting these tutorials is removing the dchp3-client. If you don't remove the dhcp3-client then you are just spinning your wheels because the next time you reboot your are back at a dynamic IP.]]></description>
			<content:encoded><![CDATA[<p>These instructions are for Ubuntu but may also apply to a Debian installation. This is actually quite simple. The main thing most people leave when witting these tutorials is removing the dchp3-client. If you don&#8217;t remove the dhcp3-client then you are just spinning your wheels because the next time you reboot your are back at a dynamic IP.</p>
<p><span id="more-346"></span></p>
<p style="padding-left: 30px;"># sudo apt-get remove dhcp3-client</p>
<p>Now this will also remove ubuntu-minimal but it want tear anything up it is what you want.</p>
<p>The next thing is to configure your  <span class="punct">/</span><span class="regex">etc</span><span class="punct">/</span><span class="ident">network</span><span class="punct">/</span><span class="ident">interfaces file</span></p>
<p style="padding-left: 30px;"><span class="ident"># sudo vim /etc/network/interfaces</span></p>
<p><span class="ident">Add something similar to the following (Of coarse these values will have to adjusted to fit your network):<br />
 </span></p>
<pre style="padding-left: 60px;"><span class="comment"># This file describes the network interfaces available on your system</span>
<span class="comment"># and how to activate them. For more information, see interfaces(5).</span>

<span class="comment"># The loopback network interface</span>
<span class="ident">auto</span> <span class="ident">lo</span>
<span class="ident">iface</span> <span class="ident">lo</span> <span class="ident">inet</span> <span class="ident">loopback</span>

<span class="comment"># The primary network interface</span>
<span class="ident">auto</span> <span class="ident">eth0</span>
<span class="ident">iface</span> <span class="ident">eth0</span> <span class="ident">inet</span> <span class="ident">static</span>
        <span class="ident">address</span> <span class="number">74.207.227.124</span>
        <span class="ident">netmask</span> <span class="number">255.255</span><span class="punct">.</span><span class="number">255.0</span>
        <span class="ident">network</span> 74.207.227.0
        <span class="ident">broadcast</span> 74.207.227<span class="number">.255</span>
        <span class="ident">gateway</span> <span class="number">74.207.227.1</span>
</pre>
<p><span class="ident">Now all you have left to do is restart your networking like so.<br />
 </span></p>
<p><br class="spacer_" /></p>
<pre style="padding-left: 30px;"><span class="ident"># sudo</span> <span class="punct">/</span><span class="ident">etc</span><span class="punct">/</span><span class="ident">init</span><span class="punct">.</span><span class="ident">d</span><span class="punct">/</span><span class="ident">networking</span> <span class="ident">restart</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/05/01/ubuntu-static-ip-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
