<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8380190290441962482</id><updated>2011-08-23T20:20:11.718-07:00</updated><category term='linux'/><category term='driver'/><category term='tech'/><category term='filesystem'/><category term='personal'/><category term='mount'/><category term='samba'/><category term='Misc'/><category term='network'/><category term='crontab'/><category term='mplayer'/><category term='multimedia'/><category term='shell programming'/><title type='text'>My Linux Brags</title><subtitle type='html'>This blog is all about me and my interesting encounters with Linux.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-4290540233121884261</id><published>2009-07-19T15:07:00.001-07:00</published><updated>2009-07-19T15:15:35.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystem'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><title type='text'>Linux File System Hierarchy</title><content type='html'>Because everything in Linux is a file, you, as an administrator, are ultimately going to have to deal with files. This makes it very important to understand the Linux file system hierarchy. Most Unixes/Linuxes adhere to the &lt;a href="http://www.pathname.com/"&gt;Filesystem Hierarchy Standard&lt;/a&gt; which defines a universal/standard directory structure for a Linux/Unix operating system.&lt;br /&gt;&lt;br /&gt;Here is a brief overview of the most commonly available directories on a standard Linux system and their purpose:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/bin&lt;/span&gt; = houses basic binaries like &lt;span style="font-family: courier new;"&gt;ls&lt;/span&gt;, &lt;span style="font-family: courier new;"&gt;cat&lt;/span&gt;, &lt;span style="font-family: courier new;"&gt;mv&lt;/span&gt;, &lt;span style="font-family: courier new;"&gt;date&lt;/span&gt;, &lt;span style="font-family: courier new;"&gt;kill&lt;/span&gt;, and &lt;span style="font-family: courier new;"&gt;ps&lt;/span&gt; etc.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/boot&lt;/span&gt; = houses boot and kernel-specific files.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev&lt;/span&gt; = houses device files.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt; = houses host-specific configuration files.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home&lt;/span&gt; = houses user-specific home directories.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/root&lt;/span&gt; = home directory of root user.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/lib&lt;/span&gt; = houses shared library files used by various programs.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/lost+found&lt;/span&gt; = contains files/directories that have gone corrupted, items referred to by bad inodes, lost file fragments and the likes.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/mnt &lt;/span&gt;= houses mount points for various removable devices like CD and Floppy.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/opt&lt;/span&gt; = houses add-on applications (StarOffice from Sun Microsystems, for example).&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/proc &lt;/span&gt;= a virtual directory providing stats on file system, processor, and memory etc.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/sbin&lt;/span&gt; = houses system binaries (such as reboot, halt, route, and fdisk) accessible to root only.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/tmp&lt;/span&gt; = a location for storing temporary data.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr&lt;/span&gt; = houses applications that are accessible to ALL users on the system such as a Web browser and gzip.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/var&lt;/span&gt; = provides space for housing data that changes frequently such as print/mail jobs and log files.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-4290540233121884261?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/4290540233121884261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=4290540233121884261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/4290540233121884261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/4290540233121884261'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2009/07/linux-file-system-hierarchy.html' title='Linux File System Hierarchy'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-53398510934098632</id><published>2009-07-19T15:03:00.000-07:00</published><updated>2009-07-19T15:16:48.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystem'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><title type='text'>Linux System Manuals</title><content type='html'>Linux manuals are typically stored in 9 structures -- man1 through man9. The &lt;span style="font-family:courier new;"&gt;manpath &lt;/span&gt;command shows the locations where manuals are located. Typically, manuals are stored under &lt;span style="font-family:courier new;"&gt;/usr/share/man&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Here is a brief description of what goes into each man structure:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man1&lt;/span&gt; = user tools manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man2&lt;/span&gt; = system calls manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man3&lt;/span&gt; = c calls manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man4&lt;/span&gt; = device driver manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man5&lt;/span&gt; = configuration file manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man6&lt;/span&gt; = game manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man7&lt;/span&gt; = installation package manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man8&lt;/span&gt; = system tools manuals&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;man9&lt;/span&gt; = kernel manuals&lt;br /&gt;&lt;br /&gt;The syntax of the command is:&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;# man &lt;cmd&gt;&lt;/cmd&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If a command is available in multiple manuals, you can specify which manual you want to look at by specifying the manual number like this:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# man [1-9] &lt;cmd&gt;&lt;/cmd&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-53398510934098632?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/53398510934098632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=53398510934098632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/53398510934098632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/53398510934098632'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2009/07/linux-system-manuals.html' title='Linux System Manuals'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-7947570236621218169</id><published>2008-01-01T10:58:00.000-08:00</published><updated>2008-01-01T11:59:22.671-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><category scheme='http://www.blogger.com/atom/ns#' term='driver'/><title type='text'>Installing Broadcom Netlink Fast Ethernet Driver For Linux On Vostro 1400</title><content type='html'>After I bought my new &lt;span style="font-style: italic;"&gt;Vostro 1400 Notebook&lt;/span&gt; a few months ago, I installed &lt;span style="font-style: italic;"&gt;CentOS 5&lt;/span&gt; (read &lt;span style="font-style: italic;"&gt;RHEL 5&lt;/span&gt;) on it and have been dual-booting it with &lt;span style="font-style: italic;"&gt;Microsoft Windows Vista&lt;/span&gt; ever since. One big issue with installation of &lt;span style="font-style: italic;"&gt;CentOS&lt;/span&gt; on &lt;span style="font-style: italic;"&gt;Vostro 1400&lt;/span&gt; is that the &lt;span style="font-style: italic;"&gt;Broadcom Netlink Fast Ethernet &lt;/span&gt;card is not detected (the &lt;span style="font-style: italic;"&gt;Intel ipw3945 Wireless &lt;/span&gt;card is also not recognized but details on that in a future post).&lt;br /&gt;&lt;br /&gt;Research suggests that if you're running the latest &lt;span style="font-style: italic;"&gt;2.6&lt;/span&gt; kernel with the &lt;span style="font-style: italic;"&gt;tg3&lt;/span&gt; module installed, your device should be recognized and working. Things are not that simple, though. The issue is that the &lt;span style="font-style: italic;"&gt;tg3&lt;/span&gt; module installed with the kernel 2.6 is old and doesn't recognize the ethernet card. All you need to do is install the latest version of the module (&lt;span style="font-style: italic;"&gt;3.81c &lt;/span&gt;as of this writing), reboot your box, and Voila!&lt;br /&gt;&lt;br /&gt;Here are step by step instructions for installing the &lt;span style="font-style: italic;"&gt;Broadcom Netlink Fast Ethernet&lt;/span&gt; card on a &lt;span style="font-style: italic;"&gt;Vostro 1400 Notebook&lt;/span&gt; running &lt;span style="font-style: italic;"&gt;CentOS 5&lt;/span&gt; (or &lt;span style="font-style: italic;"&gt;RHEL 5&lt;/span&gt; for that matter):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt;: You must have Internet connectivity to follow some of the steps specified below.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Fire up your browser and navigate to &lt;a href="http://www.broadcom.com/support/ethernet_nic/netlink.php"&gt;Broadcom Ethernet NIC NetLink Driver Downloads&lt;/a&gt; page. Download the driver titled &lt;span style="font-style: italic;"&gt;Linux (tg3)&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Open a terminal, login as root using the &lt;span style="font-weight: bold;"&gt;su&lt;/span&gt; command, and navigate to the directory where you downloaded the driver archive &lt;span style="font-style: italic;"&gt;linux-3.81c.zip&lt;/span&gt; (latest as of this post). &lt;/li&gt;&lt;li&gt;Unzip the downloaded archive:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;# &lt;/span&gt;unzip linux-3.81c.zip&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Navigate to the directory just unzipped:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;cd Server/Linux/Driver/&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Untar the arvhice &lt;span style="font-style: italic;"&gt;tg3-3.81c.tar.gz:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;tar -xvzf tg3-3.81c.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Navigate to the untarred directory:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# cd tg3-3.81c&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Make&lt;/span&gt; the kernel module:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;make&lt;/span&gt;&lt;/li&gt;&lt;li&gt;The &lt;span style="font-style: italic;"&gt;make&lt;/span&gt; process should output various binaries including &lt;span style="font-style: italic;"&gt;tg3.ko&lt;/span&gt; which is the kernel module we are interested in. So, install the module:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;make install&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Update kernel module dependencies:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;/sbin/depmod -a&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Finally, reboot your machine.&lt;/li&gt;&lt;/ol&gt;Once your machine reboots, the &lt;span style="font-style: italic;"&gt;Broadcom Netlink Fast Ethernet&lt;/span&gt; card should be available for  you to configure. Configure the card using &lt;span style="font-style: italic;"&gt;ifconfig&lt;/span&gt; or the &lt;span style="font-style: italic;"&gt;Network Configuration&lt;/span&gt; GUI tool available through the &lt;span style="font-style: italic;"&gt;System &gt; Administration &gt; Network&lt;/span&gt; menu, and enjoy using your&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Broadcom Netlink Fast Ethernet&lt;/span&gt; card under Linux on your &lt;span style="font-style: italic;"&gt;Vostro 1400&lt;/span&gt; box!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-7947570236621218169?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/7947570236621218169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=7947570236621218169' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7947570236621218169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7947570236621218169'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2008/01/installing-broadcom-netlink-fast.html' title='Installing Broadcom Netlink Fast Ethernet Driver For Linux On Vostro 1400'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-7521043030452981389</id><published>2007-12-08T19:11:00.000-08:00</published><updated>2009-07-18T14:52:20.862-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>A Day Out</title><content type='html'>&lt;a href="http://www.macrosoftinc.com/"&gt;Macrosoft&lt;/a&gt;'s team working at &lt;a href="http://autoweb.net/web2006/index.shtml"&gt;Autoweb&lt;/a&gt;, which I am a key member of, went out on an all day event a week back. We ate lunch at Tawa Restaurant in Dearborn. After that we went to Henry Ford Museum. However, because we got so late, the museum was closed. So we went to Fairlane Shopping Mall where we did a bit of shopping. Then we watched the movie Beowulf in Star Theater. Finally, we had our dinner at China Town Restaurant.&lt;br /&gt;&lt;br /&gt;That day it snowed very heavily; so much that on the way back to home I had to drive no more than 40 MPH while usually I do no less than 75 MPH!&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_BxHFwr6JQh4/R1tjg2hzDZI/AAAAAAAAABg/Q_QVcJzqCj4/s1600-h/9.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_BxHFwr6JQh4/R1tjg2hzDZI/AAAAAAAAABg/Q_QVcJzqCj4/s320/9.jpg" alt="" id="BLOGGER_PHOTO_ID_5141812815617789330" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_BxHFwr6JQh4/R1tjfmhzDXI/AAAAAAAAABQ/gsooRXtJHV4/s1600-h/6.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_BxHFwr6JQh4/R1tjfmhzDXI/AAAAAAAAABQ/gsooRXtJHV4/s320/6.jpg" alt="" id="BLOGGER_PHOTO_ID_5141812794142952818" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_BxHFwr6JQh4/R1tjy2hzDaI/AAAAAAAAABo/zcWLA4Vgsfw/s1600-h/8.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_BxHFwr6JQh4/R1tjy2hzDaI/AAAAAAAAABo/zcWLA4Vgsfw/s320/8.jpg" alt="" id="BLOGGER_PHOTO_ID_5141813124855434658" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-7521043030452981389?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/7521043030452981389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=7521043030452981389' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7521043030452981389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7521043030452981389'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/12/day-out.html' title='A Day Out'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_BxHFwr6JQh4/R1tjg2hzDZI/AAAAAAAAABg/Q_QVcJzqCj4/s72-c/9.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-7867609025556305271</id><published>2007-09-08T16:53:00.000-07:00</published><updated>2007-09-08T17:12:45.407-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><category scheme='http://www.blogger.com/atom/ns#' term='mplayer'/><title type='text'>mplayer Skins Problem</title><content type='html'>On &lt;a href="http://www.centos.org/"&gt;CentOS&lt;/a&gt; Linux (and may be others), the easiest way to enable mp3, rm, and other proprietary media support is to install &lt;a href="http://www.mplayerhq.hu/design7/news.html"&gt;mplayer&lt;/a&gt; (you'll need to have the &lt;a href="http://wiki.centos.org/Repositories/RPMForge"&gt;rpmforge&lt;/a&gt; repo configured):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;# yum install mplayer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I don't like the default skin though. So I installed the mplayer skins package:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;# yum install mplayer-skins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After installing the skins package, I opened the mplayer skin browser and bang! No skin except the default one was available!! Research revealed that it's a small, but annoying, bug in the skins package which installs skins in a wrong directory. Check out details of this bug &lt;a href="https://bugs.launchpad.net/baltix/+source/mplayer-skins/+bug/71504"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Luckily, the resolution is very simple. All you need to do is execute this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;# cd /usr/share/mplayer/skins/&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;# ln -s ../Skin/* .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After executing these commands, restart mplayer, launch the skin browser and it should have a fairly long list of available skins listed. That's it!&lt;br /&gt;&lt;br /&gt;Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-7867609025556305271?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='https://bugs.launchpad.net/baltix/+source/mplayer-skins/+bug/71504' title='mplayer Skins Problem'/><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/7867609025556305271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=7867609025556305271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7867609025556305271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/7867609025556305271'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/09/mplayer-skins-problem.html' title='mplayer Skins Problem'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-3039303795880432423</id><published>2007-09-01T22:10:00.000-07:00</published><updated>2007-09-01T22:32:32.250-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell programming'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><title type='text'>Weird Shell Script Errors</title><content type='html'>Ever ran into weird errors when trying to run a shell script which you believed was 100% correct but the shell won't accept it? I did! Well, it turned out that the &lt;span style="font-family:courier new;"&gt;bash&lt;/span&gt; shell (may be others as well) expects a script file to be saved with UNIX end of line format *not* Windows end of line format.&lt;br /&gt;&lt;br /&gt;I am using CentOS 5 with KDE. I use the Kate editor for scripting and programming. Until I started getting insane errors whenever I would try to execute any of my recently developed shell scripts, Kate was configured to save files with Windows end of line format. Now that I changed the end of line format back to UNIX, &lt;span style="font-family:courier new;"&gt;bash&lt;/span&gt; is happy as ever!&lt;br /&gt;&lt;br /&gt;Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-3039303795880432423?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/3039303795880432423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=3039303795880432423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/3039303795880432423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/3039303795880432423'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/09/weird-shell-script-errors.html' title='Weird Shell Script Errors'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-1574569120098139506</id><published>2007-08-24T17:00:00.000-07:00</published><updated>2007-09-01T22:32:46.164-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>Working Out of a Client Location in MI</title><content type='html'>This post is in fact a little bit late. It's been a month since I have relocated to Rochester Hills, MI. But now is a good time to share with you a little bit of info about what I am doing here.&lt;br /&gt;&lt;br /&gt;After three weeks of stay in NJ, and enjoying a very calm and cool work environment at &lt;a href="http://www.macrosoftinc.com/"&gt;Macrosoft&lt;/a&gt;, I got placed at a client's (&lt;a href="http://www.autoweb.net/"&gt;Autoweb&lt;/a&gt;) site in Rochester Hills, MI. They are developing the new generation of a well-known product for the automotive industry. The main function of this product is providing a platform for sharing intellectual property data and collaboration among first tier automotive vendors like &lt;a href="http://www.gm.com/"&gt;General Motors&lt;/a&gt; and &lt;a href="http://www.ford.com/en/default.htm"&gt;Ford&lt;/a&gt;, and their suppliers.&lt;br /&gt;&lt;br /&gt;My role in the development of this project is v. critical. In a nutshell, I am developing a component that would enable the old product and its new incarnation to work together seamlessly. This component's ultimate goal is to gradually migrate all clients from the old product to the new one and to enable vendors and suppliers to continue IP collaboration in the mean time regardless of which product they are using.&lt;br /&gt;&lt;br /&gt;As you can see, this component which I am developing for my client is v. important for the success of the new product. And because we have almost run out of time-to-deadline, we're working not only long hours but weekends as well. And it's been like this for a month, non-stop. Man, this tough schedule! I didn't have to work like that even in Pakistan.&lt;br /&gt;&lt;br /&gt;This is for you Pakis who always complaint that we have but unorganized software development industry where every other project is a chaos. Trust me, it's no better here either. In fact, software development is such a challenging and complex task that if it's not exercised with due caution and expertise, you're almost guaranteed to end up with a project that is a nightmare to develop, maintain, and evolve.&lt;br /&gt;&lt;br /&gt;Stay tuned for more updates.&lt;br /&gt;Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-1574569120098139506?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/1574569120098139506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=1574569120098139506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1574569120098139506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1574569120098139506'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/08/working-out-of-client-location-in-mi.html' title='Working Out of a Client Location in MI'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-1549141352177675391</id><published>2007-06-26T07:08:00.000-07:00</published><updated>2007-09-01T22:33:00.733-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>Relocation to the USA</title><content type='html'>On Wednesday, 20 June, 2007 I relocated to the USA to work for &lt;a href="http://www.macrosoftinc.com/"&gt;Macrosoft Inc.&lt;/a&gt;, a US-based software development and consulting company with operations in many countries including Pakistan. I flew to the US via &lt;a href="http://www.piac.com.pk/"&gt;PIA&lt;/a&gt;. Their service was good and I would like to travel with them in future as well.&lt;br /&gt;&lt;br /&gt;New Jersey is a very green and calm state. It's really an ideal place to live in. It's been a week since I'm living and working in NJ and I'm really lovin' it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-1549141352177675391?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/1549141352177675391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=1549141352177675391' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1549141352177675391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1549141352177675391'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/06/to-us.html' title='Relocation to the USA'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-2002654825087774863</id><published>2007-06-02T12:16:00.000-07:00</published><updated>2007-09-01T22:33:31.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><category scheme='http://www.blogger.com/atom/ns#' term='mplayer'/><title type='text'>Mplayer Font Problem -- Resolved!</title><content type='html'>When I started mplayer after installing it on my CentOS 5 box, it thrown an error at me reading &lt;blockquote&gt;New_Face failed.  Maybe the font path is wrong.  Please supply the text font file (~/.mplayer/subfont.ttf&lt;/blockquote&gt;The player also failed to play any media files. Any attempt to play an audio or video would result in a player crash. This later problem was resolved by following the instructions in the mplayer &lt;a href="http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2554176"&gt;FAQs&lt;/a&gt;. Please note that this problem is specific to Fedora, RHEL, and CentOS.&lt;br /&gt;&lt;br /&gt;The earlier font problem caused no issues as the player was able to play any media files. However, as you would expect, it was very, very annoying. Research revealed that solving this problem was as simple as copying any font file to the ~/.mplayer/ directory and renaming it to subfont.ttf. You can see the fonts available on your system by navigating to fonts:/ in your file browser (nautilus or konqueror).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-2002654825087774863?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/2002654825087774863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=2002654825087774863' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/2002654825087774863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/2002654825087774863'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/06/mplayer-font-problem-resolved.html' title='Mplayer Font Problem -- Resolved!'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-302214151807500045</id><published>2007-05-13T06:19:00.000-07:00</published><updated>2007-09-01T22:33:25.942-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab'/><title type='text'>Scheduling Tasks in Linux - cron</title><content type='html'>&lt;p style="margin-bottom: 0in;"&gt;On Linux systems, you use the &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; tool to schedule tasks that you want carried out on a certain time. Scheduled tasks are called &lt;span style="font-style: italic;"&gt;cron jobs&lt;/span&gt;. The Linux Task Scheduler (read &lt;i&gt;cron&lt;/i&gt;) has several parts to it:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. The &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; Daemon&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; is the workhorse that carries out the real job: executing specified tasks at the specified time. It's a daemon that runs calmly in the background and checks &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; files once every minute and executes tasks whose scheduled time matches the current time.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. The &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt;&lt;/b&gt; &lt;span style="font-weight: bold;"&gt;Tool&lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;crontab is the tool that you use for editing your crontab file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. The &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; File&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; files contain scheduling information of tasks.&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;The following sections examine each component of the cron system in detail.&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;The &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; Daemon&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; daemon is responsible for executing tasks at their scheduled time. It gets started automatically by &lt;span style="font-family:courier new;"&gt;rc&lt;/span&gt; scripts at system startup. So, you don't need to mess with it. But there might be times when you want to interact directly with the daemon. Here are a few useful commands to interact with the &lt;span style="font-family:courier new;"&gt;crond &lt;/span&gt;&lt;span style="font-family:georgia;"&gt;daemon or any other daemon for that matter:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To query status of &lt;span style="font-family:courier new;"&gt;crond:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# service crond status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To stop &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# service crond stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To start &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# service crond start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To stop and start &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; in one fell swoop:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# service crond restart&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Please note that the &lt;span style="font-family:courier new;"&gt;service&lt;/span&gt; command resides in &lt;span style="font-family:courier new;"&gt;/sbin&lt;/span&gt; directory. On some Linux distros, notably Fedora Core, RHEL, and CentOS, this directory is not referenced in the PATH environment variables. To work around this, you need either to modify the PATH variable in your &lt;span style="font-family:courier new;"&gt;~/.bash_profile&lt;/span&gt; file to reference &lt;span style="font-family:courier new;"&gt;/sbin&lt;/span&gt; or you need to specify the full path to the &lt;span style="font-family:courier new;"&gt;service&lt;/span&gt; command, i.e., &lt;span style="font-family:courier new;"&gt;/sbin/service&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-family:courier new;"&gt;crond&lt;/span&gt; daemon executes cron jobs using the &lt;span style="font-family:courier new;"&gt;/bin/sh&lt;/span&gt; shell. Therefore, any environment variables that are available in &lt;span style="font-family:courier new;"&gt;/bin/sh&lt;/span&gt; shell are also available to cron jobs when they are executing.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; Tool&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; files are not meant to be edited directly. They are edited using the &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; tool. An important thing to note is that &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; files are created on a per-user basis. Whether or not a user can create &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; files is determined by &lt;span style="font-family:courier new;"&gt;cron.allow&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;cron.deny&lt;/span&gt; files in the &lt;span style="font-family:courier new;"&gt;/etc&lt;/span&gt; directory. Here's how the &lt;span style="font-family:courier new;"&gt;crontab &lt;/span&gt;tool determines permissions:&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;If neither &lt;span style="font-family:Courier New,monospace;"&gt;cron.allow&lt;/span&gt;  nor &lt;span style="font-family:Courier New,monospace;"&gt;cron.deny&lt;/span&gt; files  exist, only the root user can create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  files.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;If only &lt;span style="font-family:Courier New,monospace;"&gt;cron.allow&lt;/span&gt;  exists, the &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; tool  allows a user to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; files  if and only if her name is listed explicitly in the file. Other  users are denied to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  files.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;If only &lt;span style="font-family:Courier New,monospace;"&gt;cron.deny&lt;/span&gt;  exists, the &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; tool  doesn't allow a user to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  files if her name is listed explicitly in the file.  Other users are allowed to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  files.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;If both &lt;span style="font-family:Courier New,monospace;"&gt;cron.allow&lt;/span&gt;  and &lt;span style="font-family:Courier New,monospace;"&gt;cron.deny&lt;/span&gt; exist, the  &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; tool doesn't  allow a user&lt;br /&gt;to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  files unless her name is explicitly listed in the &lt;span style="font-family:Courier New,monospace;"&gt;cron.allow&lt;/span&gt;  file. Other users are denied to create &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt;  file irrespective of whether their name is listed in the  &lt;span style="font-family:Courier New,monospace;"&gt;cron.deny&lt;/span&gt; file or not.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt;  &lt;p style="margin-bottom: 0in;"&gt;By default, the &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; tool executes for the user who is issuing the command. If you want to execute a command for a particular user, you'll need to specify the &lt;span style="font-family:Courier New,monospace;"&gt;-u&lt;/span&gt; option followed by the user name whose &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file you want to manipulate.&lt;br /&gt;&lt;br /&gt;To edit your crontab file:&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;$ crontab -e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It will open your &lt;span style="font-family:courier new;"&gt;crontab&lt;/span&gt; file in an editor (usually &lt;span style="font-family:courier new;"&gt;vi&lt;/span&gt;) specified by the VISUAL or EDITOR environment variables. You'll need to edit the &lt;span style="font-family:Courier New,monospace;"&gt;crontab &lt;/span&gt;file and save it. The &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; tool will take care of placing the file in an appropriate location.&lt;br /&gt;&lt;br /&gt;To list contents of your &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file:&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;$ crontab -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To remove your &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file:&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;$ crontab -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you need to list contents of the &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file of a particular user, say jdoe, you'll execute the following command:&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;# crontab -u jdoe -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;The &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Here is the format of the &lt;span style="font-family:Courier New,monospace;"&gt;crontab&lt;/span&gt; file:&lt;br /&gt;&lt;span style="font-style: italic;font-family:courier new;" &gt;Minute Hour Day Month Day-Of-Week Command-To-Execute&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please note that you specify time in military format. &lt;span style="font-family:courier new;"&gt;Day-Of-Week&lt;/span&gt; runs from 0 through 6 representing Sunday through Saturday. Here are some examples of cron jobs:&lt;br /&gt;&lt;br /&gt;If you want to shutdown your system at 23:59 every day except Saturday and Sunday, here's how you do it:&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;# 59 23 * * 1,2,3,4,5 shutdown "now"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please note that if you want to specify multiple values for a given parameter, you separate them using commas (,) just as I did to specify Monday through Friday using 1,2,3,4,5.&lt;br /&gt;&lt;br /&gt;Here's a cron job that executes &lt;span style="font-style: italic;"&gt;every&lt;/span&gt; 5 minutes and appends current time to a file in the home directory of user jdoe:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,monospace;"&gt;# */5 * * * * echo "cron job executed at " $(date) &gt;&gt; /home/ejan/cron.out&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please note how we specified */5 to specify "every five minutes" rather than entering 0,5,10,15,...,55. If you want to execute your cron job at a regular interval like every five minutes, you can simply specify it using */5.&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;I hope his article will get you up to speed with scheduling tasks in Linux.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-302214151807500045?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/302214151807500045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=302214151807500045' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/302214151807500045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/302214151807500045'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/05/on-linux-systems-you-use-crontab-tool.html' title='Scheduling Tasks in Linux - cron'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-1738730424509282246</id><published>2007-05-06T05:39:00.000-07:00</published><updated>2007-09-01T22:34:04.359-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Linux Administration for Beginners</title><content type='html'>Want to learn Linux administration quickly, easily, and in a practical, hands-on way? If yes, then the book  &lt;a href="http://www.mcgraw-hill.com.sg/html/titleDetail.jsp?isbn=9780072262599.html"&gt;Linux Administration: A Beginner's Guide&lt;/a&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;is for you. Go buy yourself a copy from &lt;a href="http://www.amazon.com/Linux-Administration-Beginners-Steve-Shah/dp/0072262591/ref=sr_1_1/102-2485141-2253719?ie=UTF8&amp;s=books&amp;amp;amp;amp;amp;qid=1178454970&amp;amp;sr=1-1"&gt;Amazon&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I've seen no other book that is more easy to follow, complete, practical, and fun to read than this one. If you hear someone saying administering Linux is difficult, just ask them to have a copy of this text. And I bet they'll be recommending it to *every* head interested in learning to administer Linux.&lt;br /&gt;&lt;br /&gt;Have fun reading the book!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-1738730424509282246?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/1738730424509282246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=1738730424509282246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1738730424509282246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/1738730424509282246'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/05/linux-administration-for-beginners.html' title='Linux Administration for Beginners'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380190290441962482.post-2647128450933532616</id><published>2007-05-04T13:17:00.000-07:00</published><updated>2007-09-01T22:33:31.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tech'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><title type='text'>Mounting Samba Shares</title><content type='html'>Lately I went through great troubles just to mount a samba share on my CentOS 5 box. Research revealed that a lot of people were having the same issue (see, for example, &lt;a href="http://www.linuxquestions.org/questions/showthread.php?t=453941"&gt;http://www.linuxquestions.org/questions/showthread.php?t=453941&lt;/a&gt;) of inability to mount samba shares despite everywhere the suggested syntax was the same (as in various help manuals). After research on possible solutions, I've found some rather interesting points regarding mounting samba shares that follow:&lt;br /&gt;&lt;br /&gt;The following syntax works perfect for mounting samba shares:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;    &lt;table border="0" cellpadding="3" cellspacing="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="bbcodeblock" style="border: 1px inset ;"&gt;         mount -t cifs -o user=username //servername/sharename mountpoint       &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;Here are some very important points about how the mount utility works (or not works) when it comes to mounting samba shares:&lt;br /&gt;&lt;br /&gt;1. For the -t parameter smbfs *won't* work. That value for the -t parameter has retired and no longer supported.&lt;br /&gt;&lt;br /&gt;2. If you specify a user whose password is *blank*, you'll need to press enter when prompted for password. In this case, mount will fail with a permission denied error. So always specify a user who does have a password.&lt;br /&gt;&lt;br /&gt;3. sharename&lt;share-name&gt; *must* be the root of a share not a subdirectory of it. For example, if you have a server named myserver with the following shared directory structure,&lt;br /&gt;&lt;br /&gt;   RootShare&lt;br /&gt;..... |&lt;br /&gt;.......... SubDirOne&lt;br /&gt;   .......... SubDirTwo&lt;br /&gt;      ............... |&lt;br /&gt;..................... SubSubDirOne&lt;br /&gt;&lt;br /&gt;then you can mount nothing but the directory RootShare. Trying to mount any of the sub-directories will result in the following error:&lt;br /&gt;&lt;br /&gt;&lt;/share-name&gt;&lt;div style="margin: 5px 20px 20px;"&gt;    &lt;table border="0" cellpadding="3" cellspacing="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td class="bbcodeblock" style="border: 1px inset ;"&gt;         retrying with upper case share name&lt;br /&gt;mount error 6 = No such device or address&lt;br /&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)&lt;br /&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;4. mountpoint &lt;mount-point&gt; should be an already existing directory.&lt;br /&gt;&lt;br /&gt;I hope this makes up for a crystal clear solution to a *very* common problem. Try googling for it and you'll see it seems like everyone on this planet has gone through this problem &lt;img src="http://linuxquestions.cachefly.net/images/questions/images/smilies/smile.gif" alt="" title="Smilie" class="inlineimg" border="0" /&gt;&lt;/mount-point&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380190290441962482-2647128450933532616?l=soopertux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soopertux.blogspot.com/feeds/2647128450933532616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380190290441962482&amp;postID=2647128450933532616' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/2647128450933532616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380190290441962482/posts/default/2647128450933532616'/><link rel='alternate' type='text/html' href='http://soopertux.blogspot.com/2007/05/mounting-samba-shares.html' title='Mounting Samba Shares'/><author><name>ejan</name><uri>http://www.blogger.com/profile/00361871662478159108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_BxHFwr6JQh4/Sj0HAlDw7XI/AAAAAAAAAM8/1mOLOWPa5j8/S220/usertile5.bmp'/></author><thr:total>3</thr:total></entry></feed>
