<?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>Blog My Nog &#124; Tech Topics&#187; Linux</title>
	<atom:link href="http://www.blogmynog.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogmynog.com</link>
	<description>Microsoft Systems Management</description>
	<lastBuildDate>Sun, 15 Jan 2012 02:06:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Automatically uninstall Altiris Agent on ESX and Linux</title>
		<link>http://www.blogmynog.com/2009/11/04/automatically-uninstall-altiris-agent-on-esx-and-linux/</link>
		<comments>http://www.blogmynog.com/2009/11/04/automatically-uninstall-altiris-agent-on-esx-and-linux/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:15:51 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Altiris]]></category>
		<category><![CDATA[ESX]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=191</guid>
		<description><![CDATA[I&#8217;ve recently configured a HP Rapid Deployment (RDP) script to automate the deployment of VMWare ESX to our HP servers. However I did not want to leave the Altiris client on the server after the installation was complete in order to avoid any mistakes (like wiping out the server) after it went into production. Here [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently configured a HP Rapid Deployment (RDP) script to automate the deployment of VMWare ESX to our HP servers. However I did not want to leave the Altiris client on the server after the installation was complete in order to avoid any mistakes (like wiping out the server) after it went into production. Here is how you automate the uninstall of the Altiris agent&#8230;<br />
<span id="more-191"></span><br />
Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>1) On your RDP server go to C:\Program Files\HP\RDP\Deployment Server\lib\osconfig\(your ESX install)<br />
2) Edit default.cfg<br />
3) After #%vmlicense_text add %post (this is used for post install commands)<br />
4) create a new line <enter><br />
5) /usr/bin/yes | /opt/altiris/deployment/adlagent/bin/uninstall</p>
<p>This is all theory and I have not actually tested it yet but I will update this post after testing. I did run &#8220;/usr/bin/yes | /opt/altiris/deployment/adlagent/bin/uninstall&#8221; successfully from the shell (without the quotes of course).</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.blogmynog.com/2009/11/04/automatically-uninstall-altiris-agent-on-esx-and-linux/&via=StephenTL&text=Automatically uninstall Altiris Agent on ESX and Linux&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.blogmynog.com%2F2009%2F11%2F04%2Fautomatically-uninstall-altiris-agent-on-esx-and-linux%2F&amp;title=Automatically%20uninstall%20Altiris%20Agent%20on%20ESX%20and%20Linux" id="wpa2a_2"><img src="http://www.blogmynog.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2009/11/04/automatically-uninstall-altiris-agent-on-esx-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian apt-get upgrade fails for package linux-image-2.6.18-5-686</title>
		<link>http://www.blogmynog.com/2009/09/09/debian-apt-get-upgrade-fails-for-package-linux-image-2-6-18-5-686/</link>
		<comments>http://www.blogmynog.com/2009/09/09/debian-apt-get-upgrade-fails-for-package-linux-image-2-6-18-5-686/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 03:22:08 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=147</guid>
		<description><![CDATA[Was working on a Linux server today in the datacenter that we use for monitoring our Cisco gear and decided to upgrade all the Debian packages. I came across the following error and was able to resolve the issue. Searching for GRUB installation directory &#8230; found: /boot/grub Searching for default file &#8230; found: /boot/grub/default Testing [...]]]></description>
			<content:encoded><![CDATA[<p>Was working on a Linux server today in the datacenter that we use for monitoring our Cisco gear and decided to upgrade all the Debian packages. I came across the following error and was able to resolve the issue.</p>
<p>Searching for GRUB installation directory &#8230; found: /boot/grub<br />
Searching for default file &#8230; found: /boot/grub/default<br />
Testing for an existing GRUB menu.lst file &#8230; found: /boot/grub/menu.lst<br />
Searching for splash image &#8230; none found, skipping &#8230;<br />
Found kernel: /vmlinuz-2.6.20.1.intel<br />
Found kernel: /vmlinuz-2.6.18-5-686<br />
Updating /boot/grub/menu.lst &#8230; /usr/sbin/update-grub: line 1154: /boot/grub/menu.lst: Permission denied<br />
User postinst hook script [/sbin/update-grub] exited with value 1<br />
dpkg: error processing linux-image-2.6.18-5-686 (&#8211;configure):<br />
subprocess post-installation script returned error exit status 1<br />
Errors were encountered while processing:<br />
linux-image-2.6.18-5-686<br />
E: Sub-process /usr/bin/dpkg returned an error code (1)<br />
<span id="more-147"></span><br />
Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>I actually found the solution on an Hungarian Linux forum http://hup.hu/node/48864. It turns out that /boot/grub/menu.1st has an immutable attribute on the file that you need to remove before upgrading the kernel package. You can do this by simply issuing an &#8220;chattr -i /boot/grub/menu.1st&#8221;.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.blogmynog.com/2009/09/09/debian-apt-get-upgrade-fails-for-package-linux-image-2-6-18-5-686/&via=StephenTL&text=Debian apt-get upgrade fails for package linux-image-2.6.18-5-686&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.blogmynog.com%2F2009%2F09%2F09%2Fdebian-apt-get-upgrade-fails-for-package-linux-image-2-6-18-5-686%2F&amp;title=Debian%20apt-get%20upgrade%20fails%20for%20package%20linux-image-2.6.18-5-686" id="wpa2a_4"><img src="http://www.blogmynog.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2009/09/09/debian-apt-get-upgrade-fails-for-package-linux-image-2-6-18-5-686/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing the mail queue for forums and blogs</title>
		<link>http://www.blogmynog.com/2008/08/21/managing-the-mail-queue-for-forums-and-blogs/</link>
		<comments>http://www.blogmynog.com/2008/08/21/managing-the-mail-queue-for-forums-and-blogs/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 21:51:46 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://blogmynog.com/?p=55</guid>
		<description><![CDATA[I administrate several forum and blog sites and was in need of a quick and reliable method to monitor and manage the mail queue. My desire was to implement a system that would keep me up to date on the status of my server&#8217;s mail queue via a daily cron job. This is something that [...]]]></description>
			<content:encoded><![CDATA[<p>I administrate several forum and blog sites and was in need of a quick and reliable method to monitor and manage the mail queue. My desire was to implement a system that would keep me up to date on the status of my server&#8217;s mail queue via a daily cron job. This is something that can easily be forgotten about if one is as busy as I am and this very simple script lets me know if I have any e-mails jammed up in the local mail queue.</p>
<p><span id="more-55"></span><br />
Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Feel free to change the variables to your liking and add it to your daily or weekly cron job.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;START COPY&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
#!/bin/sh</p>
<p>file=&#8221;/home/user/mailq.txt&#8221;<br />
from=&#8221;sender@myemail.com&#8221;<br />
to=&#8221;recipient@myemail.com&#8221;<br />
subject=&#8221;Mail Queue Status&#8221;</p>
<p>echo &#8220;to: &#8221; $to>$file<br />
echo &#8220;subject: &#8220;>>$file<br />
echo &#8220;from: &#8221; $from>>$file<br />
echo &#8220;&#8221;>>$file<br />
/usr/bin/mailq>>$file</p>
<p>/usr/sbin/sendmail -t <$file<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;END COPY&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.blogmynog.com/2008/08/21/managing-the-mail-queue-for-forums-and-blogs/&via=StephenTL&text=Managing the mail queue for forums and blogs&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.blogmynog.com%2F2008%2F08%2F21%2Fmanaging-the-mail-queue-for-forums-and-blogs%2F&amp;title=Managing%20the%20mail%20queue%20for%20forums%20and%20blogs" id="wpa2a_6"><img src="http://www.blogmynog.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2008/08/21/managing-the-mail-queue-for-forums-and-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

