<?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 blog of Chris &#187; script</title>
	<atom:link href="http://blog.christophersmart.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.christophersmart.com</link>
	<description>Fortiter Et Recte</description>
	<lastBuildDate>Wed, 28 Dec 2011 23:39:13 +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>Script for configuring ClamAV server on Fedora</title>
		<link>http://blog.christophersmart.com/2009/12/17/script-for-configuring-clamav-server-on-fedora/</link>
		<comments>http://blog.christophersmart.com/2009/12/17/script-for-configuring-clamav-server-on-fedora/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 04:09:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1675</guid>
		<description><![CDATA[In short, I&#8217;ve written a bash script (available from github) for configuring and removing instances of clamav-server on Fedora. It lets you create and remove individual instances with a specific user and port (if you specify them) and will install the required packages if not already present on the system. In long, we use Clam [...]]]></description>
			<content:encoded><![CDATA[<p>In short, I&#8217;ve written a bash script (<em><a href="http://github.com/csmart/naa/raw/master/sysadmin/scripts/configure-clamd.sh">available from github</a></em>) for configuring and removing instances of clamav-server on Fedora. It lets you create and remove individual instances with a specific user and port (if you specify them) and will install the required packages if not already present on the system.</p>
<p>In long, we use <a href="http://clamav.net">Clam AntiVirus</a> as our antivirus protection for <a href="http://sourceforge.net/projects/dpr">Digital Preservation Recorder</a> and talk to it over the default port, 3310.</p>
<p>Installing the <code>clamav-server</code> package under Fedora however, doesn&#8217;t actually set up an instance. In fact, it doesn&#8217;t copy any system configuration files into place at all. This means that the system is left without any working ClamAV server out of the box.</p>
<p>Under Fedora, ClamAV server is configured on a per user basis. This is actually quite important (unless you run as root) because the daemon needs at minimum read access (and we&#8217;ve found also write) on the files/directory being passed for scanning.</p>
<p>The instructions on how to configure it are located under /usr/share/doc/clamav-server-[version]/ but I have taken these instructions and written a bash script to configure all of this for you.</p>
<p>The script is <a href="http://github.com/csmart/naa/raw/master/sysadmin/scripts/configure-clamd.sh">available from github</a>. It can create or remove an individual instance of clamav-server using a specific username and port (if you want to specify them, else it defaults to <em>clamav</em> on port <em>3310</em>). The script will also install any required packages, if you don&#8217;t already have them on the system.</p>
<p>Hopefully this is useful to someone else out there and not just us <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  If you find any bugs feel free to let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2009/12/17/script-for-configuring-clamav-server-on-fedora/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Changing priorities</title>
		<link>http://blog.christophersmart.com/2009/04/07/changing-priorities/</link>
		<comments>http://blog.christophersmart.com/2009/04/07/changing-priorities/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 01:31:48 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=550</guid>
		<description><![CDATA[I&#8217;m scripting some sys admin tasks in Debian which require the installation of packages like Postfix. I don&#8217;t want it to prompt me with questions, so I knew I had to set the priority to something higher for this specific package (i.e. temporarily). There doesn&#8217;t appear to be a way to pass this to an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m scripting some sys admin tasks in Debian which require the installation of packages like Postfix. I don&#8217;t want it to prompt me with questions, so I knew I had to set the priority to something higher for this specific package (i.e. temporarily). There doesn&#8217;t appear to be a way to pass this to an <code>apt-get</code> command (which was a little disappointing) but debconf can set it system wide under <code>/var/cache/debconf/config.dat</code>, but that&#8217;s, well, ugly.</p>
<p>Turns out there&#8217;s an environment variable you can set to achieve what I want, DEBIAN_PRIORITY. So exporting this variable and unsetting it post install will do the trick, but I still think <code>apt-get -p critical install postfix</code> would be better <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>-c</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2009/04/07/changing-priorities/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

