<?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>Fnode Networks &#187; UNIX</title>
	<atom:link href="http://www.fnode.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnode.com</link>
	<description></description>
	<lastBuildDate>Wed, 23 Nov 2011 20:18:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to enable SSH key Authentication: SSH login without a password!</title>
		<link>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/</link>
		<comments>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 11:54:43 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RSA]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=478</guid>
		<description><![CDATA[If you want to jump between servers without any password authentication but you still need security here is what you have to do. There are two ways of achieving this: On Debian/Ubuntu you can just type: $ cd $HOME ~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key: Press [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you want to jump between servers without any password authentication but you still need security here is what you have to do.<br />
There are two ways of achieving this:</p>
<p>On Debian/Ubuntu you can just type:</p>
<pre>
  $ cd $HOME
~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key:
</pre>
<p>Press Enter each question and you will have a pair of keys ready to use.<br />
You will be asked for a passphrase but if you do not want to insert anything just leave it blank.<br />
This procedure will create one private and one public key.</p>
<pre>
$ ls .ssh/
id_rsa  id_rsa.pub  known_hosts
The private key must be secured on your box whereas the public key can be copied across
<code>~$ ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.30</code>
</pre>
<p>At this time you will be asked for the password but once the key has been copied you will be able to ssh just perfectly.</p>
<p><span id="more-478"></span></p>
<p>As additional security you could lock the account to prevent someone without key to ssh into the box. In order to do that </p>
<pre>
me@mybox:~$ ssh 192.168.1.30
me@server:~$ su -
password:
root@server:~# usermod -L me

usermod -L will lock the account "me" preventing anyone using password credentials for that account. You will only be able to access with you trusted ssh-key. If you don't want anymore the account locked just type:
</pre>
<pre>root@server:~# usermod -U me</pre>
<p>-U flag will unlock the account</p>
<p>ON SOME OTHER DISTROS:<br />
the &#8220;ssh-copy-id&#8221; utility doesn&#8217;t exist so you will have to copy it manually.<br />
If you can copy and paste then</p>
<pre>
~$ cat .ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv4k0ChLXCfpF+o/4HcqAqYEivRSHHYsTlXfT4I0jmOAI+MKjVTB/CtKqq4h7KMyXrUUo7vtceac4i2FRSm6PdsWksJXsYxkOj+ZXXD2fOnJIDKfIr41URcZH4qmztYO+/9YYcQudPzNlt9tLx5jrkhI7sLy56OmKRwfrxq+UY7ebt+j7y5DmevJP0u7bzREPUA/rcVoPxH0/u015O2BcaJmNoxR1pNfMC3Oefn1eAkodo6fOa3vHHo7WhSpDL/42xsBWPnOAAEDM9tmOUyCJDc8l4Mzm+TindqY2yL2GPspabaEAV3rfuF9O4Ywe+tVIPc2/YXo9XvQxyXZqHxtcw==== me@mybox
</pre>
<p>and paste the line into the remote server&#8217;s .ssh/authorized_keys file. REMEMBER that it&#8217;s just one line so if during copy and paste you get some new line characters that key won&#8217;t work.</p>
<p>If you can&#8217;t copy and paste and want to have the confidence the key has been correctly copied just scp the id_rsa.pub to the server</p>
<pre>
me@mybox:~$ scp .ssh/id_rsa.pub 192.168.1.30:/home/me/
me@server:~$ ssh 192.168.1.30
me@server:~$ cat id_rsa.pub >> .ssh/authorized_keys
</pre>
<p>For more info</p>
<pre>
man usermod
man ssh-keygen
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: change default text editor on Linux shell</title>
		<link>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/</link>
		<comments>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:52:50 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=477</guid>
		<description><![CDATA[Doing visudo you get nano instead of your favorite text editor? Mine is vim therefore I issue: DEBIAN/UBUNTU way # update-alternatives --config editor There are 4 alternatives which provide `editor'. Selection Alternative ----------------------------------------------- 1 /usr/bin/vim.tiny 2 /bin/ed *+ 3 /bin/nano 4 /usr/bin/vim.basic Press enter to keep the default[*], or type selection number: Selecting 4 I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Doing visudo you get nano instead of your favorite text editor?<br />
Mine is vim therefore I issue:</p>
<p><strong>DEBIAN/UBUNTU way</strong></p>
<pre>
# update-alternatives --config editor
There are 4 alternatives which provide `editor'.
  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/vim.tiny
          2    /bin/ed
*+        3    /bin/nano
          4    /usr/bin/vim.basic
Press enter to keep the default[*], or type selection number:
</pre>
<p>Selecting 4 I&#8217;m ready to use my full syntax colors when I edit any file.</p>
<p><strong>OTHER DISTROS</strong><br />
Edit your .bashrc file and add the following:</p>
<pre>EDITOR=vim
export EDITOR</pre>
<p>Next login you will have your VIM working.<br />
If you want to have it immediately and only for this session just type </p>
<pre># export EDITOR=vim</pre>
<p>and press enter.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Debian from USB drive</title>
		<link>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/</link>
		<comments>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:13:19 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=472</guid>
		<description><![CDATA[I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net): 1. Download boot.img.gz from Debian website 2. Download the net-install image choosing i386. 3. Plug your USB drive into a Linux PC, open the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net):<br />
1. Download <a href="ftp://ftp.debian.nl/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz" rel="nofollow" target="_blank" class="external_icon">boot.img.gz</a> from Debian website<br />
2. Download the <a href="http://www.debian.org/distrib/netinst#smallcd" rel="nofollow" target="_blank" class="external_icon">net-install</a> image choosing i386.<br />
3. Plug your <acronym title="Universal Serial Bus">USB</acronym> drive into a Linux PC, open the shell and type</p>
<pre>
$ dmesg
</pre>
<p>Last few lines should be like the following:</p>
<pre>
 sd 7:0:0:0: [sdb] Attached <acronym title="Small Computer System Interface">SCSI</acronym> removable disk
 sd 8:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 <acronym title="Gigabyte">GB</acronym>/1.92 GiB)
 sd 8:0:0:0: [sdb] Write Protect is off
</pre>
<p>Now we know it has been mapped as sdb</p>
<p>4. Use zcat to load the boot.img.gz onto your <acronym title="Universal Serial Bus">USB</acronym> drive</p>
<pre>
# zcat boot.img.gz > /dev/sdb
</pre>
<p>CAUTION!!! this will destroy the entire data on the <acronym title="Universal Serial Bus">USB</acronym> drive, make sure you have done the backup.<br />
If you get an error  ensure the following:<br />
- You are root (don&#8217;t use sudo)<br />
- The <acronym title="Universal Serial Bus">USB</acronym> drive it&#8217;s not mounted, if it is umount it before issuing the above command.</p>
<p>5. Now mount the <acronym title="Universal Serial Bus">USB</acronym> drive and copy the net-inst.iso image on it.</p>
<p>All done! Now plug it into the box you want to setup and enjoy the old fashion Debian installer <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the file timestamp on Linux</title>
		<link>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/</link>
		<comments>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 19:09:02 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=464</guid>
		<description><![CDATA[This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice. Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice.</p>
<p>Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in June.<br />
Today I want to check the file without editing it and make sure next time I won&#8217;t check it again:</p>
<pre>
$ ls -l
total 0
-rw-r--r-- 1 luca luca 290 2009-06-29 16:33 file1
</pre>
<p><a href="http://www.manpagez.com/man/1/touch/" rel="nofollow" target="_blank" class="external_icon">Touch</a> is an excellent tool in this case:</p>
<pre>
$ touch file1
$ ls -l
total 0
-rw-r--r-- 1 luca luca 0 2009-08-29 19:43 file1
</pre>
<p>The Modification Time has changed and so has the access time.</p>
<p>If you want to change just the modification time leaving the access time untouched try with the -m option</p>
<pre>
$ touch -m file1
$ ls -l
total 0
-rw-r--r-- 1 luca luca 0 2009-08-29 19:46 file1
$ stat file1
[..]
Access: 2009-08-29 19:43:45.000000000 +0100
Modify: 2009-08-29 19:46:15.000000000 +0100
Change: 2009-08-29 19:46:15.000000000 +0100
</pre>
<p>And -a is just for the Access Time.</p>
<p>Another interesting option is -t. It lets you set the time and the date with whatever you like. This is often used to do fishy things <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>
$ touch -t 200701012301 file1
$ stat file1
[..]
Access: 2007-01-01 23:01:00.000000000 +0000
Modify: 2007-01-01 23:01:00.000000000 +0000
Change: 2009-08-29 19:52:26.000000000 +0100
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Nameservers on Sun Solaris</title>
		<link>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/</link>
		<comments>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:51:15 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Adding Nameserver on Solaris]]></category>
		<category><![CDATA[Solaris Name Server]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=358</guid>
		<description><![CDATA[This is how to add a DNS Server to Solaris Box&#8230; First of all, Open up your favourite text editor and add the name servers into /etc/resolv.conf nameserver 192.168.1.1 If you need to add more, just add another one in the next line&#8230; Following the instructions below will walk you through the process&#8230; bash-3.00# ping [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is how to add a <acronym title="Domain Name Server">DNS</acronym> Server to Solaris Box&#8230;</p>
<p>First of all, Open up your favourite text editor and add the name servers into <strong>/etc/resolv.conf</strong></p>
<p><strong>nameserver 192.168.1.1</strong></p>
<p>If you need to add more, just add another one in the next line&#8230;</p>
<p>Following the instructions below will walk you through the process&#8230;</p>
<pre>bash-3.00# ping www.google.com
ping: unknown host www.google.com
bash-3.00# cat /etc/resolv.conf
nameserver 192.168.1.1
bash-3.00# cd /etc/
bash-3.00# cp -p nsswitch.conf nsswitch.conf.org
bash-3.00# cp -p nsswitch.dns nsswitch.conf
bash-3.00# /etc/init.d/nscd stop; /etc/init.d/nscd start
bash-3.00# ping www.google.com
www.google.com is alive
bash-3.00#</pre>
<p>As you can see, the Name Server is working!</p>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add IP Address / Default Gateway on Sun Solaris</title>
		<link>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/</link>
		<comments>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:39:07 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Add Default Gateway on Solaris]]></category>
		<category><![CDATA[Add IP on Solaris]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=352</guid>
		<description><![CDATA[Adding IP address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command ifconfig –a You should see something like the following&#8230; bash-3.00# ifconfig -a lo0: flags=2001000849&#60;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&#62; mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 rtls0: flags=1000842&#60;BROADCAST,RUNNING,MULTICAST,IPv4&#62; mtu 1500 index 2 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Adding <acronym title="Internet Protocol">IP</acronym> address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command <strong>ifconfig –a</strong></p>
<p>You should see something like the following&#8230;</p>
<pre>
bash-3.00# ifconfig -a
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:6:4f:47:76:1e
</pre>
<p>In this case, we will be adding the <acronym title="Internet Protocol">IP</acronym> address and subnet mask to <strong>rtls0</strong> along with the default gateway.</p>
<p><strong><acronym title="Internet Protocol">IP</acronym> Address:</strong> 192.168.1.60<br />
<strong>Subnet Mask:</strong> 255.255.255.0<br />
<strong>Default Gateway:</strong> 192.168.1.1</p>
<p>Here is how its done&#8230;</p>
<pre>
bash-3.00# ifconfig rtls0 192.168.1.60 netmask 255.255.255.0 up
bash-3.00# route add default 192.168.1.1
add net default: gateway 192.168.1.1
bash-3.00# ping 4.2.2.2
4.2.2.2 is alive
</pre>
<p>Success! We can now ping a <acronym title="Wide Area Network">WAN</acronym> <acronym title="Internet Protocol">IP</acronym>! and here is the new output of <strong>ifconfig -a</strong></p>
<pre>
bash-3.00# ifconfig -a
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL&gt; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2
inet 192.168.1.60 netmask ffffff00 broadcast 192.168.1.255
ether 0:6:4f:47:76:1e
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set multiple IPs on Debian</title>
		<link>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/</link>
		<comments>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 16:41:47 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2007/12/27/how-to-set-multiple-ips-on-debian/</guid>
		<description><![CDATA[Setting multiple IPs on Linux or in this case Debian is rather straight forward&#8230; All the network info is stored in the file /etc/network/interfaces and you just need to add the info to the file&#8230; Before making changes to this file, I recommend you check your values at least 3 times! If you have made [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Setting multiple IPs on Linux or in this case Debian is rather straight forward&#8230; All the network info is stored in the file <strong>/etc/network/interfaces</strong> and you just need to add the info to the file&#8230;</p>
<p>Before making changes to this file, I recommend you check your values at least 3 times! If you have made a mistake and trying to do it from a remote location, <strong>YOU WILL LOCK YOURSELF OUT!</strong></p>
<p>This is a sample configuration with device <strong>eth0</strong> having the <acronym title="Internet Protocol">IP</acronym> address of <strong>192.168.1.2</strong> on a Class C Network with <strong>192.168.1.1</strong> as the default gateway.</p>
<p><strong>/etc/network/interfaces:</strong></p>
<pre>
# /etc/network/interfaces – configuration file for ifup(8), ifdown(8)

# the loopback interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
</pre>
<p>In order to add multiple IPs to the same interface, In this case eth0 You need to add it in the following method&#8230;</p>
<pre>
auto eth0:0
iface eth0:0 inet static

address 192.168.1.3
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:1
iface eth0:1 inet static

address 192.168.1.4
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:2
iface eth0:2 inet static

address 192.168.1.5
netmask 255.255.255.0
broadcast 192.168.1.255
</pre>
<p>Thats it, after you have made all the necessary changes, you need to restart the networking by issueing the following command&#8230;</p>
<p><strong># /etc/init.d/networking restart</strong></p>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to gain ROOT access to a Linux Box within 10 Seconds</title>
		<link>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/</link>
		<comments>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 22:49:23 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ROOT]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2007/08/14/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/</guid>
		<description><![CDATA[It is pretty easy when it comes to gaining root password to any Linux System as long as you have physical access. This is how to change Fedora&#8217;s ROOT Password. When your box starts up, You will see the GRUB screen… What you need to do is, press the a Key instead of Enter You [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It is pretty easy when it comes to gaining root password to any Linux System as long as you have physical access.</p>
<p>This is how to change Fedora&#8217;s ROOT Password.</p>
<p>When your box starts up, You will see the GRUB screen…</p>
<p>What you need to do is, press the <strong>a</strong> Key instead of <strong>Enter</strong></p>
<p>You will see something like the following…</p>
<pre>kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet</pre>
<p>Add 1 at the end of that… So it looks like the following…</p>
<pre>kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 1</pre>
<p>This will make the box boot into Runlevel 1</p>
<p>You simply type</p>
<pre>passwd</pre>
<p>Enter the new ROOT password and reboot the machine.</p>
<p>Same thing goes for Any Linux System as welll… All you got to do is, add the following kernel argument…</p>
<pre>init=/bin/bash</pre>
<p>And then just change the password…</p>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Forcing / eliminating the WWW</title>
		<link>http://www.fnode.com/2006/08/forcing-eliminating-the-www/</link>
		<comments>http://www.fnode.com/2006/08/forcing-eliminating-the-www/#comments</comments>
		<pubDate>Tue, 15 Aug 2006 11:04:32 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2006/08/15/forcing-eliminating-the-www/</guid>
		<description><![CDATA[If you have a website and want to force www.domain.com Use the following .htaccess code RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] If you want to eliminate the www prefix like domain.com then use the following .htaccess code RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ RewriteRule ^(.*)$ http://%1/$1 [R=301,L]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you have a website and want to force <strong>www.domain.com</strong> Use the following <strong>.htaccess</strong> code</p>
<pre>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</pre>
<p>If you want to eliminate the www prefix like <strong>domain.com</strong> then use the following <strong>.htaccess</strong> code</p>
<pre>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2006/08/forcing-eliminating-the-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tar.gz</title>
		<link>http://www.fnode.com/2006/07/how-to-targz/</link>
		<comments>http://www.fnode.com/2006/07/how-to-targz/#comments</comments>
		<pubDate>Sat, 08 Jul 2006 14:27:07 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[add date stamp tarball]]></category>
		<category><![CDATA[date tar.gz]]></category>
		<category><![CDATA[how to tar.gz]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=5</guid>
		<description><![CDATA[If you are in the same directory as where your files / folders are placed, then you dont have to specify the file location. i.e. /usr/home/bleh/bleh This is how to make a .tar.gz from a Folder tar czf /path/to/output/folder/filename.tar.gz /path/to/folder i.e if you are in /path/to/output/ and you want to put the file in /path/to/output/ [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you are in the same directory as where your files / folders are placed, then you dont have to specify the file location. i.e. <kbd>/usr/home/bleh/bleh</kbd><br />
This is how to make a .tar.gz from a Folder</p>
<pre>tar czf /path/to/output/folder/filename.tar.gz /path/to/folder</pre>
<p>i.e if you are in
<pre>/path/to/output/</pre>
<p> and you want to put the file in /path/to/output/ you can use the following command.</p>
<pre>tar czf filename.tar.gz folder</pre>
<p>This is how to extract a .tar.gz file</p>
<pre>gunzip -c /path/to/folder/filename.tar.gz</pre>
<p>or like i do&#8230;</p>
<pre>tar -zxvf /path/to/folder/filename.tar.gz</pre>
<p>i.e if you are in
<pre>/path/to/folder/</pre>
<p> You can do the following&#8230;</p>
<pre>tar -zxvf filename.tar.gz</pre>
<p>View a list of all files in a .tar.gz archive</p>
<pre>gunzip -c /path/to/folder/filename.tar.gz | tar -tvf -</pre>
<p>i.e if you are in
<pre>/path/to/folder/</pre>
<p> You can do the following&#8230;</p>
<pre>gunzip -c filename.tar.gz | tar -tvf -</pre>
<p>Extract a single file from a .tar.gz file</p>
<pre>gunzip -c /path/to/folder/filename.tar.gz | tar -xvf - path/within/archive/filename.php</pre>
<p>i.e if you are in
<pre>/path/to/folder/</pre>
<p> You can do the following&#8230;</p>
<pre>gunzip -c filename.tar.gz | tar -xvf - path/within/archive/filename.php</pre>
<p>You can also add a date stamp to the tarball by using the following example below&#8230;</p>
<pre>tar -czf public_html-`date +%d%m%y`.tar.gz public_html</pre>]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2006/07/how-to-targz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

