<?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>TuxArena &#187; Tutorials</title>
	<atom:link href="http://www.tuxarena.com/category/tutorial-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuxarena.com</link>
	<description>Ubuntu/Debian/Mint news and tutorials &#124; Linux stuff</description>
	<lastBuildDate>Sat, 11 May 2013 13:35:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Tutorial: How to Color Man Pages &amp; How It Works</title>
		<link>http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/</link>
		<comments>http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 16:08:05 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=2066</guid>
		<description><![CDATA[In this tutorial I&#8217;ll show how to get some nicely colored man pages by adding several lines inside the .bashrc file, explaining what the code means and how it works. Except for the eye-candy, colors may help when it comes to clarity, although some prefer the default monochrome approach. At the start of this article [...]]]></description>
				<content:encoded><![CDATA[<p>In this tutorial I&#8217;ll show how to get some nicely colored man pages by adding several lines inside the .bashrc file, explaining what the code means and how it works.</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2012/04/colored_man_pages.png"><img src="http://www.tuxarena.com/wp-content/uploads/2012/04/colored_man_pages-640x357.png" alt="" title="colored_man_pages" width="640" height="357" class="aligncenter size-large wp-image-2096" /></a></p>
<p><span id="more-2066"></span></p>
<p>Except for the eye-candy, colors may help when it comes to clarity, although some prefer the default monochrome approach. At the start of this article there is the actual code which can be copied and pasted inside the ~/.bashrc file, and which can be modified depending on each person&#8217;s preferences. If you don&#8217;t care about what it does you can just insert it in ~/.bashrc, restart your terminal and start reading some man pages to see how it looks (e.g. man man). After this part I tried to explain how this code works and how to modify it in order to get new &#8216;themes&#8217;.</p>
<div class="subtitle">The code</div>
<p>For this tutorial we&#8217;ll be editing the ~/.bashrc file, which is a hidden file located in your home directory which gets read each time a new Bash instance starts up. Bash reads all the commands found in this file and executes them (hence the <b>rc</b> part, which stands for <b>r</b>un <b>c</b>ommands).</p>
<p>We will edit this file and add some lines which specify certain colors for the $LESS_TERMCAP variables.</p>
<div class="code">
export LESS_TERMCAP_mb=$(printf &#8216;\e[01;31m&#8217;) # enter blinking mode &#8211; red<br />
export LESS_TERMCAP_md=$(printf &#8216;\e[01;35m&#8217;) # enter double-bright mode &#8211; bold, magenta<br />
export LESS_TERMCAP_me=$(printf &#8216;\e[0m&#8217;) # turn off all appearance modes (mb, md, so, us)<br />
export LESS_TERMCAP_se=$(printf &#8216;\e[0m&#8217;) # leave standout mode<br />
export LESS_TERMCAP_so=$(printf &#8216;\e[01;33m&#8217;) # enter standout mode &#8211; yellow<br />
export LESS_TERMCAP_ue=$(printf &#8216;\e[0m&#8217;) # leave underline mode<br />
export LESS_TERMCAP_us=$(printf &#8216;\e[04;36m&#8217;) # enter underline mode &#8211; cyan
</div>
<p>Don&#8217;t forget to reset your terminal after entering this code in order for the changes to take effect, e.g. type <b>reset</b> or <b>exit</b> and start up another shell.</p>
<p>This will mostly use magenta and cyan as the colors. Next, I&#8217;ll explain what these lines mean and how you can modify the colors.</p>
<div class="subtitle">Explaining it</div>
<p>As you can see, there are several variables which are assigned different values. As shown in the comments after the # sign, every one is used when needed. When text is in bold (double-bright mode), the formatting option is set to bold and the color magenta.</p>
<p>Let&#8217;s take, for example, the following line:</p>
<div class="code">
export LESS_TERMCAP_md=$(printf &#8216;\e[01;35m&#8217;) # enter double-bright mode &#8211; bold, magenta
</div>
<p>This line could be broken into this:</p>
<ul>
<li>the environment variable LESS_TERMCAP_md will be assigned the value to the right of the equal sign
<li>the right side says execute the command between the <b>$(</b> and <b>)</b> characters, just like the older <b>` `</b> did
<li>printf is a command similar with C&#8217;s printf and means &#8220;print with format&#8221;. The characters between the double quotes specify a color and a font style (e.g. in this case, bold and magenta).
</ul>
<p>The part that is inside the double quotes are format specifiers like bold, regular, or color to be used. More on these can be found on Wikipedia, <a href="http://en.wikipedia.org/wiki/ANSI_escape_code">here</a>.</p>
<div class="subtitle">Color codes</div>
<p>The color codes are as follows:</p>
<ul>
<li>30 &#8211; <font color="black">black</font>
<li>31 &#8211; <font color="red">red</font>
<li>32 &#8211; <font color="green">green</font>
<li>33 &#8211; <font color="orange">orange</font>
<li>34 &#8211; <font color="blue">blue</font>
<li>35 &#8211; <font color="magenta">magenta</font>
<li>36 &#8211; <font color="cyan">cyan</font>
<li>37 &#8211; <font color="black">white</font>
</ul>
<p>Some other escape codes which you could use include:</p>
<ul>
<li>0 &#8211; reset/normal
<li>1 &#8211; bold
<li>3 &#8211; italic/reversed
<li>4 &#8211; underlined
<li>5 &#8211; blink
</ul>
<p>You can check this by typing in a terminal something like:</p>
<div class="code">
printf &#8216;\e[31m&#8217;<br />
printf &#8216;\e[32m&#8217;<br />
printf &#8216;\e[37m&#8217;
</div>
<p>So, if we have something like <b>printf &#8216;\e[01;33m&#8217;</b> it means enter bold and color yellow, according to the listing above.</p>
<div class="subtitle">What about &#8216;export&#8217;?</div>
<p><b>export</b> is a Bash built-in used to assign values to variables in such a manner that any subsequent application that runs in that shell will be aware of the variable&#8217;s value. If, for example, we would simply assign a value to a variable, say <b>MYVAR=&#8221;this is my variable&#8221;</b> and we would then issue <b>echo $MYVAR</b>, we would see that the variable&#8217;s value will be printed. However, try to make a simple script which would echo it, for example:</p>
<div class="code">
#!/bin/bash</p>
<p>echo $MYVAR
</p></div>
<p>And then run it e.g. <b>bash myscript.sh</b> &#8211; you will see that the value is lost, not visible in the script. So this is where <b>export</b> is useful, because it will make any further script or application &#8220;see&#8221; the variable. When we invoke the <b>man</b> command, it will need to see the values for our LESS_TERMCAP variables.</p>
<div class="subtitle">More color schemes</div>
<p>Here is another color scheme:</p>
<div class="code">
export LESS_TERMCAP_mb=$(printf &#8216;\e[01;31m&#8217;) # enter blinking mode<br />
export LESS_TERMCAP_md=$(printf &#8216;\e[01;38;5;75m&#8217;) # enter double-bright mode<br />
export LESS_TERMCAP_me=$(printf &#8216;\e[0m&#8217;) # turn off all appearance modes (mb, md, so, us)<br />
export LESS_TERMCAP_se=$(printf &#8216;\e[0m&#8217;) # leave standout mode<br />
export LESS_TERMCAP_so=$(printf &#8216;\e[01;33m&#8217;) # enter standout mode<br />
export LESS_TERMCAP_ue=$(printf &#8216;\e[0m&#8217;) # leave underline mode<br />
export LESS_TERMCAP_us=$(printf &#8216;\e[04;38;5;200m&#8217;) # enter underline mode
</div>
<div class="subtitle">References</div>
<ul>
<li><a href="http://www.ibm.com/developerworks/linux/library/l-bash/index.html">http://www.ibm.com/developerworks/linux/library/l-bash/index.html</a>
<li><a href="en.wikipedia.org/wiki/ANSI_escape_code">en.wikipedia.org/wiki/ANSI_escape_code</a>
<li><a href="http://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html">http://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html</a>
<li><a href="https://wiki.archlinux.org/index.php/Man_Page">https://wiki.archlinux.org/index.php/Man_Page</a>
<li><a href="http://tips4linux.com/color-man-pages-in-linux/">http://tips4linux.com/color-man-pages-in-linux/</a>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Tutorial: Using the &#8216;find&#8217; Command</title>
		<link>http://www.tuxarena.com/2012/03/tutorial-using-the-find-command/</link>
		<comments>http://www.tuxarena.com/2012/03/tutorial-using-the-find-command/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 16:05:14 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=2040</guid>
		<description><![CDATA[GNU find is a powerful command-line utility that lets you search for files and folders in a hierarchical tree directory structure. It is the backend for all those utilities out there like the graphical searching in KDE or GNOME. However, find can be a little hard to handle at first by beginners. In this tutorial [...]]]></description>
				<content:encoded><![CDATA[<p>GNU find is a powerful command-line utility that lets you search for files and folders in a hierarchical tree directory structure. It is the backend for all those utilities out there like the graphical searching in KDE or GNOME. However, find can be a little hard to handle at first by beginners. In this tutorial I will try to explain some of the capabilities of find, show some useful one-liners and provide more explanations regarding this command.</p>
<p><span id="more-2040"></span></p>
<p>In this tutorial I will start from the basic ways of using find and head up into showing more complicated (but very useful) ways of getting the most out of it, in order to search and display exactly the results that you are looking for. The version of find that I currently have installed is 4.4.2, as it comes with Ubuntu 12.04 Precise Pangolin, and Bash 4.2.20 (older versions should work without problem too). Special thanks go to http://www.commandlinefu.com/ for some really great one-liners.</p>
<p>If you&#8217;re not familiar with the terminal, command-line or Linux in general I suggest you read my introductory tutorial here: <a href="http://www.tuxarena.com/static/intro_linux_cli.php">Introduction to Linux Command-Line for Beginners</a>.</p>
<div class="subtitle">The Basics</div>
<p>The simplest way of using find is by typying it in a terminal:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find
</textarea></pre>
<p>This will list all the files and folders (including hidden ones and their sub-files and sub-folders) in the current directory, following the whole hierarchical structure. This will usually generate a long list of files and doesn&#8217;t seem to give us much. It&#8217;s exactly the same as:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find .
</textarea></pre>
<p>Where . is the currently working directory. This will list all the files and folders in the currently working directory.</p>
<p>It&#8217;s probably best to use a new folder somewhere in the file system to see this in effect, a folder which doesn&#8217;t have many sub-folders and files.</p>
<p>Moving on, let&#8217;s search for all the files that include the name profile in their filename:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find . -name *profile*
</textarea></pre>
<p><b>*</b> is a wildcard that replaces any number of characters or no character. The above command searches in the current folder for the name <b>*profile*</b>.</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/share -name FreeSans*
</textarea></pre>
<p>This will search inside <b>/usr/share</b> for all the files that start with FreeSans (and end in whatever characters e.g. FreeSans.ttf). I recommend using double quotes around the pattern to search for e.g. <b>find . -name &#8220;.bash*&#8221;</b>.</p>
<p>Another example:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/share -name FreeSans* | grep Oblique
</textarea></pre>
<p>So now you know how to search for a certain filename in a specific location.</p>
<div class="subtitle">Uppercase/Lowercase</div>
<p>Sometimes you need to ignore uppercase and lowercase and just search for text by ignoring case-sensitive. We&#8217;ll to this just by replacing <b>-name</b> with <b>-iname</b>:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/share -iname FREESANS*
</textarea></pre>
<div class="subtitle">Date</div>
<pre><textarea cols="78" rows="1" wrap="off">
find . -mtime +3 -iname *somefile*
</textarea></pre>
<p>This will search for files that were created earlier than 3 days ago.</p>
<div class="subtitle">Get only the filename instead of whole path to the file</div>
<p>find will return the whole path to the files that match the search pattern, so in order to get only the filename you can use the <b>printf</b> argument:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/bin -name "alsa*"
</textarea></pre>
<p>To get only the filename, use:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/bin -name "alsa*" -printf "%f\n"
</textarea></pre>
<div class="subtitle">By size</div>
<p>To search for files by size, use the <b>-size</b> argument, for example:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr -size +500k -name "*png"
</textarea></pre>
<p>This will search inside /usr for files which are equal to or larger than 500 KB and are ending in png. Another example:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr -size +1M -name "*png"
</textarea></pre>
<p>Which will search for files which are bigger than 1 MB in size. Instead of the plus sign, you could use minus in order to search for files that are smaller than a specified size:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr -size -10c -name "*png"
</textarea></pre>
<p>The -10c specifier tells find to only display files which are smaller than 10 bytes. Don&#8217;t forget the + or &#8211; preceding the desired filesize.</p>
<div class="subtitle">Automatically list details about the found files</div>
<p>You could use a pipe and the xargs command for this:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find /usr/lib -size +2M -name "*.so" | xargs ls -lh
</textarea></pre>
<p>Notice that this will list the files in the current directory if find returns no file.</p>
<div class="subtitle">Searching for files than contain specific text</div>
<p>This is probably one of the most useful ways to search for some file which name you&#8217;ve forgot but you know some of the text it contains inside.</p>
<pre><textarea cols="78" rows="1" wrap="off">
find . -name "*bash*" -exec grep -l "aliases" {} +
</textarea></pre>
<p>This will search in all the files that contain the patter bash for the word <b>aliases</b>. Those files that contain this pattern will be printed out.</p>
<div class="subtitle">Some useful one-liners</div>
<p>Find top 20 largest files:</p>
<pre><textarea cols="78" rows="1" wrap="off">
find . -type f -print0 | xargs -0 du -h | sort -hr | head -20
</textarea></pre>
<div class="subtitle">References</div>
<p>Special thanks go to <a href="http://www.commandlinefu.com/">http://www.commandlinefu.com/</a> and the following articles:</p>
<ul>
<li><a href="https://www.linux.com/learn/tutorials/316404-10-tips-for-using-gnu-find">https://www.linux.com/learn/tutorials/316404-10-tips-for-using-gnu-find</a>
<li><a href="http://www.ibm.com/developerworks/aix/library/au-unix-find.html">http://www.ibm.com/developerworks/aix/library/au-unix-find.html</a>
<li><a href="http://www.linux.ie/newusers/beginners-linux-guide/find.php">http://www.linux.ie/newusers/beginners-linux-guide/find.php</a>
<li><a href="http://www.cyberciti.biz/faq/howto-recursively-search-all-files-for-words/">http://www.cyberciti.biz/faq/howto-recursively-search-all-files-for-words/</a>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2012/03/tutorial-using-the-find-command/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tip: Change GRUB 2 Resolution</title>
		<link>http://www.tuxarena.com/2011/12/tip-change-grub-2-resolution/</link>
		<comments>http://www.tuxarena.com/2011/12/tip-change-grub-2-resolution/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 21:27:11 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[grub2]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=1753</guid>
		<description><![CDATA[The file used to change various GRUB 2 settings is /etc/default/grub. This file also contains options to adjust the timeout in seconds before GRUB boots the default OS (GRUB_TIMEOUT), change which OS should be selected by default (GRUB_DEFAULT, first entry being 0), and also the option to change the resolution used by default &#8211; GRUB_GFXMODE. [...]]]></description>
				<content:encoded><![CDATA[<p>The file used to change various GRUB 2 settings is <b>/etc/default/grub</b>. This file also contains options to adjust the timeout in seconds before GRUB boots the default OS (<b>GRUB_TIMEOUT</b>), change which OS should be selected by default (<b>GRUB_DEFAULT</b>, first entry being <b>0</b>), and also the option to change the resolution used by default &#8211; <b>GRUB_GFXMODE</b>.</p>
<p><span id="more-1753"></span></p>
<p>In order to change it, edit this file as root with a text editor, e.g.:</p>
<pre><textarea cols="72" rows="1">sudo nano /etc/default/grub</textarea></pre>
<p>Then find the option <b>GRUB_GFXMODE</b> and insert your preferred resolution, e.g.:</p>
<pre><textarea cols="72" rows="1">GRUB_GFXMODE=1024x768</textarea></pre>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/12/grub_gfxmode.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/12/grub_gfxmode-640x435.png" alt="" title="grub_gfxmode" width="640" height="435" class="aligncenter size-large wp-image-1756" /></a></p>
<p>Now save the file (Ctrl+O followed by Enter if you used Nano for editing), and issue the following command in your terminal:</p>
<pre><textarea cols="72" rows="1">sudo update-grub</textarea></pre>
<p>This should be all, the next time you restart your computer the new resolution should be changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/12/tip-change-grub-2-resolution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 More Great Tools for the Terminal</title>
		<link>http://www.tuxarena.com/2011/06/10-more-great-tools-for-the-terminal/</link>
		<comments>http://www.tuxarena.com/2011/06/10-more-great-tools-for-the-terminal/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 18:12:58 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=1299</guid>
		<description><![CDATA[First of all I&#8217;d like to thank TuxArena&#8217;s readers for giving good feedback in the first part of this series, which overviews 15 of the tools I consider particularly useful in a console. This article overviews 10 more such tools, and most of them were suggested by you. Screenshots included. telnet telnet is a well-known [...]]]></description>
				<content:encoded><![CDATA[<p>First of all I&#8217;d like to thank TuxArena&#8217;s readers for giving good feedback in the first part of this series, which <a href="http://www.tuxarena.com/?p=1084">overviews 15 of the tools</a> I consider particularly useful in a console. This article overviews 10 more such tools, and most of them were suggested by you. Screenshots included.</p>
<p><strong>telnet</strong><br />
telnet is a well-known command-line tool which uses sockets to open a TCP connection to the specified hostname and port. telnet can be primarily used for non-secure connections to connect to a HTTP server and get a file or to an IRC server for example. Escape character in telnet is <strong>^]</strong> (press <b>Ctrl+]</b>)<br />
<a href="http://www.telnet.org/">Homepage</a></p>
<p><span id="more-1299"></span><br />
<a href="http://www.tuxarena.com/?attachment_id=1381" rel="attachment wp-att-1381"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/telnet-640x347.png" alt="" title="telnet" width="640" height="347" class="aligncenter size-large wp-image-1381" /></a></p>
<p><strong>rtorrent</strong><br />
I&#8217;ve never used a BitTorrent client in command-line mode (KTorrent is my application of choice), so rtorrent was something new to me. However I heard about rtorrent many times and decided to take it for a spin. The only reason for choosing it over ctorrent was that everybody mentions it when it comes to command-line tools. Well, after starting it I had trouble quitting it (:q, q, ^X followed by quit or exit didn&#8217;t seem to work), so I had to Google for it. The command for <a href="http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide">exiting rtorrent is ^Q</a> (Ctrl+Q). rtorrent features pausing/resuming torrents, and it features most of the features found in graphical clients like Deluge or KTorrent.<br />
<a href="http://libtorrent.rakshasa.no/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1382" rel="attachment wp-att-1382"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/rtorrent-640x378.png" alt="" title="rtorrent" width="640" height="378" class="aligncenter size-large wp-image-1382" /></a></p>
<p><strong>vifm</strong><br />
vifm is a twin-panel file manager using ncurses and Vi keyboard shortcuts. I recommend it to those who are used to work in Vi (this is why I recommend CMus for them too, because of the keyboard shortcuts).<br />
<a href="http://vifm.sourceforge.net/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1386" rel="attachment wp-att-1386"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/vifm1-640x375.png" alt="" title="vifm" width="640" height="375" class="aligncenter size-large wp-image-1386" /></a></p>
<p><strong>emacs</strong><br />
Yes, Emacs can be run in command-line mode too, if it is invoked with <b>emacs &#8211;no-window-system</b>, or with <b>emacs &#8211;no-window</b>, or just with <b>emacs -nw</b>. For those of you don&#8217;t know what Emacs is: well, first of all it is a very powerful IDE (Integrated Development Environment) written in Elisp (Emacs Lips, a List dialect). It features syntax highlighting, indentation, so-called &#8220;modes&#8221; for various languages (including C or Java modes). Emacs is extremely flexible, comes with a huge number of configuration options (which can be used either from within the application or in the ~/.emacs configuration file), and it can be expanded using Lisp. Except for being an IDE, it also provides email client, facilities to use it as a file manager, IRC access, and much, much more. As they describe it on the website, Emacs can be look at just as it would&#8217;ve been an operating system.<br />
<a href="http://www.gnu.org/software/emacs/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1387" rel="attachment wp-att-1387"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/vifm2-640x375.png" alt="" title="vifm" width="640" height="375" class="aligncenter size-large wp-image-1387" /></a></p>
<p><strong>mutt</strong><br />
mutt is a pretty powerful command-line email client. It has support for color terminals, MIME, OpenPGP.<br />
<a href="http://www.mutt.org/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1388" rel="attachment wp-att-1388"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/mutt-640x377.png" alt="" title="mutt" width="640" height="377" class="aligncenter size-large wp-image-1388" /></a></p>
<p><strong>iptraf</strong><br />
iptraf is a network interface monitoring tool. It displays various informations on the incoming/outgoing traffic on the installed networking interfaces, statistics and general info.<br />
<a href="http://iptraf.seul.org/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1390" rel="attachment wp-att-1390"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/iptraf1-640x381.png" alt="" title="iptraf" width="640" height="381" class="aligncenter size-large wp-image-1390" /></a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1391" rel="attachment wp-att-1391"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/iptraf02-640x383.png" alt="" title="iptraf02" width="640" height="383" class="aligncenter size-large wp-image-1391" /></a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1392" rel="attachment wp-att-1392"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/iptraf03-640x379.png" alt="" title="iptraf03" width="640" height="379" class="aligncenter size-large wp-image-1392" /></a></p>
<p><strong>screen</strong><br />
GNU Screen is used to run multiple programs in a terminal, without the need to open several terminal tabs, so it would be a perfect fit to run in the F1-F6 classic ttys. Screen creates several virtual terminals and allows you to customize and switch between them. This tool is definitely a must-have for any respectable power user.<br />
<a href="http://www.gnu.org/software/screen/">Homepage</a></p>
<p><strong>tail</strong><br />
tail is a simple tool that will display by default the last 10 lines in a text file. By invoking it with a number parameter, it will display n lines starting at the end of the file (e.g. <b>tail -20</b> to display the last 20 lines in a file). tail is useful to see the output of long logs.<br />
<a href="http://www.gnu.org/software/coreutils/">Homepage</a></p>
<p><strong>wget</strong><br />
wget is the &#8220;de-facto&#8221; command-line utility to download files over Internet, supporting the following protocols: HTTP, FTP, HTTPS and HTTP through proxies. It provides for many options, including quiet mode, verbose or non-verbose mode, resume downloading an incomplete file, set the number of retries, and these are not the only ones.<br />
<a href="http://www.gnu.org/software/wget/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1393" rel="attachment wp-att-1393"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/wget-640x151.png" alt="" title="wget" width="640" height="151" class="aligncenter size-large wp-image-1393" /></a></p>
<p><strong>hnb</strong><br />
hnb stands for Hierarchical Notebook, it is written using ncurses, and it allows you to keep notes in a console.<br />
<a href="http://hnb.sourceforge.net/">Homepage</a></p>
<p><a href="http://www.tuxarena.com/?attachment_id=1394" rel="attachment wp-att-1394"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/hnb-640x381.png" alt="" title="hnb" width="640" height="381" class="aligncenter size-large wp-image-1394" /></a></p>
<p>In the next article in these series I will talk about <strong>ssh</strong>, <strong>scp</strong> and several other powerful and useful tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/10-more-great-tools-for-the-terminal/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PeaZip 3.8 Released &#8211; Adds Support for WIM and XZ Archives (Ubuntu Installation)</title>
		<link>http://www.tuxarena.com/2011/06/peazip-3-8-released-adds-support-for-wim-and-xz-archives-ubuntu-installation/</link>
		<comments>http://www.tuxarena.com/2011/06/peazip-3-8-released-adds-support-for-wim-and-xz-archives-ubuntu-installation/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 12:21:45 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[peazip]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=1043</guid>
		<description><![CDATA[PeaZip is an open-source file archiver with GTK and Qt interfaces, with support for all the major archives out there, including gzip, 7z, bzip2, zip, and arc. Here are some of the main features provided by PeaZip, according to the official website: easy to use GUI, powerful integration with scripts portable version for running it [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.peazip.org/peazip-linux.html">PeaZip</a> is an open-source file archiver with GTK and Qt interfaces, with support for all the major archives out there, including gzip, 7z, bzip2, zip, and arc.</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip03.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip03-300x254.png" alt="" title="peazip03" width="300" height="254" class="alignleft size-medium wp-image-1044" /></a></p>
<p><span id="more-1043"></span><br />
Here are some of the main features provided by PeaZip, according to the official website:</p>
<ul>
<li>easy to use GUI, powerful integration with scripts
<li>portable version for running it from removable devices
<li>it can work with all the popular archive formats
<li>tools to extract, compress, convert, encrypt, secure delete and save backup scripts
<li>fast, with a high compression ratio, stable and secure
<li>comes with packages for various distributions, also generic Linux packages
<li>it has both GTK and Qt interfaces (GTK interface is the recommended one)
</ul>
<p>To install it in Ubuntu 11.04, download the DEB package from<br />
<a href="http://www.peazip.org/download-linux-gtk2-deb.html">here</a> then open a terminal, make sure the current working directory is the one where you saved the .deb file, and type in the following command:</p>
<div class="code">
<pre>
sudo dpkg -i peazip_3.8.LINUX.GTK2-2_all.deb 
</pre>
</div>
<p>To run it type in the terminal <b>peazip</b> or press Alt+F2 and type <b>peazip</b> in the run box. Here&#8217;s how it looks like:</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip01.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip01-300x200.png" alt="" title="peazip01" width="300" height="200" class="alignleft size-medium wp-image-1045" /></a></p>
<p>And the configuration window:</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip02.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/peazip02-300x197.png" alt="" title="peazip02" width="300" height="197" class="alignleft size-medium wp-image-1046" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/peazip-3-8-released-adds-support-for-wim-and-xz-archives-ubuntu-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnac &#8211; Simple and Effective Audio Converter for GNOME</title>
		<link>http://www.tuxarena.com/2011/06/gnac-simple-and-effective-audio-converter-for-gnome/</link>
		<comments>http://www.tuxarena.com/2011/06/gnac-simple-and-effective-audio-converter-for-gnome/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 00:51:38 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gnac]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=955</guid>
		<description><![CDATA[Gnac is a graphical audio converter for GNOME with support for encoding/decoding to and from various formats, including the free formats FLAC and Ogg, WAV, MP3, M4A or SPX. Gnac is a GUI frontend to various audio converters, with a very minimalist and clear interface. It allows to edit the tags, change the path and [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://gnac.sourceforge.net/">Gnac</a> is a graphical audio converter for GNOME with support for encoding/decoding to and from various formats, including the free formats FLAC and Ogg, WAV, MP3, M4A or SPX.</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac01.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac01-300x178.png" alt="" title="gnac01" width="300" height="178" class="aligncenter size-medium wp-image-959" /></a></p>
<p><span id="more-955"></span><br />
Gnac is a GUI frontend to various audio converters, with a very minimalist and clear interface. It allows to edit the tags, change the path and filenames of the output files, and use custom parameters for audio encoding. For example, the Ogg Vorbis format profile<br />
can be configured to use variable or constant encoding bitrate, change the quality settings on a scale of -0.1 to 1.0 (~ 45 kbps up to ~ 500 kbps), use mono or stereo audio channels, or set a minimum and maximum bitrate.</p>
<p>The Ogg profile settings</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_ogg_settings.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_ogg_settings-204x300.png" alt="" title="gnac_ogg_settings" width="204" height="300" class="aligncenter size-medium wp-image-960" /></a></p>
<p>The MP3 profile settings</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_mp3_settings.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_mp3_settings-300x252.png" alt="" title="gnac_mp3_settings" width="300" height="252" class="aligncenter size-medium wp-image-961" /></a></p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_encoding.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_encoding-287x300.png" alt="" title="gnac_encoding" width="287" height="300" class="aligncenter size-medium wp-image-962" /></a></p>
<p>The Preferences window will let you enable or disable a conversion notification icon, set custom output folder, strip special characters, or delete original files after the conversion. Here you can also customize the folder hierarchy and the information to be included in the output filenames (e.g. %n_%a _%b_%t for Number_Artist_Album_Title).</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_preferences.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/gnac_preferences-300x251.png" alt="" title="gnac_preferences" width="300" height="251" class="aligncenter size-medium wp-image-963" /></a></p>
<p><strong>Ubuntu Installation</strong></p>
<p>To install it in Ubuntu from the <a href="https://launchpad.net/~gnac-team/+archive/ppa">official Launchpad PPA</a>, run the following commands in a terminal:</p>
<div class="code">
<pre>
sudo add-apt-repository ppa:gnac-team/ppa
sudo apt-get update
sudo apt-get install gnac
</pre>
</div>
<p>To start it type <b>gnac</b> in a terminal or press Alt+F2 and type <b>gnac</b> in the run box that appears.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/gnac-simple-and-effective-audio-converter-for-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip of the Day: Make Your Own AssaultCube Server</title>
		<link>http://www.tuxarena.com/2011/06/tip-of-the-day-make-your-own-assaultcube-server/</link>
		<comments>http://www.tuxarena.com/2011/06/tip-of-the-day-make-your-own-assaultcube-server/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 22:50:33 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=860</guid>
		<description><![CDATA[AssaultCube is a popular cross-platform first-person shooter with pretty low hardware requirements, with a fast gameplay and many modes &#8211; including the classic CTF, TDM, FFA, or the popular TOSOK (Team One Shot One Kill), LSS (Last Swiss Standing), or HTF (Hold the Flag). Starting a server should be pretty straightforward in Linux, all you [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://assault.cubers.net/">AssaultCube</a> is a popular cross-platform first-person shooter with pretty low hardware requirements, with a fast gameplay and many modes &#8211; including the classic CTF, TDM, FFA, or the popular TOSOK (Team One Shot One Kill), LSS (Last Swiss Standing), or HTF (Hold the Flag).</p>
<p>Starting a server should be pretty straightforward in Linux, all you have to do is run the server dedicated binary with several parameters, however AssaultCube provided a script, called <b>server.sh</b> for doing it. Here&#8217;s an example:</p>
<p><span id="more-860"></span></p>
<pre><textarea cols="75" rows="2" wrap="off">
./server.sh -c20 -xserverpass -Bconfig/serverblacklist.cfg -n"Public AC Server" -o"Welcome to our AssaultCube server!"
</textarea></pre>
<p>This is a perfectly working example, and you will be able to see your server listed in the Server Browser under the name &#8220;Public AC Server&#8221;. Here is what the switches used mean:</p>
<p><b>-c20</b> &#8211; the maximum number of clients allowed (20)</p>
<p><b>-xserverpass</b> &#8211; the admin password (<b>-x</b> is the switch and <b>serverpass</b> is the actual password)</p>
<p><b>-Bconfig/serverblacklist.cfg</b> &#8211; the <b>-B</b> switch specifies the blacklist file (banned IPs), in this case <b>config/serverblacklist.cfg</b></p>
<p><b>-n&#8221;Publci AC Server&#8221;</b> &#8211; the name of the server, which will appear in the Server Browser, you can use the slash (<b>\</b>) to escape characters like $</p>
<p><b>-o&#8221;Welcome to our AssaultCube server!</b> &#8211; this is the welcome message which will be displayed to each player after he joins the server</p>
<p>For a complete list of parameters, see <a href="http://assault.cubers.net/docs/server.html">this page</a> on the official website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/tip-of-the-day-make-your-own-assaultcube-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Firefox 5 Beta in Ubuntu from the Firefox Next PPA</title>
		<link>http://www.tuxarena.com/2011/06/install-firefox-5-beta-in-ubuntu-from-the-firefox-next-ppa/</link>
		<comments>http://www.tuxarena.com/2011/06/install-firefox-5-beta-in-ubuntu-from-the-firefox-next-ppa/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 02:45:37 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=804</guid>
		<description><![CDATA[Not long ago Mozilla changed the release cycle of Firefox, so that major new versions (Firefox 5, 6 and so on) will be released every 2-3 months. Currently, the latest alpha release is Firefox 6 Aurora, while the latest beta development version is Firefox Beta 5, which has made it into the Firefox Next PPA [...]]]></description>
				<content:encoded><![CDATA[<p>Not long ago Mozilla changed the release cycle of Firefox, so that major new versions (Firefox 5, 6 and so on) will be released every 2-3 months. Currently, the latest alpha release is Firefox 6 Aurora, while the latest beta development version is Firefox Beta 5, which has made it into the <a href="https://launchpad.net/~mozillateam/+archive/firefox-next">Firefox Next PPA</a> already. Installing this version should be very easy if you follow the next steps.</p>
<p><span id="more-804"></span><br />
<strong>Installation from the Firefox Next PPA</strong></p>
<p>Open a terminal and type in the following commands:</p>
<pre><textarea cols="75" rows="5">sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install firefox
</textarea></pre>
<p>Notice that these commands will install the latest Firefox version available in the PPA, which means it will replace your existing Firefox version.</p>
<p>The first command will add the PPA repositories inside your /etc/apt/sources.list.d/ directory, in a file called sources.list.d/mozillateam-firefox-next-natty.list. Alternately, you can edit the /etc/apt/sources.list file by hand and add these repositories manually:</p>
<pre><textarea cols="75" rows="3" wrap="off">deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu natty main
deb-src http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu natty main
</textarea></pre>
<p><strong>Removing latest Firefox and downgrading to the version in the repositories</strong></p>
<p>If you want back Firefox 4, you can type in a terminal:</p>
<pre><textarea cols="75" rows="3">sudo apt-get install ppa-purge
sudo ppa-purge ppa:mozillateam/firefox-next
</textarea></pre>
<p>The first command will install ppa-purge, which is a package used to disable the specified PPA from your sources and revert to the version of the package in the default repositories.</p>
<p><strong>Manual installation</strong></p>
<p>Another way of installing Firefox is to just download it from their website, <a href="http://www.mozilla.com/en-US/firefox/all-beta.html">here</a> &#8211; <a href="http://download.mozilla.org/?product=firefox-5.0b5&#038;os=linux&#038;lang=en-US">direct link for Firefox 5 b5 US English</a>. Next uncompress it to a location of your choice (for example I use here /home/USER/apps/) and then run the <b>firefox</b> script from within the <b>firefox</b> directory. However, you can run Firefox 4 and Firefox 5 in parallel by using profiles and the <b>-no-remote</b> switch. To do this, open a terminal and run the <b>firefox</b> script like this:</p>
<pre><textarea cols="75" rows="2">/home/USER/apps/firefox/firefox -P -no-remote
</textarea></pre>
<p>The -P switch tells Firefox to open up the profile window at startup, so you can create or choose a profile (a new profile will open Firefox with all the settings default, without bookmarks, add-ons, themes, or personas installed). The -no-remote switch tells Firefox not to connect with any other running Firefox instances, so you can actually run Firefox 4 and Firefox 5 at the same time without trouble. Here are a few screenshots of the profile window:</p>
<p>First, start firefox with the <b>-P</b> and <b>-no-remote</b> switches. In the profile window that pops up, click Create Profile:</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_01.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_01-300x224.png" alt="" title="firefox5b5_01" width="300" height="224" class="aligncenter size-medium wp-image-815" /></a></p>
<p>Now select you&#8217;re newly created profile and click on the Start Firefox button:</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_02.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_02-300x195.png" alt="" title="firefox5b5_02" width="300" height="195" class="aligncenter size-medium wp-image-814" /></a></p>
<p>Firefox 5 Beta</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_03.png"><img src="http://www.tuxarena.com/wp-content/uploads/2011/06/firefox5b5_03-300x248.png" alt="" title="firefox5b5_03" width="300" height="248" class="aligncenter size-medium wp-image-816" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/install-firefox-5-beta-in-ubuntu-from-the-firefox-next-ppa/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flash-Aid Add-on &#8211; Painless and Proper Flash Installation in Firefox</title>
		<link>http://www.tuxarena.com/2011/06/flash-aid-add-on-painless-and-proper-flash-installation-in-firefox/</link>
		<comments>http://www.tuxarena.com/2011/06/flash-aid-add-on-painless-and-proper-flash-installation-in-firefox/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 20:50:31 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=738</guid>
		<description><![CDATA[I guess this has been around for some time, however I was not aware of it. I bumped into it in a thread on UbuntuForums, and decided to give it a try. From the add-on page description, Flash-Aid is a Firefox 4 and 3.5 (and maybe 5 Beta too) add-on which was built to &#8220;Remove [...]]]></description>
				<content:encoded><![CDATA[<p>I guess this has been around for some time, however I was not aware of it. I bumped into it in a thread on <a href="http://ubuntuforums.org/">UbuntuForums</a>, and decided to give it a try.</p>
<p>From the add-on page description, <a href="http://www.webgapps.org/add-ons/flash-aid">Flash-Aid</a> is a Firefox 4 and 3.5 (and maybe 5 Beta too) add-on which was built to<strong> <em>&#8220;Remove conflicting flash plugins from Ubuntu/Debian Linux systems, install the appropriate version according to system architecture and apply some tweaks to improve performance and fix common issues.&#8221;</em></strong></p>
<p>Well, I must say it sounds promising at least, especially since the page says it&#8217;s designed especially for Ubuntu. Let&#8217;s see how it works with Firefox 4.</p>
<p><span id="more-738"></span></p>
<p>I wanted to remove my manually installed plugin from ~/.mozilla/plugins, but since the description said Flash-Aid will do it, I&#8217;ve left it in place. Then I installed it from Mozilla&#8217;s add-ons page (https://addons.mozilla.org/en-US/firefox/addon/flash-aid/), restarted Firefox, after which Flash-Aid created a non-intrusive icon in the right side of the navigation bar. No option to disable it or have a menu entry instead of a toolbar shortcut though.</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid02.png"><img class="aligncenter size-medium wp-image-746" title="flash-aid02" src="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid02-300x181.png" alt="" width="300" height="181" /></a></p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid01.png"><img class="aligncenter size-medium wp-image-745" title="flash-aid01" src="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid01-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Flash-Aid offers two ways of installing Flash, either by using the Quick Mode (which allows you to choose between the &#8220;stable&#8221; Flash included in the Ubuntu repositories and the &#8220;Beta&#8221; version from Adobe website), or by using an advanced mode, which also offers Gnash as an alternative, or allows you to supply a custom HTTP or FTP address.</p>
<p>Flash-Aid correctly detected and removed my currently plugin from inside ~/.mozilla/plugins, and after asking for the root password it fetched and installed the 32-bit plugin from Adobe homepage. The steps were pretty straightforward I believe:</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid03.png"><img class="aligncenter size-medium wp-image-747" title="flash-aid03" src="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid03-300x248.png" alt="" width="300" height="248" /></a></p>
<p>Removing already installed Flash plugins</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid04.png"><img class="aligncenter size-medium wp-image-748" title="flash-aid04" src="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid04-300x256.png" alt="" width="300" height="256" /></a></p>
<p>After prompting for the admin password, it starts installing the selected version of Flash</p>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid05.png"><img class="aligncenter size-medium wp-image-749" title="flash-aid05" src="http://www.tuxarena.com/wp-content/uploads/2011/06/flash-aid05-300x215.png" alt="" width="300" height="215" /></a></p>
<p>Considering the steps &#8211; install the add-on, restart Firefox, let Flash-Aid install Flash as root, then restart Firefox again, it&#8217;s pretty fast. It has the advantage that it detects the right version you need (32-bit or 64-bit), it removes old or incompatible Flash plugins that are eventually installed, and most important, it will install at demand the latest Flash version, since repositories ship the same version for a whole release cycle.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/flash-aid/">Download and install Flash-Aid</a><br />
<a href="http://www.webgapps.org/add-ons/flash-aid">Homepage</a><br />
<a href="http://ubuntuforums.org/showthread.php?t=1778817">http://ubuntuforums.org/showthread.php?t=1778817</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2011/06/flash-aid-add-on-painless-and-proper-flash-installation-in-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>8 More Bash Tips for Working Faster With the Shell (Part 2 of 2)</title>
		<link>http://www.tuxarena.com/2010/12/8-more-bash-tips-for-working-faster-with-the-shell-part-2-of-2/</link>
		<comments>http://www.tuxarena.com/2010/12/8-more-bash-tips-for-working-faster-with-the-shell-part-2-of-2/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 06:45:49 +0000</pubDate>
		<dc:creator>Craciun Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command-line]]></category>

		<guid isPermaLink="false">http://www.tuxarena.com/?p=508</guid>
		<description><![CDATA[This is the second article in this series, and brings eight additional tips for working faster with the shell. Here is the first article of the series, containing 10 tips. Create aliases for quick access to commands or one-liners Aliases are handy custom commands which can be used to make shortcuts to various commands, scripts [...]]]></description>
				<content:encoded><![CDATA[<p>This is the second article in this series, and brings eight additional tips for working faster with the shell. <a href="http://www.tuxarena.com/?p=257">Here</a> is the first article of the series, containing 10 tips.</p>
<div class="subtitle">Create aliases for quick access to commands or one-liners</div>
<p>Aliases are handy custom commands which can be used to make shortcuts to various commands, scripts or one-liners. Aliases can be added in the <b>~/.bashrc</b> file like this:</p>
<div class="code">
<pre>
alias name='command'
</pre>
</div>
<p><span id="more-508"></span><br />
Alternately, you can specify an external file and load it in .bashrc, like for example the default one, called <b>.bash_aliases</b>. Edit .bashrc and uncomment or add (if it doesn&#8217;t already exist) the following code:</p>
<div class="code">
<pre>
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi
</pre>
</div>
<p>This code checks to see if the file <b>~/.bash_aliases</b> exists, and if it does, it reads the contents from it. Here are examples of aliases and what they do:</p>
<pre><textarea cols=78 rows=6 wrap=off>
alias killfx='kill -9 $(pidof firefox-bin) # kills Firefox by sending SIGKILL using its process ID
alias upgrade='sudo apt-get update &#038;&#038; sudo apt-get upgrade' # upgrade a Ubuntu-based system
alias xterm='xterm -geometry 1280x1024' # start xterm with a custom geometry
alias src='. ~/.bash_profile' # source the ~/.bash_profile (read its contents and execute them)
alias lsh='ls -lhXG' # alias for ls to use long listing format, human readable sizes, sort and don't show groups
</textarea></pre>
<p>You can virtually define any aliases you want here. The <b>#</b> sign used after each alias means what follows is comment, it will be ignored by Bash when reading the file.</p>
<div class="subtitle">Use Page Up and Page Down to Search Through History</div>
<p>Here&#8217;s another tip. Adding the following two lines to ~/.inputrc will make PageUp and PageDown keys to search through history (if <b>~/.inputrc</b> doesn&#8217;t already exist create it):</p>
<div class="code">
<pre>
"\e[5~": history-search-backward
"\e[6~": history-search-forward
</pre>
</div>
<p>Now if you type a command followed by PageUp it will search for the last command that started with the pattern you specified.</p>
<p><i>Special thanks go to <a href="http://www.tuxarena.com/?p=257#comment-373">Alex Dekker</a> for this tip</i>.</p>
<div class="subtitle">Working with files starting with &#8220;-&#8221;</div>
<p>For this we will precede the files (or arguments) that start with &#8220;-&#8221; with &#8220;&#8211;&#8221;. For example:</p>
<div class="code">
<pre>
man gcc | grep -- -ansi
</pre>
</div>
<p>Will show only the lines which contain the pattern <b>-ansi</b> in the gcc manual page. Or:</p>
<div class="code">
<pre>
touch -- -file
rm -- -file
</pre>
</div>
<p>Will create a file called <b>-file</b> and then it will remove it. Also, <b>ls -l &#8212; -file</b> will use long listing format to show details about <b>-file</b>.</p>
<p><i>Special thanks go to <a href="http://www.tuxarena.com/?p=257#comment-284">Lawrence D&#8217;Oliveiro</a> for this tip.</i></p>
<div class="subtitle">Use Emacs-like shortcuts</div>
<p>The big advantage of these is that they use Ctrl and Alt (Meta) combination, which for a person who knows blind-typing is very useful, since he will not need to move his hand to reach keys like arrows, PgUp, PgDown, Home or End. Most of these shortcuts are used in the shell for fetching commands from history, edit text in a fast manner, or even navigate quickly in <b>less</b> pagers or in a manual page. Here are the shortcuts (^A means &#8220;press Ctrl and A at the same time&#8221;):</p>
<ul>
<li><b>^A</b> &#8211; go to the start of line
<li><b>^E</b> &#8211; go to the end of line
<li><b>^H</b> &#8211; erase one character to the left
<li><b>^D</b> &#8211; erase one character to the right, it also exits the shell by default if there is no character to delete
<li><b>^U</b> &#8211; erase everything from the cursor to start
<li><b>^K</b> &#8211; erase everything from the cursor to end
<li><b>^P</b> &#8211; bring the previous command in history
<li><b>^N</b> &#8211; bring the next command in history
<li><b>^C</b> &#8211; interrupt character, sends SIGTERM to the current application
</ul>
<div class="subtitle">Colored manual pages</div>
<p>Colored manual pages can really make text clearer and easier to read. Here&#8217;s a snippet I took from the web a while ago (I really don&#8217;t remember the address where I found this particular customization scheme &#8211; could it be from <a href="http://forums.opensuse.org/english/development/programming-scripting/414983-color-man-pages.html">here</a>?). Put the following inside <b>~/.bashrc</b>:</p>
<div class="code">
<pre>
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
</pre>
</div>
<p>And then source your .bashrc file:</p>
<div class="code">
<pre>
. ~/.bashrc
</pre>
</div>
<p>Here&#8217;s how the manual pages will look now:</p>
<div class="blank"></div>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2010/12/colored_man_pages.png"><img src="http://www.tuxarena.com/wp-content/uploads/2010/12/colored_man_pages-300x177.png" alt="" title="colored_man_pages" width="300" height="177" class="aligncenter size-medium wp-image-530" /></a></p>
<div class="subtitle">Copy/paste with Shift+Insert</div>
<p>This is yet another tip for working faster using either Shift+Insert or the middle mouse button. They both do the same thing: enter text from the clipboard in either the command-line or a shell text editor, like Nano (also works in Emacs, together with ^Y).</p>
<div class="subtitle">Using your custom-made scripts</div>
<p>With only basic Bash knowledge you can create your own time-savers scripts, or just fun ones. I have my own scripts inside the <b>~/bin</b> directory, which is included in my $PATH. For example, here is a greeting script:</p>
<div class="code">
<pre>
echo "Welcome to the dark side of the moon, $USER!"
echo 'System uptime:'
uptime
cal
</pre>
</div>
<p>Save it with a suggestive name, say <b>greeting.sh</b> and put it inside ~/bin. Now edit your <b>~/.bashrc</b> file and add the following line:</p>
<div class="code">
<pre>
. ~/bin/greeting.sh # or "source ~/bin/greeting.sh"
</pre>
</div>
<p>Now open a new shell to see the new greeting, or just source your ~/.bashrc file:</p>
<div class="code">
<pre>
. ~/.bashrc
</pre>
</div>
<p>Here&#8217;s how this looks like on my system:</p>
<div class="blank"></div>
<p><a href="http://www.tuxarena.com/wp-content/uploads/2010/12/bash_greeting.png"><img src="http://www.tuxarena.com/wp-content/uploads/2010/12/bash_greeting-300x85.png" alt="" title="bash_greeting" width="300" height="85" class="aligncenter size-medium wp-image-537" /></a></p>
<div class="subtitle">Create backup files faster</div>
<p>This tip can be used with virtually any command, since Bash will expand it, but it&#8217;s very useful for creating backup files. Say you have a filename called <b>very_long_filename</b>. To rename it you would normally do something like <b>mv very_long_filename very_long_filename.backup</b>. But here&#8217;s how to do it faster:</p>
<div class="code">
<pre>
mv very_long_filename{,.backup}
</pre>
</div>
<p>Bash will expand this command into the one showed above, and then execute it.</p>
<div class="blank"></div>
<p>Do you have some more additions to this? Please feel free to use the comments below and share them with us!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxarena.com/2010/12/8-more-bash-tips-for-working-faster-with-the-shell-part-2-of-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
