<?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>EasyLinuxAdmin.com</title>
	<atom:link href="http://www.easylinuxadmin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.easylinuxadmin.com</link>
	<description>Step by Step Linux Tips, Tricks, Tutorials</description>
	<lastBuildDate>Wed, 18 Feb 2009 12:06:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Scheduling One Time Tasks With AT</title>
		<link>http://www.easylinuxadmin.com/2009/02/18/scheduling-one-time-tasks-with-at/</link>
		<comments>http://www.easylinuxadmin.com/2009/02/18/scheduling-one-time-tasks-with-at/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 08:16:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://www.easylinuxadmin.com/?p=251</guid>
		<description><![CDATA[Scheduling tasks is a great strength of Linux. Many administrative tasks such as scheduling backups, rotating log files, synchronizing time, etc. are done on a recurring basis with little to no user intervention using cron or anacron. While cron and anacron facilities are great for recurring tasks, how can a user schedule simple tasks that [...]]]></description>
				<content:encoded><![CDATA[<p>Scheduling tasks is a great strength of Linux. Many administrative tasks such as scheduling backups, rotating log files, synchronizing time, etc. are done on a recurring basis with little to no user intervention using cron or anacron.</p>
<p>While cron and anacron facilities are great for recurring tasks, how can a user schedule simple tasks that only need to be run &#8220;one time&#8221; during the middle of the night or on a future date? The AT command is the answer. AT is one of those commands that a lot of people don&#8217;t know about but it can be very useful.</p>
<p>AT&#8217;s commandline syntax makes scheduling those &#8220;one time&#8221; tasks quick and easy. Let&#8217;s get started with some examples.<span id="more-251"></span></p>
<p><strong>Example 1. &#8211; Create a new file on the desktop.</strong></p>
<p>Open up a Termial or Console Window. At the command prompt type &#8220;at 2:00pm&#8221; and hit enter.</p>
<p><code style="display: block;">[sam@www Desktop]$ at 2:00pm</code></p>
<p>AT opens a prompt and waits for input. Since we want to create a new file, we&#8217;ll use the &#8220;touch&#8221; command along with the path where we want to create the new file on the desktop and then hit enter.<br />
<code style="display: block;">at&gt; touch /home/sam/Desktop/newfile.txt</code></p>
<p>AT waits for more input. Press Ctrl-D on the keyboard to closes the prompt and display the job number and date it will execute.</p>
<p><code style="display: block;">at&gt; &lt;EOT&gt;<br />
job 1 at 2009-02-17 14:00<br />
[sam@www Desktop]</code></p>
<p>If everything went right, you&#8217;ll see a newfile.txt on the desktop at 2:00pm. Pretty simple huh? To see a listing of scheduled jobs use the command &#8220;atq&#8221;.</p>
<p><code style="display: block;">[sam@www Desktop]$ atq<br />
1       2009-02-17 14:00 a sam<br />
[sam@www Desktop]$</code></p>
<p>If you decide to remove a job it&#8217;s simple as well using the command &#8220;atrm&#8221; plus job number.</p>
<p><code style="display: block;">[sam@www Desktop]$ atrm 1<br />
</code></p>
<p><strong>Real World Example &#8211; Update a webpage at midnight.</strong></p>
<p>Let&#8217;s say you build websites and a client asks you to update their website for a new promotion they&#8217;re having. The only catch is that they want page updated at exactly midnight. Believe me, this sort of request does and will happen. Not a problem with our new found AT abilities!</p>
<p>We create the new index.html page with the promotion info and save it somewhere on the server. I&#8217;m storing it in /home/sam/Desktop/index.html for this tutorial.</p>
<p>Open a terminal window and enter &#8220;at&#8221; along with the time specification. AT also allows for certain keywords to describe times such as noon, teatime, midnight, etc. Be sure to read the man page for more info. I&#8217;ll use the midnight keyword here.</p>
<p><code style="display: block;">[sam@www Desktop]$ at midnight</code></p>
<p>At at&#8217;s prompt we use the &#8220;cp&#8221; command to copy index.html to the website overwriting the current index page.</p>
<p><code style="display: block;">at&gt; cp  /home/sam/Desktop/index.html   /var/www/html/testwebsite.com/index.html</code></p>
<p>Press Ctrl-D on the keyboard to closes the prompt and have the page updated at midnight. The client is happy, were getting our zzz&#8217;s, and at does the dirty work.</p>
<p><code style="display: block;">at&gt; &lt;EOT&gt;<br />
job 2 at 2009-02-18 00:00<br />
[sam@www Desktop]</code></p>
<p><strong>Conclusion</strong><br />
That&#8217;s about all there is to it. AT is simple, effective, and that&#8217;s the way it should be.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.easylinuxadmin.com/2009/02/18/scheduling-one-time-tasks-with-at/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.2 &#8211; Basic Server Setup</title>
		<link>http://www.easylinuxadmin.com/2009/01/03/centos-52-basic-server-setup/</link>
		<comments>http://www.easylinuxadmin.com/2009/01/03/centos-52-basic-server-setup/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:23:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Server Setup]]></category>

		<guid isPermaLink="false">http://www.easylinuxadmin.com/?p=1</guid>
		<description><![CDATA[In this article, i walk through a vanilla install of CentOS 5.2.  This article forms the foundation in an ongoing series of CentOS based tutorials. These tutorials are aimed at bringing  readers up to speed on linux server management techniques while helping them develop a useful set of linux administrator skills. CentOS also know as [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-161" title="centos" src="http://www.easylinuxadmin.com/wp-content/uploads/2008/12/centos.png" alt="centos" width="200" height="200" />In this article, i walk through a vanilla install of <a title="CentOS" href="http://www.centos.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.centos.org');" target="_blank">CentOS 5.2</a>.  This article forms the foundation in an ongoing series of CentOS based tutorials. These tutorials are aimed at bringing  readers up to speed on linux server management techniques while helping them develop a useful set of linux administrator skills.</p>
<p>CentOS also know as &#8220;Community Enterprise Operating System&#8221; is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible.<span id="more-1"></span></p>
<p>You might be wondering what this &#8220;Enterprise Class, Binary Compatible&#8221; jargon means and why it&#8217;s important. Basically it means the server and software packages have been well tested and are ready to be used in a business environment, data center, or other venue where stability is a major concern vs. cutting edge features. Binary compatible in this instance means binaries or programs that are compatible between CentOS and a prominent North American Enterprise Linux vendor, <a title="Red Hat Linux" href="http://www.redhat.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.redhat.com');" target="_blank">Red Hat Linux</a>. Red Hat binaries should run nicely on CentOS. In essence, we&#8221;ll be working with a version of  Red Hat Enterprise Linux with logos and branding stripped away.</p>
<p><strong>Some of the advantages are</strong>:</p>
<ul>
<li> Stability of an Enteprise Level Operating System widely used in Datacenters and Web Hosting Operations</li>
<li>CentOS is free!</li>
<li>Third Party Packages created for Red Hat usually work nicely with CentOS  (Binary Compatibility)</li>
<li>Long Term Support and Security Updates</li>
<li>Good Documentation</li>
</ul>
<p><strong>Disadvantages:</strong></p>
<p>Having said all that, CentOS isn&#8217;t right for everyone. If you plan on mainly listening to mp3&#8242;s, watching movies, browsing the web, or using it as more of a multimedia system, you might be disappointed with CentOS. Although CentOS can do all of those things, it takes some work getting it to that point.  CentOS is geared more towards being a robust and stable server system and that&#8217;s what it does best.</p>
<p><strong>Prerequisites:</strong></p>
<p>Basic computer knowledge about downloading software, burning dvd&#8217;s is required.</p>
<h2>Downloading and Verifying CentOS</h2>
<p>If you haven&#8217;t already downloaded CentOS, grab a copy from <a title="CentOS Mirrors" href="http://mirror.centos.org/centos/5/isos/i386/" onclick="javascript:pageTracker._trackPageview('/outbound/article/mirror.centos.org');" target="_blank">http://mirror.centos.org/centos/5/i386/ </a>. In this tutorial i&#8217;ll be installing the 32bit version from dvd. There are also installation CD&#8217;s but there are 6 of them so i prefer to use dvd. To speed up the download and conserve bandwdith on the mirrors,  i&#8217;m using <a title="Using Bittorrent" href="http://www.utorrent.com/beginners-guide.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.utorrent.com');" target="_blank">bittorrent</a> to download the dvd installer file. The file is pretty big so depending on your internet connection speed, prepare to wait for a long download. In the same directory there should be a file named md5sum.txt. Open or save this file because we&#8217;ll use it in the next step.</p>
<p>Once the download is complete it&#8217;s a good idea to verify the integrity of the iso file using an md5 hash. In simple terms, an md5 hash can be thought of as the fingerprint of a file. Here is a <a title="Md5" href="http://www.fastsum.com/support/md5-checksum-utility-faq/md5-hash.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.fastsum.com');" target="_blank">more indepth explanation of md5</a>.  To verify the CentOS iso you&#8217;ve just downloaded, you&#8217;ll need some type of md5 software. Windows users can download and install <a title="digestIT" href="http://www.kennethballard.com/modules/xproject/index.php?op=downloadFile&amp;id=1" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.kennethballard.com');" target="_blank">digestIT</a>. Once you&#8217;ve installed digetsIT, locate CentOS-5.2-i386-bin-DVD.iso, right click on it and choose &#8220;digestIT 2004 -&gt; Calculate MD5 Hash&#8221;.</p>
<p>Under linux, open a terminal window, change to the directory containing the iso file, and run the command &#8220;<strong>md5sum CentOS-5.2-i386-bin-DVD.iso</strong>&#8220;. Mac OS X is similar to linux, just change the command to &#8220;<strong>md5  CentOS-5.2-i386-bin-DVD.iso</strong>&#8220;. Locate the line for CentOS-5.2-i386-bin-DVD.iso in md5sum.txt and compare it with the output of digestIT or md5sum. The number should be the same. If it&#8217;s not, double check the readings and download CentOS from a different mirror. If all goes well, use your favorite dvd burning software and burn the CentOS iso to dvd.</p>
<h2>Starting the Installation</h2>
<p>In this tutorial i&#8217;m starting with a blank hard drive. It&#8217;s possible to install linux along side windows or another OS but to keep things simple i won&#8217;t go that route in this tutorial.</p>
<p><strong>On to the next page&#8230;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.easylinuxadmin.com/2009/01/03/centos-52-basic-server-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
