<?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>Simple Help &#187; Linux</title>
	<atom:link href="http://www.simplehelp.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simplehelp.net</link>
	<description>Common questions, simple answers</description>
	<lastBuildDate>Wed, 18 Nov 2009 15:12:32 +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>How to tweak your Linux machine&#8217;s history command</title>
		<link>http://www.simplehelp.net/2009/11/11/how-to-tweak-your-linux-machines-history-command/</link>
		<comments>http://www.simplehelp.net/2009/11/11/how-to-tweak-your-linux-machines-history-command/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:16:51 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3382</guid>
		<description><![CDATA[
If you are somewhat familiar with using the Linux or UNIX command line interface it is quite likely that you have used the history command. For those not familiar with it the history command allows you to search through the commands you have already run on your computer&#8217;s command line. 
An example of its usage [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>If you are somewhat familiar with using the Linux or UNIX command line interface it is quite likely that you have used the <strong>history</strong> command. For those not familiar with it the <strong>history</strong> command allows you to search through the commands you have already run on your computer&#8217;s command line. <span id="more-3382"></span></p>
<p>An example of its usage is:</p>
<p><strong># history | grep &#8220;kill&#8221;</strong></p>
<p>This will search for a command containing the term <strong>kill</strong> through the history of commands you have run on your computer. This is a basic example of the <strong>history</strong> command. There are certain limitations in this command. Let&#8217;s take a look at how you can tweak it a bit to work more effectively for you. One of the limitations I find bugging me quite often is that if you are running two terminal session at the same time the commands from the first session are erased from the history of commands. Not the smartest way the command should work, I think. Well let&#8217;s fix it then.</p>
<p>Log in to your account and launch a shell terminal. In your user&#8217;s home directory you should find a file called </strong>.bashrc</strong>. If this file does not exist, create it. To open the file use a command like the following, replacing <strong>user</strong> with your username:</p>
<p><strong># vim /home/user/.bashrc</strong></p>
<p>Add the following lines to the <strong>.bashrc</strong> file without any changes whatsoever:</p>
<p><strong>shopt -s histappend</strong><br />
<strong>PROMPT_COMMAND=&#8217;history -a&#8217;</strong></p>
<p>And voila, problem solved. Henceforth all your commands from single sessions as well as simultaneous sessions will be written to the command history file, and no overwriting will happen.</p>
<p>Another useful change I like to make to the <strong>history</strong> command&#8217;s configuration is removing duplicates from the history of commands. This way I get access to a lot more data and get it quicker. Open the <strong>.bashrc</strong> file once again and add the following lines in a new line:</p>
<p><strong>export HISTCONTROL=&#8221;ignoredups&#8221;<br />
export HISTIGNORE=&#8221;&amp;:ls:[bf]g:exit”</strong></p>
<p>Save the file and exit the text editor. Now the history command will check to see if a command already exists in the log file or not before adding any new information. A last modification I make to the <strong>history</strong> command&#8217;s configuration is adding spell check. Add the line shown below to the file <strong>.bashrc</strong> to help the <strong>history</strong> command check for spelling errors in command and suggest a valid command:</p>
<p><strong>shopt -s cdspell</strong></p>
<p>Save and exit. Now your Linux machine will be able to figure out when you type <strong>gerp</strong> instead of <strong>grep</strong>.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/07/24/how-to-see-a-detailed-history-of-the-commands-run-in-linux/" rel="bookmark" title="Permanent Link: How to see a detailed history of the commands run in Linux">How to see a detailed history of the commands run in Linux</a><br /><a href="http://www.simplehelp.net/2009/04/06/how-to-post-to-twitter-from-the-linux-command-line/" rel="bookmark" title="Permanent Link: How to post to Twitter from the Linux command line">How to post to Twitter from the Linux command line</a><br /><a href="http://www.simplehelp.net/2008/12/23/setting-the-date-on-your-linux-machine/" rel="bookmark" title="Permanent Link: How to set the date on your Linux machine">How to set the date on your Linux machine</a><br /><a href="http://www.simplehelp.net/2009/05/12/how-to-install-and-manage-packages-in-linux-with-rpm/" rel="bookmark" title="Permanent Link: How to install and manage packages in Linux with RPM">How to install and manage packages in Linux with RPM</a><br /><a href="http://www.simplehelp.net/2009/05/19/how-to-setup-and-use-yum-on-fedora-linux/" rel="bookmark" title="Permanent Link: How to setup and use YUM on Fedora Linux">How to setup and use YUM on Fedora Linux</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/11/11/how-to-tweak-your-linux-machines-history-command/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to convert HTML pages to PDF in Ubuntu Linux</title>
		<link>http://www.simplehelp.net/2009/11/10/how-to-convert-html-pages-to-pdf-in-ubuntu-linux/</link>
		<comments>http://www.simplehelp.net/2009/11/10/how-to-convert-html-pages-to-pdf-in-ubuntu-linux/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 07:50:08 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3376</guid>
		<description><![CDATA[
A really neat tool I was introduced to a few days back is  wkhtmltopdf, a freely distributed tool that allows you to convert HTML pages into PDF documents. This is not something I&#8217;ve found a lot of use for too often, but when I&#8217;ve needed it it&#8217;s been a life saver. Let&#8217;s take a [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>A really neat tool I was introduced to a few days back is <a href="http://code.google.com/p/wkhtmltopdf/" target="_blank" rel="nofollow"> wkhtmltopdf</a>, a freely distributed tool that allows you to convert HTML pages into PDF documents. This is not something I&#8217;ve found a lot of use for too often, but when I&#8217;ve needed it it&#8217;s been a life saver. Let&#8217;s take a look at how to set it up and use it. <span id="more-3376"></span></p>
<p>The installation of <strong>wkhtmltopdf</strong> is a lot less difficult that trying to pronounce the name of the project. As the project is not yet distributed as installable binaries you will need to compile it. </p>
<h2>Requirements:</h2>
<p>- QT 4.4 or above<br />
- CMake 1.6 or above<br />
- Subvertion</p>
<p>On  Ubuntu do the following to install the tools required to compile:</p>
<p><strong># sudo apt-get update</strong><br />
<strong># sudo apt-get install libqt4-dev qt4-dev-tools build-essential cmake</strong></p>
<p>Now check out the latest code for the application from the project&#8217;s SVN repositories.</p>
<p><strong># svn checkout http://wkhtmltopdf.googlecode.com/svn/trunk/ wkhtmltopdf</strong></p>
<p>Time to build and compile it:</p>
<p><strong># cd wkhtmltopdf</strong><br />
<strong># cmake -D CMAKE_INSTALL_PREFIX=/usr . </strong><br />
<strong># make</strong><br />
<strong># sudo make install</strong></p>
<p>Once you are done with the previous steps using <strong>wkhtmltopdf</strong> is a piece of cake. To convert a web page from HTML to PDF all you need to do is to run the following command:</p>
<p><strong># wkhtmltopdf http://www.simplehelp.net simplehelp.pdf</strong></p>
<p>The previous command will access the website <strong>http://www.simplehelp.net</strong> and create a PDF document with its contents. You obviously need a working Internet connection for this to work. You can also modify the above command slightly to convert an HTML file stored on your computer into a PDF document:</p>
<p><strong># wkhtmltopdf /home/calvin/sevenacross.html sevenacross.pdf</strong></p>
<p>Pretty neat stuff, eh! <strong>wkhtmltopdf</strong> has several options allowing you to make the PDF document in Portrait mode or Landscape, and so on. Visit the project&#8217;s website for more info on it.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2006/10/05/a-beginners-guide-to-lossless-audio/" rel="bookmark" title="Permanent Link: A beginners guide to lossless audio">A beginners guide to lossless audio</a><br /><a href="http://www.simplehelp.net/2008/09/17/how-to-install-adobe-air-in-ubuntu/" rel="bookmark" title="Permanent Link: How to install Adobe AIR in Ubuntu">How to install Adobe AIR in Ubuntu</a><br /><a href="http://www.simplehelp.net/2008/12/11/how-to-convert-flac-files-to-mp3-using-ubuntu-linux/" rel="bookmark" title="Permanent Link: How to convert .flac files to .mp3 using Ubuntu Linux">How to convert .flac files to .mp3 using Ubuntu Linux</a><br /><a href="http://www.simplehelp.net/2009/11/03/how-to-compress-png-images-to-speed-up-your-website/" rel="bookmark" title="Permanent Link: How to compress PNG images to speed up your website">How to compress PNG images to speed up your website</a><br /><a href="http://www.simplehelp.net/2007/07/27/how-to-play-rmvb-files-in-ubuntu/" rel="bookmark" title="Permanent Link: How to play .rmvb files in Ubuntu">How to play .rmvb files in Ubuntu</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/11/10/how-to-convert-html-pages-to-pdf-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to setup Ubuntu to synchronize its time over the Internet</title>
		<link>http://www.simplehelp.net/2009/11/06/how-to-setup-ubuntu-to-synchronize-its-time-over-the-internet/</link>
		<comments>http://www.simplehelp.net/2009/11/06/how-to-setup-ubuntu-to-synchronize-its-time-over-the-internet/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 08:45:48 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3367</guid>
		<description><![CDATA[
Oftentimes my Ubuntu desktop loses track of time. Really. What happens is that the time it maintains goes a few minutes here and there every month. So I like to use a very useful Linux service called NTP to help keep the clock on my Ubuntu desktop in sync with well maintained clocks over the [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>Oftentimes my Ubuntu desktop loses track of time. Really. What happens is that the time it maintains goes a few minutes here and there every month. So I like to use a very useful Linux service called <strong>NTP</strong> to help keep the clock on my Ubuntu desktop in sync with well maintained clocks over the Internet. Let&#8217;s look at how to set this up. <span id="more-3367"></span></p>
<p>You need an Ubuntu computer with Internet access. The access need not be on all the time, it&#8217;s fine even if the computer gets access on and off so that it can check with the clocks online and get in sync. Log into your Ubuntu computer and click on the <strong>System</strong> button at the top of you screen. Navigate to <strong>Administration</strong> -&gt; <strong>Time and Date</strong>. You&#8217;ll see a window pop up with the time and date setup in it. Click on the <strong>Unlock</strong> button and enter your password to proceed.</p>
<p><img src="http://www.simplehelp.net/wp-content/uploads/image011.png" alt="image01" /></p>
<p>In this window click on the drop down menu next to item titled <strong>Configuration</strong> You&#8217;ll see two options &#8211; <strong>Manual</strong> and <strong>Keep synchronized with Internet servers</strong>. Choose the second option. If you don&#8217;t have the <strong>NTP</strong> tools installed Ubuntu will inform you of it and ask if you want it to install them for you.</p>
<p><img src="http://www.simplehelp.net/wp-content/uploads/image022.png" alt="image02" /></p>
<p>Click on the button titled <strong>Install NTP support</strong>. It will ask you for your password then begin installing the required tools. Now we can proceed with setting up time synchronization. the next step is to tell Ubuntu which server you want it to sync the time with.</p>
<p>Click on the <strong>Select Servers</strong> button to pick which server you want to Ubuntu to use.</p>
<p><img src="http://www.simplehelp.net/wp-content/uploads/image031.png" alt="image03" width="427" height="175" class="aligncenter size-full wp-image-3370" /></p>
<p>The window shown in the screenshot below will pop up, giving you several options. Note that you can pick more than one server. This way if a server goes down for some reason Ubuntu will try getting the time from another server.</p>
<p><img src="http://www.simplehelp.net/wp-content/uploads/image04.png" alt="image04" width="323" height="316" class="aligncenter size-full wp-image-3371" /></p>
<p>Click on the <strong>Close</strong> button once you are done picking servers. One last thing you need to check is that the <strong>NTP</strong> is set to run at boot. To do this go to <strong>System -&gt; Administration -&gt; Services</strong> and make sure that the item titled <strong>Clock synchronization service (ntp)</strong> is checked.</p>
<p><img src="http://www.simplehelp.net/wp-content/uploads/image05.png" alt="image05" /></p>
<p>Voila. Now the clock on your Ubuntu computer will sync with the clocks online periodically, making sure you are always on time.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/12/23/setting-the-date-on-your-linux-machine/" rel="bookmark" title="Permanent Link: How to set the date on your Linux machine">How to set the date on your Linux machine</a><br /><a href="http://www.simplehelp.net/2007/07/08/how-to-use-banshee-to-manage-your-ipod-in-ubuntu/" rel="bookmark" title="Permanent Link: How to use Banshee to manage your iPod in Ubuntu">How to use Banshee to manage your iPod in Ubuntu</a><br /><a href="http://www.simplehelp.net/2008/08/07/how-to-install-and-setup-netbook-remix-on-the-eee-pc/" rel="bookmark" title="Permanent Link: How to install and setup Netbook Remix on the Eee PC">How to install and setup Netbook Remix on the Eee PC</a><br /><a href="http://www.simplehelp.net/2008/08/22/using-elisa-as-your-ubuntu-media-center/" rel="bookmark" title="Permanent Link: Using Elisa as your Ubuntu media center">Using Elisa as your Ubuntu media center</a><br /><a href="http://www.simplehelp.net/2007/10/04/how-to-automatically-sign-in-to-ubuntu/" rel="bookmark" title="Permanent Link: How to automatically sign in to Ubuntu">How to automatically sign in to Ubuntu</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/11/06/how-to-setup-ubuntu-to-synchronize-its-time-over-the-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to compress PNG images to speed up your website</title>
		<link>http://www.simplehelp.net/2009/11/03/how-to-compress-png-images-to-speed-up-your-website/</link>
		<comments>http://www.simplehelp.net/2009/11/03/how-to-compress-png-images-to-speed-up-your-website/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:00:40 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Design & Dev]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3349</guid>
		<description><![CDATA[

If you have a blog or a website with a lot of content sometimes the images can take a toll on the load time of the pages. There are a number of steps you can take to speed things up. If you analyze the loading of your website you might notice that the images take [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_web-design-development.jpg" align="right" width="50" height="50" alt="Web Design &amp; Dev" />
<p>If you have a blog or a website with a lot of content sometimes the images can take a toll on the load time of the pages. There are a number of steps you can take to speed things up. If you analyze the loading of your website you might notice that the images take up a huge part of the load time. Let&#8217;s take a look at how you can compress your .png images to improve on this figure. <span id="more-3349"></span></p>
<p>We&#8217;ll use the tool <strong>pngcrush</strong> for this purpose. <strong>pngcrush</strong> is a free and open source command line tool that, as the name suggests, compresses PNG images. Take a look at the projects <a href="http://pmt.sourceforge.net/pngcrush/" target="_blank" rel="nofollow">website</a> for detailed information on how to use it. We will cover the basics in this article.</p>
<h2>Installation</h2>
<p>Most modern distributions of Linux such as Fedora and Ubuntu have <strong>pngcrush</strong> available directly in their default repositories. So, to install it on you Ubuntu computer execute the following command:</p>
<p><strong># sudo apt-get install pngcrush</strong></p>
<p>On Fedora do the following:</p>
<p><strong># yum install pngcrush</strong></p>
<h2>Usage</h2>
<p><strong>pngcrush</strong> optimizes a PNG graphics file by reducing the size of the files IDAT chunk. The process is not simple. The great thing about <strong>pngcrush</strong> is that the authors of the tool have simplified things for you. They ship it with a great option &#8211; <strong>brute</strong>. When you use this option you effectively tell <strong>pngcrush</strong> to try and use the most suitable method to compress the image at hand. There are about 114 different filters that can be used, so this option is mighty useful. Here&#8217;s how you would use it to compress an image:</p>
<p><strong># pngcrush -brute -e &#8220;.compressed.png&#8221; image01.png</strong></p>
<p>The two options used here are <strong>-brute</strong> which I just explained, and <strong>-e</strong>. The second option tells <strong>pngcrush</strong> what extension to add the the filenames. So after the process of crushing is complete the compressed version of the file <strong>image01.png</strong> will be called <strong>image01.compressed.png</strong>. you can change the extension if you like.</p>
<p>You can also slightly modify the above command to compress several <strong>PNG</strong> files in a directory. Execute the following command:</p>
<p><strong># pngcrush -brute -d &#8220;/var/www/html/website/images/&#8221;  *.png</strong></p>
<p>The above command uses a new option, <strong>-d</strong>.  This option tells <strong>pngcrush</strong> where to place the compressed image files after the compression is complete. The above command will compress all the <strong>PNG</strong> file in the current directory and place them in <strong>/var/www/html/website/images/</strong>.</p>
<p>I strongly suggest that you read up more about this tool and its options on the projects website. There are a lot of options that might help you speed up the process of compression or do a better job of it. Put the new images into your website and watch your pages load faster.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/12/15/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/" rel="bookmark" title="Permanent Link: How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux">How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux</a><br /><a href="http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/" rel="bookmark" title="Permanent Link: How to encrypt your Linux backups">How to encrypt your Linux backups</a><br /><a href="http://www.simplehelp.net/2009/11/04/how-to-test-your-internet-connection-speed/" rel="bookmark" title="Permanent Link: How to test your Internet connection speed">How to test your Internet connection speed</a><br /><a href="http://www.simplehelp.net/2006/07/05/cable-modem-troubleshooting-high-speed-surfing-hs200/" rel="bookmark" title="Permanent Link: Cable Modem Troubleshooting: High Speed Surfing HS200">Cable Modem Troubleshooting: High Speed Surfing HS200</a><br /><a href="http://www.simplehelp.net/2006/07/05/cable-modem-troubleshooting-high-speed-surfing-sm100/" rel="bookmark" title="Permanent Link: Cable Modem Troubleshooting: High Speed Surfing SM100">Cable Modem Troubleshooting: High Speed Surfing SM100</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/11/03/how-to-compress-png-images-to-speed-up-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use the OR operator in grep</title>
		<link>http://www.simplehelp.net/2009/09/28/how-to-use-the-or-operator-in-grep/</link>
		<comments>http://www.simplehelp.net/2009/09/28/how-to-use-the-or-operator-in-grep/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:20:35 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3265</guid>
		<description><![CDATA[
For anyone familiar with the Linux or UNIX command line interface it&#8217;s quite likely that grep has crossed your path sometime. grep is a wonderful command line tool that helps you search for a word or words through files. It ships with almost all flavors of Linux by default. For those who aren&#8217;t familiar with [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>For anyone familiar with the Linux or UNIX command line interface it&#8217;s quite likely that grep has crossed your path sometime. grep is a wonderful command line tool that helps you search for a word or words through files. It ships with almost all flavors of Linux by default. For those who aren&#8217;t familiar with grep here&#8217;s a quick primer. <span id="more-3265"></span></p>
<p><strong># grep www /etc/httpd/conf/httpd.conf</strong> </p>
<blockquote><p>#ServerName www.example.com:80<br />
DocumentRoot &#8220;/var/www/html&#8221;<br />
# e.g., www.apache.org (on) or 204.62.129.132 (off).<br />
Alias /icons/ &#8220;/var/www/icons/&#8221;</p></blockquote>
<p>In the example above we are using grep to search for the term <strong>www</strong> in the file <strong>/etc/httpd/conf/httpd.conf</strong>. 4 results were returned. It&#8217;s a pretty straightforward command. grep ships with a lot more functionality. Feel free to browse through the manpage for grep, which you can get to by running <strong>man grep</strong>.</p>
<p>Now we&#8217;ll look at a feature of grep that allows you to search through a document for two terms, using command only. Let&#8217;s modify the command shown above to search for <strong>www</strong>, and also for the term <strong>server</strong>.</p>
<p><strong># grep &#8216;www&#92;|server&#8217; /etc/httpd/conf/httpd.conf</strong></p>
<blockquote><p>#    SetHandler server-status<br />
# Allow remote server configuration reports, with the URL of<br />
#  http://servername/server-info (requires that mod_info.c be loaded).<br />
#ServerName www.example.com:80<br />
DocumentRoot &#8220;/var/www/html&#8221;<br />
# e.g., www.apache.org (on) or 204.62.129.132 (off).<br />
Alias /icons/ &#8220;/var/www/icons/&#8221;<br />
#    SetHandler server-info<br />
# enable the proxy server:<br />
# (&#8221;Full&#8221; adds the server version; &#8220;Block&#8221; removes all outgoing Via: headers)<br />
# use only name-based virtual hosts so the server doesn&#8217;t need to worry about<br />
# server name.</p></blockquote>
<p>So as you can see the output was much larger in the second command (12 lines were returned).  Note how we modified the first command and changed the search term to <strong>&#8216;www&#92;|server&#8217;</strong>. Remember to use the <strong>forward slash</strong> ( &#92; ) before the <strong>pipe</strong>, or else you will not get the same result. Alternately you can also use the tool <strong>egrep</strong> to run a similar search without using the <strong>forward slash</strong>. Try this:</p>
<p><strong># egrep &#8216;www|server&#8217; /etc/httpd/conf/httpd.conf</strong></p>
<blockquote><p>#    SetHandler server-status<br />
# Allow remote server configuration reports, with the URL of<br />
#  http://servername/server-info (requires that mod_info.c be loaded).<br />
#ServerName www.example.com:80<br />
DocumentRoot &#8220;/var/www/html&#8221;<br />
# e.g., www.apache.org (on) or 204.62.129.132 (off).<br />
Alias /icons/ &#8220;/var/www/icons/&#8221;<br />
#    SetHandler server-info<br />
# enable the proxy server:<br />
# (&#8221;Full&#8221; adds the server version; &#8220;Block&#8221; removes all outgoing Via: headers)<br />
# use only name-based virtual hosts so the server doesn&#8217;t need to worry about<br />
# server name.</p></blockquote>
<p>You can also add another pipe and search for another term also. You command would look like <strong># egrep &#8216;www|server|apache&#8217; /etc/httpd/conf/httpd.conf</strong>.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/01/19/monitor-your-linux-machine-with-netstat/" rel="bookmark" title="Permanent Link: How to monitor your Linux machine with netstat">How to monitor your Linux machine with netstat</a><br /><a href="http://www.simplehelp.net/2009/07/24/how-to-see-a-detailed-history-of-the-commands-run-in-linux/" rel="bookmark" title="Permanent Link: How to see a detailed history of the commands run in Linux">How to see a detailed history of the commands run in Linux</a><br /><a href="http://www.simplehelp.net/2009/05/12/how-to-install-and-manage-packages-in-linux-with-rpm/" rel="bookmark" title="Permanent Link: How to install and manage packages in Linux with RPM">How to install and manage packages in Linux with RPM</a><br /><a href="http://www.simplehelp.net/2009/04/07/how-to-find-your-public-ip-address-with-the-linux-command-line/" rel="bookmark" title="Permanent Link: How to find your public IP address with the Linux command line">How to find your public IP address with the Linux command line</a><br /><a href="http://www.simplehelp.net/2008/12/22/running-process-in-the-background-with-nohup/" rel="bookmark" title="Permanent Link: Running process in the background with Nohup">Running process in the background with Nohup</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/09/28/how-to-use-the-or-operator-in-grep/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to find all the empty files in a directory</title>
		<link>http://www.simplehelp.net/2009/09/25/how-to-find-all-the-empty-files-in-a-directory/</link>
		<comments>http://www.simplehelp.net/2009/09/25/how-to-find-all-the-empty-files-in-a-directory/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:00:23 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3167</guid>
		<description><![CDATA[
The other day I was doing some cleaning on my Linux server and I noticed that over time people had created and left empty files. So I decided to create a shell script that would run through the system and let me know how many files like this existed, along with their path. 
Here&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>The other day I was doing some cleaning on my Linux server and I noticed that over time people had created and left empty files. So I decided to create a shell script that would run through the system and let me know how many files like this existed, along with their path. <span id="more-3167"></span></p>
<p>Here&#8217;s a simple command that will allow you to run a similar search:</p>
<p><strong># find -L /home/stewiegriffin -maxdepth 1  -type f -size 0</strong><br />
/home/stewiegriffin/temp.log<br />
/home/stewiegriffin/brainstorm_notes.txt<br />
/home/stewiegriffin/mail.log<br />
/home/stewiegriffin/niptuck.html</p>
<p>What the above shown command does is that it searches for files that have a size of <strong>0</strong>. By default, the find command excludes symbolic files, so we use the <strong>-L</strong> option to include them. The option <strong>maxdepth</strong> tells the command to search only in the main directory and not go into sub directories. <strong>type -f</strong> tells the command to only look at regular files.</p>
<p>If you run the same command without the <strong>maxdepth 1</strong> option it will search for empty files in all the directories inside of <strong>/home/stewiegriffin</strong>.  You can also play with the options <strong>maxdepth</strong> and <strong>mindepth</strong> if you want to regulate the depth of the search. This is really very helpful if you have a lot of levels of directories and a lot of files to go through.</p>
<p>Of course, if you want you can also reverse this search and ask the command to look for all non-empty files. All you need to do is use the above command and add an exclamation mark in the <strong>size</strong> parameter:</p>
<p><strong># find -L /home/stewiegriffin -maxdepth 1  -type f ! -size 0</strong><br />
/home/stewiegriffin/apache.log<br />
/home/stewiegriffin/how_to_log_your_actions.txt<br />
/home/stewiegriffin/maillog.log<br />
/home/stewiegriffin/niptuck01.html<br />
/home/stewiegriffin/index.html<br />
/home/stewiegriffin/test.php</p>
<p>Just be careful while running this. It may return many, many results.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/05/08/bash-one-liner-how-to-compress-move-and-extract-a-directory/" rel="bookmark" title="Permanent Link: Bash one liner &#8211; how to compress, move, and extract a directory">Bash one liner &#8211; how to compress, move, and extract a directory</a><br /><a href="http://www.simplehelp.net/2009/02/18/linux-tip-overcoming-the-binrm-argument-list-too-long-error/" rel="bookmark" title="Permanent Link: How to resolve the &#039;/bin/rm: Argument list too long&#039; error">How to resolve the &#039;/bin/rm: Argument list too long&#039; error</a><br /><a href="http://www.simplehelp.net/2008/12/30/linux-disk-detective/" rel="bookmark" title="Permanent Link: How to determine your free disk space in Linux">How to determine your free disk space in Linux</a><br /><a href="http://www.simplehelp.net/2008/12/24/linux-command-line-magic-find-and-replace/" rel="bookmark" title="Permanent Link: Linux command line magic &#8211; find and replace">Linux command line magic &#8211; find and replace</a><br /><a href="http://www.simplehelp.net/2008/12/18/find-with-linux/" rel="bookmark" title="Permanent Link: Using the &#039;find&#039; command with Linux">Using the &#039;find&#039; command with Linux</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/09/25/how-to-find-all-the-empty-files-in-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup slow query logging in MySQL</title>
		<link>http://www.simplehelp.net/2009/09/22/how-to-setup-slow-query-logging-in-mysql/</link>
		<comments>http://www.simplehelp.net/2009/09/22/how-to-setup-slow-query-logging-in-mysql/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 10:22:11 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3176</guid>
		<description><![CDATA[
If you run or administer a production MySQL server it&#8217;s quite likely that it sometimes runs a little slow, and can be a very time consuming effort to figure out why. To be able to pinpoint the query that slows the DB down can be hard to track down. MySQL has an option to help [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>If you run or administer a production MySQL server it&#8217;s quite likely that it sometimes runs a little slow, and can be a very time consuming effort to figure out why. To be able to pinpoint the query that slows the DB down can be hard to track down. MySQL has an option to help you out. It comes with an option to log slow queries. This way when you find your database server running slower than usual you can open this log file in a text editor and see what queries are running slow. Let&#8217;s look at how to set this up.<span id="more-3176"></span></p>
<p>First open your MySQL server&#8217;s configuration file, <strong>my.cnf</strong>. On Linux this should be in the <strong>/etc</strong> directory. Look to see if the parameter <strong>log-slow-queries</strong> has already been set. If not, then set it to something like this:</p>
<p><strong>log-slow-queries = /var/log/mysql/mysql-slow.log</strong></p>
<p>You also need to set the length of time before a query is fit to be considered a <strong>slow query</strong>. On my server I have set it to 30 seconds, like this:</p>
<p><strong>long_query_time = 30</strong></p>
<p>Restart your MySQL server, and then watch the <strong>mysql-slow.log</strong> file. Whenever a query takes longer to complete than 30 seconds, or whatever you set in <strong>my.cnf</strong>, the query will be logged in mysql-slow.log. Now debugging MySQL queries should be a lot simpler and quicker for you. Do remember to check this file every once in a while. What might help is to <a href="http://www.simplehelp.net/2008/11/17/increase-your-linuxunix-productivity-how-to-use-crontab/">setup a cron job</a> to mail you this file once every few days.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/28/how-to-monitor-mysql-in-real-time-with-mytop/" rel="bookmark" title="Permanent Link: How to monitor MySQL in real-time with mytop">How to monitor MySQL in real-time with mytop</a><br /><a href="http://www.simplehelp.net/2009/04/22/how-to-remotely-access-your-mysql-in-a-secure-manner/" rel="bookmark" title="Permanent Link: How to remotely access your MySQL in a secure manner">How to remotely access your MySQL in a secure manner</a><br /><a href="http://www.simplehelp.net/2009/05/08/bash-one-liner-how-to-compress-move-and-extract-a-directory/" rel="bookmark" title="Permanent Link: Bash one liner &#8211; how to compress, move, and extract a directory">Bash one liner &#8211; how to compress, move, and extract a directory</a><br /><a href="http://www.simplehelp.net/2009/04/27/how-to-get-a-detailed-mysql-status-report/" rel="bookmark" title="Permanent Link: How to get a detailed MySQL status report">How to get a detailed MySQL status report</a><br /><a href="http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/" rel="bookmark" title="Permanent Link: How to reset a lost MySQL root password">How to reset a lost MySQL root password</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/09/22/how-to-setup-slow-query-logging-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to see a detailed history of the commands run in Linux</title>
		<link>http://www.simplehelp.net/2009/07/24/how-to-see-a-detailed-history-of-the-commands-run-in-linux/</link>
		<comments>http://www.simplehelp.net/2009/07/24/how-to-see-a-detailed-history-of-the-commands-run-in-linux/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 10:07:41 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2972</guid>
		<description><![CDATA[
If you use or administer a Linux machine it can be quite useful to be able to take a look at the history of commands that have been executed on a machine. This can be pretty useful when debugging and issue. I usually use the command history to help me with this. 
# history
  [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>If you use or administer a Linux machine it can be quite useful to be able to take a look at the history of commands that have been executed on a machine. This can be pretty useful when debugging and issue. I usually use the command <strong>history</strong> to help me with this. <span id="more-2972"></span></p>
<p><strong># history</strong><br />
  &#8230;<br />
  946  rpm -R mutt-1.4.1-11.rhel4.i386.rpm<br />
  947  rpm -qR mutt-1.4.1-11.rhel4.i386.rpm<br />
  948  sudp rpm -qa | mail<br />
  949  sudo rpm -qa | mail<br />
  950  sudo rpm -qa | grep mail<br />
  951  rpm -qR sendmail-8.13.1-3.2.el4<br />
  952  cd scripts/log_parse/<br />
  &#8230;</p>
<p>This command gives me a straightforward list of the commands executed on this machine by the user I&#8217;m currently logged in as. However, sometimes I need a lot more information than just this. I need to know which command was executed at what time. For this I make a small modification to the commands settings, adding the date and time to the information output by the command:</p>
<p><strong># export HISTTIMEFORMAT=&#8221;%F %T &#8220;</strong></p>
<p>Now run the <strong>history</strong> and see the difference:</p>
<p><strong># history</strong><br />
  &#8230;<br />
  946 2009-07-20 08:12:33 rpm -R mutt-1.4.1-11.rhel4.i386.rpm<br />
  947 2009-07-20 08:09:33 rpm -qR mutt-1.4.1-11.rhel4.i386.rpm<br />
  948 2009-07-20 09:49:44 sudp rpm -qa | mail<br />
  949 2009-07-20 10:37:33 sudo rpm -qa | mail<br />
  950 2009-07-20 10:17:13 sudo rpm -qa | grep mail<br />
  951 2009-07-20 10:12:23 rpm -qR sendmail-8.13.1-3.2.el4<br />
  952 2009-07-20 10:22:43 cd scripts/log_parse/<br />
  &#8230;</p>
<p>Add this command to your users <strong>.bashrc</strong> file to make the change permanent.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/11/11/how-to-tweak-your-linux-machines-history-command/" rel="bookmark" title="Permanent Link: How to tweak your Linux machine&#8217;s history command">How to tweak your Linux machine&#8217;s history command</a><br /><a href="http://www.simplehelp.net/2009/04/08/how-to-save-the-output-of-a-linux-command-to-a-file/" rel="bookmark" title="Permanent Link: How to save the output of a Linux command to a file">How to save the output of a Linux command to a file</a><br /><a href="http://www.simplehelp.net/2006/07/03/how-to-clear-your-browsers-history-the-list-of-sites-youve-visited/" rel="bookmark" title="Permanent Link: How to clear your browsers history (the list of sites you&#039;ve visited)">How to clear your browsers history (the list of sites you&#039;ve visited)</a><br /><a href="http://www.simplehelp.net/2007/06/12/how-to-add-commands-to-the-os-x-right-click-menu/" rel="bookmark" title="Permanent Link: How to add commands to the OS X &quot;right-click&quot; menu">How to add commands to the OS X &quot;right-click&quot; menu</a><br /><a href="http://www.simplehelp.net/2006/10/05/an-introduction-to-the-os-x-terminal/" rel="bookmark" title="Permanent Link: An introduction to the OS X Terminal">An introduction to the OS X Terminal</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/07/24/how-to-see-a-detailed-history-of-the-commands-run-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recursively copy files from an FTP server with Linux</title>
		<link>http://www.simplehelp.net/2009/07/20/how-to-recursively-copy-files-from-an-ftp-server-with-linux/</link>
		<comments>http://www.simplehelp.net/2009/07/20/how-to-recursively-copy-files-from-an-ftp-server-with-linux/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 19:50:19 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2978</guid>
		<description><![CDATA[
The other day I was migrating my hosting from one server to another. My previous hosting only gave me FTP access. The new host came enabled with SSH and a complete Linux environment. I wanted to migrate the data from my old host to the new one. Here&#8217;s how I moved all my data. 
 [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>The other day I was migrating my hosting from one server to another. My previous hosting only gave me FTP access. The new host came enabled with SSH and a complete Linux environment. I wanted to migrate the data from my old host to the new one. Here&#8217;s how I moved all my data. <span id="more-2978"></span></p>
<p> I used the following command for the migration:</p>
<p><strong># ncftpget -R -v -u &#8220;remoteuser&#8221; -p &#8220;password&#8221; ftp://remotserver.com /home/localdir /remotedir</strong></p>
<p><a href="http://www.ncftp.com/" target="_blank">NC FTP</a> is a really cool FTP client for the Linux command line. It ships by default with most Linux distributions. It comes installed with a few command such as <strong>ncftpget</strong> and <strong>ncftpput</strong>. In this example we&#8217;re using the first of the two commands. Here&#8217;s a breakup of the command.</p>
<p><strong>-R -v</strong> These two tell ncftpget to get the files recursively, and make the output verbose.<br />
<strong>-u -p</strong> These two parameters are followed by the username and password for the FTP session.<br />
<strong>ftp://remotserver.com</strong> This is the IP address or the domain of the remote FTP server.<br />
<strong>/home/localdir</strong> This is the path of the directory in your local machine where you want to copy the remote files<br />
<strong>/remotedir</strong> This is path of the directory you want to copy in the remote server</p>
<p>Just be careful not to mix up the local and remote directories when you run the command. Otherwise, it should be pretty straightforward.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/15/how-to-redirect-traffic-to-another-machine-in-linux/" rel="bookmark" title="Permanent Link: How to redirect traffic to another machine in Linux">How to redirect traffic to another machine in Linux</a><br /><a href="http://www.simplehelp.net/2009/04/24/how-to-format-and-mount-a-usb-hard-drive-in-linux/" rel="bookmark" title="Permanent Link: How to format and mount a USB hard drive in Linux">How to format and mount a USB hard drive in Linux</a><br /><a href="http://www.simplehelp.net/2008/12/17/how-to-ssh-to-your-remote-server-without-entering-a-password-every-time/" rel="bookmark" title="Permanent Link: How to SSH to your remote server without entering a password every time">How to SSH to your remote server without entering a password every time</a><br /><a href="http://www.simplehelp.net/2009/04/16/how-to-prevent-your-ssh-session-from-disconnecting-in-linux/" rel="bookmark" title="Permanent Link: How to prevent your SSH session from disconnecting in Linux">How to prevent your SSH session from disconnecting in Linux</a><br /><a href="http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/" rel="bookmark" title="Permanent Link: How to password protect files in Linux">How to password protect files in Linux</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/07/20/how-to-recursively-copy-files-from-an-ftp-server-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get a list of files an RPM package depends on</title>
		<link>http://www.simplehelp.net/2009/07/15/how-to-get-a-list-of-packaged-an-rpm-depends-on/</link>
		<comments>http://www.simplehelp.net/2009/07/15/how-to-get-a-list-of-packaged-an-rpm-depends-on/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 16:57:12 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2964</guid>
		<description><![CDATA[
Sometimes when you are trying to uninstall or upgrade some software on a Linux machine you run into dependency related issues. Just about everyone I know who works with RPM based distributions has experienced what is known as &#8220;rpm hell&#8221; at one time or another. Here&#8217;s something to help you a bit if you are [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>Sometimes when you are trying to uninstall or upgrade some software on a Linux machine you run into dependency related issues. Just about everyone I know who works with RPM based distributions has experienced what is known as &#8220;rpm hell&#8221; at one time or another. Here&#8217;s something to help you a bit if you are stuck in one of those situations. <span id="more-2964"></span></p>
<p>Let&#8217;s look at how to check what files an installed RPM depends on.</p>
<p>Say you are trying to upgrade or uninstall the RPM of <strong>sendmail</strong> from your Linux computer. You might run into dependency issues when you run the uninstall command:</p>
<p><strong># rpm -e sendmail-8.13.1-3.2</strong></p>
<p>In such a case it might be useful to take a look at what files this package depends on. Use the following command:</p>
<p><strong># rpm -qR sendmail-8.13.1-3.2</strong><br />
/bin/bash<br />
/bin/mktemp<br />
/bin/sh<br />
/bin/sh<br />
/bin/sh<br />
/bin/sh<br />
/bin/sh<br />
/usr/sbin/alternatives<br />
/usr/sbin/useradd<br />
bash &gt;= 2.0<br />
chkconfig &gt;= 1.3<br />
config(sendmail) = 8.13.1-3.2.el4<br />
cyrus-sasl<br />
fileutils<br />
gawk<br />
libc.so.6<br />
libc.so.6(GLIBC_2.0)<br />
libc.so.6(GLIBC_2.1)<br />
&#8230;</p>
<p>Now you can see a list of files that the <strong>sendmail</strong> package depends on and you&#8217;ll be better equipped to debug the failed uninstallation process.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/09/14/how-to-recover-lost-windows-passwords/" rel="bookmark" title="Permanent Link: How to recover lost Windows passwords">How to recover lost Windows passwords</a><br /><a href="http://www.simplehelp.net/2009/05/12/how-to-install-and-manage-packages-in-linux-with-rpm/" rel="bookmark" title="Permanent Link: How to install and manage packages in Linux with RPM">How to install and manage packages in Linux with RPM</a><br /><a href="http://www.simplehelp.net/2008/10/15/how-to-install-additional-fonts-for-putty-on-the-n95/" rel="bookmark" title="Permanent Link: How to install additional fonts for PuTTY on the N95">How to install additional fonts for PuTTY on the N95</a><br /><a href="http://www.simplehelp.net/2006/07/11/how-to-lower-the-amount-of-memory-that-firefox-uses/" rel="bookmark" title="Permanent Link: How to lower the amount of memory that Firefox uses">How to lower the amount of memory that Firefox uses</a><br /><a href="http://www.simplehelp.net/2009/03/02/how-to-split-a-single-flac-file-into-multiple-tracks/" rel="bookmark" title="Permanent Link: How to split a single flac file into multiple tracks">How to split a single flac file into multiple tracks</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/07/15/how-to-get-a-list-of-packaged-an-rpm-depends-on/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to view live updates in a file under Linux</title>
		<link>http://www.simplehelp.net/2009/06/30/how-to-view-live-updates-in-a-file-under-linux/</link>
		<comments>http://www.simplehelp.net/2009/06/30/how-to-view-live-updates-in-a-file-under-linux/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 12:00:20 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2922</guid>
		<description><![CDATA[
If you administer a Linux server or are a developer it is quite likely that you might need to watch a file to check for live updates to it. It could be a log file which you want to keep an eye on to see if any errors or messages appear, or it could just [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>If you administer a Linux server or are a developer it is quite likely that you might need to watch a file to check for live updates to it. It could be a log file which you want to keep an eye on to see if any errors or messages appear, or it could just be a file with some data written into it. Here&#8217;s a way you can have that file update itself rather than your having to hit the refresh button constantly. <span id="more-2922"></span></p>
<p>Say you want to monitor the Apache web server log file, <strong>/var/log/http/access.log</strong>. Use the following command to get live updates:</p>
<p><strong># tail -f /var/log/http/access.log</strong></p>
<p>When you hit the Return key you should see the last few entries in the file (if there are any) and then the command will wait for further updates to the file and update automatically. One drawback of this command is that you can not scroll up or down using tail. Another drawback of this command is that if you are monitoring a file that gets rolled (the file gets moved to another file and a new blank file is used instead of the first one), then this command will stop the updates. We have a solution for the second problem. Use the following syntax:</p>
<p><strong># tail -F /var/log/http/access.log</strong></p>
<p>The upper case <strong>-F</strong> ensures that even if the file rolls it will continue reading from the new file, which is quite useful. I usually just use this option regardless of whether I think the file might roll or not.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/07/06/how-to-backup-your-windows-live-contacts/" rel="bookmark" title="Permanent Link: How to backup your Windows Live Contacts">How to backup your Windows Live Contacts</a><br /><a href="http://www.simplehelp.net/2007/07/16/how-to-customize-windows-live-messenger-remove-ads-addremove-buttons-etc/" rel="bookmark" title="Permanent Link: How to customize Windows Live Messenger (remove ads, add/remove buttons etc)">How to customize Windows Live Messenger (remove ads, add/remove buttons etc)</a><br /><a href="http://www.simplehelp.net/2009/01/27/5-great-web-comics/" rel="bookmark" title="Permanent Link: 5 Great Web Comics">5 Great Web Comics</a><br /><a href="http://www.simplehelp.net/2009/05/02/how-to-securely-clean-up-data-on-a-hard-disk-on-linux/" rel="bookmark" title="Permanent Link: How to securely clean up data on a hard disk on Linux">How to securely clean up data on a hard disk on Linux</a><br /><a href="http://www.simplehelp.net/2007/07/21/simplehelp-updates/" rel="bookmark" title="Permanent Link: Simplehelp Updates">Simplehelp Updates</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/06/30/how-to-view-live-updates-in-a-file-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to password protect files in Linux</title>
		<link>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/</link>
		<comments>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 11:40:57 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2929</guid>
		<description><![CDATA[

If you store important information on your Linux server and want to make sure it is for your eyes only you need to password protect these files. Let&#8217;s see how you can do this with Linux. 
First, pick a good password. There are a few websites on the Internet that help you generate strong passwords. [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>If you store important information on your Linux server and want to make sure it is for your eyes only you need to password protect these files. Let&#8217;s see how you can do this with Linux. <span id="more-2929"></span></p>
<p>First, pick a good password. There are a few websites on the Internet that help you generate strong passwords. Try and pick an alphanumeric password. Something such as <strong>Rv7fkcxASW8h</strong> would be a good choice.</p>
<p>Now check to see if you have the package <strong>gpg</strong> installed on your computer. Run the following command to check:</p>
<p><strong># whereis gpg</strong><br />
gpg: /usr/bin/gpg /usr/share/man/man1/gpg.1.gz</p>
<p>If you get an output like the one shown above it means you have the required package installed. If not, check your Linux distribution&#8217;s documentation to see how you can install the GPG package.</p>
<p>Say you want to password protect a file called <strong>dbbackup.zip</strong> with the password <strong>Rv7fkcxASW8h</strong> here&#8217;s how you would go about it:</p>
<p><strong># gpg -c dbbackup.zip</strong></p>
<p>When you enter this you will be requested to enter a passphrase, which is the password you want to protect the file with. Enter the password twice. Now you should see a file called <strong>dbbackup.zip.gpg</strong> in the same directory as the original file. This is the encrypted and password protected copy of the original file. You can store this file on your hard drive or ship it to someone on a DVD knowing that it will be very hard and nearly impossible for most people to crack it.</p>
<p>When you want to read the file you will need to remove the password protected encryption. For that execute the following command:</p>
<p><strong>gpg dbbackup.zip.gpg</strong></p>
<p>You will be asked to enter the password using which the file was protected. Enter that and you should be in business. Note that this only works for files and not for folders. You should create a zip or tar archive of  the files you want to secure and then add the password protected encryption to it.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/" rel="bookmark" title="Permanent Link: How to encrypt your Linux backups">How to encrypt your Linux backups</a><br /><a href="http://www.simplehelp.net/2009/07/20/how-to-recursively-copy-files-from-an-ftp-server-with-linux/" rel="bookmark" title="Permanent Link: How to recursively copy files from an FTP server with Linux">How to recursively copy files from an FTP server with Linux</a><br /><a href="http://www.simplehelp.net/2007/09/10/9-ways-to-secure-your-wordpress-blog/" rel="bookmark" title="Permanent Link: 9 easy ways to secure your WordPress blog">9 easy ways to secure your WordPress blog</a><br /><a href="http://www.simplehelp.net/2009/04/06/how-to-post-to-twitter-from-the-linux-command-line/" rel="bookmark" title="Permanent Link: How to post to Twitter from the Linux command line">How to post to Twitter from the Linux command line</a><br /><a href="http://www.simplehelp.net/2008/12/17/how-to-ssh-to-your-remote-server-without-entering-a-password-every-time/" rel="bookmark" title="Permanent Link: How to SSH to your remote server without entering a password every time">How to SSH to your remote server without entering a password every time</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Qimo &#8211; an Operating System designed for kids</title>
		<link>http://www.simplehelp.net/2009/06/29/qimo-an-operating-system-designed-for-kids/</link>
		<comments>http://www.simplehelp.net/2009/06/29/qimo-an-operating-system-designed-for-kids/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 10:26:24 +0000</pubDate>
		<dc:creator>Ross McKillop</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2920</guid>
		<description><![CDATA[
From the Qimo home page:

Qimo is a desktop operating system designed for kids. Based on the open source Ubuntu Linux desktop, Qimo comes pre-installed with educational games for children aged 3 and up.
Qimo&#8217;s interface has been designed to be intuitive and easy to use, providing large icons for all installed games, so that even the [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<p>From the <a href="http://www.qimo4kids.com/default.aspx" target="_blank">Qimo home page</a>:<br />
<blockquote>
Qimo is a desktop operating system designed for kids. Based on the open source Ubuntu Linux desktop, Qimo comes pre-installed with educational games for children aged 3 and up.</p>
<p>Qimo&#8217;s interface has been designed to be intuitive and easy to use, providing large icons for all installed games, so that even the youngest users have no trouble selecting the activity they want. </p></blockquote>
<p>Qimo needs a minimum of 256MB of memory to run from the CD, or 192MB to install. At least 6 GB of hard drive space is recommended, and a 400MHz or faster CPU. Because of its very minimal system requirements, it&#8217;s a fantastic OS to install on that old PC sitting in your closet and put in your childs room.</p>
<p>This tutorial will guide you through installing Qimo, and give a brief overview of the apps that are included, as well as instructions on removing some of the ones you may not want your child to access. <span id="more-2920"></span></p>
<ol>
<li> To get started, download the <a href="http://www.qimo4kids.com/page/Download.aspx" target="_blank" rel="nofollow">Qimo .iso file</a>. You&#8217;ll need to burn this .iso to a CD or DVD (it does fit on a CD). Once completed, insert the CD/DVD into your CD/DVD-ROM and boot up your computer. Make sure that your PC is set to boot from the CD/DVD drive first (before the hard disk or other drive).
<p></p>
<p>You&#8217;ll be presented with the initial Qimo boot screen. Because Qimo is a LiveCD, you can try it before you install it, if you&#8217;d like. Select <strong>Try Qimo without any change to your computer</strong> if you&#8217;d like to give it a run before you actually install it. This tutorial will actually walk you through the complete installation process &#8211; to do so click the down arrow on your keyboard to highlight <strong>Install Qimo</strong> and then hit Enter.
</li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo2.png"><img src="http://www.simplehelp.net/images/qimo/qimo2a.png" alt="" /><br />
click to enlarge</a></p>
<li> The Qimo installer will begin to load. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo3.png"><img src="http://www.simplehelp.net/images/qimo/qimo3a.png" alt="" /><br />
click to enlarge</a></p>
<li> The first step of the installation is to select your language. Do so from the list on the left side of the screen, and then click the <strong>Forward</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo4.png"><img src="http://www.simplehelp.net/images/qimo/qimo4a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now select the city closest to you (in your time zone) from the drop-down menu, and click the <strong>Forward</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo5.png"><img src="http://www.simplehelp.net/images/qimo/qimo5a.png" alt="" /><br />
click to enlarge</a></p>
<li> Select your keyboard layout from the list in the left column, and again, click the <strong>Forward</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo6.png"><img src="http://www.simplehelp.net/images/qimo/qimo6a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now you&#8217;ll need to decide how much disk space to allocate to Qimo. Because I&#8217;m going to dedicate the entire hard drive to Qimo, I selected <strong>Guided &#8211; use entire disk</strong>. If you don&#8217;t want to use your entire hard drive for Qimo, select <strong>Manual</strong> and use the &#8217;slider&#8217; to determine how much space Qimo gets vs. any other operating system(s) you may already have installed. When you&#8217;re ready, click the <strong>Forward</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo7.png"><img src="http://www.simplehelp.net/images/qimo/qimo7a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now you&#8217;ll need to create a profile. Enter your name, a user name, password and name for the computer. <strong>NOTE:</strong> do <strong>NOT</strong> place a check in the box labeled <strong>Log in automatically</strong>. Qimo will automatically create a username named &#8220;qimo&#8221; which is the user that your child will log in with. This username automatically signs in each time Qimo starts &#8211; your child doesn&#8217;t need to enter a user or pass. The account created on this screen is for <strong>you</strong> to use to administrate the PC. Click the <strong>Forward</strong> button to continue.  </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo8.png"><img src="http://www.simplehelp.net/images/qimo/qimo8a.png" alt="" /><br />
click to enlarge</a></p>
<li> That&#8217;s it &#8211; you&#8217;re ready to install Qimo. Click the <strong>Install</strong> button after you&#8217;ve reviewed all the info on the summary page. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo9.png"><img src="http://www.simplehelp.net/images/qimo/qimo9a.png" alt="" /><br />
click to enlarge</a></p>
<li> Qimo will now install. This may be a good time to go grab a cup of coffee. </li>
<p><img src="http://www.simplehelp.net/images/qimo/qimo10.png" alt="" /></p>
<li> Once the installation has completed, click the <strong>Restart now</strong> button.  </li>
<p><img src="http://www.simplehelp.net/images/qimo/qimo11.png" alt="" /></p>
<li> Qimo will now start up.  </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo22.png"><img src="http://www.simplehelp.net/images/qimo/qimo22a.png" alt="" /><br />
click to enlarge</a></p>
<li> Because Qimo automatically logs in with the &#8216;qimo&#8217; account (the account your child should/will use) you&#8217;ll be taken directly to the desktop. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo-desktop.png"><img src="http://www.simplehelp.net/images/qimo/qimo-desktopa.png" alt="" /><br />
click to enlarge</a></p>
<li> The &#8220;Dock&#8221; at the bottom of the screen includes links to the apps your child will use most. </li>
<p><img src="http://www.simplehelp.net/images/qimo/qimo12.png" alt="" /></p>
<li> The first app in the Toolbar is <strong>Text Editor</strong> which is exactly as you&#8217;d guess &#8211; a text editor. Your kids can create brief notes or use it to write out homework. </li>
<li> The second app in the Toolbar is <strong>GCompris</strong>, a collection of general educational games that are appropriate for children ages 2 and up. </li>
<p><a href="http://www.simplehelp.net/images/qimo/gcompris.png"><img src="http://www.simplehelp.net/images/qimo/gcomprisa.png" alt="" /><br />
click to enlarge</a></p>
<li> Childsplay is a collection of educational games. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo25.png"><img src="http://www.simplehelp.net/images/qimo/qimo25a.png" alt="" /><br />
click to enlarge</a></p>
<li> TuxPaint is a very simple Paint program that allows your children to create colorful pictures, posters, cards and letters. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo26.png"><img src="http://www.simplehelp.net/images/qimo/qimo26a.png" alt="" border="1" /><br />
click to enlarge</a></p>
<li> Tux Math teaches mathematics through a series of fun games. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo27.png"><img src="http://www.simplehelp.net/images/qimo/qimo27a.png" alt="" /><br />
click to enlarge</a></p>
<li> Certain programs are off-limits to the &#8216;qimo&#8217; user (your childs account). When/if they try to run those programs, they&#8217;ll get an error message similar to the one displayed in the screenshot below. </li>
<p><img src="http://www.simplehelp.net/images/qimo/qimo24.png" alt="" /></p>
<li> However, some programs are <em>not</em> off limits. For example, Firefox can be used by the qimo user. The easiest solution to avoid having your child use programs like Firefox, Transmission (bittorrent), IRC or Instant Messaging, is to keep the PC offline entirely. </li>
<p><img src="http://www.simplehelp.net/images/qimo/qimo15.png" alt="" /></p>
<li> To quickly update the system, open a Terminal and enter the command <strong>su your-user-name</strong> (where your-user-name was the one you selected back in step #7). Enter your password when prompted, and then issue the command <strong>sudo apt-get update</strong></li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo16.png"><img src="http://www.simplehelp.net/images/qimo/qimo16a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now enter the command <strong>sudo apt-get -f install</strong> </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo17.png"><img src="http://www.simplehelp.net/images/qimo/qimo17a.png" alt="" /><br />
click to enlarge</a></p>
<li> If you&#8217;d like to remove programs from qimo entirely, enter the command <strong>sudo /usr/sbin/synaptic</strong> to launch the Synaptic Package Manager.  </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo20.png"><img src="http://www.simplehelp.net/images/qimo/qimo20a.png" alt="" /><br />
click to enlarge</a></p>
<li> From here you can easily search for and remove any programs that you simply don&#8217;t want on the PC. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo21.png"><img src="http://www.simplehelp.net/images/qimo/qimo21a.png" alt="" /><br />
click to enlarge</a></p>
<li> You can also administer Qimo by logging out of your current session, and logging back in with the username and password you created in step #7. </li>
<p><a href="http://www.simplehelp.net/images/qimo/qimo14.png"><img src="http://www.simplehelp.net/images/qimo/qimo14a.png" alt="" /><br />
click to enlarge</a></p>
</ol>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/09/17/how-to-right-click-using-just-your-trackpad-in-bootcamp-parallels-and-vmware-os-x/" rel="bookmark" title="Permanent Link: How to right-click using just your trackpad in Bootcamp, Parallels and VMware (OS X)">How to right-click using just your trackpad in Bootcamp, Parallels and VMware (OS X)</a><br /><a href="http://www.simplehelp.net/2007/11/13/answers-when-to-use-parallels-or-vmware-fusion-vs-when-to-use-bootcamp/" rel="bookmark" title="Permanent Link: Answers: When to use Parallels or VMWare Fusion vs. when to use Bootcamp">Answers: When to use Parallels or VMWare Fusion vs. when to use Bootcamp</a><br /><a href="http://www.simplehelp.net/2006/08/05/how-to-set-up-multiple-accounts-using-os-x-v104-tiger/" rel="bookmark" title="Permanent Link: How to set up multiple accounts using OS X v10.4 (Tiger)">How to set up multiple accounts using OS X v10.4 (Tiger)</a><br /><a href="http://www.simplehelp.net/2008/09/18/how-to-install-ubuntu-eee-8041-on-your-eee-pc/" rel="bookmark" title="Permanent Link: How to install Ubuntu Eee 8.04.1 on your Eee PC">How to install Ubuntu Eee 8.04.1 on your Eee PC</a><br /><a href="http://www.simplehelp.net/2006/07/23/using-system-restore-in-windows-xp/" rel="bookmark" title="Permanent Link: Using System Restore in Windows XP">Using System Restore in Windows XP</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/06/29/qimo-an-operating-system-designed-for-kids/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to enable the root user account in Ubuntu Linux</title>
		<link>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/</link>
		<comments>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 28 May 2009 14:42:36 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2834</guid>
		<description><![CDATA[

Ubuntu Linux ships with the tool sudo all setup for you to use to perform any administrative tasks instead of giving you root user privileges. If you have used other flavors of Linux and performed any administrative tasks on them you will quite likely feel a bit constrained by sudo, even though you can do [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>Ubuntu Linux ships with the tool <strong>sudo</strong> all setup for you to use to perform any administrative tasks instead of giving you <strong>root</strong> user privileges. If you have used other flavors of Linux and performed any administrative tasks on them you will quite likely feel a bit constrained by <strong>sudo</strong>, even though you can do just about anything you can as root with sudo. In such cases you can enable the root user account which has been disabled by Ubuntu by default. <strong>Note:</strong> this could pose a security risk and is not recommended for beginners.<span id="more-2834"></span></p>
<p>There are two levels at which you can enable root access &#8211; the command line and in the Gnome desktop. To enable the root user login on the command line run the following command:</p>
<p><strong># sudo passwd root</strong></p>
<p>The command line will prompt you to enter your password, and then the new root user password twice. Enter them correctly and your root command line login should be good to go.</p>
<p>To enable the root user to now log into Gnome, open the file <strong>gdm.conf</strong> which will most likely be at <strong>/etc/X11/gdm/gdm.conf</strong> and change the <strong>AllowRoot</strong> condition to:</p>
<p><strong>AllowRoot=true</strong></p>
<p>Save the file. Log out of Gnome and log back in to activate your new settings.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/10/04/how-to-automatically-sign-in-to-ubuntu/" rel="bookmark" title="Permanent Link: How to automatically sign in to Ubuntu">How to automatically sign in to Ubuntu</a><br /><a href="http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/" rel="bookmark" title="Permanent Link: How to stop Ubuntu from asking for your sudo password">How to stop Ubuntu from asking for your sudo password</a><br /><a href="http://www.simplehelp.net/2008/12/29/using-sudo-in-linux/" rel="bookmark" title="Permanent Link: An introduction to the sudo command and configuration file">An introduction to the sudo command and configuration file</a><br /><a href="http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/" rel="bookmark" title="Permanent Link: How to reset a lost MySQL root password">How to reset a lost MySQL root password</a><br /><a href="http://www.simplehelp.net/2007/06/28/how-to-install-setup-and-use-google-desktop-search-in-ubuntu/" rel="bookmark" title="Permanent Link: How to install, setup and use Google Desktop Search in Ubuntu">How to install, setup and use Google Desktop Search in Ubuntu</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to stop Ubuntu from asking for your sudo password</title>
		<link>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/</link>
		<comments>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:48:44 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2830</guid>
		<description><![CDATA[

If you use Ubuntu Linux it is quite likely that at some point or another you may have been frustrated at its asking for your password when trying to perform an administrative tasks, such as installing programs or changing system settings. Ubuntu uses the sudo tool to manage administrative rights rather than letting users easily [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>If you use Ubuntu Linux it is quite likely that at some point or another you may have been frustrated at its asking for your password when trying to perform an administrative tasks, such as installing programs or changing system settings. Ubuntu uses the <strong>sudo</strong> tool to manage administrative rights rather than letting users easily log in as the <strong>root</strong> user. This is actually a good security measure. However, if you need to perform administrative tasks frequently it can get rather annoying. Here&#8217;s how you can set Ubuntu to not prompt for your password when using <strong>sudo</strong>. <span id="more-2830"></span></p>
<p><strong>Note:</strong> this is something that is not recommended if you are using your computer in a public place or at your work, as this will compromise the security of your data. You&#8217;re better off setting this at your home desktop where you are likely to trust more people.</p>
<p>Launch a terminal window and enter the following command:</p>
<p><strong># sudo visudo</strong></p>
<p><strong>Visudo</strong> is a tool used to edit the configuration file of <strong>sudo </strong>. The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely <strong>Nano</strong>. Scroll down to the end of the document and add the following line:</p>
<p><strong>username ALL=NOPASSWD: ALL</strong></p>
<p>Replace <strong>username</strong> with the username of the user you want to allow a passwordless sudo. So if the user is <strong>calvin</strong>, you would enter:</p>
<p><strong>calvin ALL=NOPASSWD: ALL</strong></p>
<p>Save and exit the file. Log out, log in as the user <strong>calvin</strong> and test out your new passwordless sudo.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/12/29/using-sudo-in-linux/" rel="bookmark" title="Permanent Link: An introduction to the sudo command and configuration file">An introduction to the sudo command and configuration file</a><br /><a href="http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/" rel="bookmark" title="Permanent Link: How to enable the root user account in Ubuntu Linux">How to enable the root user account in Ubuntu Linux</a><br /><a href="http://www.simplehelp.net/2009/05/07/how-to-change-the-default-web-browser-in-ubuntu/" rel="bookmark" title="Permanent Link: How to change the default web browser in Ubuntu">How to change the default web browser in Ubuntu</a><br /><a href="http://www.simplehelp.net/2007/04/30/how-to-increase-the-screen-resolutions-available-to-ubuntu-while-running-in-parallels-for-os-x/" rel="bookmark" title="Permanent Link: How to increase the screen resolutions available to Ubuntu while running in Parallels for OS X">How to increase the screen resolutions available to Ubuntu while running in Parallels for OS X</a><br /><a href="http://www.simplehelp.net/2007/05/31/how-to-install-setup-and-use-avant-window-navigator-awn-in-ubuntu-feisty/" rel="bookmark" title="Permanent Link: How to install, setup and use Avant Window Navigator (Awn) in Ubuntu Feisty">How to install, setup and use Avant Window Navigator (Awn) in Ubuntu Feisty</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
