<?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>Martin Ankerl &#187; howto</title> <atom:link href="http://martin.ankerl.com/tag/howto/feed/" rel="self" type="application/rss+xml" /><link>http://martin.ankerl.com</link> <description>Chunky bacon!!</description> <lastBuildDate>Sat, 04 Feb 2012 09:40:41 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Logical Volume Manager Cheatsheet</title><link>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/</link> <comments>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/#comments</comments> <pubDate>Mon, 04 Feb 2008 23:08:47 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/</guid> <description><![CDATA[Today I got a new harddisk, so it was finally time for me to have an in depth look at LVM. I use it to combine two harddisks /dev/sdg1 and /dev/sdb1 into one volume group ext_vg which contains one big &#8230; <a href="http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Today I got a new harddisk, so it was finally time for me to have an in depth look at <a href="http://sources.redhat.com/lvm2/">LVM</a>. I use it to combine two harddisks <tt>/dev/sdg1</tt> and <tt>/dev/sdb1</tt> into one volume group <tt>ext_vg</tt> which contains one big logical volume <tt>/dev/ext_vg/ext</tt>. In short, my 250GB and 500GB harddisks are used in one big 750GB ext3 mount point.</p><p>I followed the excellent <a href="http://www.linuxconfig.org/Linux_lvm_-_Logical_Volume_Manager">LVM Tutorial</a>, and was surprised how easy everything goes. Here is a short cheat sheet of the important commands (take care to exchange the partition/volume names if you use this):</p><h2>Installation</h2><p>I use <a href="http://www.ubuntu.com/">Ubuntu</a>, so this is a piece of cake:<pre>sudo apt-get install lvm2</pre><p>There is also <a href="http://ubuntuforums.org/showthread.php?t=216117">a GUI available</a>, but I found the command line tools are very easy to use so there is no real need. I wouldn&#8217;t use <a href="https://wiki.ubuntu.com/Evms">EVMS</a> as it is not supported in Ubuntu 7.10 and may cause problems.</p><h2>Create a New Filesystem</h2><p>First I create the physical volume on the partition <tt>sdg1</tt>, create a new volume group <tt>ext_vg</tt> that contains this physical volume, and create a new logical volume of size 450GB within the volume group. Finally create the filesystem (disabled reservation space, see <a href="http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/">Get More Space Out of Your ext3 Partition</a>).<pre>sudo pvcreate /dev/sdg1
sudo vgcreate ext_vg /dev/sdg1
sudo lvcreate -L 450G -n ext ext_vg
sudo mkfs.ext3 -m 0 /dev/ext_vg/ext</pre><h2>Show Status</h2><p>Each LVM layer has its corresponding command to get information about the metadata:<pre>sudo pvdisplay
sudo vgdisplay
sudo lvdisplay
sudo pvs
sudo vgs
sudo lvs</pre><h2>Mount via fstab</h2><p>I use the filesystem mainly for data, so allowing just <tt>rw</tt> is enough (no executables allowed). <tt>noatime</tt> allows quicker access.<pre>sudo mkdir /media/mega
/dev/ext_vg/ext /media/mega     ext3    rw,noatime,user 0       2
mount /media/mega</pre><h2>Resize</h2><p>It is even possible to do an online resize of the system, wohoo <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':-)' class='wp-smiley' /> This extends the logical volume by 200MB.<pre>sudo lvextend -L +200 /dev/ext_vg/ext
sudo resize2fs -p /dev/ext_vg/ext</pre><p> You can watch the resize process going on with <tt>df -h</tt>.</p><h2>Add Another Partition to the Logical Volume</h2><p>To add another partition and use up all the available space in the logical volume, first add the physical volume to the volume group, then use <tt>pvdisplay</tt> to find out the total available number of free PE (add the numbers from the physical volumes), then use <tt>lvextend</tt> to use up all this available space.<pre>sudo pvcreate /dev/sdb1
sudo vgextend ext_vg /dev/sdb1
sudo pvdisplay
sudo lvextend -l +63602 /dev/ext_vg/ext
sudo resize2fs /dev/ext_vg/ext</pre><p>That&#8217;s it! Any questions? please post.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/02/05/logical-volume-manager-cheatsheet/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Howto Get Enough Sleep Despite StumbleUpon with Ubuntu</title><link>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/</link> <comments>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/#comments</comments> <pubDate>Thu, 24 Jan 2008 22:06:44 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[getsomesleep]]></category> <category><![CDATA[lifehack]]></category><guid isPermaLink="false">http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/</guid> <description><![CDATA[What? I am a long-term StumbleUpon user, which means that I don&#8217;t get much sleep. Now, after almost 4 years of stumbling, I have decided to get my life back. Well, at least some sleep! What does this do? Every &#8230; <a href="http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h2>What?</h2><p><a href="http://martin.ankerl.com/wp-content/uploads/2008/01/stumbling-insomnia.jpg?9d7bd4"><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/stumbling-insomnia.jpg?9d7bd4" alt="" title="stumbleupon insomnia" width="150" height="104" style="float:right;" /></a>I am a long-term <a href="http://www.stumbleupon.com/">StumbleUpon</a> user, which means that I don&#8217;t get much sleep. Now, after <a href="http://martinus.stumbleupon.com/public/">almost 4 years of stumbling</a>, I have decided to get my life back. Well, at least some sleep!</p><h2>What does this do?</h2><p>Every night when I have to work on the next day (Sunday night to Thursday night ), at 23:25 my computer shows me this little warning message:<br /><center><img src="http://martin.ankerl.com/wp-content/uploads/2008/01/screenshot-warning.png?9d7bd4" alt='go to bed warning' /></center><br /> After the 5 minutes have passed, the computer shuts itself automatically down.</p><p>I use this little trick with <a href="http://www.ubuntu.com/">Ubuntu,</a> but it should work anywhere where <a href="http://www.gnome.org/">Gnome</a> is installed.</p><h2>How?</h2><p>Thanks to the power of Linux, this is not difficult to do for yourself, and configure it however you want it to behave:</p><ol><li>Open <tt>/etc/crontab</tt> with your favourite text editor (no need for <tt>crontab -e</tt> since this is the system wide crontab), e.g.<pre>sudo gedit /etc/crontab</pre></li><li>Add the following lines (replace <tt>manker</tt> with your username!)<pre>25 23 * * 0-4   manker  /usr/bin/zenity --display :0 --warning --text="Shutdown in 5 minutes. Go to bed."
25 23 * * 0-4   root    shutdown -h +5</pre><li>The first part of both lines <tt>25 23 * * 0-4</tt> means that the commands are executed at 23:25, but only Sunday (day 0) to Thursday (day 4). Read <tt>man 5 crontab</tt> for a detailed description of that format.</li><li>The first command uses <tt>zenity</tt> to show a warning message. You have to execute this as the same user that you use for working, or you will not see the message, so change <tt>manker</tt> to your username (root does not work either).<li>The second command <tt>shutdown -h +5</tt> means that the computer will halt in 5 minutes.  This has to be run as root, and it also shows nice warning messages in all your open terminals so you can&#8217;t really miss it.</li><li>Save the file, and stumble until it is 23:25.</ul></ol><p>Sweet dreams!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/01/24/howto-get-enough-sleep-despite-stumbleupon-with-ubuntu/feed/</wfw:commentRss> <slash:comments>73</slash:comments> </item> <item><title>Get More Space Out of Your ext3 Partition</title><link>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/</link> <comments>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/#comments</comments> <pubDate>Sat, 12 Jan 2008 11:56:24 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[ext3]]></category> <category><![CDATA[harddisk]]></category> <category><![CDATA[trick]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[wastedspace]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=104</guid> <description><![CDATA[I have just discovered that ext3 defaults to reserving 5% of its partition exclusively for root, as a precaution measure that your system does not get FUBAR when you use it for your root partition. I have a 230GB external &#8230; <a href="http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I have just discovered that ext3 defaults to reserving 5% of its partition exclusively for root, as a precaution measure that your system does not get FUBAR when you use it for your root partition. I have a 230GB external USB disk that I use for all my big storage requirements, downloaded stuff, backups etc. Due to this reservation I had 11.5GB of unusable disk space, thankfully this is easy to fix:</p><pre>tune2fs -m 0 /dev/sdf1</pre><p>Replace <tt>sdf1</tt> with your partition name. You don&#8217;t even have to unmount your disk. Voilá, 11.5 GB more space for free <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':-)' class='wp-smiley' /> Here is the output of <tt>df -h</tt> as proof:</p><h3>Before:</h3><pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sdf1             230G  193G   26G  89% /media/disk</pre><h3>After:</h3><pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sdf1             230G  193G   38G  84% /media/disk</pre><p>If you like this, you might also be interested in <a href="/2007/11/03/howto-change-ubuntu-forced-fsck/">How to change Ubuntu forced fsck</a>.</p><p><strong>Update:</strong> The free space limitation is also used to prevent fragmentation. So if you set the limit to zero and operate on a very full harddisk for a while, your filesystem might slow down.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/01/12/get-more-space-out-of-your-ext3-partition/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Howto Change Ubuntu Forced fsck</title><link>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/</link> <comments>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/#comments</comments> <pubDate>Sat, 03 Nov 2007 00:28:01 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[boot speed]]></category> <category><![CDATA[fsck]]></category> <category><![CDATA[harddisk]]></category> <category><![CDATA[tune2fs]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=97</guid> <description><![CDATA[In Ubuntu 7.10 the boot hard disk is checked every 20 boots. I have to boot my laptop quite often, so about once a week booting takes more than 10 minutes. This clearly sucks. Fortunately, there is an easy way &#8230; <a href="http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In Ubuntu 7.10 the boot hard disk is checked every 20 boots. I have to boot my laptop quite often, so about once a week booting takes more than 10 minutes. This clearly sucks. Fortunately, there is an easy way to fix this. With <tt>tune2fs</tt> it is possible to change the interval from mount-times to timed interval:</p><pre>sudo tune2fs -c 0 -i 1m /dev/sda3</pre><p>This disables maximum mount time for forced check, but instead uses timed check. Every month the harddisk is forced to get checked. I can live with that.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/03/howto-change-ubuntu-forced-fsck/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Ajax Dojo Comet Tutorial</title><link>http://martin.ankerl.com/2007/08/21/ajax-dojo-comet-tutorial/</link> <comments>http://martin.ankerl.com/2007/08/21/ajax-dojo-comet-tutorial/#comments</comments> <pubDate>Tue, 21 Aug 2007 12:41:22 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[ajax]]></category> <category><![CDATA[coding]]></category> <category><![CDATA[java]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[videos]]></category> <category><![CDATA[comet]]></category> <category><![CDATA[dojo]]></category> <category><![CDATA[howto]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=92</guid> <description><![CDATA[EDIT: This tutorial is for an old version of dojo / comet, and it will not work in a recent version! Markus Holzmann, an intern at Profactor of my fellow colleague Philipp Hartl, had the opportunity to experiment with Ajax &#8230; <a href="http://martin.ankerl.com/2007/08/21/ajax-dojo-comet-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><strong>EDIT</strong>: This tutorial is for an old version of dojo / comet, and it will not work in a recent version!</p><p>Markus Holzmann, an intern at <a href="http://www.profactor.at/">Profactor</a> of my fellow colleague <a href="http://leanaustria.net/">Philipp Hartl</a>, had the opportunity to experiment with <a href="http://en.wikipedia.org/wiki/Ajax_(programming)">Ajax</a> during his job. He wrote a tutorial about how to push events from the server to the client. For example, display popup messages on all browsers at the same time (see screencast in <a href="/files/hello_comet.html" target="_blank">full resolution here</a>):<br /><center><br /> <a href="/files/hello_comet.html" target="_blank"> <object width="400" height="317"><param name="wmode" value="transparent"></param> <embed src="/files/Hello_Comet.swf?9d7bd4" wmode="transparent" width="401" height="317" type="application/x-shockwave-flash"></embed></object><br /> </a><br /></center><br /> Read on how Markus did this:</p><p><span id="more-92"></span></p><h1>Cometd Hello World</h1><p> I&#8217;ve read Chris Bucchere&#8217;s <a href="http://thebdgway.blogspot.com/2006/11/say-hello-world-to-comet.html">Say Hello World to Comet</a> and built an application based on this using a more current version of <a href="http://www.mortbay.org/">Jetty</a> (version <a href="http://dist.codehaus.org/jetty/jetty-6.1.5/">6.1.5</a>) which I embedded into a <a href="http://tomcat.apache.org/">Tomcat</a> v5.5 Server. For the developing I used <a href="http://www.eclipse.org/">Eclipse</a> 3.2.</p><p><h1>Start your Engines</h1><p>At first you have to get the server running. As I mentioned I embedded Jetty into a Tomcat server. Therefore you have configure the libraries:</p><ol><li>Add the packages <tt>org.mortbay.cometd</tt> and <tt>dojox.cometd</tt> to your source folder and delete the <tt>client</tt> package in the <tt>org.mortbay.cometd</tt> package.</li><li>Add <tt>jetty-util-6.1.5.jar</tt>, <tt>jetty-6.1.5.jar</tt> and <tt>servlet-api-2.5-6.1.5.jar</tt> to your build path.</li><li>Copy the <tt>jetty-util-6.1.5.jar</tt> file into the <tt>/lib</tt> folder in the <tt>WEB-INF</tt> directory.</li></ol><p>Replace the existing servlets in your web.xml &#8211; file in the WEB-INF &#8211; folder with the following servlets:</p><pre class="brush: xml; title: ; notranslate">&lt;servlet&gt;
  &lt;servlet-name&gt;cometd&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.mortbay.cometd.continuation.ContinuationCometdServlet&lt;/servlet-class&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
  &lt;servlet-name&gt;cometd&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/cometd/*&lt;/url-pattern&gt;
 &lt;/servlet-mapping&gt;
</pre><p>For the project I used the <a href="http://dojotoolkit.org/">dojo toolkit</a> (version 0.4.3) which has an integrated <a href="http://www.cometd.com/">COMETd</a> class that makes it easy to build comet projects. <a href="http://download.dojotoolkit.org/release-0.4.3/dojo-0.4.3-ajax.tar.gz">Download it</a> and add it to your <tt>WebContent</tt> folder.</p><p> When you&#8217;ve done all this, the hardest piece of work for this program is already done.</p><h1>Hack the Code</h1><p>Now you can implement the code for the client side: You need a HTML file with a button on it. The code for this looks like this (<a href="/files/hello_comet_test.html">download</a>):</p><pre class="brush: jscript; title: ; notranslate">&lt;html&gt;
  &lt;head&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;../dojo.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      dojo.require(&quot;dojo.io.cometd&quot;);

      cometd.init({}, &quot;cometd&quot;);

      cometd.subscribe(&quot;/hello/world&quot;, false, &quot;publishHandler&quot;);

      publishHandler = function(msg) {
        alert(msg.data.test);
      }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;input type=&quot;button&quot;
       onclick=&quot;&lt;b&gt;cometd.publish('/hello/world', { test: 'hello world' } )&lt;/b&gt;&quot;
       value=&quot;Click Me!&quot;&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre><p>Line by line, the above bold code works like this:</p><ol><li>In the line<pre class="brush: xml; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;../dojo.js&quot;&gt;&lt;/script&gt;</pre><p> you integrate the dojo toolkit into the project.</p><li>To activate the cometd class of dojo:<pre class="brush: jscript; title: ; notranslate">dojo.require(&quot;dojo.io.cometd&quot;);</pre><li>Connect the server with the client:<pre class="brush: jscript; title: ; notranslate">cometd.init({}, &quot;cometd&quot;);</pre><li>Here we say what to do when there is a subscribe event:<pre class="brush: jscript; title: ; notranslate">cometd.subscribe(&quot;/hello/world&quot;, false, &quot;publishHandler&quot;);</pre><li>Last but not least, the <tt>publishHandler</tt> function serves as the callback function, which uses <tt>alert</tt> to show a simple message box:<pre class="brush: jscript; title: ; notranslate">publishHandler = function(msg) {
  alert(msg.data.test);
}</pre></ol><h1>Give it a Try</h1><p>When you load the HTML file now, you can click on the button and an alert box saying <i>hello world</i> will appear:</p><p><center><img src="/files/helloworld.png?9d7bd4" width="324" height="124" /></center></p><p> The reason for this is that when you click the code<pre class="brush: jscript; title: ; notranslate">cometd.publish('/hello/world', { test: 'hello world' } )</pre><p> is executed which publishes a text on the channel with the id <tt>/hello/world</tt>.</p><p> The funny thing is that this is able to run on any number of browsers. Everytime when a client clicks the button, on <i>all</i> browsers that view this page the alert box is shown. (See screencast above).</p><h1>Pushing Data from Server to Client</h1><p>You can also add serverside code to trigger an event. I wrote a JSP file with the following code:</p><pre class="brush: xml; title: ; notranslate">&lt;%@page import=&quot;java.util.*&quot;%&gt;
&lt;%@page import=&quot;dojox.cometd.*&quot; %&gt;
&lt;%
Bayeux b = (Bayeux)getServletContext().getAttribute(Bayeux.DOJOX_COMETD_BAYEUX);
Channel c = b.getChannel(&quot;/hello/world&quot;,false);

Map&lt;String,Object&gt; message = new HashMap&lt;String,Object&gt;();
message.put(&quot;test&quot;, &quot;jsp: hello world&quot;);

c.publish(b.newClient(&quot;server_user&quot;,null),message, &quot;new server message&quot;);
%&gt;</pre><p>When this page is loaded, an alert popup appears at the page saying <i>jsp: hello world</i>.</p><p>Remember pushing too much data from server to client can slow the performance of your site specially is you have a huge amount of traffic. Getting one of the <a href="http://www.webhostingsearch.com/wordpress-hosting.php" title="best wordpress hosting">best wordpress hosting</a> will solve this kind of problem.</p><p>That&#8217;s it. Happy hacking!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/08/21/ajax-dojo-comet-tutorial/feed/</wfw:commentRss> <slash:comments>30</slash:comments> </item> <item><title>How to Install Anything in Ubuntu Condensed</title><link>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/</link> <comments>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/#comments</comments> <pubDate>Thu, 19 Apr 2007 14:24:22 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[tricks]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[install]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=87</guid> <description><![CDATA[This is a very condensed excerpt of the excellent article How to install ANYTHING in Ubuntu. Search, install, remove available packages (preferred method) sudo aptitude search ABC sudo aptitude install ABC sudo aptitude remove ABC .deb (you have to take &#8230; <a href="http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>This is a very condensed excerpt of the excellent article <a href="http://amitech.50webs.com/installing/index.php.html">How to install ANYTHING in Ubuntu</a>.</p><p><strong>Search, install, remove available packages</strong> (preferred method)</p><pre>sudo aptitude search ABC
sudo aptitude install ABC
sudo aptitude remove ABC</pre><p><strong>.deb</strong> (you have to take care of dependencies on your own)</p><pre>sudo dpkg -i ABC.deb</pre><p><strong>.rpm</strong> (requires <tt>sudo aptitude install alien</tt>)</p><pre>sudo alien -i *.rpm</pre><p><strong>.tar.gz</strong> (requires <tt>sudo aptitude install checkinstall</tt>)</p><pre>tar xzvf ABC.tar.gz
cd ABC
./configure
make
sudo checkinstall</pre><p><strong>.package, .sh, .bin</strong> (Just download and execute)</p><pre>chmod +x ABC
./ABC
</pre><p><strong>.exe</strong> (requires <tt>sudo aptitude install wine</tt>)</p><pre>wine ABC.exe</pre><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/04/19/how-to-install-anything-in-ubuntu-condensed/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/28 queries in 0.162 seconds using disk: basic
Object Caching 962/1028 objects using disk: basic

Served from: martin.ankerl.com @ 2012-02-04 10:49:29 -->
