<?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>Linux For All &#187; Kunal Gautam</title>
	<atom:link href="http://www.linux4all.in/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux4all.in</link>
	<description>Making Linux Usable For All From Newbies To Techies</description>
	<lastBuildDate>Thu, 18 Feb 2010 19:07:18 +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>Breaking News Alert On Your Linux Machine</title>
		<link>http://www.linux4all.in/2008/12/05/create-a-breaking-news-alert-ticker-on-linux/</link>
		<comments>http://www.linux4all.in/2008/12/05/create-a-breaking-news-alert-ticker-on-linux/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 15:26:20 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Alert]]></category>
		<category><![CDATA[breaking news alert box on your linux machine]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux breaking news ticker]]></category>
		<category><![CDATA[linux news ticker]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=66</guid>
		<description><![CDATA[A shell script for Breaking news alert on Linux Box]]></description>
			<content:encoded><![CDATA[<p>For the past few days, I&#8217;ve been disconnected from T.V. and I couldn&#8217;t keep up with the buzz around. Visiting web portals frequently for updates didn&#8217;t seem feasible either. The tickers provided by many web portals could&#8217;ve been used, but, unfortunately almost all of them are incompatible with Linux, the beautiful OS.This was the very reason behind me venturing out to code a <strong>Breaking News Alert for Linux Machines.</strong> And, proudly, I was successful in that.<em> According to the theory that states, &#8220;anything good and useful is to be shared&#8221;, here, I share the source code and instructions to create a <strong>custom Breaking News Alert </strong></em><em><strong>for your Linux Machine/</strong></em><em><strong>Linux News Ticker </strong></em></p>
<p><strong> </strong><br />
<span id="more-66"></span></p>
<h2>Source Code</h2>
<p>In the sample code below, I&#8217;ve used  <a title="Daily News &amp; Analysis" href="http://www.dnaindia.com/" target="_blank">DNAIndia</a> <a title="DNA Latest News Feed" href="http://www.dnaindia.com/syndication/rss,catid-0.xml" target="_blank">Latest News Feed<br />
</a><strong>Here is the code for GNOME Desktop Environment</strong><br />
Download it From <a href="http://linux.tech-nologic.info/wp-content/uploads/2008/12/gnome.sh">Here</a> in a textt File</p>
<blockquote><p>#!/bin/bash<br />
mkdir -p /tmp/dnadata<br />
cd /tmp/dnadata<br />
rm -rf news-latest*<br />
wget http://www.dnaindia.com/services/rss/news-latest.xml<br />
if [[ "$(echo  $(md5sum news-latest.xml | sed -e 's:news-latest.xml::g'))" == "$(echo  $(md5sum check.xml | sed -e 's:check.xml::g'))" ]]<br />
then<br />
echo &#8220;same news&#8221;</p>
<p>else</p>
<p>cat news-latest.xml | grep &#8220;pubDate&#8221; | sed -e &#8216;s:&lt;pubDate&gt;::g&#8217; | sed -e &#8216;s:&lt;/pubDate&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 1<br />
cat news-latest.xml | grep &#8220;title&#8221; | sed -e &#8216;s:&lt;title&gt;::g&#8217; | sed -e &#8216;s:&lt;/title&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 2<br />
cat news-latest.xml | grep &#8220;description&#8221; | sed -e &#8216;s:&lt;description&gt;::g&#8217; | sed -e &#8216;s:&lt;/description&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 3<br />
zenity &#8211;display :0 &#8211;title=&#8221;$(echo $(cat 2))&#8221; &#8211;info &#8211;text=&#8221;$(echo $(cat 3)) n n n n News as on $(echo $(cat 1))&#8221;<br />
fi<br />
cat news-latest.xml &gt; check.xml</p></blockquote>
<p><strong>Here Is Coding For KDE</strong></p>
<p>Download it From <a href="http://linux.tech-nologic.info/wp-content/uploads/2008/12/kde.sh">Here</a> in a text File</p>
<blockquote><p>#!/bin/bash<br />
mkdir -p /tmp/dnadata<br />
cd /tmp/dnadata<br />
rm -rf news-latest*<br />
wget http://www.dnaindia.com/services/rss/news-latest.xml<br />
if [[ "$(echo  $(md5sum news-latest.xml | sed -e 's:news-latest.xml::g'))" == "$(echo  $(md5sum check.xml | sed -e 's:check.xml::g'))" ]]<br />
then<br />
echo &#8220;same news&#8221;</p>
<p>else<br />
cat news-latest.xml | grep &#8220;pubDate&#8221; | sed -e &#8216;s:&lt;pubDate&gt;::g&#8217; | sed -e &#8216;s:&lt;/pubDate&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 1<br />
cat news-latest.xml | grep &#8220;title&#8221; | sed -e &#8216;s:&lt;title&gt;::g&#8217; | sed -e &#8216;s:&lt;/title&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 2<br />
cat news-latest.xml | grep &#8220;description&#8221; | sed -e &#8216;s:&lt;description&gt;::g&#8217; | sed -e &#8216;s:&lt;/description&gt;::g&#8217; | head -n 3 | tail -n 1 &gt; 3<br />
kdialog &#8211;display :0 &#8211;title=&#8221;$(echo $(cat 2))&#8221; &#8211;msgbox=&#8221;$(echo $(cat 3)) n n n n News as on $(echo $(cat 1))&#8221;<br />
fi<br />
cat news-latest.xml &gt; check.xml</p></blockquote>
<p>___<br />
<em>Please Note : As My Linux Box Is out of Disk Space . I&#8217;m Unable to check the KDE Script . But I hope it will run Fine . If any one can Confirm please Drop a Comment</em><br />
___</p>
<ul>
<li><strong>Save the Above Script in a File and add it to cron job</strong></li>
</ul>
<p>To add a cron job use following command<br />
<em>[You need to know VI or VIM for this]</em></p>
<blockquote><p>crontab -eu username</p></blockquote>
<p>replace username with your desired username<br />
and add following entry [ which will check every one minute ]</p>
<blockquote><p>*/1 * * * * /bin/bash   /path/to/the/file/script &amp;&gt; /dev/null</p></blockquote>
<p><em><strong>The above command is set to execute every minute.</strong></em></p>
<p>Here is Screen Shot of The Script</p>
<div id="attachment_103" class="wp-caption alignnone" style="width: 430px"><img class="size-full wp-image-103" title="breaking_news" src="http://linux.tech-nologic.info/wp-content/uploads/2008/12/breaking_news.jpeg" alt="breaking_news" width="420" height="234" /><p class="wp-caption-text">Breaking News Aleart ScreenShot </p></div>
<h2>Short Description about the Script</h2>
<p>This script downloads the specified RSS feed and checks against any old versions of the same. If a change is observed , the script extracts the relevant information from the feed and sends the output to different files. These are then displayed using the ALERT command.<br />
<em>PS. This script needs an active Internet connection for its successful execution. (Duh!!)</em></p>
<p>You can use any other news feed for your <strong>Breaking News Alert Box/Live News Ticker on your Linux Machine</strong>. If you&#8217;re stuck with that or need help/guidance with regard to the code, kindly drop a comment with your original email, so that I could personally respond to you.</p>
<p style="text-align: right;">Special Thanks To <a title="Only Fresh Thoughts and Insights blogged." href="http://aravindjose.com/blog/" target="_blank">Aravind Jose T.</a> for helping me to pep-up this post !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/12/05/create-a-breaking-news-alert-ticker-on-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Thunderbird e-mail Client on Linux</title>
		<link>http://www.linux4all.in/2008/09/25/installing-thunderbird-e-mail-client-on-linux/</link>
		<comments>http://www.linux4all.in/2008/09/25/installing-thunderbird-e-mail-client-on-linux/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 16:13:29 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=44</guid>
		<description><![CDATA[Thunderbird is a free, open-source and cross-platform mail client. This Post will Guide on How to install Thunderbird on Linux]]></description>
			<content:encoded><![CDATA[<p><em>Thunderbird is a free, open-source and cross-platform mail client for most operating systems including, but not limited to, Windows, Linux and Macintosh. It is based on the Mozilla code base. It is a robust and easy to use client, similar to competing products like Outlook Express, but with some major advantages such as junk mail classification.</em><span id="more-44"></span></p>
<p><strong>Installing Thunderbird</strong> [Itz Simple as ABC !!! ]</p>
<p>You can install Thunderbird either by your repository provided by your Distro or by downloading the Thunderbird from their official site<br />
You can download the Thunderbird client from<br />
<a class="alignleft" title="Thunderbird Download Page" href="http://www.mozilla.com/en-US/thunderbird/" target="_blank">http://www.mozilla.com/en-US/thunderbird/</a></p>
<p>How to run<br />
If you have install it through repository provided by your Distro, Then It will be available in your menu</p>
<p>If you have downloaded the file from <a title="Thunderbird Email Client Downlaod Page" href="http://www.mozilla.com/en-US/thunderbird/" target="_blank">http://www.mozilla.com/en-US/thunderbird/</a> then Follow following step to run it <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Download file<br />
Open Terminal and go to the Directory where you downloaded the Thunderbird .</p>
<p>And supply following command “<em>tar -xvzf thunderbird-2.0.0.16.tar.gz</em>”<br />
remember to replace filename with yours [ I've this file version which was latest at the time of writing ]</p>
<p>After extracting the file go to the extracted file directory and run following command to execute the Thunderbird Mail Client by “<em>./thunderbird</em>”</p>
<p>It will launch Thunderbird Client and Enjoy [ Ya remember to Fill all the setting to Receive and Send mail <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ].Wasnot it simple as ABC ?</p>
<p>Stay Back for more Tips and Tricks for Thunderbird &#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/09/25/installing-thunderbird-e-mail-client-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Write support for all users in SUSE 11</title>
		<link>http://www.linux4all.in/2008/09/12/enabling-write-support-for-all-users-in-suse-11/</link>
		<comments>http://www.linux4all.in/2008/09/12/enabling-write-support-for-all-users-in-suse-11/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 18:35:36 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[novell]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[ntfs-3g]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=29</guid>
		<description><![CDATA[By Default non root user don't have full access to the NTFS partition. In this tutorial you will get how to enable full read and write permission to a general or non root user.]]></description>
			<content:encoded><![CDATA[<p>Open SusE 11 is really nice linux distro ,made available by novell .It got many feature by default at the time of installation itself !!. One of this great feature is NTFS drive support.<br />
Although root user has the full access [ i.e. Read Write and Executable ] permission by default. But other users don&#8217;t . In this tutorial I will tell you how to enable Full access to other users too.<span id="more-29"></span></p>
<p>Prequisites :</p>
<p>1)know how to edit files<br />
2)Root Permission</p>
<p>First logged in with root account [ either via console or via graphics ]<br />
NOTE : USER CAN USE SUDO COMMAND ALSO</p>
<p>Then edit the /etc/fstab file<br />
edit the following in the file<br />
/dev/disk/by-id/scsi-URDEVICE_ID /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0</p>
<p>to following fmask and dmask<br />
fmask=000,dmask=000</p>
<p>so that it should look like this<br />
/dev/disk/by-id/scsi-URDEVICE_ID /windows/C ntfs-3g users,gid=users,fmask=000,dmask=000,locale=en_US.UTF-8 0 0</p>
<p>now unmount the volume and mount it again<br />
#umount /windows/C/<br />
and remount by<br />
#mount -a</p>
<p>and the drive will be mounted with full access</p>
<p>If you have any problem please you are free to contact me [ comment here for it <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ]</p>
<blockquote><p>Note:- I shud not be held responsible if you cause any data loss [ though nothing happen with me still its nice to write warning <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ]</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/09/12/enabling-write-support-for-all-users-in-suse-11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Update Your Linux Box Status to Twitter</title>
		<link>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/</link>
		<comments>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 15:56:38 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=22</guid>
		<description><![CDATA[A short Guide on How to post your PC Uptime or Service status on Twitter. This will help a System Admin to monitor his Server from remote location ]]></description>
			<content:encoded><![CDATA[<p>From few days my PC has started twitting ! Ya you heard right my PC is twitting now days. Its really a great thing to get your PC status through twitter . <span id="more-22"></span> Please note that there may be different method of doing the following . I&#8217;ve dove what I liked.  Step First Register a Twitter account for your PC .  Step Two Create a shell script for twitter API <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  [ need curl to be installed on your Linux Box ]</p>
<blockquote><p>#!/bin/bash curl -u username:password -d status=&#8221;$*&#8221; http://twitter.com/statuses/update.xml</p></blockquote>
<p>Replace the above user name and password with your own credential  Step Three  Set a cron job [ cron job will run your script after every specific time ]  to set cron job just log into superuser mode and pass following command [ this command checked on Redhat,Fedora Core and Suse]</p>
<blockquote><p>#crontab -eu root</p></blockquote>
<p>and after that command add the following lines into your cron job</p>
<blockquote><p>*/10 * * * *   /bin/sh /path/to/your/twitter/script.sh My PC uptime is $(uptime)</p></blockquote>
<p>If you need any sort of help or to get a customized output please feel free to leave comment  and save the cron job and restart the cron job  To restart cron job in REDHAT and FEDORA CORE</p>
<blockquote><p># service crond restart</p></blockquote>
<p>For Suse [ I've tested this on suse 11 ]</p>
<blockquote><p># service cron restart</p></blockquote>
<p>So now Your PC will update its status over twitter every 10 mins to change. If your want your PC to send his update every one hour use following</p>
<blockquote><p>* */1 * * *   /bin/sh /path/to/your/twitter/script.sh My PC uptime is $(uptime)</p></blockquote>
<p>The Following Expectation have been taken from the author to the reader !!!</p>
<p>1)You might be running Fedora , Redhat or Suse [ altough I've not tested on ubuntu / debian the process may be same ]</p>
<p>2)You know basic vi / vim operation !! you need this knowledge to know how to save a file !!</p>
<p>3)you know basic of crontab . BTW if you dont know I will explain it just leave your comments <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>4)User should not abuse the service of twitter for this !! <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<p>5)User Will add a cron job for deleting root mails too or have any other solutions [ you will get a mail in inbox everytime when a cronjob is executed ]</p>
<p>Special Thanks to Anoj Ramaswamy Sundar for http://anojrs.blogspot.com/2008/03/twittering-from-command-line.html This is base of the whole article without which it was not possible to write this article <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   apart from getting only uptime you can even know your server status <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<blockquote><p>*/10 * * * *   /bin/sh /path/to/your/twitter/script.sh $(service mysql status)</p></blockquote>
<p>above will publish mysql status [ replace mysql with mysqld in fedora and redhat ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Kernel Compilation</title>
		<link>http://www.linux4all.in/2008/07/30/kernel-compilation/</link>
		<comments>http://www.linux4all.in/2008/07/30/kernel-compilation/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 23:25:14 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=12</guid>
		<description><![CDATA[A guide to Kernel compilation. This post contain Short Guide about how to compile kernel .]]></description>
			<content:encoded><![CDATA[<p>This is very presice and short note regarding kernel compilation. If you have any doubts please you can ask freely . Just leave a comment here</p>
<p><strong>The following packages are needed for compiling kernel</strong></p>
<p><span id="more-12"></span>glibc-headers</p>
<p>glibc-devel</p>
<p>cpp-*</p>
<p>binutils-*</p>
<p>gcc-*</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Optional Packages [ require on method of Compilation ]</strong></p>
<p class="MsoNormal"><em>if using xconfig method</em></p>
<p>tcl-*</p>
<p class="MsoNormal">tk-*</p>
<p class="MsoNormal">or qt3*</p>
<p class="MsoNormal"><em>if using menuconfig</em></p>
<p>ncurses*</p>
<p class="MsoNormal">ncurses-devel*</p>
<p class="MsoNormal">
<p class="MsoNormal">Please note * means version and machine architecture <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Download the kernel versions from kernel.org site and extract it<br />
now following commands are to be fired [ as this is short note no details about command are given ask question by commenting ]</p>
<p class="MsoNormal">#make mrproper</p>
<p class="MsoNormal">
<p class="MsoNormal">
<blockquote>
<p class="MsoNormal">#make xconfig  &#8211;&gt; Graphical and best way</p>
<p>#make menuconfig<br />
<strong>The above two option are for customizing kernel accordingly to requirements</strong></p></blockquote>
<p>#make dep</p>
<p class="MsoNormal">#make clean</p>
<p class="MsoNormal">
<p class="MsoNormal">#make bzImage</p>
<p class="MsoNormal">
<p class="MsoNormal">#make modules</p>
<p class="MsoNormal">
<p class="MsoNormal">#make modules_install</p>
<p class="MsoNormal">
<p class="MsoNormal">#make install</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal"><strong>and yes it is installed</strong></p>
<p class="MsoNormal"><strong>NOTE:- EXECUTING SOME COMMAND MAY TAKE SOME TIME AND SYSTEM RESOURCES</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/07/30/kernel-compilation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating Your own Yum Repository</title>
		<link>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/</link>
		<comments>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 18:28:52 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=11</guid>
		<description><![CDATA[Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.Install A Yum based repository on your Linux Box using this guide :)]]></description>
			<content:encoded><![CDATA[<p><strong>YUM</strong> or Yellowdog Updater Modified is an interactive, automated update program which can be used for maintaining system using rpm. Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.<br />
Yum makes it easier to maintain groups of machines without having to manually update each one using rpm.<br />
<span id="more-11"></span><br />
<strong>What is a Repository ?</strong><br />
A repository is a collection of list of rpm[s]. It contain various information regarding the rpm like its dependencies etc.</p>
<p><strong>Why to use Yum if I can install RPM using rpm command?</strong><br />
Well if you want to install RPM you have to make sure that its dependencies are also installed . But this is not in the case of YUM you can simply install package with its dependencies. YUM take care of your all install things . Also update feature is not available in the rpm installation method but it is available in yum.</p>
<p><strong>Here are some key features of &#8220;Yum&#8221;:</strong><br />
• Multiple Repositories<br />
• Simple config file<br />
• Correct dependency calculation<br />
• Fast operation<br />
• rpm-consistent behavior<br />
• comps.xml group support, including multiple repository groups<br />
• Simple interface</p>
<p style="text-align: center;"><strong>Starting With Creating Your Own Repository [Server Side Configuration]</strong></p>
<p><strong>Step First : Check Prequisites</strong><br />
-Have Your Distro CD/DVD</p>
<p>-Check if you have free space on your Hard Disk or not [Total space required vary from Distro to Distro]</p>
<p><strong>Step Two : Copy Disc to Hard Disk</strong><br />
First mount your CD/DVD  and copy it to hard disk<br />
cp -avr /cd/dvd/mount/point/   /destination/directory/</p>
<p><strong>Step Three : Intalling CreateRepo Package</strong><br />
Now go to your directory where you copied the files and search for createrepo-*.rpm file * may be different from version to version and system architecture<br />
Install that rpm using rpm command<br />
install using following command<br />
rpm -ivh &#8211;aid createrepo-*.rpm</p>
<p>Repeat this step with your all you cd .<br />
Note:- If you want install Repository on your network thrugh ftp or http upload in their respective default directories i.e /var/ftp/pub for ftp server and /var/www/html for http server.</p>
<p><strong>Step four: Run createrepo</strong><br />
Go to the directory where you copied the file and run the createrepo command<br />
createrepo -v .<br />
[please note that “.” {dot} after that command as we are in present directory ]</p>
<p>Now you have done all thing.<br />
Now we will see Client side setting</p>
<p style="text-align: center;"><strong>Client Side Setting For YUM</strong></p>
<p>Create a repo file in /etc/yum.repos.d/ directory [ you can name anything to ur file make sure a .repo extension is added later on]<br />
vim /etc/yum.repos.d/my.repo</p>
<p>add following date in that file</p>
<blockquote><p>[Myrepo]<br />
name=Any name you want to put<br />
baseurl=file:///destination/directory/<br />
enabled=1<br />
gpgcheck=0</p></blockquote>
<p>The first line is alias given for your repository . This help to indicate/find that from which repository the package is available.<br />
Second line is name which you can put any thing<br />
Next comes baseurl<br />
base url supports different protocols like file:// ftp:// httpd:// etc. if you are running repository from local pc then give absolute path after file:// . for ftp give ftp://server_ip_or_domain/pub_dir_or_accessable_dir or http://server_ip_or_domain/dir<br />
next line is enabled this specify if yum should enable that repo server for installtion or not 1 is for enable and 0 is for disable<br />
gpgcheck is for checking gpg key. as I don’t required it so I disabled it if you enabled it then you hav to add one more line after that<br />
gpgkey=/your/path/to/key</p>
<p>after this save that repo file and run following command<br />
yum clean all [ will clean yum database ]<br />
yum list [will list the files / packages available on that directory ]</p>
<p>If you find some difficulty in using it please feel free to contact us</p>
<p><em><strong>Note:- SElinux or Firewall may conflict sometimes [ for ftp and http service ]<br />
Note:- I used RHEL server 5 edition . This process is same for RHEL 4,5 FC [versions I don’t know]</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Basic Shell Scripting</title>
		<link>http://www.linux4all.in/2008/05/31/basic-shell-scripting/</link>
		<comments>http://www.linux4all.in/2008/05/31/basic-shell-scripting/#comments</comments>
		<pubDate>Sat, 31 May 2008 05:14:18 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell scripting]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=10</guid>
		<description><![CDATA[Shell scripts or simply scripts are collection or group of command that are stored in a file.This post will Guide you little bit about Shell Scripting]]></description>
			<content:encoded><![CDATA[<p>Hello to all. Sorry for delayed posting of posts.I was little bit busy in Server settings of RHEL.</p>
<p>So you have in mind what is shell scripting ????</p>
<p><strong>Shell scripts</strong> or simply scripts are collection or group of command that are stored in a file.Now you will think what&#8217;s the use of it ?<br />
Actually it is not possible to run each and every command manually on pc.If this is a repetative job then its again became a headache. So we use Scripting to store those commands and get Outputs. Even we can sheduled the script to run at particular time.</p>
<p><span id="more-10"></span> So here we start to write a simple script which will print &#8220;Hello World&#8221;</p>
<p><strong>Step One</strong><br />
Create a file name firstscript.sh   [ remember to give it .sh extension ]<br />
Now open any text editor of your choice and write following commands</p>
<p><strong>Step two</strong> : <strong><em>Commands [ Below this Command Begin , Description Given after the  script is completed ]</em></strong></p>
<p><em>#! /bin/bash<br />
# You Can Comment any thing here<br />
# make sure u use a hash in begningecho &#8220;Hello World&#8221;# End of Script</em></p>
<p><em> </em></p>
<p><strong>Description</strong><br />
First Line should define which shell you are using<br />
there are several shells present in unix system, some of the following are :-<br />
/bin/bash        Bash Shell<br />
/bin/sh          Bourne Shell<br />
/bin/csh	     C Shell<br />
/usr/bin/perl    Perl Script Shell<br />
/usr/bin/python  Python Script Shell</p>
<p>The First Line should start with &#8220;#!&#8221; Followed by Shell<br />
eg<br />
#! /bin/sh<br />
#! /bin/csh<br />
#! /usr/bin/perl</p>
<p>Then give commands in the file like I&#8217;ve supplied &#8220;echo&#8221; Command in this script<br />
or you can even give direct commands also<br />
like<br />
<em>#! /bin/bash<br />
date<br />
cal<br />
clear</em></p>
<p>It will give output of date &amp; cal command subsequently and clear screen</p>
<p>You can even provide comment to a command just use a hash &#8220;#&#8221; in line and it will act as comment</p>
<p><strong>Step 3<br />
</strong>Now question arises how to run this script ???<br />
its very simple<br />
there are two methods<br />
<strong><em>Method 1</em></strong><br />
supply following command<br />
sh firstscript.sh</p>
<p><strong><em>Method 2</em></strong><br />
Chmod[chmod command change permission of the file] the file to make it executable file<br />
command is as follows<br />
chmod 777 firstscript.sh</p>
<p>and run script by supplying following thing in your commadn terminal<br />
./firstscript.sh</p>
<p><strong><em>Stay tuned for more articles on shell scripting</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/05/31/basic-shell-scripting/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Basic Command &#8211; II</title>
		<link>http://www.linux4all.in/2008/05/17/basic-command-ii/</link>
		<comments>http://www.linux4all.in/2008/05/17/basic-command-ii/#comments</comments>
		<pubDate>Sat, 17 May 2008 16:55:39 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=7</guid>
		<description><![CDATA[Part II of Basic Command . We splited this to make easy readability for our Users :)]]></description>
			<content:encoded><![CDATA[<p><strong>cd</strong> :- change directory</p>
<p>usage<br />
<strong>cd path</strong> [ and press enter ]<br />
eg.<br />
<strong>cd /boot<br />
cd /var/www/html</strong></p>
<p><span id="more-7"></span></p>
<p>to go to base directory use<br />
<strong>cd ..</strong></p>
<p><strong>ifconfig</strong> :- To check network detail of your network adaptors [ same as ipconfig in windows ]</p>
<p><strong>history</strong> :- Will tell your last run command[s]</p>
<p>To clear your history use following command<br />
<strong>history –c</strong></p>
<p>And last but not least use manual<br />
There are various manual program installed on your Linux distro [ cannot guarantee that each command will work fine ]<br />
<strong>man</strong> :- Manual of a command<br />
<strong>man command</strong> [ replace <em>command</em> with your <em>command</em> press enter ]<br />
eg.<br />
<strong>man history</strong></p>
<p><strong>info</strong> :- same as man<br />
<strong>info command</strong> [ replace <em>command</em> with your <em>command</em> press enter ]</p>
<p><strong>whatis</strong> :- Brief description of command<br />
eg.<br />
<strong>whatis command</strong> [ replace <em>command</em> with your <em>command</em> press enter ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/05/17/basic-command-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic Commands</title>
		<link>http://www.linux4all.in/2008/05/06/basic-commands/</link>
		<comments>http://www.linux4all.in/2008/05/06/basic-commands/#comments</comments>
		<pubDate>Tue, 06 May 2008 15:31:33 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=6</guid>
		<description><![CDATA[This post aims at basic Linux Commands that is usefull in our day to day life
]]></description>
			<content:encoded><![CDATA[<p>As we are now aware of file system now its good to learn about basic Linux Commands that will help in our day to day life<br />
To run all these commands please use a terminal window.<br />
To run terminal follow following commands<br />
Press <strong>Alt+F2 </strong><br />
Type <strong>gnome-terminal </strong>or use <strong>xterm</strong></p>
<p><span id="more-6"></span><br />
OR<br />
Click on application &#8211;&gt; accessories &#8211;&gt;Terminal or it may be on Application &#8211;&gt; System Tools &#8211;&gt; Terminal<br />
This will open terminal in GUI mode<br />
<strong>Commands with description</strong><br />
<strong>ls</strong><br />
This is command same as dir command in Windows/Dos.</p>
<p>Usages<br />
<strong>ls –ll </strong>This will show Full details about file regarding its permission,owner name,Group,date modified/accessed, etc</p>
<p><strong>ls –a</strong> Shows all files included hidden file [ dotfile ]</p>
<p><strong>ls-s</strong> Shows size</p>
<p>while we do <strong>ls –ll</strong> command the following color is used to identify file/folder as</p>
<p>Dark Blue :-Folder<br />
Black/White:- File<br />
Green:- Executables [ execute permissions]<br />
Sky Blue:- Services<br />
Red Color:- RPM,Installer</p>
<p>Note:- Please note that Linux Files and Folders are case sensitive i.e a &amp; A is different not like windows.</p>
<p><strong>date</strong><br />
As the command indicates it displays time and date of the system</p>
<p><strong>cal</strong><br />
Displays calendar of current month</p>
<p>To view calendar for whole year<br />
<strong>cal 2008</strong><br />
Replace 2008 with your specified year</p>
<p>To view Calendar of particular month of year<br />
<strong>cal 12 1987</strong><br />
Displays calendar of December 1987,[replace with your variables]</p>
<p><strong>hostname</strong><br />
Displays Hostname of the system</p>
<p><strong>cp</strong> :- Copy filename or Directory</p>
<p><strong>Usages</strong><br />
<strong>cp filename destination_folder</strong></p>
<p><strong>cp /yourfolder/filename destination_folder</strong></p>
<p><strong>mv :- </strong>move or rename file/folder</p>
<p><strong>Usage</strong><br />
<strong><em>For moving</em></strong><br />
<strong>mv filename/foldername destination</strong><br />
<em><strong>For renaming</strong></em><br />
<strong>mv file/folder newname</strong></p>
<p><strong><strong><strong>mkdir </strong>:- Create directory<br />
<strong>Usage</strong><br />
<strong>mkdir foldername</strong></strong></strong></p>
<p><strong><strong><strong>rm</strong> :- Removes File/Folders<br />
<strong>Usage</strong><br />
<strong>rm filename/foldername</strong><br />
To remove file/folder forcibly without any prompt<br />
<strong>rm –f foldername/filename</strong></strong></strong></p>
<p><strong><strong>To prompt on each removal of file and folder use this command<br />
<strong>rm –r folder/filename</strong></strong></strong></p>
<p>So we covered<strong><strong> <strong>ls,date,cal,hostname,cp,mv,rm</strong><br />
</strong></strong> More commands in next post</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/05/06/basic-commands/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>File System in Linux</title>
		<link>http://www.linux4all.in/2008/05/05/file-system-in-linux/</link>
		<comments>http://www.linux4all.in/2008/05/05/file-system-in-linux/#comments</comments>
		<pubDate>Mon, 05 May 2008 04:00:58 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=5</guid>
		<description><![CDATA[This post will tell you about the file &#038; folder system in Linux. Like in windows, Program Files are stored is “Program Files” and System components in “windows” folder , same way it is assigned in Linux too .
]]></description>
			<content:encoded><![CDATA[<p>Well it’s a good thing to know about file &amp; folder system in Linux. Like in windows, Program Files are stored is “Program Files” and System components in “windows” folder , same way it is assigned in Linux too .</p>
<p>So here it starts</p>
<p>“/” :- this is root of all the file system. All things [ including hardware ] comes under it.</p>
<p>“/boot” :- As the name indicates it contains boot [ grub ] files.</p>
<p>“/dev”  :- Contains device files [ as I said in earlier post that hardware are in file form ]<br />
<span id="more-5"></span><br />
“/home” :- This is home directory for general users . this contains their Desktop directory [ under “/home/username/Desktop” ] or Document folders and their configuration files.</p>
<p>“/bin” :- Essential Binaries are stored in this.  It contains executables of <span style="text-decoration: line-through;">general</span> Root as well as General users .</p>
<p>“/lib” Essential shared libraries and Kernel Modules</p>
<p>“/sbin” :- This contains system binaries which is being used by root users.</p>
<p>“/media” :- All removable medias are mounted under this folder .</p>
<p>“/etc” :-  It contains all the configuration files used by OS or by programs .</p>
<p>“/mnt”:- Temporary file systems mounted, etc floppy, CDrom, DvdRoms.</p>
<p>“/tmp” :- Temporary Directory.</p>
<p>“/var” :- Contain data files which are variable or continuous changing .</p>
<p>“/usr” :- Contains information used by system</p>
<p>“/root” :- Home directory of root user</p>
<p>“/proc” :- Contains system information stored in memory mirrored as files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/05/05/file-system-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
