<?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>David Dietrich&#039;s Business Technology Blog &#187; Linux</title>
	<atom:link href="http://www.daviddietrich.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daviddietrich.com</link>
	<description>Business Technology Tips</description>
	<lastBuildDate>Mon, 05 Sep 2011 11:58:48 +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>Remount /etc/fstab without rebooting</title>
		<link>http://www.daviddietrich.com/2010/01/26/remount-etcfstab-without-rebooting/</link>
		<comments>http://www.daviddietrich.com/2010/01/26/remount-etcfstab-without-rebooting/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 00:42:11 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=274</guid>
		<description><![CDATA[Many times it would be nice to make changes to your /etc/fstab file. The problem is that you must reboot. No longer. Run the following command to remount your /etc/fstab file without rebooting &#8211;&#62; &#62;mount -a Everything should now be remounted and you can fix any errors that may have occurred with your new /etc/fstab [...]]]></description>
			<content:encoded><![CDATA[<p>Many times it would be nice to make changes to your /etc/fstab file. The problem is that you must reboot. No longer. Run the following command to remount your /etc/fstab file without rebooting &#8211;&gt;</p>
<p>&gt;mount -a</p>
<p>Everything should now be remounted and you can fix any errors that may have occurred with your new /etc/fstab entries.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/26/remount-etcfstab-without-rebooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba &#8211; Stop homes from showing in shares</title>
		<link>http://www.daviddietrich.com/2010/01/26/samba-stop-homes-from-showing-in-shares/</link>
		<comments>http://www.daviddietrich.com/2010/01/26/samba-stop-homes-from-showing-in-shares/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 00:37:24 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=270</guid>
		<description><![CDATA[When using Samba on Linux, there are times that you want to allow user to have a private user directory, but do not want the &#8220;homes&#8221; directory share to show up. This is relatively simple. Edit your /etc/samba/smb.conf file with your favorite Linux editor. Look for the section [homes] and find the line browseable = set [...]]]></description>
			<content:encoded><![CDATA[<p>When using Samba on Linux, there are times that you want to allow user to have a private user directory, but do not want the &#8220;homes&#8221; directory share to show up. This is relatively simple.</p>
<p>Edit your /etc/samba/smb.conf file with your favorite Linux editor.<br />
Look for the section [homes] and find the line<br />
<strong>browseable =</strong></p>
<p>set this line to <strong>browseable = no</strong></p>
<p>Restart Samba (<strong>&gt;service smb restart</strong>) and your users should now see their personal directory without seeing the homes share.</p>
<p>If you do not have a [homes] section, here is an example on for you &#8211;&gt;</p>
<p>[homes]<br />
        hide dot files = no<br />
        comment = Home Directories<br />
        writeable = yes<br />
        delete readonly = yes<br />
        valid users = %S<br />
        browseable = no</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/26/samba-stop-homes-from-showing-in-shares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initializing a new instance of Linux</title>
		<link>http://www.daviddietrich.com/2010/01/14/initializing-a-new-instance-of-linux/</link>
		<comments>http://www.daviddietrich.com/2010/01/14/initializing-a-new-instance-of-linux/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 05:31:30 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=172</guid>
		<description><![CDATA[After a fresh install of Linux, there are a number of tasks I like to do. I like having commands and aliases that I am used to installed. Copy /opt/scripts Create /opt/sw /opt/scripts/stopUnusedServices.sh set up MySQL Install WebMin and VirtualMin for managing your domain names and their.]]></description>
			<content:encoded><![CDATA[<p>After a fresh install of Linux, there are a number of tasks I like to do. I like having commands and aliases that I am used to installed.</p>
<p>Copy /opt/scripts</p>
<p>Create /opt/sw</p>
<p>/opt/scripts/stopUnusedServices.sh</p>
<p>set up MySQL</p>
<p>Install WebMin and VirtualMin for managing your domain names and their.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/14/initializing-a-new-instance-of-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting Red Hat 5.3 to a Dell MD3000i</title>
		<link>http://www.daviddietrich.com/2010/01/14/connecting-red-hat-5-3-to-a-dell-md3000i/</link>
		<comments>http://www.daviddietrich.com/2010/01/14/connecting-red-hat-5-3-to-a-dell-md3000i/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 05:26:35 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage Area Network (SAN)]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=167</guid>
		<description><![CDATA[Connecting to a DELL MD3000i is no trivial matter with Linux. First, you need to ensure that you have the DKMS package installed. &#62;yum -y install dkms &#62;yum -y install iscsi-initiator-utils &#62;yum -y install gcc &#62;yum -y install kernel-devel &#62;yum -y install sgpio &#62;yum -y install sg3_utils Now you can install the Dell Tools and [...]]]></description>
			<content:encoded><![CDATA[<p>Connecting to a DELL MD3000i is no trivial matter with Linux. First, you need to ensure that you have the DKMS package installed.</p>
<p>&gt;yum -y install dkms<br />
&gt;yum -y install iscsi-initiator-utils<br />
&gt;yum -y install gcc<br />
&gt;yum -y install kernel-devel<br />
&gt;yum -y install sgpio<br />
&gt;yum -y install sg3_utils</p>
<p>Now you can install the Dell Tools and finish configuring your SAN.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/14/connecting-red-hat-5-3-to-a-dell-md3000i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jasper Server Permission Denied error</title>
		<link>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/</link>
		<comments>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 04:50:52 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Jasper Reports]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Jasper]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=218</guid>
		<description><![CDATA[Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out. You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out.</p>
<p>You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper and restart your server, the Apache logs are filling with messages about not being able to write files. Jasper is just not working properly. Run the following command to restore the proper ownership to all files in the Jasper directory. You must run the following command as root:</p>
<p><strong>&gt;find /home/jasper/jasper-server-3.7 -user root -exec chown jasper.jasper {} \;</strong></p>
<p>This will find all the files that root changed ownership and change the ownership back to the proper jasper user.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining a devices WWID in Linux</title>
		<link>http://www.daviddietrich.com/2009/08/10/determining-a-devices-wwid-in-linux/</link>
		<comments>http://www.daviddietrich.com/2009/08/10/determining-a-devices-wwid-in-linux/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 18:28:27 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage Area Network (SAN)]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=163</guid>
		<description><![CDATA[For multipath drivers connecting to storage area networks (SAN), it is useful in your /etc/multipath.conf to blacklist devices. This prevents the multipath driver from attempting to use the device(s). To find out a drive&#8217;s WWID, run the following command: &#62;scsi_id -g -u -s /block/sda This will return a WWID. On my system it was returned [...]]]></description>
			<content:encoded><![CDATA[<p>For multipath drivers connecting to storage area networks (SAN), it is useful in your /etc/multipath.conf to blacklist devices. This prevents the multipath driver from attempting to use the device(s).</p>
<p>To find out a drive&#8217;s WWID, run the following command:</p>
<p>&gt;scsi_id -g -u -s /block/sda</p>
<p>This will return a WWID. On my system it was returned as 36001e4f034bf55000f98fe8606dc88df.</p>
<p>Now you can put this in the blacklist section of /etc/multipath.conf as:</p>
<p>blacklist {<br />
devnode &#8220;^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*&#8221;<br />
devnode &#8220;^hd[a-z]&#8221;<br />
devnode &#8220;^sda&#8221;<br />
devnode &#8220;^sda[0-9]&#8221;<br />
devnode &#8220;^sdb&#8221;<br />
devnode &#8220;^sdb[0-9]&#8221;<br />
wwid    &#8220;36001e4f034bf55000f98fe8606dc88df&#8221;<br />
device {<br />
vendor DELL<br />
product &#8220;PERC|Universal|Virtual&#8221;<br />
}<br />
}</p>
<p>This will now prevent the multipath driver from attempting to manage /dev/sdc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/08/10/determining-a-devices-wwid-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a count of files in a directory</title>
		<link>http://www.daviddietrich.com/2009/07/22/finding-a-count-of-files-in-a-directory/</link>
		<comments>http://www.daviddietrich.com/2009/07/22/finding-a-count-of-files-in-a-directory/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 21:22:36 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=159</guid>
		<description><![CDATA[In Linux, you can count all of the files in a directory, of a given type. To do this run: &#62;find . -maxdepth 1 -type f -name &#8220;*.gz&#8221; &#124; wc -l If you want to count all of the gzipped files in all directories below your current directory. Run the same command without the -maxdepth: [...]]]></description>
			<content:encoded><![CDATA[<p>In Linux, you can count all of the files in a directory, of a given type.</p>
<p>To do this run:</p>
<p><strong>&gt;find . -maxdepth 1 -type f -name &#8220;*.gz&#8221; | wc -l</strong></p>
<p>If you want to  count all of the gzipped files in all directories below your current directory. Run the same command without the -maxdepth:</p>
<p><strong>&gt;find . -type f -name &#8220;*.gz&#8221; | wc -l</strong></p>
<p>Everything relies on the wc command, which is short for word count. We are counting the line by line output from the find command.</p>
<p>If you want to count the number of directories, try this:</p>
<p><strong>&gt;find . -type d | wc -l</strong></p>
<p>Just remember to subtract 1 from the output. Linux will include the current directory (.) as a directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/07/22/finding-a-count-of-files-in-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux log error &#8211; Could not receive trustdoms : xxx Time(s)</title>
		<link>http://www.daviddietrich.com/2009/05/04/linux-log-error-could-not-receive-trustdoms-xxx-times/</link>
		<comments>http://www.daviddietrich.com/2009/05/04/linux-log-error-could-not-receive-trustdoms-xxx-times/#comments</comments>
		<pubDate>Tue, 05 May 2009 00:32:26 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[bootup]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=98</guid>
		<description><![CDATA[When using Samba with Linux, Red Hat Enterprise Linux attempts to connect to a Windows server that acts as the domain controller. This is called a trustdom; as Linux is attempting to build a trust relationship with a Windows Domain Controller. You will see the following message in your log: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; samba Begin &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; **Unmatched [...]]]></description>
			<content:encoded><![CDATA[<p>When using Samba with Linux, Red Hat Enterprise Linux attempts to connect to a Windows server that acts as the domain controller. This is called a trustdom; as Linux is attempting to build a trust relationship with a Windows Domain Controller. You will see the following message in your log:</p>
<p class="MsoPlainText">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; samba Begin &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p class="MsoPlainText">
<p class="MsoPlainText">**Unmatched Entries**</p>
<p class="MsoPlainText">nsswitch/winbindd_util.c:trustdom_recv(243)<span> </span>Could not receive trustdoms : 288 Time(s)</p>
<p class="MsoPlainText">
<p class="MsoPlainText">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- samba End &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>To stop this error message, you need to stop the winbind service. To do this, run the following commands:</p>
<p><strong>chkconfig winbind off<br />
service winbind stop</strong></p>
<p>This will ensure that upon reboot, the service does not start. And the second command ensures that the service is stopped immediately.</p>
<p>Check your log tomorrow to ensure that you are no longer receiving this message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/05/04/linux-log-error-could-not-receive-trustdoms-xxx-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QEMU seems to make Windows read-only</title>
		<link>http://www.daviddietrich.com/2009/04/25/qemu-seems-to-make-windows-read-only/</link>
		<comments>http://www.daviddietrich.com/2009/04/25/qemu-seems-to-make-windows-read-only/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 04:40:10 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[qemu]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=96</guid>
		<description><![CDATA[The Problem: The server is acting all weird, thought i might raise a flag to you: - after you said you attached the larger drive/partition, nothing changed - when i logged on as administrator tonight, it acted like ive never logged on before - the profile is fucked up somehow; i dont have any icons, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Problem:</strong></p>
<p>The server is acting all weird, thought i might raise a flag to you:<br />
- after you said you attached the larger drive/partition, nothing changed<br />
- when i logged on as administrator tonight, it acted like ive never logged on before<br />
- the profile is fucked up somehow; i dont have any icons, no quick launch, none of the items i installed, etc.<br />
- for some weird reason, i can&#8217;t download any files using a web browser when on the server.  i also cannot ftp any files to the server.  when i use ie to download an attachment from gmail for example, it can&#8217;t do it.  when i tried to download firefox, i also got an error about contacting the server.  very weird.  also, with full permissions, and full write access, i am unable to write any files to the server via ftp either.  me = confused.</p>
<p>Did you refresh the instance or something like that?</p>
<p><strong>The Solution:<br />
</strong></p>
<p>In this instance, a new virtual drive was added to a Windows 2003 Server running under a QEMU virtual machine on Linux. QEMU most likely has the virtual instance locked read-only because the new virtual drive has not been allowed to initialize itself under Windows. This stops Windows from being able to write to any file.</p>
<p>In this case the problem was resolved by forcing a power down on the instance. Then under the setting for the virtual machine on the Hardware tab, check that the new drive is in the list of hardware. If so, then start the instance. Log in as Administrator in Windows. Go to Control Panel &#8211; Administrative Tools &#8211; Computer Management. Once it opens, select Disk Management, and initialize and format the new drive.</p>
<p>If from above the new hardware is not in the list of Hardware Devices. Try reconnecting to the virtual disk you created, or just create a new virtual disk and attach it to the Windows instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/04/25/qemu-seems-to-make-windows-read-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows service failure while running in a QEMU virtual instance</title>
		<link>http://www.daviddietrich.com/2009/04/09/windows-service-failure-while-running-in-a-qemu-virtual-instance/</link>
		<comments>http://www.daviddietrich.com/2009/04/09/windows-service-failure-while-running-in-a-qemu-virtual-instance/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 06:58:13 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bootup]]></category>
		<category><![CDATA[qemu]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=94</guid>
		<description><![CDATA[If you are running Windows under QEMU and see Event ID 7000&#8242;s like these below&#8211; If you get this Description: &#8220;The Parallel port driver service failed to start due to the following error: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.&#8221; Then you [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running Windows under QEMU and see Event ID 7000&#8242;s like these below&#8211;</p>
<p>If you get this Description:</p>
<p>&#8220;The Parallel port driver service failed to start due to the following error:<br />
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.&#8221;</p>
<p>Then you have the ParPort service not starting. This happens if you upgrade your W2K3, W2K, or NT server from hardware (<a class="tfTextLink" style="border-bottom: 1px solid #991616; color: #991616; text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; position: relative; line-height: 1em;" href="javascript:void(0)">motherboard</a>) that HAD a Parallel Port, but are now on a new motherboard that has no Parallel Port.</p>
<p>The fix is simple:<br />
1. Open Regedit and go to&#8211;<br />
HKLM\System|CurrentControlSet\Services\Parport<br />
2. Edit the Start key and change the value to 4. Changing the value to 4 will &#8220;disable&#8221; the service.<br />
3. Reboot the server</p>
<p>You should no longer get that annoying popup dialog when Windows starts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/04/09/windows-service-failure-while-running-in-a-qemu-virtual-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

