<?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>NiceCabbage Blog &#187; linux</title>
	<atom:link href="http://www.nicecabbage.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>order directories by size</title>
		<link>http://www.nicecabbage.com/2010/06/order-directories-by-size/</link>
		<comments>http://www.nicecabbage.com/2010/06/order-directories-by-size/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 02:03:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=212</guid>
		<description><![CDATA[Problem
You want to see which directory is the biggest in size.
Solution

% du / &#124; sort -nr

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to see which directory is the biggest in size.</p>
<h2>Solution</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-nr</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/06/order-directories-by-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run mulitple &#8216;exec&#8217; commands to UNIX &#8216;find&#8217; command</title>
		<link>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/</link>
		<comments>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 03:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=209</guid>
		<description><![CDATA[Problem
You want to apply multiple commands against the results of &#8216;find&#8217;
Solution
Just pass as many exec options as you want  .
The command below will run &#8216;id&#8217;, &#8216;echo&#8217; and &#8216;file&#8217;

% find . -type f -exec id &#123;&#125; \; -exec echo ' and ' \; -exec file &#123;&#125; \;

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to apply multiple commands against the results of &#8216;find&#8217;</p>
<h2>Solution</h2>
<p>Just pass as many exec options as you want <img src='http://www.nicecabbage.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>The command below will run &#8216;id&#8217;, &#8216;echo&#8217; and &#8216;file&#8217;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">id</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \; <span style="color: #660033;">-exec</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' and '</span> \; <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>installing phpmyadmin (or other linux-world softwares) to Ubuntu 9.10 server</title>
		<link>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/</link>
		<comments>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:57:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=204</guid>
		<description><![CDATA[Problem
You want to install open-source softwares like phpmyadmin to your ubuntu 9.10, but you got errors.

E: Couldn't find package phpmyadmin.

Solution
Add universe components to your sources.list

deb http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
&#160;
deb http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
&#160;
deb http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted
deb-src [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to install open-source softwares like phpmyadmin to your ubuntu 9.10, but you got errors.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">E: Couldn<span style="color: #ff0000;">'t find package phpmyadmin.</span></pre></div></div>

<h2>Solution</h2>
<p>Add universe components to your sources.list</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check your SIMBL version</title>
		<link>http://www.nicecabbage.com/2010/01/check-your-simbl-version/</link>
		<comments>http://www.nicecabbage.com/2010/01/check-your-simbl-version/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 02:02:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SIMBL]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=200</guid>
		<description><![CDATA[Problem
You want to know which version of SIMBL is installed on your machine.
Solution
On Leopard,

% head /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/Info.plist
&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;
&#60;!DOCTYPE plist PUBLIC &#34;-//Apple//DTD PLIST 1.0//EN&#34; &#34;http://www.apple.com/DTDs/PropertyList-1.0.dtd&#34;&#62;
&#60;plist version=&#34;1.0&#34;&#62;
&#60;dict&#62;
        &#60;key&#62;CFBundleGetInfoString&#60;/key&#62;
        &#60;string&#62;0.8.2, © 2007 Mike Solomon&#60;/string&#62;

On Snow Leopard,

% head /Library/Receipts/SIMBL.pkg/Contents/Info.plist

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to know which version of SIMBL is installed on your machine.</p>
<h2>Solution</h2>
<p>On Leopard,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>InputManagers<span style="color: #000000; font-weight: bold;">/</span>SIMBL<span style="color: #000000; font-weight: bold;">/</span>SIMBL.bundle<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>Info.plist
<span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;!</span>DOCTYPE plist PUBLIC <span style="color: #ff0000;">&quot;-//Apple//DTD PLIST 1.0//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>plist <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>CFBundleGetInfoString<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>0.8.2, © <span style="color: #000000;">2007</span> Mike Solomon<span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>On Snow Leopard,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>SIMBL.pkg<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>Info.plist</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/01/check-your-simbl-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Accidental Server Down &#8230; (and so sorry for that!)</title>
		<link>http://www.nicecabbage.com/2009/09/accidental-server-down-and-so-sorry-for-that/</link>
		<comments>http://www.nicecabbage.com/2009/09/accidental-server-down-and-so-sorry-for-that/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 14:07:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Failures]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=175</guid>
		<description><![CDATA[My webserver was down since 13th September. It was an accident, and I did not know that until today.
No apache2 processes alive. my web server has gone away by some reasons.
So I started a deep investigation on log files. 
When I checking through auth.log files with

cd /var/log;sudo find auth.log -type f -exec grep Success &#123;&#125; [...]]]></description>
			<content:encoded><![CDATA[<p>My webserver was down since 13th September. It was an accident, and I did not know that until today.<br />
No apache2 processes alive. my web server has gone away by some reasons.</p>
<p>So I started a deep investigation on log files. </p>
<p>When I checking through auth.log files with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log;<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">find</span> auth.log <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Success <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null \;</pre></div></div>

<p>and  I found a lot of</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">auth.log.5.gz:Aug 29 10:46:03 Shaseki su[6944]: Successful su for nobody by root
auth.log.5.gz:Aug 29 10:46:03 Shaseki su[6949]: Successful su for nobody by root
auth.log.5.gz:Aug 29 10:46:03 Shaseki su[6951]: Successful su for nobody by root</pre></div></div>

<p>Was my server hacked by someone&#8230;? Some clever guy attacked my server and got my root password anyhow, so that he can take full control over my machine??</p>
<p>At the first time I saw these messages, I was so astonished and could not say a word.<br />
But in a few minutes I came to myself and googled that message, and I was relieved. </p>
<p>It was not by a unknown hacker. this is by cron. Open /etc/crontab and found that</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">11 *    * * *   root    cd / &amp;&amp; run-parts --report /etc/cron.hourly
46 10    * * *   root    test -x /usr/sbin/anacron || ( cd / &amp;&amp; run-parts --report /etc/cron.daily )
15 10    * * 7   root    test -x /usr/sbin/anacron || ( cd / &amp;&amp; run-parts --report /etc/cron.weekly 
)
50 10    1 * *   root    test -x /usr/sbin/anacron || ( cd / &amp;&amp; run-parts --report /etc/cron.monthly
 )</pre></div></div>

<p>As you can see, the time in log messages are almost same as that in crontab. </p>
<p>Hmmmm, So what the hell made my apache gone away?</p>
<p>When I tried to restart my apache like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>apache2ctl <span style="color: #660033;">-k</span> start</pre></div></div>

<p>I got</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">98</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>Address already <span style="color: #000000; font-weight: bold;">in</span> use: make_sock: could not <span style="color: #7a0874; font-weight: bold;">bind</span> to address <span style="color: #7a0874; font-weight: bold;">&#91;</span>::<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">80</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">98</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>Address already <span style="color: #000000; font-weight: bold;">in</span> use: make_sock: could not <span style="color: #7a0874; font-weight: bold;">bind</span> to address 0.0.0.0:<span style="color: #000000;">80</span>
no listening sockets available, shutting down
Unable to open logs</pre></div></div>

<p>,so I could not start up my apache.</p>
<p>Obviously, some process already hold port 80. but</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lsof <span style="color: #660033;">-i</span> :<span style="color: #000000;">80</span></pre></div></div>

<p>returns nothing. I also tried</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nestat <span style="color: #660033;">-an</span></pre></div></div>

<p>, but could not find any clues of por-80-riders.</p>
<p>At last, thoght this is what I did not like to, I <strong>rebooted</strong> the system.</p>
<p>In a few minutes, everything comes back well and, as you see, my apache2 starts running healthly again.</p>
<p>If you know something about such a phenomenon, please leave a comment below. Thank you in advance!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/09/accidental-server-down-and-so-sorry-for-that/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clear ques of Postfix</title>
		<link>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/</link>
		<comments>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 05:19:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=172</guid>
		<description><![CDATA[Problem

You want to delete all the messages in sending ques of Postfix.

Solution

$ sudo postsuper -d ALL

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>
You want to delete all the messages in sending ques of Postfix.
</p>
<h2>Solution</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> postsuper <span style="color: #660033;">-d</span> ALL</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No response of Sudo on Fedora 11</title>
		<link>http://www.nicecabbage.com/2009/08/no-response-of-sudo-on-fedora-11/</link>
		<comments>http://www.nicecabbage.com/2009/08/no-response-of-sudo-on-fedora-11/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 02:32:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=140</guid>
		<description><![CDATA[Problem

On Fedora11 installed via Vmware, sudo  does not respond for thirty or fourty secs.

Solution

The cause is that sudo is looking up your hostname to DNS, and waiting until TIMEOUT event is fired. You can fix this problem by just adding your hostname to /etc/hosts


 su -
 nano /etc/hosts
 127.0.0.1      [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>
On Fedora11 installed via Vmware, <code>sudo</code>  does not respond for thirty or fourty secs.
</p>
<h2>Solution</h2>
<p>
The cause is that <code>sudo</code> is looking up your hostname to DNS, and waiting until TIMEOUT event is fired. You can fix this problem by just adding your hostname to /etc/hosts
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">su</span> -
 <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts
 127.0.0.1       localhost localhost.localdomain <span style="color: #000000; font-weight: bold;">&lt;</span>yourhost<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>yourhost<span style="color: #000000; font-weight: bold;">&gt;</span>.localdomain localhost4 localhost4.localdomain</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/no-response-of-sudo-on-fedora-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Ubuntu using CUI: From 7.10 Gusty to 9.04 Jounty</title>
		<link>http://www.nicecabbage.com/2009/07/upgrading-ubuntu-using-cui-from-7-10-gusty-to-9-04-jounty/</link>
		<comments>http://www.nicecabbage.com/2009/07/upgrading-ubuntu-using-cui-from-7-10-gusty-to-9-04-jounty/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 03:40:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=136</guid>
		<description><![CDATA[Problem
You want to uprade Ubuntu Linux to the latest version. (9.04 at this time)
Solution
to 8.04 Hardy
If your version is old enough that when you type

&#62;sudo apt-get upgrade


and you will see 404 Errors, then You have to edit your sources.list like this.


$ sudo -s
# mv /etc/apt/sources.list /etc/apt/sources.list.gusty
# sed -e 's/gusty/hardy/g' /etc/apt/sources.list.gusty &#62; /etc/apt/sources.list
# apt-get update
# apt-get [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to uprade Ubuntu Linux to the latest version. (9.04 at this time)</p>
<h2>Solution</h2>
<h3>to 8.04 Hardy</h3>
<p>If your version is old enough that when you type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>
and you will see 404 Errors, then You have to edit your sources.list like this.
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span>
<span style="color: #666666; font-style: italic;"># mv /etc/apt/sources.list /etc/apt/sources.list.gusty</span>
<span style="color: #666666; font-style: italic;"># sed -e 's/gusty/hardy/g' /etc/apt/sources.list.gusty &gt; /etc/apt/sources.list</span>
<span style="color: #666666; font-style: italic;"># apt-get update</span>
<span style="color: #666666; font-style: italic;"># apt-get upgrade</span></pre></div></div>

<p> Then, install update-manager. </p>

<div class="wp_syntax"><div class="code"><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> update-manager-core</pre></div></div>

<h3>to 8.10 Intrepid</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span>
<span style="color: #666666; font-style: italic;"># mv /etc/apt/sources.list /etc/apt/sources.list.hardy</span>
<span style="color: #666666; font-style: italic;"># sed -e 's/hardy/intrepid/g' /etc/apt/sources.list.hardy &gt; /etc/apt/sources.list</span>
<span style="color: #666666; font-style: italic;"># apt-get update</span>
<span style="color: #666666; font-style: italic;"># apt-get dist-upgrade</span></pre></div></div>

<h3>Intrepid to Jounty</h3>

<div class="wp_syntax"><div class="code"><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
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
<span style="color: #c20cb9; font-weight: bold;">sudo</span> do-release-upgrade</pre></div></div>

<p>Finally, you can check your Ubuntu version like this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lsb-release</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/07/upgrading-ubuntu-using-cui-from-7-10-gusty-to-9-04-jounty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking Ubuntu Version</title>
		<link>http://www.nicecabbage.com/2009/07/checking-ubuntu-version/</link>
		<comments>http://www.nicecabbage.com/2009/07/checking-ubuntu-version/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 02:04:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=133</guid>
		<description><![CDATA[Problem
You want to check the Ubuntu version from a CUI terminal
Solution
You can find the version info here.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION=&#34;Ubuntu 9.04&#34;

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to check the Ubuntu version from a CUI terminal</p>
<h2>Solution</h2>
<p>You can find the version info here.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lsb-release
<span style="color: #007800;">DISTRIB_ID</span>=Ubuntu
<span style="color: #007800;">DISTRIB_RELEASE</span>=<span style="color: #000000;">9.04</span>
<span style="color: #007800;">DISTRIB_CODENAME</span>=jaunty
<span style="color: #007800;">DISTRIB_DESCRIPTION</span>=<span style="color: #ff0000;">&quot;Ubuntu 9.04&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/07/checking-ubuntu-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>g++ on RHEL 5</title>
		<link>http://www.nicecabbage.com/2009/06/gpp-on-rhel-5/</link>
		<comments>http://www.nicecabbage.com/2009/06/gpp-on-rhel-5/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 13:38:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=110</guid>
		<description><![CDATA[Problem

g++ is not installed on your Redhat EL 5 at default.

Solution

  Try;


% yum install gcc-c++ compat-gcc-*
% which g++


If you still not find g++, maybe g++ is saved as g++32 in /usr/bin. If so, create a symbolic link to g++32.


% ln -s /usr/bin/g++32 /usr/bin/g++

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>
g++ is not installed on your Redhat EL 5 at default.
</p>
<h2>Solution</h2>
<p>
  Try;
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-c++ compat-gcc-<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #c20cb9; font-weight: bold;">g++</span></pre></div></div>

<p>
If you still not find g++, maybe g++ is saved as g++32 in /usr/bin. If so, create a symbolic link to g++32.
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</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>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">g++</span><span style="color: #000000;">32</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><span style="color: #c20cb9; font-weight: bold;">g++</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/06/gpp-on-rhel-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
