<?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>The Web Scene &#187; Linux Resources</title>
	<atom:link href="http://www.cpccci.com/blog/category/linuxresources/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpccci.com/blog</link>
	<description>Web Design, SEO and Internet Marketing by CPC Computer Consultants - www.cpccci.com and www.cpcwebsolutions.com</description>
	<lastBuildDate>Sat, 28 Jan 2012 00:32:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Steve Jobs 1955-2011</title>
		<link>http://www.cpccci.com/blog/2011/10/05/steve-jobs-1955-2011/</link>
		<comments>http://www.cpccci.com/blog/2011/10/05/steve-jobs-1955-2011/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 03:48:51 +0000</pubDate>
		<dc:creator>Admin at www.cpccci.com</dc:creator>
				<category><![CDATA[Business Internet News]]></category>
		<category><![CDATA[Computer Science and Engineering News]]></category>
		<category><![CDATA[CS, Web Design and web optimization]]></category>
		<category><![CDATA[General Website Design Tips]]></category>
		<category><![CDATA[Happy Customers]]></category>
		<category><![CDATA[Internet Marketing]]></category>
		<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Newsletter]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Web Design Miami Florida]]></category>
		<category><![CDATA[Web Site Hosting]]></category>
		<category><![CDATA[Web Usability and Accessibility]]></category>
		<category><![CDATA[Steve Jobs]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=6258</guid>
		<description><![CDATA[Statement from President Barack Obama: &#8220;Michelle and I are saddened to learn of the passing of Steve Jobs. Steve was among the greatest of American innovators &#8211; brave enough to think differently, bold enough to believe he could change the world, and talented enough to do it. By building one of the planet&#8217;s most successful [...]]]></description>
			<content:encoded><![CDATA[<p>Statement from President Barack Obama:<br />
&#8220;Michelle and I are saddened to learn of the passing of Steve Jobs. Steve was among the greatest of American innovators &#8211; brave enough to think differently, bold enough to believe he could change the world, and talented enough to do it.<br />
By building one of the planet&#8217;s most successful companies from his garage, he exemplified the spirit of American ingenuity. By making computers personal and putting the internet in our pockets, he made the information revolution not only accessible, but intuitive and fun. And by turning his talents to storytelling, he has brought joy to millions of children and grownups alike. Steve was fond of saying that he lived every day like it was his last. Because he did, he transformed our lives, redefined entire industries, and achieved one of the rarest feats in human history: he changed the way each of us sees the world.<br />
The world has lost a visionary. And there may be no greater tribute to Steve&#8217;s success than the fact that much of the world learned of his passing on a device he invented. Michelle and I send our thoughts and prayers to Steve&#8217;s wife Laurene, his family, and all those who loved him.&#8221;</p>
<p>
Statement from Bill Gates:<br />
&#8220;I&#8217;m truly saddened to learn of Steve Jobs&#8217; death. Melinda and I extend our sincere condolences to his family and friends, and to everyone Steve has touched through his work.<br />
Steve and I first met nearly 30 years ago, and have been colleagues, competitors and friends over the course of more than half our lives.<br />
The world rarely sees someone who has had the profound impact Steve has had, the effects of which will be felt for many generations to come.<br />
For those of us lucky enough to get to work with him, it&#8217;s been an insanely great honor. I will miss Steve immensely. &#8220;</p>
<p>Statement from Mark Zuckerberg, Facebook founder and CEO:<br />
&#8220;Steve, thank you for being a mentor and a friend. Thanks for showing that what you build can change the world. I will miss you.&#8221;</p>
<p>
Statement from Microsoft co-founder Paul Allen:<br />
&#8220;My condolences to Steve Jobs family and friends. We&#8217;ve lost a unique tech pioneer and auteur who knew how to make amazingly great products.&#8221;</p>
<p>
Statement from House Minority Leader Nancy Pelosi, D-Calif.<br />
&#8220;Steve Jobs was a visionary who changed the way we live, an innovator whose products brought joy to millions, a risktaker who wasn&#8217;t afraid to challenge the status quo, and an entrepreneur who led one of the most creative companies of our time.<br />
&#8220;His sage advice was respected by policymakers on both sides of the aisle. His courageous fight against cancer brought strength to many.<br />
&#8220;I hope it is a comfort to those who loved him, especially his family, that so many grieve his loss and are praying for them at this sad time.&#8221;</p>
<p>
Statement from Walt Disney president Bob Iger:<br />
&#8220;Steve Jobs was a great friend as well as a trusted advisor. His legacy will extend far beyond the products he created or the businesses he built. It will be the millions of people he inspired, the lives he changed, and the culture he defined. Steve was such an &#8220;original,&#8221; with a thoroughly creative, imaginative mind that defined an era. Despite all he accomplished, it feels like he was just getting started. With his passing the world has lost a rare original, Disney has lost a member of our family, and I have lost a great friend. Our thoughts and prayers are with his wife Laurene and his children during this difficult time.&#8221;</p>
<p>
Statement from California Gov. Edmund Brown:<br />
&#8220;Steve Jobs was a great California innovator who demonstrated what a totally independent and creative mind can accomplish. Few people have made such a powerful and elegant imprint on our lives. Anne and I wish to express our deepest sympathy to Steve&#8217;s wife, Laurene, and their entire family.&#8221;</p>
<p>
Statement from New York City Mayor Michael Bloomberg:<br />
&#8220;Tonight, America lost a genius who will be remembered with Edison and Einstein, and whose ideas will shape the world for generations to come. Again and again over the last four decades, Steve Jobs saw the future and brought it to life long before most people could even see the horizon. And Steve&#8217;s passionate belief in the power of technology to transform the way we live brought us more than smart phones and iPads: it brought knowledge and power that is reshaping the face of civilization. In New York City&#8217;s government, everyone from street construction inspectors to NYPD detectives have harnessed Apple&#8217;s products to do their jobs more efficiently and intuitively. Tonight our City &#8211; a city that has always had such respect and admiration for creative genius &#8211; joins with people around the planet in remembering a great man and keeping Laurene and the rest of the Jobs family in our thoughts and prayers.&#8221;<br />
Celebrities and Politicians Take to Twitter to Offer Condolences</p>
<p>
Arianna Huffington, Huffington Post CEO:<br />
&#8220;@ariannahuff: My thoughts go out to Steve Jobs&#8217; family and friends. Thank you for changing our world.&#8221;</p>
<p>
Steve Levitan, co-creator/executive producer of ABC&#8217;s &#8220;Modern Family&#8221;:<br />
&#8220;@SteveLevitan: I&#8217;m so sorry to hear about the death of Steve Jobs. He was truly one of my heroes. He leaves one hell of a legacy. #iSad&#8221;</p>
<p>
SnoopDogg, Rapper<br />
&#8220;@snoopdogg: RIP Steve Jobs Rest in peace homie.&#8221;</p>
<p>
Former California Gov. Arnold Schwarzenegger:<br />
&#8220;@Schwarzenegger: Steve lived the California Dream every day of his life and he changed the world and inspired all of us. #ThankYouSteve&#8221;</p>
<p>
Former California first lady Maria Shriver:<br />
&#8220;@mariashriver: I&#8217;m going to turn off my Apple computer, iPhone and iPad tonight at 8pm and honor Steve with a moment of </p>
<p>digital silence. Will you join me?&#8221;<br />
&#8220;@mariashriver: I&#8217;m so happy that I knew him and was so blessed by his friendship. He impacted all of our lives and changed the world.&#8221;<br />
&#8220;@mariashriver: My heart weeps for all who worked with Steve and who loved him, especially my friend Laurene and their children.&#8221;</p>
<p>
Jon Huntsman, Republican presidential candidate<br />
&#8220;@JonHuntsman: Sad to hear about the passing of Steve Jobs, a true inspiration and a great American innovator.&#8221;</p>
<p>
Ryan Seacrest, &#8220;American Idol&#8221; host/radio talk show personality/producer<br />
&#8220;@RyanSeacrest: &#8216;Have the courage to follow ur heart &#038; intuition. They already know what u truly want to become. Everything else is secondary.&#8217; &#8211; Steve Jobs&#8221;</p>
<p>
Nancy Grace, TV host, &#8220;Dancing With the Stars&#8221; contestent<br />
&#8220;@NancyGraceHLN: About to go to air &#038; discovered news about Steve Jobs &#8211; My heart goes out to his family tonight. #RIP Steve Jobs&#8221;</p>
<p>
Lebron James, Miami Heat forward<br />
&#8220;@KingJames: R.I.P Steve Jobs. Someone who definitely left his mark on this world! Innovations that will live and last forever!!&#8221;</p>
<p>
Neil Patrick Harris, Actor on &#8220;How I Met Your Mother&#8221;<br />
&#8220;@ActuallyNPH: Rest in peace, Steve Jobs. Your genius will live on for generations to come&#8230;&#8221;</p>
<p>
Zach Braff, Actor<br />
&#8220;@zachbraff: RIP Steve Jobs. A legend. A visionary innovator.&#8221;</p>
<p>
Nick Lachey, singer, host of &#8220;The Sing-Off&#8221;<br />
&#8220;@NickSLachey: Best wishes to the family of #stevejobs. What an amazing man and amazing life! Certainly, his legacy will be with us all forever. #RIP.&#8221;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2011%2F10%2F05%2Fsteve-jobs-1955-2011%2F&amp;title=Steve%20Jobs%201955-2011" id="wpa2a_2"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2011/10/05/steve-jobs-1955-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Process Scheduling in Linux</title>
		<link>http://www.cpccci.com/blog/2009/01/28/process-scheduling-in-linux/</link>
		<comments>http://www.cpccci.com/blog/2009/01/28/process-scheduling-in-linux/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 01:51:59 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[COP 5994]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Process Scheduling]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/2009/01/28/process-scheduling-in-linux/</guid>
		<description><![CDATA[By Roberto Espinoza at www.cpccci.com CPC Computer Consultants, Inc. This project has been developed using the C programming language and run in a Linux, Fedora Core 2 platform. SCHEDULING POLICIES Linux offers 3 different ways to deal with scheduling, 2 of them for real-time applications and 1 for normal processes. A static priority value, sched_priority, [...]]]></description>
			<content:encoded><![CDATA[<p>By Roberto Espinoza at <a title="www.cpccci.com" href="http://www.cpccci.com" target="_blank">www.cpccci.com</a><br />
<a title="www.cpccci.com" href="http://www.cpccci.com" target="_blank">CPC Computer Consultants, Inc.</a></p>
<p>This project has been developed using the C programming language and run in a Linux, Fedora Core 2 platform.<br />
SCHEDULING POLICIES</p>
<p>Linux offers 3 different ways to deal with scheduling, 2 of them for real-time applications and 1 for normal processes. A static priority value, sched_priority, ranging from 0 to 99, is assigned to each process. This static priority value can be changed only via system calls. The scheduler keeps a list of runnable processes with these priority values. The way Linux determines which process will be running next is by looking at such list for the highest priority number, and then takes the process at the head of the list. The scheduling policy determines where a process will be inserted in the event that it has an equal priority value with another process. Likewise, it will determine how it will move once inside the list.</p>
<p>Most processes use SCHED_OTHER which is the default universal time-sharing scheduler policy. Other most time-critical applications that require precise control use SCHED_FIFO and SCHED_RR. When using SCHED_OTHER, processes must be assigned an static priority value of 0. Otherwise, if using the two other algorithms, the priority value shall range from 1 to 99. Only such processes with superuser privileges can have a priority value greater than 0, therefore they may use SCHED_FIFO and SCHED_RR.<br />
All scheduling is preemptive, meaning that if a process with a higher priority is ready to run, the currently running process is preempted and taken to the wait list. It is the task of the scheduling policy to determine the ordering within the list of runnable processes with equal static priority value.<br />
SCHED_FIFO: First In &#8211; First Out Scheduling</p>
<p>SCHED_FIFO is used only with priority values ranging from 1 to 99, that is, a SCHED_FIFO process ready to be run will always preempt a normal, SCHED_OTHER, process currently running. SCHED_FIFO does not deal with time slicing. If a SCHED_FIFO process has been preempted by a higher priority process, it will go to the top of the wait list and will resume running as soon as all processes with higher priority values have been blocked.<br />
SCHED_RR: Round Robin Scheduling</p>
<p>SCHED_RR works just like SCHED_FIFO, but with one difference: each SCHED_RR process is allowed to run for a specified time quantum. As soon as a running process reaches its alloted time quantum it will be put back at the end of the same-priority-value list. If a SCHED_RR process has been preempted by a higher value priority process, it will complete the unexpired portion of its alloted time quantum when it resumes execution.<br />
SCHED_OTHER: Default Linux Time-Sharing Scheduling</p>
<p>This is the usual time-sharing scheduling algorithm used for all normal processes, or processes that do not require special static priority real-time mechanisms. The process that runs is determined by a dynamic priority inside the list of the same static priority values processes, namely 0. The dynamic priority is based on the nice level and increased for each time quantum the process is ready to run, but denied to run by the scheduler. This way ensures fairness among all static priority 0 processes.<br />
Nice Level &#8211; the &#8216;nice&#8217; command changes the priority level value of a process. The priority that may be adjusted by &#8216;nice&#8217; runs from -20, the highest, to 19 the lowest.</p>
<p>IMPLEMENTATION</p>
<p>Each of the three programs in both, the Kernel and User Levels, was run 25 times, which produced varying time results depending on the random numbers genereated by them. An average was computed of these 25 results to come up with a final result for each algorithm.<br />
The time was accurately measured using the following commands:<br />
start_time = clock();<br />
end_time = clock();<br />
cpu_time_used = ((double) (end_time &#8211; start_time)) / CLOCKS_PER_SEC;<br />
system(&#8220;date&#8221;);</p>
<p>IMPLEMENTATION OF SCHEDULING AT KERNEL LEVEL<br />
SCHED_FIFO: First In &#8211; First Out Scheduling</p>
<p>Three different programs were written in C to implement and test the FIFO algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
SCHED_RR: Round Robin Scheduling</p>
<p>Three different programs were written in C to implement and test the Round Robin algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
SCHED_OTHER: Default Linux Time-Sharing Scheduling</p>
<p>Three different programs were written in C to implement and test the Other algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
IMPLEMENTATION OF SCHEDULING AT USER LEVEL</p>
<p>SCHED_FIFO: First In &#8211; First Out Scheduling<br />
Three different programs were written in C to implement and test the FIFO algorithm. Each program creates 10 threads, and each thread, in turn, increases or decreases the number of random numbers by a random number so each utilizes CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
Shortest Job Fist Scheduling<br />
Three different programs were written in C to implement and test the Shortest Job First algorithm. Each program creates 10 threads, and each thread, in turn, increases the number of random numbers so they utilize CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
Longest Job Fist Scheduling<br />
Three different programs were written in C to implement and test the Shortest Job First algorithm. Each program creates 10 threads, and each thread, in turn, decreases the number of random numbers so they utilize CPU resources in varying time slots.<br />
A completely different program from the ones indicated in the paragraph above runs the 3 main programs.<br />
CONCLUSIONS</p>
<p>The results at the Kernel Level were much better for the Round Robin algorithm and much worse for the Other algorithm.<br />
The results at the User Level was best for LJF and worst for SJF.<br />
BIBLIOGRAPHY</p>
<p>COP 5994 &#8211; Operating Systems Class Website<br />
Operating Systems, Harvey M. Deitel, Paul J. Deitel, David R. Choffnes, Third Edition<br />
Understanding the Linux Kernel, O&#8217;Reilly Online Catalog<br />
Linux Process Scheduling<br />
Linux Process Management<br />
Linux Process Scheduling &#8211; Summary<br />
Man Pages, Fedora Core 2<br />
Info Pages, Fedora Core 2</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2009%2F01%2F28%2Fprocess-scheduling-in-linux%2F&amp;title=Process%20Scheduling%20in%20Linux" id="wpa2a_4"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2009/01/28/process-scheduling-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring storage in FreeNAS</title>
		<link>http://www.cpccci.com/blog/2008/10/25/configuring-storage-in-freenas/</link>
		<comments>http://www.cpccci.com/blog/2008/10/25/configuring-storage-in-freenas/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 02:10:07 +0000</pubDate>
		<dc:creator>Admin at www.cpccci.com</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=542</guid>
		<description><![CDATA[By Gary Sims The essence of the FreeNAS server is to provide storage that is easily accessible from the network. To this end, it is important to understand how FreeNAS handles hard disks and how they can be configured and used to provide the best and most reliable storage for your network. This article is [...]]]></description>
			<content:encoded><![CDATA[<p>By <a href="http://www.hungrypenguin.net/">Gary Sims</a></p>
<p style="text-align: right;"><!-- ADDTHIS BUTTON BEGIN --> <script type="text/javascript"><!--
addthis_pub = 'linuxcom'; 
addthis_logo = 'http://c.fsdn.com/lc/images/lc_logo.png';
addthis_brand = 'Linux.com';
addthis_options = 'email, slashdot, digg, delicious, more'; 
// --></script></p>
<div class="xar-clearleft">
<p>The essence of the <a href="http://www.freenas.org/">FreeNAS</a> server is to provide storage that is easily accessible from the network. To this end, it is important to understand how FreeNAS handles hard disks and how they can be configured and used to provide the best and most reliable storage for your network.</div>
<div id="featurecontent" class="xar-align-left">
<p><em>This article is excerpted from the newly published book </em><a href="http://www.amazon.com/exec/obidos/asin/1847194680/vasoft-20">Learning FreeNAS</a><em>.</em></p>
<p>Adding storage to the FreeNAS server is done in four steps:</p>
<ol>
<li>The FreeNAS server is &#8220;told&#8221; about a physical hard disk.</li>
<li>This disk is formatted.</li>
<li>The resulting storage space is mounted and made available internally.</li>
<li>The mounted storage space is made available on the network via services like CIFS and NFS.</li>
</ol>
<p>Step one, telling the FreeNAS server about the disks at its disposal, is handled in Disks: Management. On opening this page, you will see a list of disks that are already configured. To add a disk, click the add circle and you will be taken to the Disks: Management: Disk: Add page. Use the Disk field to select which disk you want to add to the FreeNAS configuration.</p>
<p>If you are using a hardware RAID controller, for the disks attached it, don&#8217;t use the standard device names for each disk. Instead, these RAID controllers present a virtual disk for each RAID set, using a device named after the RAID controller driver. For example, the amr driver (which supports controllers by MegaRAID and some Dell and Intel cards) presents its virtual disks as /dev/amrd*. Also, some RAID cards present their hard drives as /dev/da*devices.</p>
<p>Once you have selected the right disk from the drop down box, you can normally just go ahead and click Add. However, there are some parameters that you can tweak, and the field Preformatted FS needs to be set correctly if the disk is already formatted and has data on it. Apart from the native UFS format of the FreeBSD, FreeNAS supports FAT32, NTFS, and ext2.</p>
<p>Once you have selected the disk from the drop-down menu and set any of the optional parameters, you can click the Add button, then apply the changes. The Disks: Management page should now show your disk(s) in a table, including information about the disk name, size, and filesystem.</p>
<h4>Formatting a newly added disk</h4>
<p>Once a disk has been added to the FreeNAS server, it needs to be formatted. Go to the Disks: Format page and select which disk you wish to format. Choose the filesystem you want to use. The default will be UFS; unless you specifically need FAT32 or ext2, it is best to format the disk with UFS. UFS is the NATIVE file format for FreeBSD, the underlying OS of FreeNAS. Attempting to use other file formats can result in unpredictable results, file corruption, and loss of data.</p>
<p>You can also enter an optional volume label for the disk, but it isn&#8217;t very useful, as it isn&#8217;t used in the FreeNAS Web interface. Leave the minimum free space percentage at its default 8%, as lowering the threshold can adversely affect performance and auto-defragmentation. A final option allows you to tweak the way the disk is formatted, specifically to not replace the master boot record (MBR) with a new one during the format process. Normally, this shouldn&#8217;t be needed, but some hardware RAID cards store information in the MBR. If you find that the drive doesn&#8217;t format correctly and you are using a hardware RAID card, you can try formatting the disk with the option enabled.</p>
<p>Once you click Format Disk, you will asked if you are sure that you wish to format the disk. Click OK to proceed, then look for the <strong>Done!</strong> comment and the long list of superblock numbers before it. If you see that, everything is OK. If the formatting failed for some reason you will see an error message. For example, if spaces aren&#8217;t permitted in the volume label, trying to format a disk like this will result in the last lines of the output reading:</p>
<pre>
<div class="code">
newfs: bad volume label. Valid characters are alphanumerics.
Done!</div>
</pre>
<p>Once you have formatted the disk, you need to mount it internally in the FreeNAS server. Go to Disks: Mount Point and click the add circle. There are several important fields to fill in here: Type, Disk, Partition, File System, and Name.</p>
<ul>
<li><strong>Type</strong>: Here, you can select if you want to mount a disk or an ISO file. For new physical disks, you need to select disk. The ISO option is useful if you have an .isofile and you wish to make its contents available on your network.</li>
<li><strong>Disk</strong>: Select the disk which you wish to mount. This will be the same disk as you used in Disks: Management and Disks: Format.</li>
<li><strong>Partition:</strong> Under FreeNAS, if you install the server software on a hard disk, then two partitions are created, the first for the operating system software and the second for data. When mounting disks, you need to know which partitions you wish to mount.<br />
By default, FreeNAS doesn&#8217;t use the legacy method to partition disks, which involved storing the partition data in the MBR; instead it used the GUID Partition Table (GPT), which is part of the Extensible Firmware Interface (EFI) standard proposed by Intel as a replacement for the soon-to-be-obsolescent PC BIOS. If you have just formatted this disk using FreeNAS, select EFI GPT here. If your disk has previous data on it, select which partition the data is on. If you have installed FreeNAS on a disk and you want to use the rest of the disk for data, select 2.</li>
<li><strong>File System</strong>: For disks that have been formatted using FreeNAS, select UFS. If you have chosen to use another filesystem format or the disk already had data on it, select the appropriate file system type (FAT, NTFS, or ext2).</li>
<li><strong>Name</strong>: Each mounted disk needs a name to distinguish it from other disks. It does seem possible to use spaces in the name but for safety I recommend using a simple single-word mount point name. The name specified will be used to mount the disk under the /mnt directory on the FreeNAS server, so if, for example, we used store2, then the disk will be mounted on /mnt/store2 and that would be the name used to share the disk on the network using CIFS.</li>
<li><strong>Description</strong>: You can fill in an optional description for this mount point.</li>
<li><strong>Read only</strong>: Tick this to mount the file system as read-only, and even the Administrator account (superuser/root) may not write it.</li>
</ul>
<p>Once you have filled in all the data, click the Add button. You will be shown a table with a list of the mounted drives on the FreeNAS server. Their status will be listed as Configuring. Click Apply changes. Once the changes have been applied, the newly displayed table should include the new mount point with the status of OK.</p></div>
<div class="xar-align-left">
<p><em>Gary Sims has a degree in Business Information Systems from a British university. He worked for 10 years as a software engineer and is now a freelance Linux consultant and writer.</em></div>
<p><!-- ADDTHIS BUTTON BEGIN --><script type="text/javascript"><!--
addthis_pub = 'linuxcom';
addthis_logo = 'http://c.fsdn.com/lc/images/lc_logo.png';
addthis_brand = 'Linux.com';
addthis_options = 'email, slashdot, digg, delicious, more'; 
// --></script></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F10%2F25%2Fconfiguring-storage-in-freenas%2F&amp;title=Configuring%20storage%20in%20FreeNAS" id="wpa2a_6"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/10/25/configuring-storage-in-freenas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL</title>
		<link>http://www.cpccci.com/blog/2008/10/06/mysql/</link>
		<comments>http://www.cpccci.com/blog/2008/10/06/mysql/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 00:24:08 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[cpccci.com and linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=509</guid>
		<description><![CDATA[Compiled by Roberto Espinoza at www.cpccci.com CPC Computer Consultants, Inc. Backup your Database mysqldump -uusername -ppassword databasename &#62; backupfile.sql Add drop table This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first. mysqldump –add-drop-table -uusername -ppassword databasename [...]]]></description>
			<content:encoded><![CDATA[<h2>Compiled by Roberto Espinoza at <a href="../../" target="_blank">www.cpccci.com</a></h2>
<h2>CPC Computer Consultants, Inc.</h2>
<h3>Backup your Database</h3>
<p>mysqldump -uusername -ppassword databasename &gt; backupfile.sql</p>
<h3>Add drop table</h3>
<p>This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first.</p>
<p>mysqldump –add-drop-table -uusername -ppassword databasename &gt; backupfile.sql</p>
<h3>Directly compress data from a database</h3>
<p>mysqldump -uusername -ppassword databasename | gzip &gt; backupfile.sql.gz</p>
<h3>Back up only specified tables</h3>
<p>mysqldump -uusername -ppassword databasename specific_table1 specific_table2 &gt; backupfile.sql</p>
<h3>Backup multiple databases</h3>
<p>mysqldump -uusername -ppassword –databases databasename1 databasename2 databasename3 &gt; multibackupfile.sql</p>
<h3>Back up only the database structure</h3>
<p>mysqldump –no-data –databases databasename1 databasename2 databasename3 &gt; structurebackupfile.sql</p>
<h3>Backup up all databases on a server</h3>
<p>mysqldump –all-databases &gt; allbackupfile.sql</p>
<h3>Restore database</h3>
<p>mysql -uusername -ppassword databasename &lt; backupfile.sql</p>
<h3>Restoring zipped files</h3>
<p>gunzip &lt; backupfile.sql.gz | mysql -uusername -ppassword databasename</p>
<h3>Moving database to a new server</h3>
<p>mysqldump -uusername -ppassword databasename | mysql –host=ip address -C databasename</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F10%2F06%2Fmysql%2F&amp;title=MySQL" id="wpa2a_8"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/10/06/mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Man Pages</title>
		<link>http://www.cpccci.com/blog/2008/09/11/man-pages/</link>
		<comments>http://www.cpccci.com/blog/2008/09/11/man-pages/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 00:17:08 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[man pages]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=374</guid>
		<description><![CDATA[The Linux man-pages project The Linux man-pages project documents the system calls provided by the Linux kernel and the library functions provided by the Standard C library (with particular focus on glibc, the GNU C library) in Sections 2 and 3 of the manual, respectively. The man-pages project also provides some of the man pages [...]]]></description>
			<content:encoded><![CDATA[<h1>The Linux <em>man-pages</em> project</h1>
<p>The Linux <em>man-pages</em> project documents the <em>system calls</em> provided by the <a href="http://en.wikipedia.org/wiki/Linux">Linux</a> <a href="http://www.kernel.org/pub/linux/kernel">kernel</a> and the <em>library functions</em> provided by the Standard C library   (with particular focus on <a href="http://www.gnu.org/software/libc/">glibc</a>, the <a href="http://www.gnu.org/">GNU</a> C library) in Sections 2 and 3 of the manual, respectively.   The <em>man-pages</em> project   also provides some of the man pages you&#8217;ll find in Sections:   4, <em>devices</em>; 5, <em>file formats</em>; and   7, <em>overviews, conventions, and miscellaneous</em>.   (Many of the man pages on a Linux system,   especially those in sections other than 2 and 3, come from other packages.)</p>
<p>You can <strong>download</strong> the latest <em>man-pages</em> tarball <a href="http://www.kernel.org/pub/linux/docs/man-pages/">here</a>;   older tarballs can be found <a href="http://www.kernel.org/pub/linux/docs/man-pages/Archive/">here</a>.</p>
<p>The <em>man-pages </em>maintainer is   Michael Kerrisk.   (<span class="email">mtk</span> in the changelog; <span class="email">mtk.manpages-AT-gmail.com</span>; <a href="http://linux-man-pages.blogspot.com/">blog</a>).</p>
<p><a href="http://www.kernel.org/pub/linux/docs/manpages/" target="_blank">http://www.kernel.org/pub/linux/docs/manpages/</a></p>
<h3>Thank you for visiting CPC Computer Consultants, Inc.</h3>
<h3>at <a href="../../" target="_blank">www.cpccci.com</a></h3>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F09%2F11%2Fman-pages%2F&amp;title=Man%20Pages" id="wpa2a_10"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/09/11/man-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Mapper &#8211; nmap new features</title>
		<link>http://www.cpccci.com/blog/2008/09/08/network-mapper-nmap-new-features/</link>
		<comments>http://www.cpccci.com/blog/2008/09/08/network-mapper-nmap-new-features/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 01:59:57 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nmap]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=371</guid>
		<description><![CDATA[o While Nmap stands for &#8220;Network Mapper&#8221;, it hasn&#8217;t been able to actually draw you a map of the network&#8211;until now!  Visit http://nmap.org/book/zenmap-topology.html for details and pretty pictures of Zenmap&#8217;s new Scan Topology system. o I spent much of this summer scanning tens of millions of IPs on the Internet (plus collecting data contributed by [...]]]></description>
			<content:encoded><![CDATA[<p>o While Nmap stands for &#8220;Network Mapper&#8221;, it hasn&#8217;t been able to<br />
actually draw you a map of the network&#8211;until now!  Visit<br />
http://nmap.org/book/zenmap-topology.html for details and pretty<br />
pictures of Zenmap&#8217;s new Scan Topology system.</p>
<p>o I spent much of this summer scanning tens of millions of IPs on the<br />
Internet (plus collecting data contributed by some enterprises) to<br />
determine the most commonly open ports.  Nmap now uses that<br />
empirical data to scan more effectively.</p>
<p>And there is much more, from hundreds of new OS detection fingerprints<br />
to many new Nmap Scripting Engine scripts and libraries.  I had no<br />
idea how many people still used Windows 2000 until 4.68 came out<br />
broken on that platform and I was flooded with email!  That is fixed<br />
now.  And its just one of many bug fixes and performance improvements<br />
in this release.  Remember that we had 7 Google SoC students working<br />
full-time this summer, and this release includes some of their best<br />
work.</p>
<p>You can obtain Nmap 4.75 from the normal location:</p>
<p>http://nmap.org/download.html</p>
<p>Please give it a try! And if you encounter any problems, report them<br />
to nmap-dev as described at http://nmap.org/book/man-bugs.html</p>
<p>Here is the detailed list of important 4.75 changes from</p>
<p>http://nmap.org/changelog.html:</p>
<p>o [Zenmap] Added a new Scan Topology system. The idea is that if we<br />
are going to call Nmap the &#8220;Network Mapper&#8221;, it should at least be<br />
able to draw you a map of the network!  And that is what this new<br />
system does. It was achieved by integrating the RadialNet Nmap<br />
visualization tool (http://www.dca.ufrn.br/~joaomedeiros/radialnet),<br />
into Zenmap. Joao Medeiros has been developing RadialNet for more<br />
than a year. For details, complete with some of the most beautiful<br />
Zenmap screen shots ever, visit<br />
http://nmap.org/book/zenmap-topology.html. The integration work was<br />
done by SoC student Vladimir Mitrovic and his mentor David Fifield.</p>
<p>o [Zenmap] Another exciting new Zenmap feature is Scan Aggregation.<br />
This allows you to visualize and analyze the results of multiple<br />
scans at once, as if they were from one Nmap execution. So you might<br />
scan one network, analyze the results a bit, then scan some of the<br />
machines more intensely or add a completely new subnet to the<br />
scan. The new results are seamlessly added to the old, as described<br />
at http://nmap.org/book/zenmap-scanning.html#aggregation. [David,<br />
Vladimir]</p>
<p>o Expanded nmap-services to include information on how frequently each<br />
port number is found open.  The results were generated by scanning<br />
tens of millions of IPs on the Internet this Summer, and augmented<br />
with internal network data contributed by some large<br />
organizations. [Fyodor]</p>
<p>o Nmap now scans the most common 1,000 ports by default in either<br />
protocol (UDP scan is still optional).  This is a decrease from<br />
1,715 TCP ports and 1,488 UDP ports in Nmap 4.68.  So Nmap is faster<br />
by default and, since the port selection is better thanks to the<br />
port frequency data, it often finds more open ports as<br />
well. [Fyodor]</p>
<p>o Nmap fast scan (-F) now scans the top 100 ports by default in either<br />
protocol.  This is a decrease from 1,276 (TCP) and 1,017 (UDP) in<br />
Nmap 4.68. Port scanning time with -F is generally an order of<br />
magnitude faster than before, making -F worthy of its &#8220;fast scan&#8221;<br />
moniker. [Fyodor]</p>
<p>o The &#8211;top-ports option lets you specify the number of ports you wish<br />
to scan in each protocol, and will pick the most popular ports for<br />
you based on the new frequency data.  For both TCP and UDP, the top<br />
10 ports gets you roughly half of the open ports.  The top 1,000<br />
(out of 65,536 possible) finds roughly 93% of the open TCP ports and<br />
more than 95% of the open UDP ports. [Fyodor, Doug Hoyte]</p>
<p>o David integrated all of your OS detection fingerprint and correction<br />
submissions from March 11 until mid-July.  In the process we reached<br />
the 1500-signature milestone for the 2nd generation OS detection<br />
system. We can now detect the newest iPhones, Linux 2.6.25, OS X<br />
Darwin 9.2.2, Windows Vista SP1, and even the Nintendo Wii. Nmap now<br />
has 1,503 signatures, vs. 1,320 in 4.68. Integration is now faster<br />
and more pleasant thanks to the new OSassist application developed<br />
by Nmap SoC student Michael Pattrick. See<br />
http://seclists.org/nmap-dev/2008/q3/0089.html and<br />
http://seclists.org/nmap-dev/2008/q3/0139.html for more details.</p>
<p>o Nmap now works with Windows 2000 again, after being broken by our<br />
IPv6 support improvements in version 4.65. A couple new dependencies<br />
are required to run on Win2K, as described at<br />
http://nmap.org/book/inst-windows.html#inst-win2k .</p>
<p>o [Zenmap] Added a context-sensitive help system to the Profile<br />
Editor.  You can now mouse-over options to learn more about what<br />
they are used for and their proper argument syntax. [Jurand Nogiec]</p>
<p>o When Nmap finds a probe during ping scan which elicits a response,<br />
it now saves that information for the port scan and later phases.<br />
It can then &#8220;ping&#8221; the host with that probe as necessary to collect<br />
timing information even if the host is not responding to the normal<br />
port scan packets. Previously, Nmap&#8217;s port scan timing pings could<br />
only use information gathered during that port scan itself.  A<br />
number of other &#8220;port scan ping&#8221; system improvements were made at<br />
the same time to improve performance against firewalled hosts. For<br />
full details, see http://seclists.org/nmap-dev/2008/q3/0647.html<br />
[David, Michael, Fyodor]</p>
<p>o &#8211;traceroute now uses the timing ping probe saved from host<br />
discovery and port scanning instead of finding its own probe. The<br />
timing ping probe is always the best probe Nmap knows about for<br />
eliciting a response from a target. This will have the most effect<br />
on traceroute after a ping scan, where traceroute would sometimes<br />
pick an ineffective probe and traceroute would fail even though the<br />
target was up. [David]</p>
<p>o Added dns-safe-recursion-port and dns-safe-recursion-txid<br />
(non-default NSE scripts) which use the 3rd party dns-oarc.net<br />
lookup to test the source port and transaction ID randomness of<br />
discovered DNS servers (assuming they allow recursion at all).<br />
These scripts, which test for the &#8220;Kaminsky&#8221; DNS bugs, were<br />
contributed by Brandon Enright.</p>
<p>o Added whois.nse, which queries the Regional Internet Registries<br />
(RIRs) to determine who the target IP addresses are assigned<br />
to. [Jah]</p>
<p>o [Zenmap] Overhauled the default list of scan profiles based on<br />
nmap-dev discussion.  Users now have a much more diverse and useful<br />
set of default profile options. And if they don&#8217;t like any of those<br />
canned scan commands, they can easily create their own in the<br />
Profile Editor! [David]</p>
<p>o Fyodor made a number of performance tweaks, such as:<br />
o increase host group sizes in many cases, so Nmap will now commonly<br />
scan 64 hosts at a time rather than 30<br />
o align host groups with common network boundaries, such as /24 or<br />
/25<br />
o Increase maximum per-target port-scan ping frequency to one every<br />
1.25 seconds rather than every five. Port scan pings happen<br />
against heavily firewalled hosts and the like when Nmap is not<br />
receiving enough responses to normal scan to properly calculate<br />
timing variables and detect packet drops.</p>
<p>o Added a new NSE binlib library, which offers bin.pack() and<br />
bin.unpack() functions for dealing with storing values in and<br />
extracting them from binary strings.  For details, see<br />
http://nmap.org/book/nse-library.html#nse-binlib . [Philip<br />
Pickering]</p>
<p>o Added a new NSE DNS library. See this thread:<br />
http://seclists.org/nmap-dev/2008/q3/0310.html [Philip Pickering]</p>
<p>o Added new NSE libraries for base64 encoding, SNMP, and POP3 mail<br />
operations.  They are described at<br />
http://seclists.org/nmap-dev/2008/q3/0233.html . [Philip Pickering]</p>
<p>o Added NSE scripts popcapa (retrieves POP3 server capabilities) and<br />
brutePOP3 (brute force POP3 authentication cracker) which make use<br />
of the new POP3 library. [Philip Pickering]</p>
<p>o Added the SNMPcommunitybrute NSE script, which is a brute force<br />
community string cracker. Also modified SNMPsysdescr to use the new<br />
SNMP library. [Philip Pickering]</p>
<p>o Fixed the SMTPcommands script so that it can&#8217;t return multiple<br />
values (which was causing problems). Thanks to Jah for tracking down<br />
the problem and sending a fix for SMTPcommands. Then Patrick fixed<br />
NSE so it can handle misbehaving scripts like this without causing<br />
mysterious side effects.</p>
<p>o Added a new NSE Unpwdb (username/password database) library for<br />
easily obtaining usernames or passwords from a list.  The functions<br />
usernames() and passwords() return a closure which returns a new<br />
list entry with every call, or nil when the list is exhausted.  You<br />
can specify your own username and/or password lists via the script<br />
arguments userdb and passdb, respectively. [Kris]</p>
<p>o Nmap&#8217;s Nsock-utilizing subsystems (DNS, NSE, version detection) have<br />
been updated to support the -S and &#8211;ip-options flags. [Kris]</p>
<p>o A new &#8211;max-rate option was added, which complements &#8211;min-rate. It<br />
allows you to specify the maximum byte rate that Nmap is allowed to<br />
send packets. [David]</p>
<p>o Added &#8211;ip-options support for the connect() scan (-sT). [Kris]</p>
<p>o Nsock now supports binding to a local address and setting IPv4<br />
options with nsi_set_localaddr() and nsi_set_ipoptions(),<br />
respectively. [Kris]</p>
<p>o Added IPProto Ping (-PO) support to Traceroute, and fixed support for<br />
IPProto Scan (-sO) and the ICMP Pings (-PE, -PP, -PM) in Traceroute<br />
as well.  These could cause Nmap to hang during Traceroute. [Kris]</p>
<p>o [Zenmap] Added a &#8220;Cancel&#8221; button for cancelling a scan in progress<br />
without losing any Nmap output obtained so far. [Jurand Nogiec]</p>
<p>o Improve the netbios-smb-os-discovery NSE script to improve target<br />
port selection and to also decode the system&#8217;s timestamp from an SMB<br />
response. [Ron at SkullSecurity]</p>
<p>o Nmap now avoids collapsing large numbers of ports in open|filtered<br />
state (e.g. just printing that 500 ports are in that state rather<br />
than listing them individually) if verbosity or debugging levels are<br />
greater than two.  See this thread:<br />
http://seclists.org/nmap-dev/2008/q3/0312.html . [Fyodor]</p>
<p>o The NSE http library now supports chunked encoding. [Sven Klemm]</p>
<p>o The NSE datafiles library now has generic file parsing routines, and<br />
the parsing of the standard nmap data files (e.g. nmap-services,<br />
nmap-protocols, etc.) now uses those generic routines.  NSE scripts<br />
and libraries may find them useful for dealing with their own data<br />
files, such as password lists. [Jah]</p>
<p>o Passed the big revision 10,000 milestone in the Nmap project SVN<br />
server: http://seclists.org/nmap-dev/2008/q3/0682.html</p>
<p>o Added some Windows and MinGW compatibility patches submitted by<br />
Gisle Vanem.</p>
<p>o Improved nse_init so that compilation/runtime errors in NSE scripts<br />
no longer cause the script engine to abort. [Patrick]</p>
<p>o Fix a cosmetic bug in &#8211;script-trace hex dump output which resulting<br />
in bytes with the highest bit set being prefixed with ffffff. [Sven<br />
Klemm]</p>
<p>o Removed the nselib-bin directory. The last remaining shared NSE<br />
module, bit, has been made static by Patrick. Shared modules were<br />
broken for static builds of Nmap, such as those in the RPMS. We also<br />
had the compilation problems (particularly on OpenBSD) with shared<br />
modules which lead us to make PCRE static a while back. [David]</p>
<p>o Updated rpcinfo NSE script to use the new pack/unpack (binlib)<br />
functions, use the new tab library, include better documentation, and<br />
fix some bugs. [Sven Klemm]</p>
<p>o Add useful details to the error message printed when an NSE script<br />
fails to load (due to syntax error, etc.) [Patrick]</p>
<p>o Fix a bug in the NSE http library which would cause some scripts to<br />
give the error: SCRIPT ENGINE: C:\Program<br />
Files\Nmap\nselib/http.lua:77: attempt to call field &#8216;parse&#8217; (a nil<br />
value) [Jah]</p>
<p>o Fixed a Makefile problem (race condition) which could lead to build<br />
failures when launching make in parallel mode (e.g. -j4). [Michal<br />
Januszewski]</p>
<p>o Added new addrow() function to NSE tab library.  It allows<br />
developers to add a whole row at once rather than doing a separate<br />
add() call for each column in a row. [Sven Klemm]</p>
<p>o Completion time estimates provided in verbose mode or when you hit a<br />
key during scanning are now more accurate thanks to algorithm<br />
improvements by David.</p>
<p>o Fixed a number of NSE scripts which used print_debug()<br />
incorrectly. See<br />
http://seclists.org/nmap-dev/2008/q3/0470.html. [Sven Klemm].</p>
<p>o [Zenmap] The Ports/Hosts view now provides full version detection<br />
values rather than just a simple summary. [Jurand Nogiec]</p>
<p>o [Zenmap] When you edit the command-entry field, then change the<br />
target selection, Nmap no longer blows away your edits in favor of<br />
using your current profile. [Jurand Nogiec]</p>
<p>o Nsock now returns data from UDP packets individually, preserving the<br />
packet boundary, rather than concatenating the data from multiple<br />
packets into a single buffer.  This fixes a problem related to our<br />
reverse-DNS system, which can only handle one DNS packet at a time.<br />
Thanks to Tim Adam of ManageSoft for debugging the problem and<br />
sending the patch.  Doug Hoyte helped with testing, and it was<br />
applied by Fyodor.</p>
<p>o [Zenmap] Fixed a crash which would occur when you try to compare two<br />
files, either of which has more than one extraports element. [David]</p>
<p>o Added the undocumented (except here) &#8211;nogcc option which disables<br />
global/group congestion control algorithms and so each member of a<br />
scan group of machines is treated separately.  This is just an<br />
experimental option for now. [Fyodor]</p>
<p>o [Zenmap] The Ports/Hosts display now has different colors for open<br />
and closed ports. [Vladimir]</p>
<p>o Fixed Zenmap so that it displays all Nmap errors.  Previously, only<br />
stdout was redirected into the window, and not stderr.  Now they are<br />
both redirected. [Vladimir]</p>
<p>o NSE can now be used in combination with ping scan (e.g. &#8220;-sP<br />
&#8211;script&#8221;) so that you can execute host scripts without needing to<br />
perform a port scan. [Kris]</p>
<p>o [NSE] Category names are now case insensitive. [Patrick]</p>
<p>o [NSE] Each thread for a script now gets its own action closure (and<br />
upvalues). See: http://seclists.org/nmap-dev/2008/q2/0549.html<br />
[Patrick]</p>
<p>o [NSE] The script_scan_result structure has been changed to a class,<br />
ScriptResult, which now holds a Script&#8217;s output in an std::string.<br />
This removes the need to use malloc and free to manage this memory.<br />
A similar change was made to the run_record structure. [Patrick]</p>
<p>o [NSE] Fixed a socket exhaustion deadlock which could prevent a<br />
script scan from ever finishing. Now, rather than limit the total<br />
number of sockets which can be open, we limit the number of scripts<br />
which can have sockets open at once.  And once a script has one<br />
socket opened, it is permitted to open as many more as it<br />
needs. [Patrick]</p>
<p>o A hashing library (code from OpenSSL) was added to NSE.  hashlib<br />
contains md5 and sha1 routines. [Philip Pickering]</p>
<p>o Fixed host discovery probe matching when looking at the returned TCP<br />
data in an ICMP error message.  This could formerly lead to<br />
incorrectly discarded responses and the debugging error message:<br />
&#8220;Bogus trynum or sequence number in ICMP error message&#8221; [Kris]</p>
<p>o Fixed a segmentation fault in Nsock which occurred when calling<br />
nsock_write() with a data length of -1 (which means the data is a<br />
NUL-terminated string and Nsock should take the length itself) and<br />
the Nsock trace level was at least 2. [Kris]</p>
<p>o The NSE Comm library now defaults to trying to read as many bytes as<br />
are available rather than lines if neither the &#8220;bytes&#8221; nor &#8220;lines&#8221;<br />
options are given.  Thanks to Brandon for reporting a problem which<br />
he noticed in the dns-test-open-recursion script. [Kris]</p>
<p>o Updated zoneTrans.nse to replace length bytes in returned domain<br />
names to periods itself rather than relying on NSE&#8217;s old behavior of<br />
replacing non-printable characters with periods.  Thanks to Rob<br />
Nicholls for reporting the problem. [Kris]</p>
<p>o Some Zenmap crashes have been fixed: trying to &#8220;refresh&#8221; the output<br />
of a scan loaded from a file, and trying to re-save a file loaded<br />
from the command line in some circumstances. [David]</p>
<p>o [Zenmap] The file selector now remembers what directory it was last<br />
looking at. [David]</p>
<p>o Added an extra layer of validity checking to received packets<br />
(readip_pcap), just to be extra safe. See<br />
http://seclists.org/nmap-dev/2008/q3/0644.html . [Kris]</p>
<p>o Zenmap defaults to showing files matching both *.xml and *.usr in<br />
the file selector. Previously it only showed those matching *.usr.<br />
The new combined format will be XML and .usr will be deprecated.<br />
See http://seclists.org/nmap-dev/2008/q3/0093.html .</p>
<p>o Nmap avoids printing the sending rate in bytes per second during a<br />
TCP connect scan. Because the number of bytes per probe is not<br />
known, it used to print current sending rates: 11248.85 packets / s,<br />
0.00 bytes / s.  Now it will print simply print rates like &#8220;11248.85<br />
packets / s&#8221;. [David]</p>
<p>o [Zenmap] Nmap&#8217;s installation process now include .desktop files<br />
which install menu items for launching Zenmap as a privileged or<br />
non-privileged process on Linux. This will mainly effect people who<br />
install nmap and Zenmap directly from the source code. [Michael]</p>
<p>o Improved performance of IP protocol scan by fixing a bug related to<br />
timing calculations on ICMP probe responses.  See r8754 svn log for<br />
full details. [David]</p>
<p>o Nmap &#8211;reason output no longer falsely reports a localhost-response<br />
during -PN scans. See<br />
http://seclists.org/nmap-dev/2008/q3/0188.html. [Michael]</p>
<p>o [Zenmap] The higwidgets Python package has moved so it is now a<br />
subpackage of zenmapGUI. This avoids naming conflicts with Umit,<br />
which uses a slightly different version of higwidgets. [David]</p>
<p>o A bug that could cause some host discovery probes to be incorrectly<br />
interpreted as drops was fixed. This occurred only when the IP<br />
protocol ping (-PO) option was combined with other ping<br />
types. [David]</p>
<p>o A new scanflags attribute has been added to XML output, which lists<br />
all user specified &#8211;scanflags for the scan. nmap.dtd has been<br />
modified to account for this. [Michael]</p>
<p>o The loading of the nmap-services file has been made much<br />
faster&#8211;roughly 9 times faster in common cases.  This is important<br />
for the new (much larger) frequency augmented nmap-services<br />
file. [David]</p>
<p>o Added a script (ASN.nse) which uses Team Cymru&#8217;s DNS interface to<br />
determine the routing AS numbers of scanned IP addresses.  They even<br />
set up a special domain just for Nmap queries.  The script is still<br />
experimental and non-default. [Jah, Michael]</p>
<p>o [Zenmap] Clicking &#8220;Cancel&#8221; in a file chooser in the diff interface<br />
no longer causes a crash. [David]</p>
<p>o The shtool build helper script has been updated to version 2.0.8. An<br />
older version of shutil caused installation to fail when the locale<br />
was set to et_EE. Thanks to Michal Januszewski for the bug<br />
report. [David]</p>
<p>o [Zenmap] Removed services.dmp and os_dmp.dmp and all the files that<br />
referred to them. They are not needed with the new search<br />
interface. Also removed an unused search progress bar.  And some<br />
broken fingerprint submission code.  Yay for de-bloating! [David]</p>
<p>o [Zenmap] Added &#8220;%F&#8221; to the Exec link in the new Zenmap desktop<br />
file. We expect (hope) that this will allow dragging and dropping<br />
XML files onto the icon. [David]</p>
<p>o [Zenmap] The -o[XGASN] options can now be specified, just as you can<br />
at the console. [Vladimir]</p>
<p>o [Zenmap] You can now shrink the scan window below its default<br />
size thanks to NmapOutputViewer code enhancements. [David]</p>
<p>o [Zenmap] Removed optional use of the Psyco Python optimizer since<br />
Zenmap is not the kind of CPU-bound application which benefits from<br />
Psyco.</p>
<p>o [Zenmap] You can now select more than one host in the &#8220;Ports /<br />
Hosts&#8221; view by control-clicking them in the column at left.</p>
<p>o [Zenmap] The profile editor now offers the &#8211;traceroute option.</p>
<p>o Zenmap now uses Unicode objects pervasively when dealing with Nmap<br />
text output, though the only internationalized text Nmap currently<br />
outputs is the user&#8217;s time zone. [David]</p>
<p>o Unprintable characters in NSE script output (which really shouldn&#8217;t<br />
happen anyway) are now printed like \xHH, where HH is the<br />
hexadecimal representation of the character. See<br />
http://seclists.org/nmap-dev/2008/q3/0180.html . [Patrick]</p>
<p>o Nmap sometimes sent packets with incorrect IP checksums,<br />
particularly when sending the UDP probes in OS detection. This has<br />
been fixed. Thanks to Gisle Vanem for reporting and investigating the<br />
bug. [David]</p>
<p>o Fixed the &#8211;without-liblua configure option so that it works<br />
again. [David]</p>
<p>o In the interest of forward compatibility, the xmloutputversion<br />
attribute in Nmap XML output is no longer constrained to be a<br />
certain string (&#8220;1.02&#8243;). The xmloutputversion should be taken as<br />
merely advisory by authors of parsers.</p>
<p>o Zenmap no longer leaves any temporary files lying around. [David]</p>
<p>o Nmap only prints an uptime guess in verbose mode now, because in<br />
some situations it can be very inaccurate. See the discussion at<br />
http://seclists.org/nmap-dev/2008/q3/0392.html. [David]</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F09%2F08%2Fnetwork-mapper-nmap-new-features%2F&amp;title=Network%20Mapper%20%26%238211%3B%20nmap%20new%20features" id="wpa2a_12"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/09/08/network-mapper-nmap-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup and Restore with MySQL</title>
		<link>http://www.cpccci.com/blog/2008/09/08/backup-and-restore-with-mysql/</link>
		<comments>http://www.cpccci.com/blog/2008/09/08/backup-and-restore-with-mysql/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 01:47:02 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[backup and restore]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=368</guid>
		<description><![CDATA[Backup your Database mysqldump -uusername -ppassword databasename &#62; backupfile.sql Add drop table This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first. mysqldump –add-drop-table -uusername -ppassword databasename &#62; backupfile.sql Directly compress data from a database mysqldump -uusername [...]]]></description>
			<content:encoded><![CDATA[<h3>Backup your Database</h3>
<p>mysqldump -uusername -ppassword databasename &gt; backupfile.sql</p>
<h3>Add drop table</h3>
<p>This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first.</p>
<p>mysqldump –add-drop-table -uusername -ppassword databasename &gt; backupfile.sql</p>
<h3>Directly compress data from a database</h3>
<p>mysqldump -uusername -ppassword databasename | gzip &gt; backupfile.sql.gz</p>
<h3>Back up only specified tables</h3>
<p>mysqldump -uusername -ppassword databasename specific_table1 specific_table2 &gt; backupfile.sql</p>
<h3>Backup multiple databases</h3>
<p>mysqldump -uusername -ppassword –databases databasename1 databasename2 databasename3 &gt; multibackupfile.sql</p>
<h3>Back up only the database structure</h3>
<p>mysqldump –no-data –databases databasename1 databasename2 databasename3 &gt; structurebackupfile.sql</p>
<h3>Backup up all databases on a server</h3>
<p>mysqldump –all-databases &gt; allbackupfile.sql</p>
<h3>Restore database</h3>
<p>mysql -uusername -ppassword databasename &lt; backupfile.sql</p>
<h3>Restoring zipped files</h3>
<p>gunzip &lt; backupfile.sql.gz | mysql -uusername -ppassword databasename</p>
<h3>Moving database to a new server</h3>
<p>mysqldump -uusername -ppassword databasename | mysql –host=ip address -C databasename</p>
<h2><em>Compiled by Roberto Espinoza at <a href="../../" target="_blank">www.cpccci.com</a></em></h2>
<h2><em>CPC Computer Consultants, Inc. </em></h2>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F09%2F08%2Fbackup-and-restore-with-mysql%2F&amp;title=Backup%20and%20Restore%20with%20MySQL" id="wpa2a_14"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/09/08/backup-and-restore-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Kernel Upgrades</title>
		<link>http://www.cpccci.com/blog/2008/08/30/linux-kernel-upgrades/</link>
		<comments>http://www.cpccci.com/blog/2008/08/30/linux-kernel-upgrades/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 01:01:58 +0000</pubDate>
		<dc:creator>Admin at www.cpccci.com</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[kernel upgrades]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=304</guid>
		<description><![CDATA[Announcements of new kernel versions can be obtained through various sources, including the comp.os.linux.announce newsgroup, as well as on the http://freshmeat.net/ and http://slashdot.org/ web sites. Please note that there are currently two &#8220;streams&#8221; of kernel development &#8212; one stream is considered &#8220;stable&#8221; releases, while the other stream is considered &#8220;development&#8221; releases. For mission critical applications [...]]]></description>
			<content:encoded><![CDATA[<p>Announcements of new kernel versions can be obtained through various sources, including the <a href="news:comp.os.linux.announce" target="_top">comp.os.linux.announce</a> newsgroup, as well as on the <a href="http://freshmeat.net/" target="_top">http://freshmeat.net/</a> and <a href="http://slashdot.org/" target="_top">http://slashdot.org/</a> web sites.</p>
<p>Please note that there are currently two <span class="QUOTE">&#8220;streams&#8221;</span> of kernel development &#8212; one stream is considered <span class="QUOTE">&#8220;stable&#8221;</span> releases, while the other stream is considered <span class="QUOTE">&#8220;development&#8221;</span> releases.  For mission critical applications such as an Internet server, it is highly recommended that you use the stable releases and stay away from the development kernels.</p>
<p>The difference between the two streams is that, with the development kernels, new as-yet untested hardware drivers, filesystems, and other <span class="QUOTE">&#8220;cutting edge&#8221;</span> developments are introduced on a regular basis.  These kernels are for use by hackers only &#8212; people who don&#8217;t mind having to reboot their system, should a kernel bug rear its ugly head.</p>
<p>The stable kernels introduce new features and drivers only after they have been thoroughly tested.  Minor releases in this stream also serve to clean up any remaining bugs that are found and corrected.</p>
<p>The two streams use version numbers which are numbered differently to help distinguish between them.  The stable kernels are numbered with the second number even (eg. 2.0.35, 2.0.36, 2.2.4) while the development kernels are numbered with the second number odd (eg. 2.1.120, 2.1.121, 2.3.0).</p>
<p>The latest stable kernel is always made available in source as well as pre-compiled binary formats on the <a href="ftp://ftp.redhat.com/redhat/updates/" target="_top">ftp://ftp.redhat.com/redhat/updates/</a> FTP site.  Download the desired kernel packages for your version and platform (for example, you would want to navigate to the &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">/6.1/i386/</tt>&#8221; directory and download the &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">kernel-*.i386.rpm</tt>&#8221; files for the 6.1 version on the Intel platform).</p>
<div class="NOTE">
<blockquote class="NOTE"><p><strong>Note: </strong>Note: You do not need to download the kernel sources file unless you are planning on building a custom kernel yourself (see <a href="http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/kernel-custom.html">Section 10.6</a> for details on building a custom kernel).</p></blockquote>
</div>
<p>Sometimes, you may find it necessary to use a kernel that has not yet been made available as an RPM.  In this case, you can find the latest kernels from the <a href="ftp://ftp.kernel.org/" target="_top">ftp://ftp.kernel.org</a> FTP site, in the <a href="ftp://ftp.kernel.org/pub/linux/kernel/" target="_top">/pub/linux/kernel/</a> directory.  Change to the appropriate major version subdirectory (eg. &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">v2.0</tt>&#8221;), which contains all kernel releases up to the most current one.  Download the desired kernel package (for example, the compressed tarball for version 2.0.36 would be called &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">linux-2.0.36.tar.gz</tt>&#8221; for the Intel platform) and untar it in the &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">/usr/src</tt>&#8221; directory.</p>
<div class="NOTE">
<blockquote class="NOTE"><p><strong>Note: </strong>Note: Most user-installed applications not installed from RPM should be untarred under the &#8220;<tt class="LITERAL"></tt><tt class="FILENAME">/usr/local/src/</tt>&#8221; directory by convention, but this is a kernel tree so we&#8217;ll make an exception in this case. <img src='http://www.cpccci.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></blockquote>
</div>
<p>Please be aware that if you decide to upgrade your kernel by downloading a tarball, you will most certainly need to configure, compile, and install it yourself.  Unless you have special needs that require the very latest development kernel, I <em>strongly</em> recommend you upgrade your kernel through Red Hat-provided RPM files &#8212; these are preconfigured and precompiled for you, although you can compile a custom kernel from RPM files as well should you wish.</p>
<p>For more information please visit our website at: <a title="http://www.cpccci.com" href="../../" target="_blank">http://www.cpccci.com</a> and <a title="http://www.cpcwebsolutions.com" href="http://www.cpcwebsolutions.com/" target="_blank">http://www.cpcwebsolutions.com</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F08%2F30%2Flinux-kernel-upgrades%2F&amp;title=Linux%20Kernel%20Upgrades" id="wpa2a_16"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/08/30/linux-kernel-upgrades/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux / Unix Command: crontab</title>
		<link>http://www.cpccci.com/blog/2008/08/30/linux-unix-command-crontab/</link>
		<comments>http://www.cpccci.com/blog/2008/08/30/linux-unix-command-crontab/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 00:59:15 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=301</guid>
		<description><![CDATA[Linux / Unix Command: crontab Command Library NAME crontab &#8211; tables for driving cron DESCRIPTION A crontab file contains instructions to the cron(8) daemon of the general form: &#8220;run this command at this time on this date&#8221;. Each user has their own crontab, and commands in any given crontab will be executed as the user [...]]]></description>
			<content:encoded><![CDATA[<table style="height: 31px;" border="0" cellspacing="0" cellpadding="0" width="334">
<tbody>
<tr>
<td><span style="font-size: medium; font-family: verdana; color: #cc0000;"><strong> Linux / Unix Command: <span style="font-size: medium; font-family: verdana; color: #cc0000;"><strong><em><span style="font-size: medium; font-family: verdana; color: #cc0000;">crontab</span></em></strong></span></strong></span></td>
</tr>
<tr>
<td bgcolor="#cc0000"><img src="http://z.about.com/" border="0" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td><img src="http://z.about.com/" alt="" width="1" height="10" /> <a href="http://linux.about.com/library/cmd/blcmdl.htm"><span style="font-size: x-small; font-family: Verdana,Arial,Helvetica,sans-serif;">Command        Library </span></a></td>
</tr>
</tbody>
</table>
<h2>NAME</h2>
<p>crontab &#8211; tables for driving cron <a name="lbAC"> </a></p>
<h2>DESCRIPTION</h2>
<p>A <em>crontab</em> file contains instructions to the <em><a href="http://linux.about.com/library/cmd/blcmdl8_cron.htm">cron</a></em>(8)  daemon of the general form: &#8220;run this command at this time on this date&#8221;. Each user has their own crontab, and commands in any given crontab will be executed as the user who owns the crontab.  Uucp and News will usually have their own crontabs, eliminating the need for explicitly running <em><a href="http://linux.about.com/library/cmd/blcmdl1_su.htm">su</a></em>(1)  as part of a cron command.</p>
<p>Blank lines and leading spaces and tabs are ignored.  Lines whose first non-space character is a pound-sign (#) are comments, and are ignored. Note that comments are not allowed on the same line as cron commands, since they will be taken to be part of the command.  Similarly, comments are not allowed on the same line as environment variable settings.</p>
<p>An active line in a crontab will be either an environment setting or a cron command.  An environment setting is of the form,<br />
name = value</p>
<p>where the spaces around the equal-sign (=) are optional, and any subsequent non-leading spaces in <em>value</em> will be part of the value assigned to <em>name</em>.  The <em>value</em> string may be placed in quotes (single or double, but matching) to preserve leading or trailing blanks.</p>
<p>Several environment variables are set up automatically by the <em><a href="http://linux.about.com/library/cmd/blcmdl8_cron.htm">cron</a></em>(8)  daemon. SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd  line of the crontab&#8217;s owner. HOME and SHELL may be overridden by settings in the crontab; LOGNAME may not.</p>
<p>(Another note: the LOGNAME variable is sometimes called USER on BSD systems&#8230; on these systems, USER will be set also.)</p>
<p>In addition to LOGNAME, HOME, and SHELL, <em><a href="http://linux.about.com/library/cmd/blcmdl8_cron.htm">cron</a></em>(8)  will look at MAILTO if it has any reason to send mail as a result of running commands in &#8220;this&#8221; crontab.  If MAILTO is defined (and non-empty), mail is sent to the user so named.  If MAILTO is defined but empty (MAILTO=&#8221;"), no mail will be sent.  Otherwise mail is sent to the owner of the crontab.  This option is useful if you decide on /bin/mail instead of /usr/lib/sendmail as your mailer when you install cron &#8212; /bin/mail doesn&#8217;t do aliasing, and UUCP usually doesn&#8217;t read its mail.</p>
<p>The format of a cron command is very much the V7 standard, with a number of upward-compatible extensions.  Each line has five time and date fields, followed by a user name if this is the system crontab file, followed by a command.  Commands are executed by <em><a href="http://linux.about.com/library/cmd/blcmdl8_cron.htm">cron</a></em>(8)  when the minute, hour, and month of year fields match the current time, <em>and</em> when at least one of the two day fields (day of month, or day of week) match the current time (see &#8220;Note&#8221; below). Note that this means that non-existant times, such as &#8220;missing hours&#8221; during daylight savings conversion, will never match, causing jobs scheduled during the &#8220;missing times&#8221; not to be run.  Similarly, times that occur more than once (again, during daylight savings conversion) will cause matching jobs to be run twice.</p>
<p><em><a href="http://linux.about.com/library/cmd/blcmdl8_cron.htm">cron</a></em>(8)  examines cron entries once every minute.</p>
<p>The time and date fields are:</p>
<dl>
<dt></dt>
<dd> field<tt> </tt>allowed values</p>
<p>&#8212;&#8211;<tt> </tt>&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>minute<tt> </tt>0-59</p>
<p>hour<tt> </tt>0-23</p>
<p>day of month<tt> </tt>1-31</p>
<p>month<tt> </tt>1-12 (or names, see below)</p>
<p>day of week<tt> </tt>0-7 (0 or 7 is Sun, or use names)</p>
</dd>
</dl>
<p>A field may be an asterisk (*), which always stands for &#8220;first-last&#8221;.</p>
<p>Ranges of numbers are allowed.  Ranges are two numbers separated with a hyphen.  The specified range is inclusive.  For example, 8-11 for an &#8220;hours&#8221; entry specifies execution at hours 8, 9, 10 and 11.</p>
<p>Lists are allowed.  A list is a set of numbers (or ranges) separated by commas.  Examples: &#8220;1,2,5,9&#8221;, &#8220;0-4,8-12&#8221;.</p>
<p>Step values can be used in conjunction with ranges.  Following a range with &#8220;/&#8221; specifies skips of the number&#8217;s value through the range.  For example, &#8220;0-23/2&#8221; can be used in the hours field to specify command execution every other hour (the alternative in the V7 standard is &#8220;0,2,4,6,8,10,12,14,16,18,20,22&#8221;).  Steps are also permitted after an asterisk, so if you want to say &#8220;every two hours&#8221;, just use &#8220;*/2&#8221;.</p>
<p>Names can also be used for the &#8220;month&#8221; and &#8220;day of week&#8221; fields.  Use the first three letters of the particular day or month (case doesn&#8217;t matter).  Ranges or lists of names are not allowed.</p>
<p>The &#8220;sixth&#8221; field (the rest of the line) specifies the command to be run. The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the cronfile. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.</p>
<p>Note: The day of a command&#8217;s execution can be specified by two fields &#8212; day of month, and day of week.  If both fields are restricted (ie, aren&#8217;t *), the command will be run when <em>either</em> field matches the current time.  For example,<br />
&#8220;30 4 1,15 * 5&#8221; would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday. <a name="lbAD"> </a></p>
<h2>EXAMPLE CRON FILE</h2>
<pre># use /bin/sh to run commands, no matter what /etc/passwd says
SHELL=/bin/sh
# mail any output to `paul', no matter whose crontab this is
MAILTO=paul
#
# run five minutes after midnight, every day
5 0 * * *       $HOME/bin/daily.job &gt;&gt; $HOME/tmp/out 2&gt;&amp;1
# run at 2:15pm on the first of every month -- output mailed to paul
15 14 1 * *     $HOME/bin/monthly
# run at 10 pm on weekdays, annoy Joe
0 22 * * 1-5   mail -s "It's 10pm" joe%Joe,%%Where are your kids?%
23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday"
5 4 * * sun     echo "run at 5 after 4 every sunday"

For more information please visit our website at: <a title="http://www.cpccci.com" href="../../" target="_blank">http://www.cpccci.com</a> and <a title="http://www.cpcwebsolutions.com" href="http://www.cpcwebsolutions.com/" target="_blank">http://www.cpcwebsolutions.com</a></pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F08%2F30%2Flinux-unix-command-crontab%2F&amp;title=Linux%20%2F%20Unix%20Command%3A%20crontab" id="wpa2a_18"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/08/30/linux-unix-command-crontab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing File Permissions in UNIX and Linux</title>
		<link>http://www.cpccci.com/blog/2008/08/27/changing-file-permissions-in-unix-and-linux/</link>
		<comments>http://www.cpccci.com/blog/2008/08/27/changing-file-permissions-in-unix-and-linux/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 13:29:19 +0000</pubDate>
		<dc:creator>Roberto Espinoza</dc:creator>
				<category><![CDATA[Linux Resources]]></category>
		<category><![CDATA[changing file permissions in linux]]></category>
		<category><![CDATA[Computer Science news]]></category>
		<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[how to in linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cpccci.com/blog/?p=292</guid>
		<description><![CDATA[Before we get into changing permissions lets at least define what the most common ones do. This quick help file talks about things like group and user ownership which is covered in another file so if you don&#8217;t know what they mean at all read chown next and you will. ~# ls -l total 456 [...]]]></description>
			<content:encoded><![CDATA[<p>Before we get into changing permissions lets at least define what the<br />
most common ones do.  This quick help file talks about things like group<br />
and user ownership which is covered in another file so if you don&#8217;t know<br />
what they mean at all read chown next and you will.</p>
<p>~# ls -l<br />
total 456<br />
drwx&#8212;&#8212;    7 root     root         4096 Feb 24 05:50 somedir<br />
-rw-rw-rw-    4 root     root          323 Feb 18 09:10 somefile</p>
<p>By doing a ls -l (list long) we can see the permissions on two files in<br />
my home dir.  All we&#8217;re interested in now is the left most column so<br />
lets remove the other stuff</p>
<p>drwx&#8212;&#8212; somedir<br />
^^^^<br />
||||<br />
|||eXecute<br />
||Write<br />
|Read<br />
Directory</p>
<p>First thing this tells us is that it&#8217;s a directory if it&#8217;s just a file<br />
it will be &#8211; as in somefile above.<br />
Second is Read, I can list the contents of this dir:  ls somedir<br />
Third is Write, I can place files into this directory: cp somefile somedir<br />
Fourth is eXecute, I can cd into this directory: cd somedir</p>
<p>-rw-rw-rw- somefile<br />
^^ ^^ ^^<br />
|| || ||<br />
|| || |world Write<br />
|| || world Read<br />
|| |group Write<br />
|| group Read<br />
|user Write<br />
user Read</p>
<p>First permission tells us &#8211; which as we found out can mean directory,<br />
since this is blank it is just a file.<br />
Second is user Read, the owner of this file can read it: less somefile<br />
Third is user Write, the owner can modify this file: rm somefile<br />
Fourth is user blank, if it where x the owner could run this file: somefile<br />
Fifth is group Read, anyone in this group can read this file: cat somefile<br />
Sixth is group Write, anyone in this group can modify this file: rm somefile<br />
Seventh is blank, if it where x anyone in the group could run this file<br />
Eighth is world read, anyone can read this file: less somefile<br />
Ninth is world write, anyone can modilfy this file: vi somefile<br />
Tenth is blank, if it were x anyone could run this file</p>
<p>Now regardless of group or world settings only the owner and root can<br />
change permissions on a file or dir The utility that you use to change<br />
permissions on a file or dir is chmod</p>
<p>Chmod has two ways to set permissions on file or directories:  Absolute<br />
and Symbolic</p>
<p>Absolute: using numbers to set the permissions<br />
eg: chmod 755 would = -rwxr-xr-x</p>
<p>Symbolic: using letters to set the permissions<br />
eg: chmod a+rx,u+w would = -r-xr-xr-x</p>
<p>Symbolic is easier to understand but it&#8217;s also easy to make errors.<br />
Once you understand Absolute you will probably use that all the time.</p>
<p>Absolute settings: The first number changes the user permissions<br />
The second number changes the group permissions<br />
The third number changes the world permissions</p>
<p>1 = eXecute 2 = Write 4 = Read</p>
<p>Now you can do chmod 1,2,4 somefile to change it&#8217;s permissions however<br />
that is wasting key strokes.  chmod allows you do add the numbers together to<br />
change them so chmod 1,2,4 somefile is the same as chmod 7 somefile</p>
<p>If you only use one number chmod assumes all you want to change is the<br />
user permissions so lets group some together so we can change everything.</p>
<p>-rw-rw-rw- somefile</p>
<p>This is easy to get we want Read Write so add read (4) to write (2)<br />
we get 6 so: chmod 666 somefile is how we would get that.</p>
<p>Now suppose that somefile was a script you were working on once you<br />
are done you probably don&#8217;t want to keep typing sh somefile to run it.<br />
So you would make it eXecutable that is the 1 permission.</p>
<p>chmod 111 somefile becomes<br />
&#8212;x&#8211;x&#8211;x somefile.<br />
Opps were did the rw we had just go?</p>
<p>There is nothing wrong with it this way you can still run it like you<br />
wanted, but if you go back and try and change or view it later on you<br />
will get a permission denied error</p>
<p>That is why it&#8217;s called absolute. to acheive what we had before plus<br />
the eXecute we want to add read (4), write (2) and eXecute (1) to make 7</p>
<p>chmod 777 somefile becomes -rwxrwxrwx somefile</p>
<p>Symbolic on the other hand is a bit more forgiving then absolute it won&#8217;t<br />
change settings you already have if you omit them.  So to at the eXecute<br />
bit to somefile from the rw it was before with symbolic it is simply</p>
<p>chmod a+x somefile to get -rwxrwxrwx somefile</p>
<p>The first letter &#8220;a&#8221; applies to user class that you want to change<br />
(user, group, world) The &#8220;+&#8221; means add this setting, there is also &#8220;-&#8221;<br />
which removes it.</p>
<p>User Classes you can use are: a (all), u (user), g (group) and o (world)<br />
or (other)<br />
Permissions you can use are: r read, w write and x eXecute.  In addition<br />
you can also use u (user), g (group) and o (other) in the permission<br />
place to set the permissions for the user class to match those of the other<br />
user class you specify using the &#8216;=&#8217;, chmod a=u somefile will make<br />
all the user classes match the one for user.</p>
<p>You can also group together user classes and permissions to make things<br />
a bit quicker</p>
<p>Some quick Examples:</p>
<p>drwx&#8212;&#8212; somedir -rw-rw-rw- somefile</p>
<p>chmod g+x somefile      -&gt; -rw-rwxrw- somefile<br />
chmod o+w somedir       -&gt; drwx&#8212;-w- somedir<br />
chmod g+o somedir       -&gt; d-w&#8211;w&#8211;w- somedir<br />
chmod go-rw somefile    -&gt; -rw&#8212;x&#8212; somefile<br />
chmod a+u somefile      -&gt; -rw-rw-rw- somefile<br />
chmod gou-rwx somedir   -&gt; d&#8212;&#8212;&#8212; somedir<br />
chmod a+rwx somedir     -&gt; drwxrwxrwx somedir<br />
chmod +x somefile       -&gt; -rw&#8212;x&#8211;x somefile<br />
chmod +r somefile       -&gt; -rw-r-xr-x somefile<br />
chmod +w somefile       -&gt; -rw-r-xr-x somefile</p>
<p>For more information please visit our website at: <a title="http://www.cpccci.com" href="../../" target="_blank">http://www.cpccci.com</a> and <a title="http://www.cpcwebsolutions.com" href="http://www.cpcwebsolutions.com/" target="_blank">http://www.cpcwebsolutions.com</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpccci.com%2Fblog%2F2008%2F08%2F27%2Fchanging-file-permissions-in-unix-and-linux%2F&amp;title=Changing%20File%20Permissions%20in%20UNIX%20and%20Linux" id="wpa2a_20"><img src="http://www.cpccci.com/blog/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpccci.com/blog/2008/08/27/changing-file-permissions-in-unix-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

