<?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>Ryan Rampersad &#187; Linux</title>
	<atom:link href="http://blog.ryanrampersad.com/category/opensource-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ryanrampersad.com</link>
	<description>Thoughts, Ideas &#38; Opinions</description>
	<lastBuildDate>Thu, 17 May 2012 17:11:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20825</generator>
		<item>
		<title>★ After Oneiric Ocelot &#8211; Ubuntu 12.04</title>
		<link>http://blog.ryanrampersad.com/2011/07/17/after-oneiric-ocelot-ubuntu-12-04/</link>
		<comments>http://blog.ryanrampersad.com/2011/07/17/after-oneiric-ocelot-ubuntu-12-04/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 17:17:16 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=3900</guid>
		<description><![CDATA[My dad and I were trying to figure out what would come after Oneiric Ocelot or Ubuntu 11.10. Well, you can read some of the suggestions for the 12.04 name. Some of my favorites are: Perpetual Phoenix Philosophical Pegasus Pragmatic Penguin]]></description>
			<content:encoded><![CDATA[<p>My dad and I were trying to figure out what would come after <em>Oneiric Ocelot</em> or Ubuntu 11.10. Well, you can <a href="https://wiki.ubuntu.com/DevelopmentCodeNames#P">read some of the suggestions</a> for the 12.04 name.</p>
<p>Some of my favorites are:</p>
<ul>
<li>Perpetual Phoenix</li>
<li>Philosophical Pegasus</li>
<li>Pragmatic Penguin</li>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2011/07/17/after-oneiric-ocelot-ubuntu-12-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>★ restart: Rejected send message &#8211; Ubuntu Lucid</title>
		<link>http://blog.ryanrampersad.com/2011/06/28/restart-rejected-send-message-ubuntu-lucid/</link>
		<comments>http://blog.ryanrampersad.com/2011/06/28/restart-rejected-send-message-ubuntu-lucid/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 17:46:37 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=3422</guid>
		<description><![CDATA[I installed a little ftp-server on my ubuntu dev-server. After configuring some ports and other users, I needed to restart the service. Since most daemons run as services now, anything /etc/init.d/name restart is now just service name restart. But of course, nothing is that easy. ryan@ryan-desktop:~$ service vsftpd restart I ran this to restart the [...]]]></description>
			<content:encoded><![CDATA[<p>I installed a little ftp-server on my ubuntu dev-server. After configuring some ports and other users, I needed to restart the service. Since most daemons run as services now, anything <code>/etc/init.d/name restart</code> is now just <code>service name restart</code>. But of course, nothing is that easy.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2011/06/vsftpd-rejected-restart.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2011/06/vsftpd-rejected-restart.png" alt="Rejected Restart" title="Rejected Restart" width="580" height="364" class="aligncenter size-full wp-image-3424" /></a></p>
<blockquote><pre>ryan@ryan-desktop:~$ service vsftpd restart</pre>
</blockquote>
<p>I ran this to restart the service for the ftp daemon but I was <em>rejected</em>.<br />
<span id="more-3422"></span></p>
<blockquote><p>
restart: Rejected send message, 1 matched rules; type=&#8221;method_call&#8221;, sender=&#8221;:1.120&#8243; (uid=1000 pid=26611 comm=&#8221;restart) interface=&#8221;com.ubuntu.Upstart0_6.Job&#8221; member=&#8221;Restart&#8221; error name=&#8221;(unset)&#8221; requested_reply=0 destination=&#8221;com.ubuntu.Upstart&#8221; (uid=0 pid=1 comm=&#8221;/sbin/init&#8221;))</p></blockquote>
<p>Isn&#8217;t that a fantastic message? Well, the solution dawned on me quickly. I needed <em>root</em> permissions. So a quick <code>sudo !!</code> fixed the problem now, or just running <code>sudo service vsftpd restart</code>.</p>
<p>Happy ftp-ing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2011/06/28/restart-rejected-send-message-ubuntu-lucid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>★ IP address from hostname &#8211; Ubuntu Lucid</title>
		<link>http://blog.ryanrampersad.com/2011/06/22/ip-address-from-hostname/</link>
		<comments>http://blog.ryanrampersad.com/2011/06/22/ip-address-from-hostname/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 19:10:19 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=3430</guid>
		<description><![CDATA[If you have an IP address but you don&#8217;t have a hostname to go along with it, you can easily get it via Ubuntu&#8217;s host command. For instance, I have an IP, 97.115.69.11, and I needed the hostname. To get it, I simply ran host 97.115.69.11. ryan@ryan-desktop:~$ host 97.115.69.11 11.69.115.97.in-addr.arpa domain name pointer 97-115-69-11.mpls.qwest.net. Happy [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an IP address but you don&#8217;t have a hostname to go along with it, you can easily get it via Ubuntu&#8217;s <strong>host</strong> command.</p>
<p>For instance, I have an IP, 97.115.69.11, and I needed the hostname. To get it, I simply ran <code>host 97.115.69.11</code>.</p>
<blockquote><pre>ryan@ryan-desktop:~$ host 97.115.69.11
11.69.115.97.in-addr.arpa domain name pointer 97-115-69-11.mpls.qwest.net.</pre>
</blockquote>
<p>Happy IP-grabbing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2011/06/22/ip-address-from-hostname/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>★ Do Nothing on Lid Close &#8211; Ubuntu</title>
		<link>http://blog.ryanrampersad.com/2011/05/17/do-nothing-on-lid-close-ubuntu/</link>
		<comments>http://blog.ryanrampersad.com/2011/05/17/do-nothing-on-lid-close-ubuntu/#comments</comments>
		<pubDate>Tue, 17 May 2011 18:45:55 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2825</guid>
		<description><![CDATA[I took my parents old 32-inch flat screen TV into the basement and hooked it up to an old laptop I had just sitting around. With Ubuntu on it, I wanted to keep it shut and tucked out of the way, and just remote in whenever I wanted to do something with it. Great idea, [...]]]></description>
			<content:encoded><![CDATA[<p>I took my parents old 32-inch flat screen TV into the basement and hooked it up to an old laptop I had just sitting around. With Ubuntu on it, I wanted to keep it shut and tucked out of the way, and just remote in whenever I wanted to do something with it. Great idea, right?</p>
<p>For some reason, Ubuntu&#8217;s 10.04 Gnome does not have a <em>do nothing</em> action for when the lid closes on the laptop. You have blank screen, which is normally fine but it cuts VGA/HDMI output. There are suspend and hibernate which would be rather useless in this situation too.</p>
<p>Well, as with many things you are not supposed to do as a regular user, you can in fact get around the lack of this option. While not exposed via any public control panel, the <em>Configuration Editor</em> has the setting.</p>
<p>Open the terminal and run <code>sudo gconf-editor</code>. Once the window opens up, you&#8217;ll see a bunch of closed trees. Navigate through the trees: <code>apps &gt; gnome-power-manager &gt; buttons</code>. Once there, you&#8217;ll see the settings and their descriptions for the setting values.</p>
<p>The description for lid_ac, that is, when the lid closes while plugged in is:</p>
<blockquote><p>
The action to take when the laptop lid is closed and the laptop is on AC power. Possible values are &#8220;suspend&#8221;, &#8220;hibernate&#8221;, &#8220;blank&#8221; and &#8220;nothing&#8221;.
</p></blockquote>
<p>It strikes me that gnome should know enough to put the <em>nothing</em> choice in there. Finally, change the lid_ac setting to <em>nothing</em>, the word <em>nothing</em>, not blank, and then close the editor. Restarting Ubuntu will put the new setting into effect.</p>
<p>That should do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2011/05/17/do-nothing-on-lid-close-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>★ Install the Latest Google Chrome on Ubuntu</title>
		<link>http://blog.ryanrampersad.com/2011/03/05/install-google-chrome-on-ubuntu/</link>
		<comments>http://blog.ryanrampersad.com/2011/03/05/install-google-chrome-on-ubuntu/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 22:53:14 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2583</guid>
		<description><![CDATA[If Firefox is too slow for you now, Google Chrome might be worth it. I&#8217;ve used the Ubuntu Software Center since I started using Ubuntu last year to grab Chrome from the official open source channels, but lately it&#8217;s been outdated because Google releases Chrome at the speed of light. Since the USC is slow [...]]]></description>
			<content:encoded><![CDATA[<p>If Firefox is too slow for you now, <a href="http://en.wikipedia.org/wiki/Google_Chrome">Google Chrome</a> might be worth it. I&#8217;ve used the <a href="http://en.wikipedia.org/wiki/Ubuntu_Software_Center">Ubuntu Software Center</a> since I started using Ubuntu last year to grab Chrome from the official open source channels, but lately it&#8217;s been outdated because Google releases Chrome at the speed of light.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/google-chrome.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/google-chrome.png" alt="" title="Ubuntu Software Center" width="580" height="352" class="aligncenter size-full wp-image-2588" /></a></p>
<p>Since <span title="I find often that most Ubuntu repositories are slow to update">the USC is slow to update</span> you&#8217;ll end having to wait a much longer time to get updates. To fix this, skip the USC altogether and go straight to the source &#8211; Google. <a href="http://www.google.com/chrome/">The Google Chrome website</a> automatically detects the OS you are using so you have to do this on Ubuntu directly. Once there, do not click <em>Download Google Chrome</em>! Instead, look below it for <em>Try the latest BETA version</em> <span title="the text here changes depending on which OS you visit with">or</span> <em><br />
Get Google Chrome beta or developer releases</em> which will ensure you always have a cutting edge more than up to date version of Chrome.</p>
<p>On the next page, you&#8217;ll see the <em>Early Access Release Channels</em> header. Scroll way down to <em>Subscribing to a channel</em> and then to <em>Linux</em>. Look for <strong>Beta Channel</strong>. You&#8217;ll need to pick either an x32 or an x64 version to download. Once you click the link, it&#8217;ll bring you to the beta release page and show you the Google Chrome terms of service. Accept and the download should start.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/early-release-chrome.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/early-release-chrome.png" alt="" title="Early Release Selections" width="580" height="245" class="aligncenter size-full wp-image-2585" /></a></p>
<p>You&#8217;re downloading a <em>.deb</em> file so it is basically an installer. If it doesn&#8217;t open automatically upon finishing, just go to your downloads folder and click on it a few times. Once the installer is open, click <em>Install Package</em> and then enter your password if prompted.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/google-chrome-installed.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/google-chrome-installed.png" alt="" title="Google Chrome Finished Installing" width="580" height="560" class="aligncenter size-full wp-image-2586" /></a></p>
<p>Once it&#8217;s installed, you should take a look in the Applications menu: <code>Applications &gt; Internet &gt; Google Chrome</code>. You&#8217;ll see the new Google Chrome browser right there.<br />
Another thing I&#8217;d like to point out is the difference between the icons. Looking at the icons &#8211; the bland blue washed icon is the open source Chrom<em>ium</em> while the colorful icon is the true Google Chrome.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/chrome-in-menu.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/09/chrome-in-menu.png" alt="" title="Chrome in Applications Menu" width="491" height="450" class="aligncenter size-full wp-image-2584" /></a></p>
<p>Now you can use Google Chrome and it&#8217;ll be always mostly updated!</p>
<p>Finally, I was looking for a reliable way to transfer or import the Chromium profile into the newer Chrome. However, on Linux, it doesn&#8217;t appear to be very straight forward so I&#8217;ll leave that for another day.</p>
<p>Enjoy Google Chrome on Linux!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2011/03/05/install-google-chrome-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>★ SSH: Remote Host Identification Has Changed</title>
		<link>http://blog.ryanrampersad.com/2010/11/24/ssh-remote-host-identification-has-changed/</link>
		<comments>http://blog.ryanrampersad.com/2010/11/24/ssh-remote-host-identification-has-changed/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 00:17:56 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2424</guid>
		<description><![CDATA[I recently reinstalled a Ubuntu machine on my network. I often log in to that server machine via SSH on my laptop. I received a scary message when trying to do so. ryan@ryan-laptop:~$ ssh ryan@192.168.2.67 @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be [...]]]></description>
			<content:encoded><![CDATA[<p>I recently reinstalled a Ubuntu machine on my network. I often log in to that server machine via SSH on my laptop. I received a scary message when trying to do so.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/Desk-1_003.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/Desk-1_003.png" alt="SSH - remote host identification has changed" title="SSH - remote host identification has changed" width="580" height="278" class="alignright size-full wp-image-2426" /></a></p>
<blockquote><p>
ryan@ryan-laptop:~$ ssh ryan@192.168.2.67<br />
@    WARNING: <strong>REMOTE HOST IDENTIFICATION HAS CHANGED!</strong>     @<br />
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br />
Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br />
It is also possible that the RSA host key has just been changed.<br />
The fingerprint for the RSA key sent by the remote host is<br />
8e:69:91:6b:d5:8e:ac:ef:2e:2f:69:8e:97:4a:c4:28.<br />
Please contact your system administrator.<br />
Add correct host key in /home/ryan/.ssh/known_hosts to get rid of this message.<br />
Offending key in /home/ryan/.ssh/known_hosts:1<br />
RSA host key for 192.168.2.67 has changed and you have requested strict checking.<br />
Host key verification failed.
</p></blockquote>
<p>This took me by surprise. My network is secure as far as I know, and the only difference now is the that I reinstalled my server with a fresh copy of Ubuntu 10.04. When SSH is installed I guess it makes a new RSA key and it&#8217;s not based on hardware or anything silly. That makes sense, I guess.</p>
<p>Fixing the error at least on the laptop was effortless. First, I opened the terminal. Then, I ran <nobr><code>cd /home/ryan/.ssh/</code></nobr> and then opened the file via <code>vim known_hosts</code>. And I saw a mess of characters appear on my screen. The error message said I could update key 1 but it looked like there already multiple <em>key 1s</em>.</p>
<p>My solution was to simply delete the known_hosts file with <code>rm known_hosts</code> and remake it with <code>touch known_hosts</code>. That was easy enough. Then, I tried to run my ssh command again, <code>ssh ryan@192.168.2.67</code>. It prompted me that this computer has not been accessed before and it isn&#8217;t an already trusted key. That&#8217;s great, because I did trust it and I accepted it. That means deleting the old file and remaking it worked. Excellent.</p>
<p><code>ssh happy@sshing-computer</code>.</p>
<div class="note">I knew the cause of this error pretty fast because I reinstalled my server. However, getting this error while out at a Starbucks would have tipped me off that something more sinister was going on. Keep in mind that with this error, it can mean the finger print is different or that someone is in fact spoofing the remote&#8217;s host name or IP address.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2010/11/24/ssh-remote-host-identification-has-changed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>★ Change default git editor on Ubuntu</title>
		<link>http://blog.ryanrampersad.com/2010/11/18/change-default-git-editor-on-ubuntu/</link>
		<comments>http://blog.ryanrampersad.com/2010/11/18/change-default-git-editor-on-ubuntu/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 20:25:25 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2286</guid>
		<description><![CDATA[On my new Ubuntu laptop, I installed git one day and was making a commit not long after. I was surprised with an editor that I never use: nano. I wanted VIM. First, make sure you have the text editor you want is installed. In my case, I wanted VIM, so I ran: sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>On my new Ubuntu laptop, I installed git one day and was making a commit not long after. I was surprised with an editor that I never use: nano. I wanted VIM.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/git-default-ubuntu-editor.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/git-default-ubuntu-editor.png" alt="A terminal view of the git error and the solution" title="git config error" width="580" height="146" class="aligncenter size-full wp-image-2295" /></a></p>
<p>First, make sure you have the text editor you want is installed. In my case, I wanted VIM, so I ran: <code>sudo apt-get install vim</code>. It turns out that ubuntu doesn&#8217;t come with VIM installed by default. So it installed without any trouble.</p>
<p>I was reading this <a href="http://stackoverflow.com/questions/60278/git-commit-text-file">Stack Overflow thread about doing setting the <em>core.editor</em> property</a>, but it didn&#8217;t work. It turns out that the simple command, <code>git config core.editor "vim"</code> doesn&#8217;t set the property for all git repositories, just the local folder. If you try to do it in a non-repo folder, it&#8217;ll scream at you:</p>
<blockquote><p>error: could not lock config file .git/config: No such file or directory</p></blockquote>
<p>The solution is of course to add a <em>global</em> option. Run the same command but with global enabled, and it&#8217;ll set all repos to use the same text editor: <code>git config --global core.editor "vim"</code>. Note the two dashes, that&#8217;s very important.</p>
<p>That&#8217;s all there is to changing the default editor for git in Ubuntu.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2010/11/18/change-default-git-editor-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>★ Directory Size with Linux Terminal</title>
		<link>http://blog.ryanrampersad.com/2010/10/27/directory-size-with-linux-terminal/</link>
		<comments>http://blog.ryanrampersad.com/2010/10/27/directory-size-with-linux-terminal/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 22:19:18 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2400</guid>
		<description><![CDATA[I needed to find out the size of a directory while connected to my Ubuntu server. When I used the properties menu in Windows explorer however, that data was not populated so I needed an alternative &#8211; the terminal. It turns out that using the terminal to find the directory size is incredibly easy. The [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to find out the size of a directory while connected to my Ubuntu server. When I used the properties menu in Windows explorer however, that data was not populated so I needed an alternative &#8211; the terminal. It turns out that using the terminal to find the directory size is incredibly easy.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/Screenshot-2010-08-08-5_20_59-PM.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/Screenshot-2010-08-08-5_20_59-PM.png" alt="" title="Linux Terminal (ubuntu) Find Directory Size" width="580" height="362" class="aligncenter size-full wp-image-2401" /></a></p>
<p>The basic syntax for finding the directory size in Linux is goes like this: <nobr><code>du [options] /path/to/directory</code></nobr>. Running the command without any options will show you the size of each sub-directory and as well as the total as the last line in the output. But there are a bunch of helpful option configurations. You can always see <code>du --help</code> if you want more.</p>
<ul>
<li><code>du -<strong>h</strong></code> &#8211; formats sizes according to kilo, mega, and gigabytes.</li>
<li><code>du -h<strong>c</strong></code> &#8211; produces a line with the word <em>total</em> at the end</li>
<li><code>du -hc<strong>s</strong></code> &#8211; skips displaying size for sub-directories.</li>
</ul>
<p>That&#8217;s all there is to finding the size of a directory in Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2010/10/27/directory-size-with-linux-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>★ Remove Ubuntu Boot Loader</title>
		<link>http://blog.ryanrampersad.com/2010/10/07/remove-ubuntu-boot-loader/</link>
		<comments>http://blog.ryanrampersad.com/2010/10/07/remove-ubuntu-boot-loader/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 20:20:33 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unified]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2556</guid>
		<description><![CDATA[I tried to install Ubuntu 10.04 on my HP dv6-2150us laptop but I was greeted with no wireless networking so I promptly erased the Ubuntu partition. After restarting, I got an error from grub stating that was no operating system. I knew I had to restore the Windows Boot Loader. I thought the Windows 7 [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to install Ubuntu 10.04 on my <a href="http://www.amazon.com/Pavilion-DV6-2150US-15-6-Inch-Laptop-Black/dp/B00318CG9G">HP dv6-2150us laptop</a> but I was greeted with no wireless networking so I promptly erased the Ubuntu partition. After restarting, I got an error from grub stating that was no operating system. I knew I had to restore the Windows Boot Loader.</p>
<p>I thought the Windows 7 automatic repair system would kick in eventually, but it didn&#8217;t. Moving along, fixing the problem is incredibly easy. You&#8217;re going to need a Windows 7 installation disk. I had a Windows 7 Home Primium disk lying around, so I used that. I don&#8217;t know if a recovery disc you made will actually work, but you can try it.</p>
<p>Put your Windows 7 disk (W7D) in the optical drive and start up the computer. Then, boot from CD. Since I was using an HP laptop, I needed to hit <em>escape</em> and then hit <em>F9</em> to boot from disc. You&#8217;re computer may be different. Once you boot into the disc, it&#8217;ll ask you to pick a language and keyboard setup. Just pick whatever you like and hit next. Now, you&#8217;ll see a huge <strong>Install Now</strong> button. Don&#8217;t click it. Look below it for <em>Repair</em>.</p>
<p>Once that comes up, you&#8217;ll see a few options but look for <em>open command line</em>. You&#8217;ll be entering a frightening command line. Once the command line opens up, enter <code>Bootrec.exe /FixMbr</code>. If the command works, it will say it was successful. That should be it, close the command line window and hit the restart button.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2010/10/07/remove-ubuntu-boot-loader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>★ Cleanup an Eclipse Workspace Directory</title>
		<link>http://blog.ryanrampersad.com/2010/09/08/cleanup-an-eclipse-workspace-directory/</link>
		<comments>http://blog.ryanrampersad.com/2010/09/08/cleanup-an-eclipse-workspace-directory/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 05:18:12 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.ryanrampersad.com/?p=2487</guid>
		<description><![CDATA[After an incredibly short summer, I needed to clean up my flash drives. I ran Eclipse on a workspace stored on one. All my source code for every project was stored neatly and distinctly in their own project folders. Of course Eclipse stores all sorts of meta data and even the compiled classes in those [...]]]></description>
			<content:encoded><![CDATA[<p>After an incredibly short summer, I needed to clean up my flash drives. I ran Eclipse on a workspace stored on one. All my source code for every project was stored neatly and distinctly in their own project folders. Of course Eclipse stores all sorts of meta data and even the compiled classes in those project directories too. Since I wanted to donate my code base to my old teacher, I needed to clean it up.</p>
<p><a href="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/clean-up-eclipse-workspace.png"><img src="http://blog.ryanrampersad.com/wp-content/uploads/2010/08/clean-up-eclipse-workspace.png" alt="" title="Four commands to run to clean Eclipse Directory" width="600" height="206" class="aligncenter size-full wp-image-2489" /></a></p>
<p>I tried to use the Windows Command Prompt, but <span title="really, no recursive file removal? Really?">I totally failed</span>. So I quickly whisked my files over to a temporary directory on my Linux server. Once there, I could leverage the awesome power of <em>the terminal</em>.</p>
<p>There are four major things to <em>remove</em> in the Eclipse workspace directories: <code>/bin</code>, <code>/.settings</code>, <code>.classpath</code> and <code>.project</code>. So we know what to target. I used the follow four commands (but surely could be merged into a single line by an expert!):</p>
<blockquote><p>
<code><br />
rm -rf */.settings<br />
rm -rf */bin<br />
rm -rf */.classpath<br />
rm -rf */.project<br />
</code>
</p></blockquote>
<p>I should note that before running those commands, I copied the original directory to make a backup. <strong>Please, make a backup!</strong> because you don&#8217;t get to recover from the Terminal&#8217;s <code>rm</code> command.</p>
<p>When you inspect your workspace directories, you should notice those four things gone. It&#8217;s really that easy!</p>
<p>Happy eclipsing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryanrampersad.com/2010/09/08/cleanup-an-eclipse-workspace-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

