<?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>LinuxMonk &#187; Bash</title>
	<atom:link href="http://www.linuxmonk.org/category/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmonk.org</link>
	<description>A Journey Towards Infinity...</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:32:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Connecting Zantel&#8217;s Z-Connect modem to Internet in Linux(Ubuntu)</title>
		<link>http://www.linuxmonk.org/2009/12/27/connecting-zantels-z-connect-modem-to-internet-in-linuxubuntu/</link>
		<comments>http://www.linuxmonk.org/2009/12/27/connecting-zantels-z-connect-modem-to-internet-in-linuxubuntu/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 08:40:24 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wvdial]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=306</guid>
		<description><![CDATA[Z-Connect is one of the fastest wireless modem in Tanzania. Connecting it in Linux was a challenge. Here is the configuration file to connect to the Internet in Linux. I am using Ubuntu. In your terminal give the command #wvdialconf Edit the file /etc/wvdial.conf with your favorite text editor and overwrite the entire contents with [...]]]></description>
			<content:encoded><![CDATA[<p>Z-Connect is one of the fastest wireless modem in Tanzania. Connecting it in Linux was a challenge. Here is the configuration file to connect to the Internet in Linux. I am using Ubuntu.</p>
<ul>
<li>In your terminal give the command</li>
</ul>
<blockquote><p>#wvdialconf</p></blockquote>
<ul>
<li>Edit the file /etc/wvdial.conf with your favorite text editor and overwrite the entire contents with the following</li>
</ul>
<blockquote><p>Init2 = AT+CRM=1<br />
Dial Command = ATM1L3DT<br />
Modem Type = Analog Modem<br />
Phone = #777<br />
ISDN = 0<br />
Username = &#8220;@zantel.com&#8221;<br />
Init1 = ATZ<br />
Password = &#8221; &#8221;<br />
Modem = /dev/ttyUSB0<br />
Baud = 519600</p></blockquote>
<ul>
<li>Now come to the terminal and type the command</li>
</ul>
<blockquote><p>#wvdial</p></blockquote>
<p>Enjoy Browsing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/12/27/connecting-zantels-z-connect-modem-to-internet-in-linuxubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IP Bonding or Teaming in Linux &#8211; RHEL 5</title>
		<link>http://www.linuxmonk.org/2009/06/24/ip-bonding-or-teaming-in-linux-rhel-5/</link>
		<comments>http://www.linuxmonk.org/2009/06/24/ip-bonding-or-teaming-in-linux-rhel-5/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 16:25:14 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Networking]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=282</guid>
		<description><![CDATA[IP Bonding or Teaming is a method of combining all the network interfaces togather into one with one of the types like Network Fault Tolerance, Round Robin, Back up, Loadbalancing etc. So it looks virtually as a single interface to the outside world providing high availability, based on the type you have set. Means, in [...]]]></description>
			<content:encoded><![CDATA[<p>IP Bonding or Teaming is a method of combining all the network interfaces togather into one with one of the types like Network Fault Tolerance, Round Robin, Back up, Loadbalancing etc. So it looks virtually as a single interface to the outside world providing high availability, based on the type you have set. Means, in a Network fault tolerant type one will take over if other fails and in a Load Balancing type trafic is shared when one busy to the other.</p>
<p>I got a chance of doing IP bonding in a HP Proliant Servers running RHEL 5. Everthing went well with no issues. Let me share my experience with my blog readers. In linux IP bonding is quite simple and is done with some kernel modules and no extra package is to be installed. In Windows, bonging or teaming is done with some software. With HP server, it can easily be done with some HP Network Configuration Uitlities.<br />
Two establish IP bonding you need a minimum of two nework interfaces</p>
<p style="margin-bottom: 0in;"><strong>Step 1:Check your network interfaces</strong></p>
<blockquote>
<p style="margin-top: 0.19in; margin-bottom: 0.19in; line-height: 100%;"><span style="color: #0000ff;"><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><span>#ethtool eth0</span></span></span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><br />
</span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">Settings for eth0:<br />
Supported ports: [ TP MII ]<br />
Supported link modes: 10baseT/Half 10baseT/Full<br />
100baseT/Half 100baseT/Full<br />
Supports auto-negotiation: Yes<br />
Advertised link modes: 10baseT/Half 10baseT/Full<br />
100baseT/Half 100baseT/Full<br />
Advertised auto-negotiation: Yes<br />
</span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>Speed: 100Mb/s</strong></span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><br />
</span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>Duplex: Full<br />
</strong></span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">Port: MII<br />
PHYAD: 1<br />
Transceiver: internal<br />
Auto-negotiation: on<br />
Supports Wake-on: g<br />
Wake-on: g<br />
Current message level: 0&#215;00000007 (7)<br />
</span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>Link detected: yes</strong></span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong></strong></span></span></p>
<p style="margin-top: 0.19in; margin-bottom: 0.19in; line-height: 100%;"><span style="color: #0000ff;"><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><span>#ethtool eth1</span></span></span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><br />
Settings for eth1:<br />
Supported ports: [ TP MII ]<br />
Supported link modes: 10baseT/Half 10baseT/Full<br />
100baseT/Half 100baseT/Full<br />
Supports auto-negotiation: Yes<br />
Advertised link modes: 10baseT/Half 10baseT/Full<br />
100baseT/Half 100baseT/Full<br />
Advertised auto-negotiation: Yes<br />
Speed: 100Mb/s<br />
Duplex: Full<br />
Port: MII<br />
PHYAD: 1<br />
Transceiver: internal<br />
Auto-negotiation: on<br />
Supports Wake-on: g<br />
Wake-on: g<br />
Current message level: 0&#215;00000007 (7)<br />
Link detected: yes </span></span><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong></strong></span></span></p>
</blockquote>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step 2: Check all the requiured kernel modules are available(bonding and mii)</strong></p>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#modprobe &#8211;list | grep bonding</span></p>
<p style="margin-bottom: 0in;">/lib/modules/2.6.18-92.el5/kernel/drivers/net/bonding/bonding.ko</p>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;"># modprobe &#8211;list | grep mii</span></p>
<p style="margin-bottom: 0in;">/lib/modules/2.6.18-92.el5/kernel/drivers/net/mii.ko</p>
<p style="margin-bottom: 0in;">
</blockquote>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step 3: Editing the modprobe.conf file</strong></p>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#vim /etc/modprobe.conf</span></p>
<p style="margin-bottom: 0in;">and add the following lines at the end</p>
<p style="margin-bottom: 0in;">alias bond0 bonding</p>
<p style="margin-bottom: 0in;">options bond0 mode=1 arp_ip_target=192.168.52.1 arp_interval=200 primary=eth0</p>
</blockquote>
<p style="margin-bottom: 0in;">To know more about the parameters to be used here use the command</p>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;"><span style="background: transparent none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">#modinfo bonding</span></span></p>
<p style="margin-bottom: 0in;">filename:       /lib/modules/2.6.18-92.el5/kernel/drivers/net/bonding/bonding.ko</p>
<p style="margin-bottom: 0in;">author:         Thomas Davis, tadavis@lbl.gov and many others</p>
<p style="margin-bottom: 0in;">description:    Ethernet Channel Bonding Driver, v3.2.4</p>
<p style="margin-bottom: 0in;">version:        3.2.4</p>
<p style="margin-bottom: 0in;">license:        GPL</p>
<p style="margin-bottom: 0in;">srcversion:     DB2ABCD47A83F8567EBE92B</p>
<p style="margin-bottom: 0in;">depends:</p>
<p style="margin-bottom: 0in;">vermagic:       2.6.18-92.el5 SMP mod_unload gcc-4.1</p>
<p style="margin-bottom: 0in;">parm:           max_bonds:Max number of bonded devices (int)</p>
<p style="margin-bottom: 0in;">parm:           miimon:Link check interval in milliseconds (int)</p>
<p style="margin-bottom: 0in;">parm:           updelay:Delay before considering link up, in milliseconds (int)</p>
<p style="margin-bottom: 0in;">parm:           downdelay:Delay before considering link down, in milliseconds (int)</p>
<p style="margin-bottom: 0in;">parm:           use_carrier:Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default) (int)</p>
<p style="margin-bottom: 0in;">parm:           mode:Mode of operation : 0 for balance-rr, 1 for active-backup, 2 for balance-xor, 3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, 6 for balance-alb (charp)</p>
<p style="margin-bottom: 0in;">parm:           primary:Primary network device to use (charp)</p>
<p style="margin-bottom: 0in;">parm:           lacp_rate:LACPDU tx rate to request from 802.3ad partner (slow/fast) (charp)</p>
<p style="margin-bottom: 0in;">parm:           xmit_hash_policy:XOR hashing method: 0 for layer 2 (default), 1 for layer 3+4 (charp)</p>
<p style="margin-bottom: 0in;">parm:           arp_interval:arp interval in milliseconds (int)</p>
<p style="margin-bottom: 0in;">parm:           arp_ip_target:arp targets in n.n.n.n form (array of charp)</p>
<p style="margin-bottom: 0in;">parm:           arp_validate:validate src/dst of ARP probes: none (default), active, backup or all (charp)</p>
<p style="margin-bottom: 0in;">parm:           fail_over_mac:For active-backup, do not set all slaves to the same MAC.  0 of off (default), 1 for on. (int)</p>
<p style="margin-bottom: 0in;">module_sig:	883f35048175a9e6e24e25c96667c37112449509f5739ebf283efa5295d315b73cee5e956f6e25709cbcf2826571c5ffc20f2d87672bb921d610d7</p>
<p style="margin-bottom: 0in;">
</blockquote>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step 3: Now load the modules</strong></p>
<blockquote><p>&lt;!&#8211; 		@page { size: 8.27in 11.69in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	&#8211;&gt;</p>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;"> #modprobe bonding</span></p>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;"> #modprobe mii</span></p>
</blockquote>
<p style="margin-bottom: 0in;">This will create a bond0 config file in the networks-scripts directory</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step 4: Editting the three configuration files for eth0,eth1,bond0</strong></p>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">|# vim /etc/sysconfig/network-scripts/ifcfg-bond0</span></p>
<p style="margin-bottom: 0in;">DEVICE=bond0</p>
<p style="margin-bottom: 0in;">BOOTPROTO=none</p>
<p style="margin-bottom: 0in;">ONBOOT=yes</p>
<p style="margin-bottom: 0in;">NETMASK=255.255.255.0</p>
<p style="margin-bottom: 0in;">IPADDR=192.168.52.4</p>
<p style="margin-bottom: 0in;">USERCTL=no</p>
<p style="margin-bottom: 0in;">GATEWAY=192.168.52.1</p>
<p style="margin-bottom: 0in;">TYPE=Ethernet</p>
<p style="margin-bottom: 0in;">IPV6INIT=no</p>
<p style="margin-bottom: 0in;">PEERDNS=yes</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#vim  /etc/sysconfig/network-scripts/ifcfg-eth0</span></p>
<p style="margin-bottom: 0in;">DEVICE=eth0</p>
<p style="margin-bottom: 0in;">BOOTPROTO=none</p>
<p style="margin-bottom: 0in;">ONBOOT=yes</p>
<p style="margin-bottom: 0in;">MASTER=bond0</p>
<p style="margin-bottom: 0in;">SLAVE=yes</p>
<p style="margin-bottom: 0in;">USERCTL=no</p>
<p style="margin-bottom: 0in;">TYPE=Ethernet</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#vim /etc/sysconfig/network-scripts/ifcfg-eth1</span></p>
<p style="margin-bottom: 0in;">DEVICE=eth1</p>
<p style="margin-bottom: 0in;">BOOTPROTO=none</p>
<p style="margin-bottom: 0in;">ONBOOT=yes</p>
<p style="margin-bottom: 0in;">MASTER=bond0</p>
<p style="margin-bottom: 0in;">SLAVE=yes</p>
<p style="margin-bottom: 0in;">USERCTL=no</p>
<p style="margin-bottom: 0in;">TYPE=Ethernet</p>
</blockquote>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step5: Restart your networks service</strong></p>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#/etc/init.d/network restart</span></p>
</blockquote>
<blockquote>
<p style="margin-bottom: 0in;"><span style="color: #0000ff;">#ifconfig</span></p>
</blockquote>
<p style="margin-bottom: 0in;">Now use ifconfig command to check the, you will look a new interface called bond0 has been created.  The ip you set for it is going to be your ip address of the system. Enjoy bonding</p>
<p style="margin-bottom: 0in;">
<p style="margin-top: 0.19in; margin-bottom: 0.19in; line-height: 100%;">
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/06/24/ip-bonding-or-teaming-in-linux-rhel-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with Forkbombs</title>
		<link>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/</link>
		<comments>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/#comments</comments>
		<pubDate>Mon, 25 May 2009 06:03:05 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=274</guid>
		<description><![CDATA[Try this small shell script in your terminal. To have more fun remote login to others desktops and try this command in the terminal. ){ :&#38; };: This is a strange command in linux which crashes the system. Let me explain what exactly happens when this command is executed. ) &#8211; Function header where : [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0in;">Try this small shell script in your terminal. To have more fun remote login to others desktops and try this command in the terminal.</p>
<blockquote>
<p style="margin-bottom: 0in;"><strong> <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){ <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> :&amp; };:</strong></p>
</blockquote>
<p style="margin-bottom: 0in;">This is a strange command in linux which crashes the system. Let me explain what exactly happens when this command is executed.</p>
<ul>
<li> <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ) &#8211; Function header where : is the name of the function(Colon and two parenthesis)</li>
<li>{ Opens the body of the function</li>
<li> A blank space is more important here, to have a good syntax</li>
<li>: recursive call to the same function(Colon)</li>
<li>|- pipes the out put of one function call to another</li>
<li>: which calls the function again (Colon)</li>
<li>&amp; Forks, creates a child process and assigns the function call to it</li>
<li>} Closes the function definition</li>
<li>; delimiter to end the function definition (Semicolon)</li>
<li>: actual call to the function(Colon)</li>
</ul>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">So the above script calls recursively itself twice and forks it to a child process indefinitly. At a point the memory gets full and the system crashes. You can gaurd yourself from forkbombs by restricting the number of process that can be executed at a time. Have fun with fork bombs&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Some Frequently used Linux Commands</title>
		<link>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/</link>
		<comments>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/#comments</comments>
		<pubDate>Sun, 24 May 2009 14:41:14 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=269</guid>
		<description><![CDATA[Here are some of the frequently and very useful linux commands Command Description top A dynamic task list ps -e To view the current snapshot of proccess at a time kill &#60;process-id&#62; Kill a process by specifying its id. Process id can be found from the previous command killall &#60;process-name&#62; Kill a process with its [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some of the frequently and very useful linux commands</p>
<p style="margin-bottom: 0in;">
<table style="height: 431px;" border="1" cellspacing="0" cellpadding="4" width="541" bordercolor="#000000">
<col width="250"></col>
<col width="312"></col>
<tbody>
<tr valign="top">
<td><strong>Command</strong></td>
<td width="312"><strong>Description</strong></td>
</tr>
<tr valign="top">
<td>top</td>
<td width="312">A dynamic task list</td>
</tr>
<tr valign="top">
<td>ps -e</td>
<td width="312">To view the current snapshot of proccess at a time</td>
</tr>
<tr valign="top">
<td>kill &lt;process-id&gt;</td>
<td width="312">Kill a process by specifying its id. Process id can be found 			from the previous command</td>
</tr>
<tr valign="top">
<td>killall &lt;process-name&gt;</td>
<td width="312">Kill a process with its process name. The process name can be 			found using ps -e command</td>
</tr>
<tr valign="top">
<td>fdisk -l</td>
<td width="312">Displays the partion table and list of all the memory devices 			connected to the system</td>
</tr>
<tr valign="top">
<td>mount /dev/&lt;device-name&gt;  /path/to/mountpoint</td>
<td width="312">Used to mount a external or internal memory device to the 			system. The device name can be found from the previous command.</td>
</tr>
<tr valign="top">
<td>mount -t ntfs-3g /dev/&lt;device-name&gt;  /path/to/mountpoint 			-o force</td>
<td width="312">To force mount a memory device which uses ntfs file system</td>
</tr>
<tr valign="top">
<td>sudo nautilus</td>
<td width="312">To open the file browser in root mode. Normally when u open the 			file browser in ubuntu it will not be in root mode. Provided the 			currnet user is a sudoer</td>
</tr>
<tr valign="top">
<td>locate &lt;file-name-pattern&gt;</td>
<td width="312">Used to search or find files by their names. Normally the 			search is done based on a index database. It is good to update the 			database before searching to get recently created files.</td>
</tr>
<tr valign="top">
<td>updatedb</td>
<td width="312">Used to update the file index database</td>
</tr>
<tr valign="top">
<td>cat &lt;filename&gt;</td>
<td width="312">Display the contents of a file</td>
</tr>
<tr valign="top">
<td>cat &lt;filename&gt; | grep &lt;pattern&gt;</td>
<td width="312">The output of the first command is given as input to the next 			command using a pipe. Grep command display the lines that has 			pattern text</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">Use,   man&lt;command-name&gt; to get more details about all the above commands</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vedio Recording using webcam in any Linux Distro</title>
		<link>http://www.linuxmonk.org/2008/10/14/vedio-recording-using-webcam-in-any-linux-distro/</link>
		<comments>http://www.linuxmonk.org/2008/10/14/vedio-recording-using-webcam-in-any-linux-distro/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 06:12:51 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://linuxmonk.wordpress.com/?p=164</guid>
		<description><![CDATA[For vedio recording in linux, mplayer alone may not be enough, one additional package that comes with mplayer is needed. Its mencoder. To install mencoder in a debian based distro use the command $sudo apt-get install mencoder For other distros like redhat you can use relevant tools like YUM to install mencoder. Then for vedio [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;">For vedio recording in linux, mplayer alone may not be enough, one additional package that comes with mplayer is needed.  Its mencoder. To install mencoder in a debian based distro use the command</p>
<blockquote>
<p style="margin-bottom:0;"><strong>$sudo apt-get install mencoder</strong></p>
</blockquote>
<p style="margin-bottom:0;">For other distros like redhat you can use relevant tools like YUM to install mencoder.</p>
<p style="margin-bottom:0;">Then for vedio recording follow the commad below</p>
<p style="margin-bottom:0;"><strong>Video Recording Without Sound</strong></p>
<blockquote>
<p style="margin-bottom:0;"><strong> $ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -nosound -ovc lavc -o filename.avi</strong></p>
</blockquote>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><strong>Video recording With Sound</strong></p>
<blockquote>
<p style="margin-bottom:0;"><strong> $ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o filename.avi</strong></p>
</blockquote>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">To change/increase the rate of frames captured use the fps option of the above command.</p>
<p style="margin-bottom:0;">Use it like</p>
<blockquote>
<p style="margin-bottom:0;"><strong>-fps 24</strong></p>
<p style="margin-bottom:0;">Rock with you webcam&#8230;.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2008/10/14/vedio-recording-using-webcam-in-any-linux-distro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set GRUB Password after the Installation of any Distro</title>
		<link>http://www.linuxmonk.org/2008/10/01/set-grub-password-after-the-installation-of-any-distro/</link>
		<comments>http://www.linuxmonk.org/2008/10/01/set-grub-password-after-the-installation-of-any-distro/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 18:04:33 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[BootLoader]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[GRUB]]></category>

		<guid isPermaLink="false">http://linuxmonk.wordpress.com/?p=155</guid>
		<description><![CDATA[If you forgot to set the password during the time of installing the linux distribution, and if you feel to set the password for your grub boot loader. Then here is the answer&#8230; Switch to root using &#8216;su&#8217; command and execute &#8216;grub&#8217; command in terminal/konsole. Prompt will change to &#8216;grub&#62;&#8217; execute md5crypt to generate password [...]]]></description>
			<content:encoded><![CDATA[<p>If you forgot to set the password during the time of installing the linux distribution, and if you feel to set the password for your grub boot loader. Then here is the answer&#8230;</p>
<p>Switch to root using &#8216;su&#8217; command and execute &#8216;grub&#8217; command in terminal/konsole. Prompt will change to &#8216;grub&gt;&#8217;<br />
execute md5crypt to generate password hash.</p>
<blockquote><p><strong>grub&gt; md5crypt</strong></p></blockquote>
<p>it will prompt you for password, enter the password which you are going to set for GRUB. it will display encrypted password hash.</p>
<blockquote><p><strong>Password: *******<br />
Encrypted: $1$X2jZi$KeCC6NuRp0BJDt32jCvnw0</strong></p></blockquote>
<p>note down encrypted password hash or copy it and exit grub mode using the grub command.</p>
<blockquote><p>
<strong>grub&gt; quit</strong></p></blockquote>
<p>Now edit the<br />
edit /boot/grub/menu.lst file and insert encrypted password above the &#8220;title&#8221; lines or insert near commented examples of password line.</p>
<blockquote>
<p><strong>password &#8211;md5 &lt;password-hash&gt;<br />
## ## End Default Options ##<br />
title        Ubuntu 8.04.1, kernel 2.6.24-19-generic</strong></p></blockquote>
<p>save edited file and reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2008/10/01/set-grub-password-after-the-installation-of-any-distro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Knowing Currently running Kernel image version and GCC version used to compile the Kernel</title>
		<link>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/</link>
		<comments>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:54:11 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://linuxmonk.wordpress.com/?p=14</guid>
		<description><![CDATA[The command used to find the $cat /proc/version Eg.. $ cat /proc/version Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008 Similarly for knowing the CPU information use the command $cat /proc/cpuinfo If you are using a Core 2 duo processor informations of both the processors will [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p style="margin-bottom:0;">The command used to find the   $cat /proc/version</p>
<p style="margin-bottom:0;">Eg..</p>
<p><strong><em>$ cat /proc/version</em><br />
<em>Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008 </em></strong></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Similarly for knowing  the CPU information use the command</p>
<p style="margin-bottom:0;"><strong><em>$cat /proc/cpuinfo</em></strong></p>
<p style="margin-bottom:0;">If you are using a Core 2 duo processor informations of both the processors will be listed separatly. Check it out&#8230;..</p>
<p style="margin-bottom:0;">Similarly /proc/ directory has many files use cat command to many information line meory info, swap space informations, etc using appropriate files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
