<?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>noob2geek &#187; Linux</title>
	<atom:link href="http://www.noob2geek.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noob2geek.com</link>
	<description>Today&#039;s noobs are tomorrow&#039;s geeks!</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:27:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>File Permissions in Ubuntu</title>
		<link>http://www.noob2geek.com/linux/file-permissions-in-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/file-permissions-in-ubuntu/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 05:48:47 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 11.10]]></category>
		<category><![CDATA[ubuntu linux]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1435</guid>
		<description><![CDATA[Ability to set file permissions for individual users or user-groups is one of the most sought after features of Linux. If you are system admin for a school, college or a company you work for then proper file permission setting is among the most vital tasks. The command used to modify file permissions is chmod, [...]]]></description>
			<content:encoded><![CDATA[<p>Ability to set file permissions for individual users or user-groups is one of the most sought after features of Linux. If you are system admin for a school, college or a company you work for then proper file permission setting is among the most vital tasks.</p>
<p>The command used to modify file permissions is chmod, short for <strong>ch</strong>ange <strong>mod</strong>e of a file. You can also use Nautilus file browser to change the file permissions. I will cover the details after a little background on the file permissions. To find the permission settings for a file, issue the following command int he terminal from the directory where your file is.</p>
<pre><span style="color: #3366ff;">ls -l
cmd output</span></pre>
<p>As you can see, the first column in the output has some strange looking character sets. This set is the file permissions for that file (directory). The third column is the owner of the file (directory) and the fourth column is the default group of the file (directory). We can ignore all the other columns at this point.<span id="more-1435"></span></p>
<p>In the first column, each set would be 10 character wide. The very first character is a <strong>d</strong> for a directory or just a <strong>-</strong> (hyphen) for files. After that, the next three characters are the permissions for the owners account. The order is read-write-execute. If the superuser can read the file it would display <strong>r</strong> otherwise just a <strong>-</strong>. Similarly for write and execute <strong>w</strong> and <strong>x</strong> would be displayed. The next three characters are permissions for all the other users belonging to the file group (from the fourth column in the output above). Final three characters are the permissions for everyone not part of the group. Superusers (root accounts) can always override all the settings mentioned here and none of the permissions apply to them.</p>
<h2>Changing Permissions &#8211; The Easy Way</h2>
<p>The easiest way, as I said, is to just change the file permissions using Nautilus but it&#8217;s time consuming if you want to change the permissions of a lot of files. Command line way may seem tedious to begin with but it&#8217;s the faster way once you know your way around. To change the permissions in Nautilus, right click on any file (directory). Go to properties and then to permissions. Change the permissions and click ok. That&#8217;s it.</p>
<p><img class="alignnone size-full wp-image-1452" title="File Permissions" src="http://www.noob2geek.com/wp-content/uploads/2011/10/n2g.png" alt="File Permissions" width="640" height="643" /></p>
<h2>Changing Permissions &#8211; The Faster Way</h2>
<p>To change file permissions via the terminal, you can use the chmod command. To change permissions of a file, enter the following command in the terminal.</p>
<pre><span style="color: #3366ff;">chmod ABC path/to/file</span></pre>
<p>Here, ABC is a 3 digit number which is the decimal representation of the file permissions. For example, <strong>r-x</strong> means 101 in binary which translates to 5 in decimal. So, if you want everyone to have just read and execute access to files and only the owner has the write access to files then the permissions are <strong>rwx,r-x,r-x</strong> which is 111,101,101. That translates to 7,5,5 (comma is only given for clarity here). So, the command would now be,</p>
<pre><span style="color: #3366ff;">chmod 755 path/to/file</span></pre>
<p>Don&#8217;t worry if you don&#8217;t know how binary works, you will get used to it. Easiest way is add 4 for read, 2 for write and 1 for execute. So, considering the examples above, rwx = 4 + 2 + 1 = 7 and r-x = 4 + 0 + 1 = 5. You&#8217;ll get used to this. There is another way to to this, the text method (which I don&#8217;t prefer).</p>
<pre><span style="color: #3366ff;">chmod <em>who</em>=<em>permissions</em> <em>filename</em></span></pre>
<p>Where <em>Who</em> is any from a range of letters, and each signifies who you are going to give the permission to. They are as follows:</p>
<pre><span style="color: #3366ff;">u - The <strong>u</strong>ser that own the file.
g - The <strong>g</strong>roup the file belongs to.
o - The other users i.e. everyone else.
a - <strong>a</strong>ll of the above - use this instead of having to type <strong>ugo</strong>.</span></pre>
<p>And then you can directly write rwx in front of the equal sign. For example,</p>
<pre><span style="color: #3366ff;">chmod g=rx</span></pre>
<p>Next post will cover setting default permissions to files you create using umasks.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/file-permissions-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the Hostname in Ubuntu</title>
		<link>http://www.noob2geek.com/linux/how-to-change-the-hostname-in-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/how-to-change-the-hostname-in-ubuntu/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 14:52:54 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1277</guid>
		<description><![CDATA[There are times you may come up with a need for change in your computer&#8217;s identity over network. This is when you will have to change the Hostname of your computer. The hostname is pretty much like a label to your computer or the device for identification over the network. The hostname can be just [...]]]></description>
			<content:encoded><![CDATA[<p>There are times you may come up with a need for change in your computer&#8217;s identity over network. This is when you will have to change the Hostname of your computer. The hostname is pretty much like a label to your computer or the device for identification over the network. The hostname can be just a simple name, an IP Address or even a domain name.</p>
<p>To change the hostname in Ubuntu, follow these simple steps:</p>
<p><strong>1. Find out your existing hostname by entering this command in terminal:</strong></p>
<p><code>hostname</code></p>
<p><span id="more-1277"></span></p>
<p><img src="http://www.noob2geek.com/wp-content/uploads/2011/03/hostname.png" alt="hostname ubuntu" title="hostname" width="399" height="59" class="alignnone size-full wp-image-1281" /></p>
<p>So on my computer, the hostname is <em>&#8220;santhosh-desktop&#8221;</em></p>
<p><strong>2. Change the hostname by editing:</strong></p>
<p><code>sudo nano /etc/hostname</code></p>
<p>You will see the existing hostname. Change it to whatever new hostname you want and save it by hitting Ctrl + O</p>
<p>In this tutorial, I change it to </p>
<blockquote><p>gigacore-desktop</p></blockquote>
<p><strong>3. Now edit the hosts:</strong></p>
<p><code>sudo nano /etc/hosts</code></p>
<p>Here change the <em>::1</em> and <em>127.0.1.1</em> to the new hostname you chose. </p>
<blockquote><p>::1     gigacore-desktop        localhost6.localdomain6 localhost6<br />
127.0.1.1      gigacore-desktop</p></blockquote>
<p><strong>3. Restart the hostname service.</strong></p>
<p><code>sudo /etc/init.d/hostname restart</code></p>
<p>Now check the hostname by following the <em>step 1</em> and you should see the new hostname. </p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/how-to-change-the-hostname-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up WiFi Connection Using WiCD</title>
		<link>http://www.noob2geek.com/linux/setting-up-wifi-connection-using-wicd/</link>
		<comments>http://www.noob2geek.com/linux/setting-up-wifi-connection-using-wicd/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 02:15:51 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[linux tutorial]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu linux]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=940</guid>
		<description><![CDATA[Often times Linux users find themselves wanting more from the network manager, especially laptop users on the move find it difficult to manage all the different networks they have access to. WiCD is one of the best tools for people wanting more. It&#8217;s gtk based network configuration tool, especially meant for wireless networks written in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1187 alignright" title="WiCD" src="http://www.noob2geek.com/wp-content/uploads/2011/03/125px-Wicd_client_logo.svg_.png" alt="WiCD Logo" width="125" height="149" /></p>
<p>Often times Linux users find themselves wanting more from the network manager, especially laptop users on the move find it difficult to manage all the different networks they have access to. WiCD is one of the best tools for people wanting more. It&#8217;s gtk based network configuration tool, especially meant for wireless networks written in python. Apart from being dependent on gtk, it does not require any of gnome components to work. Rejoice all the openbox and fluxbox users.</p>
<p>Here&#8217;s what WiCD can do (taken from the official documentation),</p>
<ol>
<li>Compatible with standard *nix networking commands (iwconfig, ifconfig, etc)</li>
<li>Once configured, will connect even if the X display does not start</li>
<li>Can be managed and configured via the command line using wicd-curses<span id="more-940"></span></li>
<li>Support for wired networks, as well as named profiles to save multiple wired configurations.</li>
<li>Supports configuring static IP addresses and DHCP on a per network basis</li>
<li>Store different static IPs, gateways, subnet masks, DNS server addresses per network</li>
<li>Automatically connect at boot &#8211; no user intervention required, even for encrypted networks</li>
<li>Keeps network keys in root accesible only (600) files (unencrypted, however)</li>
<li>Encryption (<a href="http://wicd.sourceforge.net/templates.php">template based</a>)
<ol>
<li>WPA 1/2</li>
<li>WEP</li>
<li>LEAP</li>
<li>TTLS</li>
<li>EAP</li>
<li>PEAP</li>
</ol>
</li>
<li>Automatically connects at resume from suspend</li>
<li>Displays information about the network</li>
<li>Ability to run scripts before/after connecting/disconnecting</li>
</ol>
<p>All this and it&#8217;s really easy to use. Let&#8217;s start by installing WiCD, if you are an Ubuntu user, you can install WiCD very easily. All you need to do is open a terminal and issue following command,</p>
<p><code>sudo apt-get install wicd</code></p>
<p>This will install both WiCD with all the required dependencies. It will then ask you for the users you want to configure WiCD for. WiCD also comes with a tray icon. You can add it by right clicking a panel and choosing add to panel option then choose custom application launcher. Give it any name you want and in the command box type,</p>
<p><code>/usr/bin/wicd-gtk</code></p>
<p>and you will have a tray icon now. Open WiCD and you will be greeted with a screen showing all the wireless networks in the range. You can then chose to connect to any network you want. If the network is protected by any security then you would have to chose the method of security in place and enter the correct key to connect to the network.</p>
<div id="attachment_1188" class="wp-caption aligncenter" style="width: 573px"><img class="size-full wp-image-1188" title="WiCD Networks" src="http://www.noob2geek.com/wp-content/uploads/2011/03/1.png" alt="WiCD Networks" width="563" height="556" /><p class="wp-caption-text">WiCD Networks</p></div>
<p>You, of course, also get the option to chose whether to use DHCP or static IPs, which DNS you want to use, which secondary DNS you want to use. gateways, subnet masks. You can also use it to manage wired networks.</p>
<div id="attachment_1189" class="wp-caption aligncenter" style="width: 411px"><img class="size-full wp-image-1189" title="WiCD Advanced" src="http://www.noob2geek.com/wp-content/uploads/2011/03/2.png" alt="WiCD Advanced" width="401" height="369" /><p class="wp-caption-text">WiCD Advanced</p></div>
<p>And there&#8217;s more&#8230;</p>
<div id="attachment_1190" class="wp-caption aligncenter" style="width: 509px"><img class="size-full wp-image-1190" title="WiCD Advanced 2.0" src="http://www.noob2geek.com/wp-content/uploads/2011/03/3.png" alt="WiCD Advanced 2.0" width="499" height="546" /><p class="wp-caption-text">WiCD Advanced 2.0</p></div>
<p>I for one have never had any problems with WiCD., although there are people who report certain incidents, it&#8217;s free from most major bugs and is a very solid program. One of my favourite distributions, Zenwalk, comes with WiCD pre-installed. Rest assured, this is a great tool to manage all your moving connection needs.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/setting-up-wifi-connection-using-wicd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix phpMyAdmin 404 Not Found error in Ubuntu</title>
		<link>http://www.noob2geek.com/linux/fix-phpmyadmin-404-error-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/fix-phpmyadmin-404-error-ubuntu/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 12:21:10 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1173</guid>
		<description><![CDATA[Most webmasters opt for phpMyAdmin to manage their MySQL database on their VPS or dedicated server, but sometimes you may end up getting 404 &#8220;Not Found&#8221; error when you point your browser to phpmyadmin installation (say like: http://127.0.0.1/phpmyadmin). This error is most likely caused by not selecting &#8220;Apache 2&#8243; during the installation. To fix it, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1176 alignright" title="phpmyadmin_logo" src="http://www.noob2geek.com/wp-content/uploads/2011/03/phpmyadmin_logo.jpg" alt="phpmyadmin" width="118" height="118" />Most webmasters opt for phpMyAdmin to manage their MySQL database on their VPS or dedicated server, but sometimes you may end up getting 404 &#8220;Not Found&#8221; error when you point your browser to phpmyadmin installation (say like: http://127.0.0.1/phpmyadmin). This error is most likely caused by not selecting &#8220;Apache 2&#8243; during the installation. To fix it, you must redo the phpmyadmin installation.</p>
<p>Enter the following in your terminal:</p>
<p><span id="more-1173"></span></p>
<p><code>sudo dpkg-reconfigure -plow phpmyadmin</code></p>
<p><strong>Reinstall database for phpmyadmin: Select &#8220;No&#8221;</strong></p>
<p><img class="alignnone size-full wp-image-1174" title="phpmyadmin_1" src="http://www.noob2geek.com/wp-content/uploads/2011/03/phpmyadmin_1.png" alt="phpmyadmin installation" width="600" height="373" /></p>
<p><strong>Web server to reconfigure automatically: Select &#8220;apache 2&#8243;</strong></p>
<p><img class="alignnone size-full wp-image-1175" title="phpmyadmin_2" src="http://www.noob2geek.com/wp-content/uploads/2011/03/phpmyadmin_2.png" alt="phpmyadmin installtion" width="600" height="362" /></p>
<p><strong>It should world now. If not, do the following to include the phpMyadmin-shipped Apache configuration into Apache:</strong></p>
<p><code>sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf</code></p>
<p><strong>Restart apache:</strong></p>
<p><code>sudo /etc/init.d/apache2 restart</code></p>
<p>That&#8217;s it. Let me if you have any doubts in the comment.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/fix-phpmyadmin-404-error-ubuntu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to generate strong passwords in linux</title>
		<link>http://www.noob2geek.com/linux/generate-strong-passwords-linux/</link>
		<comments>http://www.noob2geek.com/linux/generate-strong-passwords-linux/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 17:48:36 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1155</guid>
		<description><![CDATA[How many times have you bothered about creating a strong password to your account? Be it an email account, server login, ssh or anything and everything that requires authentication. Usually, people create passwords that are easier to remember. But there are cases like database account, ssh accounts and other sensitive type of accounts where you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.noob2geek.com/wp-content/uploads/2011/03/password.png"><img class="size-full wp-image-1163 alignleft" title="password" src="http://www.noob2geek.com/wp-content/uploads/2011/03/password.png" alt="password" width="108" height="108" /></a>How many times have you bothered about creating a strong password to your account? Be it an email account, server login, ssh or anything and everything that requires authentication. Usually, people create passwords that are easier to remember. But there are cases like database account, ssh accounts and other sensitive type of accounts where you need to create a password that is strong enough to resist any kind of password decryption methods used by hackers. Generating a password so strong can make you go bonkers. So you need something that generates a strong password automatically that is easier to remember as well.</p>
<p><span id="more-1155"></span></p>
<h3>Say hello APG.</h3>
<p>It stands for <strong>Automated Password Generator.</strong> And as name suggests it is tool used to generate random passwords. APG houses two password generation algorithms. One is the <em>Pronounceable Password Generation Algorithm</em> (default) and the other is the <em>Random Character Password Generation Algorithm</em>. While the first generates strong passwords that are easy enough to remember since it provides you some clues on how to remember it, the latter just generates random passwords.</p>
<h3>Installing APG</h3>
<p>APG is literally available for any *NIX based operating system. In this tutorial, I will tell you how to install it on Ubuntu / Debian and Fedora / CentOS linux operating systems.</p>
<p><strong>In Ubuntu:</strong></p>
<p>In your terminal -</p>
<p><code>sudo apt-get install apg</code></p>
<p><strong>In Fedora:</strong></p>
<p><code>yum install apg</code></p>
<h3>Using APG</h3>
<p>Using APG is really simple. Let&#8217;s begin with simple password generation that is easy to remember and pronounceable, which is default. It will generated 6 passwords by using the random keyboard data you provide.</p>
<p>In your terminal,</p>
<p><code>apg</code></p>
<p>APG will then prompt you to input some random data so that it can generate a password for you (eg. I like noob2geek.com). Do remember that these passwords will be generated randomly no matter who many times you provide the same keyboard input. So passwords won&#8217;t be the same every time. And as you can see the bracket, it provides a pronounceable clue to remember them.</p>
<blockquote><p>OkBazCag4 (Ok-Baz-Cag-FOUR)<br />
TabOgUt6 (Tab-Og-Ut-SIX)<br />
novtarsEst7 (nov-tars-Est-SEVEN)<br />
bowebcojCal5 (bow-eb-coj-Cal-FIVE)<br />
AbrIbgan2 (Abr-Ib-gan-TWO)<br />
eikkotVis0 (eik-kot-Vis-ZERO)</p></blockquote>
<p>Now to generate random passwords that are not pronounceable, you need to use the -a 1 option. Where -a is the Algorithm and 1 selects random mode.</p>
<p><code>apg -a 1</code></p>
<p>This do not require any random keyboard inputs.</p>
<blockquote><p>%l?b`m^,<br />
OS6}C&gt;kwZn<br />
RI9]VZ.Hk<br />
/1}mYh5)<br />
[&gt;b/s~1:Y<br />
'*aST9"bZ</p></blockquote>
<p>And finally to create a password that is really strong, really long (upto 63 characters) and really hard to break it, you need to make use of more options.</p>
<blockquote><p>apg -s -a 1 -m 63 -n 4</p></blockquote>
<p>This actually prompts you to enter some random inputs, but just hit "ENTER" key again to output the password.</p>
<blockquote><p>}_B^kA#!c[g*8utG8"3S|2aHfP(~I_n|r8KEn"Uxq,[wtoSDYNx{K,0q:cXD619<br />
lkSPcTbsP:&gt;_AfQQP-gM)pI"6LXp-8}E0S*B[@jCY(6.X0j]%^9H`NN8e,,X&amp;TH<br />
bG05%ZF4n*ayxl-Rj5~6tV~zqPk6&gt;d+c]_WCS4&amp;sr7Eeq7!n?M2LpXUqjl7/[P.<br />
B^U&amp;@EqJpke6y`h7J?,CK#&#8217;Q!%u-`NkwDg5.Wm3ny@rYlii,&gt;%Y0&#8242;+&#8217;g&gt;!lki8i</p></blockquote>
<p>This is really hard to remember as well, if you can, you got to be supernatural. To view all APG options, type <code>man apg</code> in your terminal.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/generate-strong-passwords-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and configure vsftpd</title>
		<link>http://www.noob2geek.com/linux/setup-vsftpd-debian-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/setup-vsftpd-debian-ubuntu/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 15:32:14 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1129</guid>
		<description><![CDATA[This tutorial focuses on how to setup vsftpd server on your linux based VPS or a dedicated server. The vsftpd stands for &#8220;Very Secure FTP Daemon&#8221;. It is not just secure as the name suggests but also delivers excellent performance by consuming less memory. The tutorial also teaches you how to configure by adding ftp [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial focuses on how to setup vsftpd server on your linux based VPS or a dedicated server. The vsftpd stands for &#8220;Very Secure FTP Daemon&#8221;. It is not just secure as the name suggests but also delivers excellent performance by consuming less memory. The tutorial also teaches you how to configure by adding ftp users and locking the directory to individual users.</p>
<p>You can install vsftpd on  Ubuntu / Debian, CentOS /Fedora and RHEL linux.</p>
<p><span id="more-1129"></span></p>
<p><strong>Installing vsftpd on Ubuntu or Debian</strong></p>
<p><code>sudo apt-get install vsftpd</code></p>
<p><strong>Installing vsftpd on CentOS / Fedora</strong></p>
<p><code>yum install vsftpd</code></p>
<p><strong>How to configure vsftpd:</strong></p>
<p>Now that you&#8217;ve installed vsftpd, follow this procedure to configure it. These steps applies for both the linux variants. </p>
<p>Before you get started, stop the vsftpd by typing:</p>
<p><code>service vsftpd stop</code></p>
<p><strong>Edit the vsftp.conf </strong></p>
<p>In Ubuntu / Debian:</p>
<p><code>vi /etc/vsftpd.conf</code></p>
<p>In Red Hat / CentOS</p>
<p><code>vi /etc/vsftpd/vsftpd.conf</code></p>
<p><strong>Make the following changes:</strong></p>
<p>We don&#8217;t want anonymous login:</p>
<blockquote><p>
anonymous_enable=NO
</p></blockquote>
<p>Enable local users:</p>
<blockquote><p>local_enable=YES</p></blockquote>
<p>The ftpuser should be able to write data:</p>
<blockquote><p>write_enable=YES</p></blockquote>
<p>Port 20 need to turned off, makes vsftpd run less privileged:</p>
<blockquote><p>connect_from_port_20=NO</p></blockquote>
<p>Chroot everyone:</p>
<blockquote><p>chroot_local_user=YES</p></blockquote>
<p>set umask to 022 to make sure that all the files (644) and folders (755) you upload get the proper permissions.</p>
<blockquote><p>local_umask=022</p></blockquote>
<p><strong>Now that basic configuration is complete, now let us begin with locking / securing a directory to user.</strong></p>
<p><code>sudo useradd -d /var/www/path/to/your/dir -s /usr/sbin/nologin ftpuser</code></p>
<p>Setup a password for the user:</p>
<p><code>sudo passwd ftpuser</code></p>
<p>In order to enable the ftpuser read and write the data in your home dir, change the permission and take ownership: </p>
<p><code>sudo chown -R ftpuser /var/www/path/to/your/dir</code><br />
<code>sudo chmod 775 /var/www/path/to/your/dir</code></p>
<p>Create userlist file and add the user:</p>
<p>Ubuntu / Debian:<br />
<code>vi /etc/vsftpd.userlist</code></p>
<p>CentOS / Fedora</p>
<p><code>vi /etc/vsftpd/vsftpd.userlist</code></p>
<p>and add the user:</p>
<p><code>ftpuser</code></p>
<p>save the file and open the vsftp.conf file again:</p>
<p><code>vi /etc/vsftpd.conf</code></p>
<p>Add the following lines at the end of the file and save it:</p>
<blockquote><p># the list of users to give access<br />
userlist_file=/etc/vsftpd.userlist</p>
<p># this list is on<br />
userlist_enable=YES</p>
<p># It is not a list of users to deny ftp access<br />
userlist_deny=NO
</p></blockquote>
<p>After completing all these procedures it is almost ready to use it, give it a try but you will get a 500 OOPS permission denied error. To fix it you need to add a nologin to the shell set. </p>
<p><code>vi /etc/shells</code></p>
<p>The file should look like this:</p>
<blockquote><p>/bin/ksh<br />
/usr/bin/rc<br />
/usr/bin/tcsh<br />
/bin/tcsh<br />
/usr/bin/esh<br />
/bin/dash<br />
/bin/bash<br />
/bin/rbash</p></blockquote>
<p>Add this line at the end:</p>
<p><code>/usr/sbin/nologin</code></p>
<p>Now create a usergroup and add the ftpuser to it:</p>
<p><code>sudo addgroup ftpusers</code><br />
<code>sudo usermod -Gftpusers ftpuser</code></p>
<p><strong>Now start the vsftpd:</strong></p>
<p><code>service vsftpd start</code></p>
<p>That&#8217;s it. Now you have a secure installation of vsftpd on your server.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/setup-vsftpd-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How to start, stop and restart MySQL in Ubuntu</title>
		<link>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-mysql-in-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-mysql-in-ubuntu/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 18:57:01 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>
		<category><![CDATA[vps commands]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1093</guid>
		<description><![CDATA[There are times when you will be forced to start, stop or restart your MySQL server, be it on your VPS or on your localhost. And like every other linux distribution, Ubuntu also comes with a shell script that lets you to do this. All you need to do is to login as a root [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.noob2geek.com/wp-content/uploads/2011/03/mysql-logo.jpg"><img class="alignright size-full wp-image-1094" title="mysql-logo" src="http://www.noob2geek.com/wp-content/uploads/2011/03/mysql-logo.jpg" alt="mysql" width="144" height="79" /></a>There are times when you will be forced to start, stop or restart your MySQL server, be it on your VPS or on your localhost. And like every other linux distribution, Ubuntu also comes with a shell script that lets you to do this.</p>
<p>All you need to do is to login as a root or make use of sudo. Open the terminal or login to your VPS and perform these commands:</p>
<p><span id="more-1093"></span></p>
<p><strong>To start MySQL:</strong></p>
<p><code>sudo /etc/init.d/mysql start</code></p>
<p><strong>To stop MySQL:</strong></p>
<p><code>sudo /etc/init.d/mysql stop</code></p>
<p><strong>To restart MySQL:</strong></p>
<p><code>sudo /etc/init.d/mysql restart</code></p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-mysql-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magic SysRq Key</title>
		<link>http://www.noob2geek.com/linux/magic-sysrq-key/</link>
		<comments>http://www.noob2geek.com/linux/magic-sysrq-key/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 18:06:13 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[linux tutorial]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1105</guid>
		<description><![CDATA[It doesn&#8217;t happen quite often but when it does &#8211; it&#8217;s a pain in the&#8230; Nevermind that, I am of course talking about system freezes on Linux. Freezes are rare but if you are like us and install, use and test beta versions of software or operating systems themselves, there is a significant chance you [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1111" class="wp-caption alignright" style="width: 330px"><img class="size-full wp-image-1111 " title="SysRq" src="http://www.noob2geek.com/wp-content/uploads/2011/03/SysRq.png" alt="SysRq" width="320" height="99" /><p class="wp-caption-text">SysRq</p></div>
<p>It doesn&#8217;t happen quite often but when it does &#8211; it&#8217;s a pain in the&#8230; Nevermind that, I am of course talking about system freezes on Linux. Freezes are rare but if you are like us and install, use and test beta versions of software or operating systems themselves, there is a significant chance you will end up with system crashes, freezes, kernel panics. Most people have no idea that hitting the power button is not the only option. You are likely to compromise the filesystem integrity by doing so. This is where the SysRq key comes in.</p>
<p><span id="more-1105"></span></p>
<p>Chances are, the kernel you are using has been compiled with a flag CONFIG_MAGIC_SYSRQ when compiled. If it is &#8211; you can breathe easy because this enables you to reboot system, recover from freezes without damaging the filesystem. You can forcibly unmount file systems, kill processes, recover keyboard state, and write unwritten data to disk.</p>
<p>The combination is Alt, SysRq key and a third key which changes with each command. If you don&#8217;t have a separate PrtScr and SysRq keys then most probably this won&#8217;t work for you as only a screenshot would be generated. To avoid this Print Screen feature the magic SysRq combination should include the Ctrl, becoming &#8216;Ctrl&#8217;+'Alt&#8217;+'SysRq&#8217;+key. Some common key-binding are given below.</p>
<ul>
<li>‘<strong>k</strong>’ – Kills all the process running on the current virtual console.</li>
<li>‘<strong>s</strong>’ – This will attempt to sync all the mounted file system.</li>
<li>‘<strong>b</strong>’ – Immediately reboot the system, without unmounting partitions or syncing.</li>
<li>‘<strong>e</strong>’ – Sends SIGTERM to all process except init.</li>
<li>‘<strong>m</strong>’ – Output current memory information to the console.</li>
<li>‘<strong>i</strong>’ – Send the SIGKILL signal to all processes except init</li>
<li>‘<strong>r</strong>’ – Switch the keyboard from raw mode (the mode used by programs such as X11), to XLATE mode.</li>
<li>‘<strong>s</strong>’ – sync all mounted file system.</li>
<li>‘<strong>t</strong>’ – Output a list of current tasks and their information to the console.</li>
<li>‘<strong>u</strong>’ – Remount all mounted filesystems in readonly mode.</li>
<li>‘<strong>o</strong>’ – Shutdown the system immediately.</li>
<li>‘<strong>p</strong>’ – Print the current registers and flags to the console.</li>
<li>‘<strong>0-9</strong>’ – Sets the console log level, controlling which kernel messages will be printed to your console.</li>
<li>‘<strong>f</strong>’ – Will call oom_kill to kill process which takes more memory.</li>
<li>‘<strong>h</strong>’ – Used to display the help. But any other keys than the above listed will print help.</li>
</ul>
<p>You can also access this feature from the command line directly (as root, of course) by following command,</p>
<p><code>echo b &gt; /proc/sysrq-trigger</code></p>
<p>This is similar to pressing the combination of Alt+SysRq+b which reboots the system. There are some cases when you want to disable this feature. You can do so with,</p>
<p><code>echo 0 &gt; /proc/sys/kernel/sysrq</code></p>
<p>On newer kernels (exact version unknown), it is possible to have a more fine-grained control. On these machines, the number written to /proc/sys/kernel/sysrq can be  zero, one, or a number greater than one which is a bitmap indicating  which features to allow.</p>
<p>Possible values are:</p>
<ul>
<li>0 &#8211; disable sysrq</li>
<li>1 &#8211; enable sysrq completely</li>
<li>&gt;1 &#8211; bitmask of enabled sysrq functions:
<ul>
<li>2 &#8211; control of console logging level</li>
<li>4 &#8211; control of keyboard (SAK, unraw)</li>
<li>8 &#8211; debugging dumps of processes etc.</li>
<li>16 &#8211; sync command</li>
<li>32 &#8211; remount read-only</li>
<li>64 &#8211; signalling of processes (term, kill, oom-kill)</li>
<li>128 &#8211; reboot/poweroff</li>
<li>256 &#8211; nicing of all RT tasks</li>
</ul>
</li>
</ul>
<p>Finally &#8211; in order to perform a safe reboot when you are frozen or stuck at a point. The command is un<strong>r</strong>aw, t<strong>e</strong>rminate, <strong>k</strong>ill, <strong>s</strong>ync, <strong>u</strong>nmount, re<strong>b</strong>oot.</p>
<p><strong>UPDATE</strong> &#8211; You can also use &#8216;i&#8217; instead of &#8216;k&#8217; in the sequence mentioned above. It does not kill the init process. Also &#8211; an easier way to remember this sequence is <em>busier</em> in reverse order. Remember the reverse order or you would end up rebooting the system which is useless for this purpose.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/magic-sysrq-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to start, stop and restart Apache in Ubuntu</title>
		<link>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-apache-in-ubuntu/</link>
		<comments>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-apache-in-ubuntu/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 05:50:26 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>
		<category><![CDATA[vps commands]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=1085</guid>
		<description><![CDATA[There are times when you will be forced to start, stop or restart your Apache web server, be it on your VPS or on your localhost. And like every other linux distribution, Ubuntu also comes with a shell script that lets you to do this. All you need to do is to login as a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1088 alignright" title="apache2" src="http://www.noob2geek.com/wp-content/uploads/2011/03/apache2.jpg" alt="apache server" width="141" height="107" />There are times when you will be forced to start, stop or restart your Apache web server, be it on your VPS or on your localhost. And like every other linux distribution, Ubuntu also comes with a shell script that lets you to do this.</p>
<p>All you need to do is to login as a root or make use of sudo. Open the terminal or login to your VPS and perform these commands:</p>
<p><span id="more-1085"></span></p>
<p><strong>To start apache web server:</strong></p>
<p><code>sudo /etc/init.d/apache2 start</code></p>
<p><strong>To stop apache web server: </strong></p>
<p><code>sudo /etc/init.d/apache2 stop</code></p>
<p><strong>To restart apache web server:</strong></p>
<p><code>sudo /etc/init.d/apache2 restart</code></p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/how-to-start-stop-and-restart-apache-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install &#8216;Unity&#8217; Netbook environment on Ubuntu 10.10</title>
		<link>http://www.noob2geek.com/linux/how-to-install-unity-netbook-environment-on-ubuntu-10-10/</link>
		<comments>http://www.noob2geek.com/linux/how-to-install-unity-netbook-environment-on-ubuntu-10-10/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 13:36:21 +0000</pubDate>
		<dc:creator>Santhosh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[ubuntu netbook]]></category>
		<category><![CDATA[ubuntu tutorials]]></category>
		<category><![CDATA[ubuntu unity]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://www.noob2geek.com/?p=959</guid>
		<description><![CDATA[Say hello to the new Unity user interface. In short, Unity is a lightweight desktop environment which is used in Ubuntu Netbook 10.10 as the default shell instead of Gnome shell. Unity is developed to make day-to-day work easier on Netbooks. Since netbooks have small screens with relatively smaller resolutions, this interface is tailored to [...]]]></description>
			<content:encoded><![CDATA[<p>Say hello to the new <strong>Unity</strong> user interface. In short, Unity is a lightweight desktop environment which is used in Ubuntu Netbook 10.10 as the default shell instead of Gnome shell.</p>
<p>Unity is developed to make day-to-day work easier on Netbooks. Since netbooks have small screens with relatively smaller resolutions, this interface is tailored to fit your applications, windows and other instances with easy access. You get to experience it&#8217;s level of user-friendliness as you start using it on your netbook. On a regular desktop or a laptop with large screen and higher resolutions, you don&#8217;t feel much of a difference but you can still install this nifty interface to either try it out or use it on regular basis for fun or for curiosity.</p>
<p><span id="more-959"></span></p>
<p>If you want to try out this interface, you don&#8217;t need to have a netbook or even download the Ubuntu Netbook edition. All you need to have is a computer running Ubuntu 10.10. Just follow the simple instructions and you will be good to go!</p>
<p>Run this in your terminal:</p>
<p><code>sudo apt-get install ubuntu-netbook</code></p>
<p>or</p>
<p><code>sudo apt-get install unity</code></p>
<p>The download size is small, but it takes few minutes to install and configure the environment.</p>
<p>After everything is done, you must logout of the current session and at the login screen you must select <strong><em>&#8220;Ubuntu Netbook Edition&#8221;</em></strong> at bottom and login.<br />
<a href="http://www.noob2geek.com/wp-content/uploads/2010/10/Screenshot.jpg"><img class="aligncenter size-full wp-image-962" title="Screenshot" src="http://www.noob2geek.com/wp-content/uploads/2010/10/Screenshot.jpg" alt="ubuntu unity" width="459" height="286" /></a></p>
<p>To know more and see more screenshots, visit the official Ubuntu <a href="http://unity.ubuntu.com/" target="_blank">Unity</a> page.</p>
<p><strong>FYI:</strong> Unity desktop environment will be the default shell instead of Gnome shell in the upcoming Ubuntu 11.04! Having said that, don&#8217;t get into conclusion that Ubuntu is no more shipping its distro with Gnome. Ubuntu will continue with Gnome environment but only the shell will be replaced with Unity.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.noob2geek.com/linux/how-to-install-unity-netbook-environment-on-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
