<?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>Gaurish Sharma Live &#187; Linux</title>
	<atom:link href="http://www.gaurishsharma.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gaurishsharma.com</link>
	<description>Gaurish Sharma&#039;s blog foccused on Technology,Broadband,Latest Offers. He seldomly writes about his life experiances</description>
	<lastBuildDate>Fri, 03 Sep 2010 21:08:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>cdrtools vs cdrkit: The India-Pakistan of CD/DVD burning tools(Linux Only)</title>
		<link>http://www.gaurishsharma.com/2010/01/cdrtools-vs-cdrkit-the-india-pakistan-of-cddvd-burning-toolslinux-only.html</link>
		<comments>http://www.gaurishsharma.com/2010/01/cdrtools-vs-cdrkit-the-india-pakistan-of-cddvd-burning-toolslinux-only.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:27:50 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=382</guid>
		<description><![CDATA[Why you are only able to Write 4.3GB data in 4.7GB DVD-R, Read Below!]]></description>
			<content:encoded><![CDATA[<h2><strong>Background</strong></h2>
<p>Since ages ago, <a title="cdrtools" href="http://en.wikipedia.org/wiki/Cdrtools">cdrtools</a> was the default tool-set used for optical disc buring on Linux. Under the hood of those pretty GUI programs like k3b/brasero, was actually cdrtools which did the dirty work.it was being actively developed by a team led by <a href="http://en.wikipedia.org/wiki/Jörg_Schilling">Joerg Schilling</a>.The whole code was licensed under GPL.</p>
<p>One fine Morning,</p>
<p>Mr. Schilling decided to change license to <a href="http://en.wikipedia.org/wiki/Common_Development_and_Distribution_License">CDDL</a>.This is where everything started to go wrong!</p>
<h2><strong>What is the issue?</strong></h2>
<p>CDDL license is incompatible with the GPL.The CDDL is intended to be GPL incompatibleso cannot be distributed along with GPL code. Hence, it became illegal for Linux Distributions to redistribute cdrtools.</p>
<h2><strong>Debian comes to rescue!</strong></h2>
<p>Linux didn&#8217;t have any alternative to cdrtools, hence <a title="Debian - Mailing Lists" href="http://lists.debian.org/debian-devel-announce/2006/09/msg00002.html">debian project decided to fork last available GPLed code into Cdrkit</a>. they dropped cdrtools and included cdrkit. every major distro like Fedora,Ubuntu,Mandriva supported debian and did the same.debian took the responsibility and start to maintain cdrkit.</p>
<h2>Cool, everything finally settled.</h2>
<p>No, there is one small problem.CD/DVD burning is a complicated business that needs a lot of knowledge and also requires a lot of development effort which debian does not have.lately, it has been seen cdrkit  is not been actively developed (current to last stable was around a year).Addionatlly it is technically inferior to cdrtools.cdrkit still does not generate proper iso-level-3 file systems and has trouble with big file support(the famous 4.3GB data limit in DVD against the real capacity of 4.7GB) .<br />
This is the reason creation of proper blu-ray in linux is so hard.<br />
it seems the developers of cdrkit don&#8217;t have the resources/skills to maintain such a complex software.</p>
<h2><strong>Guess, we are stuck!</strong></h2>
<p>So Choice is what we have in this.If you face problems with cdrkit, there are two options:</p>
<p>1) Built and Install Cdrtools yourself.Source is available at its <a href="http://cdrecord.berlios.de/old/private/cdrecord.html">Home Page</a>. ArchLinux users can get it on aur.</p>
<p>2) (Last Option)Switch to propertiery closed source burning suite:<a href="http://www.nero.com/ena/linux4.html">NeroLinux.</a>. if everything fails then only you should go by this route. I would strongly advise you to try choose option 1)</p>
<p><strong>What is the purpose of this post</strong><br />
The purpose of this post if to let the users know the actual situation/state of CD/DVD burning apps in Linux. And let them select which software they want to use.</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=382&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.gaurishsharma.com/2008/09/archlinux-stop-dhcp-from-overwriting.html' rel='bookmark' title='Permanent Link: ArchLinux: Stop dhcp from overwriting resolv.conf(Linux Only)'>ArchLinux: Stop dhcp from overwriting resolv.conf(Linux Only)</a> <small>Here is a Quick tip for people using Archlinux: Sometimes...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/06/linux-bible-2008.html' rel='bookmark' title='Permanent Link: Linux Bible, 2008'>Linux Bible, 2008</a> <small>&gt; The Linux Bible 2008 Edition is the best first...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html' rel='bookmark' title='Permanent Link: Ubuntu Linux as Family PC'>Ubuntu Linux as Family PC</a> <small>We know Linux is a operating system where everything can...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2010/01/cdrtools-vs-cdrkit-the-india-pakistan-of-cddvd-burning-toolslinux-only.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FosJam &#8211; 2009</title>
		<link>http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html</link>
		<comments>http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html#comments</comments>
		<pubDate>Mon, 18 May 2009 21:31:15 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Me Myself and My Life]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=281</guid>
		<description><![CDATA[Finally Jaipur got freedom from shackles of proprietary &#38; restrictive demons.Fosjam.in was organized in city on 16-17 May 2009 jointly by Linux user group – Jaipur and JECRC research foundation. It is an event for promotion Free/Open Source Software. it was held at Jaipur Engineering College and Research Centre, Jaipur. I also attended the event [...]]]></description>
			<content:encoded><![CDATA[<p>Finally Jaipur got freedom from shackles of proprietary &amp; restrictive demons.<a title="Fosjam.in" href="http://Fosjam.in" target="_blank" class="broken_link">Fosjam.in</a> was organized in city on 16-17 May 2009 jointly by <a title="Linux user group &acirc; Jaipur" href="http://jugj.in" target="_blank" class="broken_link">Linux user group – Jaipur</a> and <a title="JECRC Eng College" href="http://www.jecrc.net" target="_blank">JECRC research foundation</a>. It is an event for promotion Free/Open Source Software. it was held at Jaipur Engineering College and Research Centre, Jaipur. I also attended the event by chance.</p>
<p>I believe it was the first time, such kind of event was happening in Jaipur. there was mad rush for the event &amp; people even came from outside Jaipur as well. online registrations were above 300, which was many times than expected.</p>
<h3>About the Event</h3>
<p>The whole event was organized in just 10days by enthusiastic member of <a href="http://jugj.in" target="_blank" class="broken_link">lug-Jaipur</a> and supportive students of JECRC.  speakers were free software developers from various parts of India. the talks were ranging basic topics like “how to communicate on internet effectively” and to some advanced topics like Embedded systems. Besides the main talk there here hands-on sessions called hackfests.</p>
<h3>Day 1</h3>
<p>Reached the Venue at 6:00PM, had no problems finding the venue thanks to easy instructions posted on their website. Event was start by a singing <a href="http://www.gnu.org/music/free-software-song" target="_blank" class="broken_link">Free Software Song</a> and blowing balloons called “Winblows” . Boy! what were they thinking?</p>
<p>After this,  we were told to proceed to Labs for the talk by speakers.I had trouble finding correct lab since they are too many and without guidance it was hell lot of confusing. somehow I ended up in LAB-three. there the topic was “<em>i-want-2-do-project-tell-me-wat-2-do-fedora</em>” by speaker called  Shakthi Kannan. the lab was well equipped with projector,AC and most important all machines were running fedora! Sessions started with all of us introducing ourselves. the talk was quite long but not boring. after session was over, there were hackfest scheduled from 10pm to 2:00AM. unfortunately, i couldn&#8217;t stay for that long.</p>
<p>Day 1 was awesome, event was well organized and everything was preplanned. since i had such a good experience  &#8211; I decided to return for day 2.</p>
<h3>Day 2</h3>
<p>In Morning, I reached On time. to my surprise the event got delayed by 1hr. so i waited,waited and waited. finally we were called at about 10:40AM for talk by<a title="lalith suresh's blog" href="http://lalithsuresh.wordpress.com/"> Lalith Suresh</a>. If i remember correctly, he is not speaker’s panel, which was little. he told us about Open Source and its Ideology,how projects work, how can we contribute etc.the talk filled with helpful information and how can one contribute. a welcome surprise! I liked his style and Deadly PJs.The  two girlfriend theory  = high availability was pwnage!!</p>
<p>One thing I noticed and liked on day1 as well on day2 that the umber geek T-Shirts  guys were wearing. i liked one on which &#8220;<strong>127.0.01</strong>&#8221; was written. Simple and Geeky!</p>
<p>Next was Session by <a title="Shakthi Kannan's Personal Web Site - Free Software Developer" href="http://www.shakthimaan.com"><em>Shakthi Kannan</em></a> titled &#8211; <em><q>Badam Halwa of Embedded Systems.</q></em>the presentation was interesting and well researched. i really appreciate all the effort he’s putting into it! Infact his talk was so good, that i decided to attend next talk  as well. during next talk, we had a announcement that some talk are rescheduled.</p>
<p>Sad news, one talk on Linux security which was looking to attend was dropped. due to changes, i had plenty of time to socialize. I even made a few friends there. After that we had a hand-on session on IRC and a talk on Distributed &amp; fail-safe computing.</p>
<h3>Conclusion</h3>
<p>A event on Technology, that too on Free and Open Source is Dream Come true for me. Ask Why?</p>
<p>Because I always saw such kinds of event happening other bigger cities like mumbai,pune  and used to think when can we have something like this in jaipur. I want to thank all who made it possible and <a href="http://jaipandya.com">Jai pandya</a> for letting me in <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Hopefully, next year it would bigger and better. maybe a national level event &#8211; possible. who knows.</p>
<p>As a custom, here are some pics from the event:</p>

<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/attachment/1' title='Emptyness'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/1-150x150.jpg" class="attachment-thumbnail" alt="Fedora Fedora !!" title="Emptyness" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/gaurish-001' title='foss-banner'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/gaurish-001-150x150.jpg" class="attachment-thumbnail" alt="banner for event" title="foss-banner" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/gaurish-002' title='jecrc_campur'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/gaurish-002-150x150.jpg" class="attachment-thumbnail" alt="Lush green lawns of Jerc campus" title="jecrc_campur" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/gaurish-003' title='Lalith Suresh'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/gaurish-003-150x150.jpg" class="attachment-thumbnail" alt="Lalith Suresh explaining us about Open-source." title="Lalith Suresh" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/gaurish-005' title='talk'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/gaurish-005-150x150.jpg" class="attachment-thumbnail" alt="students hungry for knowledge" title="talk" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/gaurish-006' title='Shakthi Kannan'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/gaurish-006-150x150.jpg" class="attachment-thumbnail" alt="Shakthi Kannan during his embedded system talk" title="Shakthi Kannan" /></a>
<a href='http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/groupshot' title='groupshot'><img width="150" height="150" src="http://www.gaurishsharma.com/wp-content/uploads/2009/05/groupshot-150x150.jpg" class="attachment-thumbnail" alt="A Group shot just after the IRC session. notice me still hooked on the terminal!" title="groupshot" /></a>

<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=281&type=feed" alt="" />

<p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2009/05/fosjamin-jaipur-jecrc-2009.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Linux] Ext3 partition detected wrongfully as ext4</title>
		<link>http://www.gaurishsharma.com/2008/11/linux-ext3-partition-detected.html</link>
		<comments>http://www.gaurishsharma.com/2008/11/linux-ext3-partition-detected.html#comments</comments>
		<pubDate>Fri, 14 Nov 2008 09:07:00 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Myself and My Life]]></category>

		<guid isPermaLink="false">http://gaurishsharma.wordpress.com/2008/11/14/linux-ext3-partition-detected-wrongfully-as-ext4/</guid>
		<description><![CDATA[Oh No! Recently, A partition on my backup harddrive was corrupted. It was i was clueless how it had happened. further, now the partition was refusing to mount and it was being detected as ext4. I tried mounting is manually: gaurish ~ $ sudo mount /dev/sdb6 /media/fl/ mount: unknown filesystem type 'ext4' Dmesg said &#8220;EXT3-fs: [...]]]></description>
			<content:encoded><![CDATA[<div style="font-family:Verdana,sans-serif;text-align:center;"><b><span style="font-size:x-large;">Oh No!</span></b></div>
<div class="separator" style="clear:both;text-align:center;"></div>
<div class="separator" style="clear:both;text-align:center;"></div>
<div class="separator" style="clear:both;text-align:center;"></div>
<div class="separator" style="clear:both;text-align:center;"><a href="http://1.bp.blogspot.com/_wMAC6frBFdw/SR0-_ti38FI/AAAAAAAAAZQ/Dl-43NTRwRg/s1600-h/Homer+Simpson+Oh+No.jpg"><img border="0" src="http://1.bp.blogspot.com/_wMAC6frBFdw/SR0-_ti38FI/AAAAAAAAAZQ/Dl-43NTRwRg/s200/Homer+Simpson+Oh+No.jpg" /></a></div>
<p>Recently, A partition on my backup harddrive was corrupted. It was i was clueless how it had happened. further, now the partition was refusing to mount and it was being detected as ext4.<br />
I tried mounting is manually:</p>
<pre class="alt2" style="border:1px inset;height:50px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;">gaurish  ~  $   sudo mount /dev/sdb6 /media/fl/
mount: unknown filesystem type 'ext4'</pre>
<p>Dmesg said</p>
<p>&#8220;<i>EXT3-fs: sdb6: couldn&#8217;t mount because of unsupported optional features (ca9bc1e0)</i>.&#8221;</p>
<p>I was not sure what to do next<br />
So i cried for help on various online Forums[<a href="http://bbs.archlinux.org/viewtopic.php?id=56975">1</a>][<a href="http://www.linuxquestions.org/questions/linux-newbie-8/sos-a-partition-on-backup-drive-cant-be-mounted-detected-as-ext4-676708/">2</a>][<a href="http://www.thinkdigit.com/forum/showthread.php?t=99748">3</a>] but all in waste.<br />
After that i got pissed off and decided to take matter into my own hands and starting reading on how Partitions in linux are made etc. Then i came to know about superblock.<br />
Bingo!, i had a bad <a href="http://en.wikipedia.org/wiki/Superblock">superblock</a>.<br />
Here is a Quick Procedure to recover from a bad super block(read nightmare)<br />
Open Terminal and type the following commands:<br />
1) see  backup superblock location<br />
<code></code></p>
<blockquote><p><code>~  $ dumpe2fs /dev/sdb6 | grep -i superblock</p>
<p>
<span style="font-weight:bold;">Output:</span><br />
dumpe2fs 1.41.3 (12-Oct-2008)                                                                                                                 <br />
Primary superblock at 0, Group descriptors at 1-2                                                                                           <br />
Backup superblock at 32768, Group descriptors at 32769-32770                                                                                <br />
Backup superblock at 98304, Group descriptors at 98305-98306                                                                                <br />
Backup superblock at 163840, Group descriptors at 163841-163842<br />
Backup superblock at 229376, Group descriptors at 229377-229378<br />
Backup superblock at 294912, Group descriptors at 294913-294914<br />
Backup superblock at 819200, Group descriptors at 819201-819202<br />
Backup superblock at 884736, Group descriptors at 884737-884738<br />
Backup superblock at 1605632, Group descriptors at 1605633-1605634<br />
Backup superblock at 2654208, Group descriptors at 2654209-2654210<br />
Backup superblock at 4096000, Group descriptors at 4096001-4096002<br />
</code></p></blockquote>
<p>
2) Run Fsck with Alternative Superblock</p>
<blockquote><p>$   sudo fsck -b 32768 /dev/sdb6<br />
fsck 1.41.3 (12-Oct-2008)<br />
e2fsck 1.41.3 (12-Oct-2008)<br />
/dev/sdb6 was not cleanly unmounted, check forced.<br />
Pass 1: Checking inodes, blocks, and sizes<br />
Pass 2: Checking directory structure<br />
Pass 3: Checking directory connectivity<br />
Pass 4: Checking reference counts<br />
Pass 5: Checking group summary information<br />
Free blocks count wrong for group #12 (30380, counted=30381).<br />
Fix? yes</p>
<p>Free blocks count wrong for group #127 (15027, counted=5927).<br />
Fix? yes</p>
<p>Free blocks count wrong (10539272, counted=10530173).<br />
Fix? yes</p>
<p>Free inodes count wrong for group #116 (32732, counted=32729).<br />
Fix? yes</p>
<p>Free inodes count wrong (24812957, counted=24812954).<br />
Fix? yes</p>
<p>
/dev/sdb6: ***** FILE SYSTEM WAS MODIFIED *****<br />
/dev/sdb6: 934/24813888 files (6.2% non-contiguous), 14282211/24812384 blocks</p></blockquote>
<p>
3) Done! Partition is successfully recovered and data is safe. now we can mount it normally.</p>
<blockquote><p>$   sudo mount /dev/sdb6 /media/test</p></blockquote>
<p>Now, After this incident i have to rethink my backup strategy, which till now have been reply solely on HDDs as backup medium. <br />
Comment &amp; Suggestions are welcome <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<div class="blogger-post-footer">Did you enjoy this Post?.Please give your feedback at contact at gaurishsharma.com.<br />
Read more at GaurishSharma.com</div>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=57&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.gaurishsharma.com/2008/06/linux-bible-2008.html' rel='bookmark' title='Permanent Link: Linux Bible, 2008'>Linux Bible, 2008</a> <small>&gt; The Linux Bible 2008 Edition is the best first...</small></li>
<li><a href='http://www.gaurishsharma.com/2010/01/cdrtools-vs-cdrkit-the-india-pakistan-of-cddvd-burning-toolslinux-only.html' rel='bookmark' title='Permanent Link: cdrtools vs cdrkit: The India-Pakistan of CD/DVD burning tools(Linux Only)'>cdrtools vs cdrkit: The India-Pakistan of CD/DVD burning tools(Linux Only)</a> <small>Why you are only able to Write 4.3GB data in...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html' rel='bookmark' title='Permanent Link: Dummies Guide to Scheduling Downloads(Linux Version)'>Dummies Guide to Scheduling Downloads(Linux Version)</a> <small>Linux is a stable OpenSource Operating system.It has a ability...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2008/11/linux-ext3-partition-detected.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dummies Guide to Scheduling Downloads(Linux Version)</title>
		<link>http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html</link>
		<comments>http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 17:41:00 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Bsnl Broadband]]></category>
		<category><![CDATA[Guides and Howtos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://gaurishsharma.wordpress.com/2008/10/02/dummies-guide-to-scheduling-downloadslinux-version/</guid>
		<description><![CDATA[Linux is a stable OpenSource Operating system.It has a ability to run for long hours and crashes are rarely seen.On top of it, it has a inbuilt scheduler which is robust and&#160; it never misses tasks. All this Characteristics make Linux a perfect choice for downloading. Yeah almost perfect choice (discussed later). In This Guide [...]]]></description>
			<content:encoded><![CDATA[<div>
<div class="separator" style="clear:both;text-align:center;"><a href="http://3.bp.blogspot.com/_wMAC6frBFdw/SOUABh3ZuBI/AAAAAAAAAWw/iRu3TE2iwg4/s1600-h/3810-linux-logo.jpg"><img border="0" src="http://3.bp.blogspot.com/_wMAC6frBFdw/SOUABh3ZuBI/AAAAAAAAAWw/X0FgKa48o0U/s200-R/3810-linux-logo.jpg" /></a></div>
<p>Linux is a stable OpenSource Operating system.It has a ability to run for long hours and crashes are rarely seen.On top of it, it has a inbuilt scheduler which is robust and&nbsp; it never misses tasks. All this Characteristics make Linux a perfect choice for downloading. Yeah almost perfect choice (discussed later).<br />
In This Guide we would learn how to smartly schedule downloads. This way files would be automatically downloaded while you sleep. This Guide is mainly for BSNL/MTNL broadband subscribers. I have Tried to prescribe a general procedure which is applicable on all major Distributions.so distribution specific goodies are not discussed here.</p>
<p>Mainly there are two mode of this, you need to pick a method which applies to you.</p>
<ul>
<li><b>Router Reboot method</b>: Suitable when your connection is configured as always-on and router is PPPoE mode. so you don&#8217;t need to dial your connection every time you connect to Internet. it works with selected routers which supports telnet connectivity.Dependant upon routers.
</li>
<li><b>Bridge Mode:</b> Suitable when you dial to connect to Internet using a Dialer program on your PC. in this setting your PC is in Bridge mode.it works with every router.
</li>
</ul>
<div align="left"><big><b>Understanding Cron</b></big> <big><b>Daemon</b></big><br />
Before we begin we should know how about cron &#8211; default linux scheduler <br />
Cron Daemon is a default scheduler for Linux based systems.Cron Daemon is&nbsp; responsible for scanning the crontab files and running the commands at the appropriate time. It always runs in background, wakes up every minute to check for any scheduled taks pending for execution. then it executes them and goes back to sleep. </p>
<p>Crond reads tasks from crontab, anything you write in your crontab with proper syntax will be read &amp; excuted by crond. Crontab as name suggests, is basically a file where sheduled tasks are arranged in tabular forum.The syntax of crontab is fairly simple.</p>
<table border="1">
<tbody>
<tr>
<th>Minutes</th>
<th>Hours</th>
<th>Day</th>
<th>Month</th>
<th>Day of the month</th>
<th>command</th>
</tr>
<tr>
<td>enter the minutes part of time, legal values 0-60</td>
<td>Enter the hours, in 24hr format. legal values 0-24</td>
<td>Enter the Day number starting from Monday, legal values 0-7</td>
<td>Enter the month,legal values 1-12</td>
<td>Enter a Date, legal values 1-31</td>
<td>Command you want to execute at scheduled time</td>
</tr>
</tbody>
</table>
<p>use command &#8220;visudo&#8221; to edit crontab.it would load a editor depending upon your $EDITOR variable. on Ubuntu you would get nano<br />
<a href="http://www.gentoo.org/doc/en/nano-basics-guide.xml">how to use nano</a>(easy)<br />
<a href="http://mirror1.linuxcbt.com/demos/classic_edition/LinuxCBT_Classic_vi.html" class="broken_link">how to use vi</a> (advanced)</p>
<p><big><b>Things Which are common among both methods</p>
<p></b></big>1) Create a simple text file in your home folder and name it <b>&#8220;downloads.txt</b>&#8221; &amp; notedown its full path. Insert the *Direct* links of files you want to download into this newly created file. The files given in this would be downloaded by wget automactically.wget can handle http &amp; ftp downloads. After download completes remove the link and enter new ones. insert one link per line. Remember to add direct link only.</p>
<p>2) If you use torrents, install your torrent client and notedown its full path to its binary. you can use &#8220;whereis&#8221; command to find its exact location. generally its /usr/share/sbin. If you are looking for worthy torrent clients, look for <a href="http://deluge-torrent.org/">deluge</a> or azurus now vuze</p>
<div align="center" style="color:red;"><big><big><b>Router Reboot Method</b></big></big></div>
<p>1) I wrote a simple Shell script for rebooting router. it works nicely on D-link GLB 502T. although you may need to change userid,password &amp; command values.copy paste this script in a file and save it as <i>router-reboot.sh</i>. make it excutable by </p>
<p><i>chmod a+x router-reboot.sh</i></p>
<p></p>
<pre class="alt2" style="border:1px inset;height:354px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;">#!/bin/sh
#############################################
#Script Written By Gaurish Sharma
#change the password,userid &amp; command values with your own set
#the default password &amp; username
# in most cased is 'admin'
#use it in terminal as sh router-reboot.sh | telnet
#(C) GaurishSharma.com
#############################################
add='open 192.168.1.1'
userid='root'
password='your_passoword'
command='reboot'
echo $add
sleep 1
echo $userid
sleep 1
echo $password
sleep 1
echo $command
sleep 1</pre>
<p>
2) Open Terminal and enter &#8220;crontab -e&#8221;. enter the following in your crontab and save it</p>
<pre class="alt2" style="border:1px inset;height:98px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;"># m h  dom mon dow   command
# Reboot Entry, please replace with correct path
10 2 * * * cd /home/gaurish/scripts &amp;&amp; sh router-reboot.sh | telnet
# Start Torrent client, please replace with correct path of your router
12 2 * * * DISPLAY=:0.0 /opt/azureus/azureus
# Downloads via wget, Please replace with corrent path
13 2 * * * wget -ci /home/gaurish/downloads.txt
# Reboot Entry, please replace with correct path
50 7 * * * cd /home/gaurish/scripts &amp;&amp; sh router-reboot.sh | telnet</pre>
<p>
3) Now we need to enter command to shutdown computer everyday at 7.51AM.this only can be done via root user. so now the enter command as &#8220;sudo crontab -e&#8221; and Insert this line.</p>
<pre class="alt2" style="border:1px inset;height:34px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;">50 7 * * * /sbin/shutdown -h 0</pre>
<p>
4) (Optional) you can install mailx package to see the log of what happened while you were sleeping</p>
<p></p>
<div align="center">
<div style="color:red;"><b><big><big>Bridge Mode</big></big></b></div>
<div align="left"></div>
</div>
<p>1) we would be using default command which you use to dial to internet. on most cases its pon dsl-provider for connectinig and poff for disconnection . in case the command are diffrent on your machine please replace them.</p>
<p>2) Open Terminal and enter <i>&#8220;crontab -e&#8221;</i> now paste the following in it</p>
<pre class="alt2" style="border:1px inset;height:82px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;"># m h  dom mon dow   command
# Start Torrent client, please replace with correct path of your torrent program
10 2 * * * DISPLAY=:0.0 /opt/azureus/azureus
# please replace with correct path of download.txt
13 2 * * * wget -ci /home/gaurish/downloads.txt</pre>
<p>
3) Now we need to use root crontab, use &#8220;sudo crontab -e&#8221; to access it.</p>
<pre class="alt2" style="border:1px inset;height:66px;overflow:auto;text-align:left;width:640px;margin:0;padding:6px;">10 2 * * *  /usr/bin/pon dsl-provider
49 7 * * * /usr/bin/poff
50 7 * * * /sbin/shutdown -h 0</pre>
<p>
4) (Optional) you can install mailx package to see the log of what happened while you were sleeping.</div>
</div>
<p><b>What you are missing in Linux, comparing to windows?</b><br />
In starting of this post i said,&nbsp;<b> </b>almost perfect choice for downloading. so you gotta missing something. which is ability to power on your PC automatically.<br />
I am still searching for a method to start a Linux box automatically at a specific time. <br />
As a workaround you can do the same thing via your BIOS, but a limited no of BIOS support this. so either leave your machine running with monitor turn off or use the BIOS trick.</p>
<p><b>Related Posts:</b><span style="font-size:small;">&nbsp;</span></p>
<ul>
<li><span style="font-size:small;"><a href="http://www.gaurishsharma.com/2008/09/dummies-guide-to-scheduling-downloads.html">Dummies Guide to Scheduling Downloads(Windows)</a></span><span style="font-size:small;">&nbsp;</span></li>
<li><span style="font-size:small;"><a href="http://www.gaurishsharma.com/2008/08/solutionsome-random-sites-do-not-open.html">Solution:Some Random sites do not open with BSNL Broadband</a></span></li>
</ul>
<div class="blogger-post-footer">Did you enjoy this Post?.Please give your feedback at contact at gaurishsharma.com.<br />
Read more at GaurishSharma.com</div>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=51&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.gaurishsharma.com/2008/09/dummies-guide-to-scheduling-downloads.html' rel='bookmark' title='Permanent Link: Dummies Guide to Scheduling Downloads'>Dummies Guide to Scheduling Downloads</a> <small>Since state owned Bharat Sanchar Nigam Ltd (BSNL) launched its...</small></li>
<li><a href='http://www.gaurishsharma.com/2010/06/direct-server-data-transfer-ftp-recursive.html' rel='bookmark' title='Permanent Link: [Howto] Direct Server site transfer via FTP(recursive)'>[Howto] Direct Server site transfer via FTP(recursive)</a> <small>Ever want to move a your website from one server...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html' rel='bookmark' title='Permanent Link: Ubuntu Linux as Family PC'>Ubuntu Linux as Family PC</a> <small>We know Linux is a operating system where everything can...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ArchLinux: Stop dhcp from overwriting resolv.conf(Linux Only)</title>
		<link>http://www.gaurishsharma.com/2008/09/archlinux-stop-dhcp-from-overwriting.html</link>
		<comments>http://www.gaurishsharma.com/2008/09/archlinux-stop-dhcp-from-overwriting.html#comments</comments>
		<pubDate>Sat, 20 Sep 2008 12:53:00 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://gaurishsharma.wordpress.com/2008/09/20/archlinux-stop-dhcp-from-overwriting-resolvconflinux-only/</guid>
		<description><![CDATA[Here is a Quick tip for people using Archlinux: Sometimes we don&#8217;t want dhcpcd overwriting our resolv.conf anymore, since it is customized. We do, however, want dhcpcd to continue to automatically set out IP, default gateway, et cetera. To cause this effect we will edit /etc/conf.d/dhcpcd as root, with our favorite editor. The directive we [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a Quick tip for people using Archlinux: </p>
<div class="separator" style="clear:both;text-align:center;"><a href="http://1.bp.blogspot.com/_wMAC6frBFdw/SNTsFOH2RWI/AAAAAAAAAS8/KG78eoy8Uts/s1600-h/archlinux.png"><img border="0" src="http://1.bp.blogspot.com/_wMAC6frBFdw/SNTsFOH2RWI/AAAAAAAAAS8/Xd9QsFEehaQ/s200-R/archlinux.png" /></a></div>
<p>
Sometimes we don&#8217;t want dhcpcd overwriting our resolv.conf anymore, since it is customized. We do, however, want dhcpcd to continue to automatically set out IP, default gateway, et cetera. To cause this effect we will edit <code>/etc/conf.d/dhcpcd</code> as root, with our favorite editor. The directive we are looking for is <code>DHCPCD_ARGS</code> and by default that directive should look like the following figure:  </p>
<pre>&nbsp;</pre>
<blockquote><pre>DHCPCD_ARGS="-t 30 -h $HOSTNAME"
</pre>
</blockquote>
<p>To that directive, add the -R flag. Your directive line should look something like the following figure: </p>
<blockquote><pre>DHCPCD_ARGS="-t 30 -h $HOSTNAME -R"</pre>
</blockquote>
<p>Taken from <a href="http://wiki.archlinux.org/index.php/Post_Installation_Tips">Archwiki</a>
<div class="blogger-post-footer">Did you enjoy this Post?.Please give your feedback at contact at gaurishsharma.com.<br />
Read more at GaurishSharma.com</div>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=45&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html' rel='bookmark' title='Permanent Link: Ubuntu Linux as Family PC'>Ubuntu Linux as Family PC</a> <small>We know Linux is a operating system where everything can...</small></li>
<li><a href='http://www.gaurishsharma.com/2010/01/cdrtools-vs-cdrkit-the-india-pakistan-of-cddvd-burning-toolslinux-only.html' rel='bookmark' title='Permanent Link: cdrtools vs cdrkit: The India-Pakistan of CD/DVD burning tools(Linux Only)'>cdrtools vs cdrkit: The India-Pakistan of CD/DVD burning tools(Linux Only)</a> <small>Why you are only able to Write 4.3GB data in...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html' rel='bookmark' title='Permanent Link: Dummies Guide to Scheduling Downloads(Linux Version)'>Dummies Guide to Scheduling Downloads(Linux Version)</a> <small>Linux is a stable OpenSource Operating system.It has a ability...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2008/09/archlinux-stop-dhcp-from-overwriting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux as Family PC</title>
		<link>http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html</link>
		<comments>http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html#comments</comments>
		<pubDate>Thu, 10 Jul 2008 07:32:00 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Guides and Howtos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://gaurishsharma.wordpress.com/2008/07/10/ubuntu-linux-as-family-pc/</guid>
		<description><![CDATA[We know Linux is a operating system where everything can be customized as tag line for linux is &#8220;Linux &#8211; We Have a Choice&#8221;. this way a person can get a tailor made working environment which does all the tasks in his/her way, he can schedule his daily encoding &#38; downloading tasks,made custom keyboard shortcuts [...]]]></description>
			<content:encoded><![CDATA[<div>We know Linux is a operating system where everything can be customized as tag line for linux is &#8220;Linux &#8211; We Have a Choice&#8221;. this way a person can get a tailor made working environment which does all the tasks in his/her way,  he can schedule his daily encoding &amp; downloading tasks,made custom keyboard shortcuts for his most used function.</p>
<p>This generally  suits a single user Pc, but what about a system used by many persons in a single user account?, for them we need some customisations that does not need any prior expriance &amp; comouter could be operated by use of common sense. now you would ask why use a single user account?, why not create accounts for every user. here are the reasons:-</p>
<p>* It would require you to always log-on &amp; log-off every now, which requires you to restart all your running applications. For example:while you are burning a DVD, your dad needs to check a important e-mail from his boss. his E-mail is configured on Evolution(default mail client for ubuntu), so he has to login his account and check email whereas you can&#8217;t logoff as basaro can&#8217;t be stopped in the middle.<br />how convient it would have been if there was a single user account which would be suitable for all.</p>
<p>* Remembering Userid &amp; passwords is also a big project. we already have bank a/c,ATM pin,login details at work,internet banking userid &amp; passwords and tons of other such details. who add one more to the never ending list?</p>
<p><span style="color:rgb(51,102,255);"><b>Question :<br />How to Manage a single user account which suits everyone in your family</b></span></p>
<p><span style="font-weight:bold;">Ans:</span><br />Manage Thundebird &amp; Firefox using Profile Manager<br />Mozilla applications store your personal settings, added extensions and themes, and user data such as bookmarks, passwords, cookies and mail in a &#8220;profile&#8221;. The Profile Manager allows you to create and manage profiles. With a new profile the application will run without any extensions, themes, or customized settings that may be causing problems, but you can still  import your data from another profile or switch back to a previous profile.<br /><a href="http://kb.mozillazine.org/Profile_Manager" target="_blank">More Details</a></p>
<p></div>
<p>&lt;<span style="font-style:italic;">Did you enjoy this post? Why not leave a <a href="http://www.blogger.com/comment.g?blogID=8205051555485070358&amp;postID=476400337105460015">comment</a> below and continue the conversation, or subscribe to my <a href="http://gslive.blogspot.com/feeds/posts/default">feed</a> and get articles like this delivered automatically each day to your feed reader. If you don&#8217;t have a feed reader, you can always have these articles delivered to your email inbox every day. Click here to <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=2080213&amp;loc=en_US">sign up</a>.</span>
<div class="blogger-post-footer">Did you enjoy this Post?.Please give your feedback at contact at gaurishsharma.com.<br />
Read more at GaurishSharma.com</div>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=28&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.gaurishsharma.com/2008/06/what-to-do-when-person-uses-your-name.html' rel='bookmark' title='Permanent Link: What to do when a Person uses your name &amp; Photo on Orkut'>What to do when a Person uses your name &amp; Photo on Orkut</a> <small>Orkut, a Social networking by google which is a rage...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/06/ashley-highfield-bbc-executive-reviews.html' rel='bookmark' title='Permanent Link: Ashley Highfield, BBC executive, Reviews Ubuntu'>Ashley Highfield, BBC executive, Reviews Ubuntu</a> <small>Ashley Highfield, Director of BBC Future Media and Technology has...</small></li>
<li><a href='http://www.gaurishsharma.com/2008/10/dummies-guide-to-scheduling.html' rel='bookmark' title='Permanent Link: Dummies Guide to Scheduling Downloads(Linux Version)'>Dummies Guide to Scheduling Downloads(Linux Version)</a> <small>Linux is a stable OpenSource Operating system.It has a ability...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2008/07/ubuntu-linux-as-family-pc.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
