<?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>songshu.org &#187; Debian Lenny</title>
	<atom:link href="http://www.songshu.org/index.php/category/debian-lenny/feed" rel="self" type="application/rss+xml" />
	<link>http://www.songshu.org</link>
	<description>Just another collection of nuts</description>
	<lastBuildDate>Mon, 22 Mar 2010 13:16:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>avantfax_install_script</title>
		<link>http://www.songshu.org/index.php/avantfax_install_script</link>
		<comments>http://www.songshu.org/index.php/avantfax_install_script#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:25:10 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[avantfax]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hylafax]]></category>
		<category><![CDATA[install script]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1276</guid>
		<description><![CDATA[&#60;div id=“dw”&#62; Debian Avantfax install script improvement WORK IN PROGRESS!!!!! Avantfax works really well on Debian but it is not officially supported by Avantfax so the install script is lacking, i would like to improve that and any feedback would be appreciated. The first time i installed Avantfax on Debian Etch there was only an install script for Red Hat and SuSe so everything needed to be done manually, i made some notes at the time here http://www.songshu.org/index.php/avantfax-on-debian Since AvantFAX 3.1.0 there is a debian install script available that comes a long way but is not yet perfect and it requires some extra manual steps and tinkering, also an install script to set up mail2fax is missing for Debian. This is an attempt to improve the following Debian scripts that can be found in AvantFAX 3.1.6 http://www.songshu.org/index.php/old-avantfax-316-debian-install-script http://www.songshu.org/index.php/old-avantfax-316-debian-prefs http://www.songshu.org/index.php/old-avantfax-316-email2fax http://www.songshu.org/index.php/old-avantfax-316-setup-postfix debian install script This script comes a long way accept that the apache virtual host is not set up correctly. and the specified directory /etc/apache2/logs does not exist so apache will refuse to start. The following section needs improvement. cat &#38;gt;&#38;gt; /etc/apache2/sites-enabled/000-default &#38;lt;&#38;lt; EOF &#38;lt;VirtualHost *:80&#38;gt; DocumentRoot $INSTDIR ServerName avantfax ErrorLog logs/avantfax-error_log CustomLog logs/avantfax-access_log common &#38;lt;/VirtualHost&#38;gt; EOF What we see [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<p>&lt;div id=“dw”&gt;</p>
<h2><a name="debian_avantfax_install_script_improvement_work_in_progress" id="debian_avantfax_install_script_improvement_work_in_progress">Debian Avantfax install script improvement WORK IN PROGRESS!!!!!</a></h2>
<div class="level2">
<p>Avantfax works really well on Debian but it is not officially supported by Avantfax so the install script is lacking, i would like to improve that and any feedback would be appreciated.
</p>
<p>
The first time i installed Avantfax on Debian Etch there was only an install script for Red Hat and SuSe so everything needed to be done manually, i made some notes at the time here <a href="http://www.songshu.org/index.php/avantfax-on-debian" class="urlextern" title="http://www.songshu.org/index.php/avantfax-on-debian"  rel="nofollow">http://www.songshu.org/index.php/avantfax-on-debian</a>
</p>
<p>
Since AvantFAX 3.1.0 there is a debian install script available that comes a long way but is not yet perfect and it requires some extra manual steps and tinkering, also an install script to set up mail2fax is missing for Debian.
</p>
<p>
This is an attempt to improve the following Debian scripts that can be found in AvantFAX 3.1.6</p>
<ul>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-debian-install-script" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-debian-install-script"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-debian-install-script</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-debian-prefs" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-debian-prefs"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-debian-prefs</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-email2fax" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-email2fax"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-email2fax</a></div>
</li>
<li class="level1">
<div class="li"> <a href="http://www.songshu.org/index.php/old-avantfax-316-setup-postfix" class="urlextern" title="http://www.songshu.org/index.php/old-avantfax-316-setup-postfix"  rel="nofollow">http://www.songshu.org/index.php/old-avantfax-316-setup-postfix</a></div>
</li>
</ul>
</div>
<h3><a name="debian_install_script" id="debian_install_script">debian install script</a></h3>
<div class="level3">
<p>This script comes a long way accept that the apache virtual host is not set up correctly. and the specified directory /etc/apache2/logs does not exist so apache will refuse to start.
</p>
<p>
The following section needs improvement.</p>
<pre class="code">cat &amp;gt;&amp;gt; /etc/apache2/sites-enabled/000-default &amp;lt;&amp;lt; EOF

&amp;lt;VirtualHost *:80&amp;gt;
    DocumentRoot $INSTDIR
    ServerName avantfax
    ErrorLog logs/avantfax-error_log
    CustomLog logs/avantfax-access_log common
&amp;lt;/VirtualHost&amp;gt;
EOF</pre>
<p>
What we see here is that the virtualhost is added below in the 000-default file, this does not work since the default will not be changed and a new virtual host is not added.<br />
Also we could move the avantfax logs to the debian default log section /var/logs/<br />
The suggestion is to have it add a separate new virtual host for the chosen domain name as specified in the debian-prefs.txt.</p>
<pre class="code">cat &amp;gt;&amp;gt; /etc/apache2/sites-available/$FAXDOMAIN &amp;lt;&amp;lt; EOF

&amp;lt;VirtualHost *:80&amp;gt;
    DocumentRoot $INSTDIR
    ServerName $FAXDOMAIN
    ErrorLog /var/log/avantfax-error_log
    CustomLog /var/log/avantfax-access_log common
&amp;lt;/VirtualHost&amp;gt;
EOF</pre>
<p>
After the new virtual host file is added to the sites-available we can add the following to have it added to the apache sites-enabled section.
</p>
<pre class="code">a2ensite $FAXDOMAIN
/etc/init.d/apache2 reload
a2dissite 000-default
/etc/init.d/apache2 reload</pre>
</div>
<h3><a name="debian-prefs" id="debian-prefs">debian-prefs</a></h3>
<div class="level3">
</div>
<h3><a name="email2fax" id="email2fax">email2fax</a></h3>
<div class="level3">
</div>
<h3><a name="setup-postfix" id="setup-postfix">setup-postfix</a></h3>
<div class="level3">
<p>This script is completely non-debian so i suggest to make ad a new debian-setup-postfix.sh script
</p>
<p>
The following section can be removed</p>
<pre class="code"># INSTALL REQUIRED APPS IF NOT ALREADY INSTALLED

echo “Installing required packages”

yast –install postfix</pre>
<p>
It mentions yast and that should be replaced with apt-get but AvantFax depends on a functioning hylafax and the installation of hylafax in its turn depends on an installed MTA so it will default to install exim4 if no other MTA is present, using this scripts means you want to use postfix as MTA so this should already be installed before Hylafax.
</p>
<p>
The following section is ment to stop postfix and alter the master.cf file
</p>
<pre class="code"># CONFIGURE POSTFIX

/sbin/service postfix stop

echo “Configuring Email to FAX for domain ${FAXDOMAIN}”

cat &amp;gt;&amp;gt; /etc/postfix/master.cf &amp;lt;&amp;lt; EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT ${user}

EOF</pre>
<p>Debian uses init so this section should read as follows</p>
<pre class="code"># CONFIGURE POSTFIX
/etc/init.d/postfix stop

echo “Configuring Email to FAX for domain ${FAXDOMAIN}”

cat &amp;gt;&amp;gt; /etc/postfix/master.cf &amp;lt;&amp;lt; EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT ${user}

EOF</pre>
<p>
Faxmail will start complaining it can not locate the fonts so we need to specify the ghostscript font directory to Hylafax</p>
<pre class="code">cat &amp;gt;&amp;gt; /etc/hylafax/hyla.conf &amp;lt;&amp;lt; EOF
FontMap: /usr/share/ghostscript/8.62/lib/
EOF</pre>
<p>The following section at the end of this script will start postfix after having it stopped at the beginning of the configuration, again we use init.</p>
<pre class="code">/sbin/chkconfig postfix on
/sbin/service postfix start</pre>
<p>
so we replace this with</p>
<pre class="code">/etc/init.d/postfix start</pre>
<p>&lt;/div&gt;
</p>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/avantfax_install_script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hylafax lenny vserver</title>
		<link>http://www.songshu.org/index.php/hylafax-lenny-vserver</link>
		<comments>http://www.songshu.org/index.php/hylafax-lenny-vserver#comments</comments>
		<pubDate>Sat, 21 Feb 2009 10:47:02 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[all posts]]></category>
		<category><![CDATA[avantfax]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hylafax]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://www.songshu.org/index.php/1258</guid>
		<description><![CDATA[&#60;div id=“dw”&#62; HylaFAX http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html Hylafax runs very well in a Vserver, all that needs to be done extra compared to a “normal” install is to copy the /dev/ttyS0 so Hylafx can reach it from within the Vserver. It is absolutely not needed to have Hylafax run in a Vserver but since this is a “low profile” setup for about a few dozen faxes a day and just as many users it does not need a dedicated box to run on, all you need is a cheap fax modem (in my case a a Emininet em5017) that i picked up for about 30,- Euro. Off course you need a server to attach it to, i already have one anyway, but you could use any old box. Add a nice front end like Avantfax, a printer and a scanner and you have a complete “small office” fax solution. Vserver installation newvserver --vsroot /VSERVERS --hostname fax --domain cipar.net --ip 192.168.1.10/24 --dist lenny --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0 vserver fax start vserver fax enter Since i use a lot of different Vserver installs on a single box (network) i make use of an apt-cacher to prevent having to download a lot of things over and [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<p>&lt;div id=“dw”&gt;</p>
<h2><a name="hylafax" id="hylafax">HylaFAX</a></h2>
<div class="level2">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man5/hylafax-server.5.html</a>
</p>
<p>
Hylafax runs very well in a Vserver, all that needs to be done extra compared to a “normal” install is to copy the /dev/ttyS0 so Hylafx can reach it from within the Vserver.
</p>
<p>
It is absolutely not needed to have Hylafax run in a Vserver but since this is a “low profile” setup for about a few dozen faxes a day and just as many users it does not need a dedicated box to run on, all you need is a cheap fax modem (in my case a a Emininet em5017) that i picked up for about 30,- Euro.
</p>
<p>
Off course you need a server to attach it to, i already have one anyway, but you could use any old box.<br />
Add a nice front end like Avantfax, a printer and a scanner and you have a complete “small office” fax solution.
</p>
</div>
<h3><a name="vserver_installation" id="vserver_installation">Vserver installation</a></h3>
<div class="level3">
<pre class="code">newvserver --vsroot /VSERVERS --hostname fax --domain cipar.net --ip 192.168.1.10/24 --dist lenny --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0</pre>
<pre class="code">vserver fax start
vserver fax enter</pre>
<p>
Since i use a lot of different Vserver installs on a single box (network) i make use of an apt-cacher to prevent having to download a lot of things over and over again, otherwise just use your normal sources.
</p>
<pre class="code"># nano /etc/apt/sources.list</pre>
<pre class="code">deb http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib
deb-src http://192.168.1.12:3142/security.debian.org/ lenny/updates main contrib
deb http://192.168.1.12:3142/debian.apt-get.eu/debian/ lenny main contrib non-free</pre>
<pre class="code">apt-get update &amp;amp;&amp;amp; apt-get upgrade
</pre>
</div>
<h3><a name="hylafax1" id="hylafax1">HylaFAX</a></h3>
<div class="level3">
<p>
<a href="http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch" class="urlextern" title="http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch"  rel="nofollow">http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch</a><br />
<a href="http://www.lucasmanual.com/mywiki/FaxServer" class="urlextern" title="http://www.lucasmanual.com/mywiki/FaxServer"  rel="nofollow">http://www.lucasmanual.com/mywiki/FaxServer</a><br />
<a href="http://www.avantfax.com/install.php" class="urlextern" title="http://www.avantfax.com/install.php"  rel="nofollow">http://www.avantfax.com/install.php</a>
</p>
<p>
Hylafax depends on a MTA so it will use Exim4 as the Debian default but i personally prefer to use Postfix so i install that one first.</p>
<pre class="code">apt-get install postfix</pre>
<pre class="code">choose internet site</pre>
<p>The system mail name, in my case i will go with the default fax.cipar.net since i use it on the local network only it does not really matter.
</p>
<pre class="code">nano /etc/aliases</pre>
<p>and add the following</p>
<pre class="code">root:   randall@smydomain.com</pre>
<pre class="code">newaliases</pre>
<pre class="code">
apt-get install hylafax-server</pre>
<p>The following is only needed because we have this running within a Vserver, otherwise Hylafax can not contact the fax modem.</p>
<pre class="code">exit
cp -a /dev/ttyS0 /VSERVERS/fax/dev/ttyS0
cp -aR /dev/null /VSERVERS/fax/var/spool/hylafax/dev
vserver fax enter</pre>
<pre class="code">faxsetup</pre>
<p>This will ask for a lot of questions, i go for the defaults except when specified below.</p>
<pre class="code"># Country code [1]? 31
# Area code [415]? 10
# Phone number of fax modem [+1.999.555.1212]? +31.10.1234567
# Local identification string (for TSI/CIG) [&quot;NothingSetup&quot;]? fax.cipar.net
# Long distance dialing prefix [1]? 0
# International dialing prefix [011]? 00
# Protection mode for received facsimile [0600]? 0644
# Protection mode for session logs [0600]? 0644
# Protection mode for ttyS0 [0600]? 0666
# Do you want to run faxaddmodem to configure another modem [yes]? no</pre>
<p>
Allow users from our subnet access to the fax service:</p>
<pre class="code">nano /etc/hylafax/hosts.hfaxd</pre>
<p>
on the bottom of the file
</p>
<pre class="code">192\.168\.:::</pre>
<pre class="code">exit
vserver fax restart
vserver fax enter</pre>
<pre class="code">faxstat -a -s</pre>
<p>should show something like this</p>
<pre class="code">HylaFAX scheduler on fax.cipar.net: Running
Modem ttyS0 (+**.**.*******): Running and idle</pre>
<p>
Add a fax user. This will create a user named “user” with userID 101 and no password.
</p>
<pre class="code">faxadduser -u 100 user</pre>
<p>Add an administrator. This will create a user named admin with admin password :</p>
<pre class="code">faxadduser -a password -p password -u 100 admin</pre>
<p>&lt;/div&gt;
</p>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/hylafax-lenny-vserver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting High with Lenny</title>
		<link>http://www.songshu.org/index.php/getting-high-with-lenny</link>
		<comments>http://www.songshu.org/index.php/getting-high-with-lenny#comments</comments>
		<pubDate>Sun, 15 Feb 2009 14:22:35 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Lenny]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[all posts]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[redundant]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=530</guid>
		<description><![CDATA[&#60;div id=“dw”&#62; Page not found! &#60;/div&#62;]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<p>&lt;div id=“dw”&gt;<br />
Page not found!<br />
&lt;/div&gt;
</p>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/index.php/getting-high-with-lenny/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
