<?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>Internetworking, Security &#38; Tech &#187; Debian</title>
	<atom:link href="http://www.nish.com/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nish.com</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 23:46:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Email Alert on SSH Login</title>
		<link>http://www.nish.com/2012/04/email-alert-on-ssh-login/</link>
		<comments>http://www.nish.com/2012/04/email-alert-on-ssh-login/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 16:31:52 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=1057</guid>
		<description><![CDATA[The following method can be used when a user login to a linux machine, an email will be sent with IP information. For this to work, you need to have the program mutt installed. Then add the following to the user&#8217;s .bashrc file, which is located in /home/$user/.bashrc echo `who` &#124; /usr/bin/mutt -s "SSH Alert" [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">T</span>he following method can be used when a user login to a linux machine, an email will be sent with <acronym title="Internet Protocol">IP</acronym> information.</p>
<p>For this to work, you need to have the program <strong>mutt</strong> installed.</p>
<p>Then add the following to the user&#8217;s <code>.bashrc</code> file, which is located in <code>/home/$user/.bashrc</code></p>
<pre>echo `who` | /usr/bin/mutt -s "<acronym title="Secure Shell">SSH</acronym> Alert" email@address.here</pre>
<p>For example, if you want an email sent everytime the user <strong>root</strong> login, edit the file <code>/home/root/.bashrc</code> and add the above code.</p>]]></content:encoded>
			<wfw:commentRss>http://www.nish.com/2012/04/email-alert-on-ssh-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: change default text editor on Linux shell</title>
		<link>http://www.nish.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/</link>
		<comments>http://www.nish.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>Nish Vamadevan</dc:creator>
				<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.nish.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.nish.com/2009/08/how-to-install-debian-from-usb-drive/</link>
		<comments>http://www.nish.com/2009/08/how-to-install-debian-from-usb-drive/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:13:19 +0000</pubDate>
		<dc:creator>Nish Vamadevan</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.nish.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.nish.com/2009/08/how-to-install-debian-from-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set multiple IPs on Debian</title>
		<link>http://www.nish.com/2007/12/how-to-set-multiple-ips-on-debian/</link>
		<comments>http://www.nish.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[UNIX]]></category>
		<category><![CDATA[Debian]]></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.nish.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.nish.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/</link>
		<comments>http://www.nish.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[UNIX]]></category>
		<category><![CDATA[Debian]]></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.nish.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

