Hylafax Debian 6.0 64Bit

Installation für FRITZ!Card PCI oder AVM B1 PCI.

Installation FRITZ!Card PCI

Kernelmodul installieren

[root@faxsrv /]# apt-get install linux-headers-`uname -r`

Entweder fritz-fcpci-2_6_34_tar.bz2 oder fritz-fcpci-2_6_31_tar.bz2 herunterladen, je nach Kernelversion.

[root@faxsrv /]# cd /usr/src
[root@faxsrv /]# wget http://wiki.tecart.de/images/8/8b/Fritz-fcpci-2.6.31.tar.bz2

Kernelmodul entpacken und kompilieren

[root@faxsrv /]# tar -xvjf Fritz-fcpci-2.6.31.tar.bz2
[root@faxsrv /]# cd fritz-fcpci-2.6.31/lib
[root@faxsrv /]# rm fcpci-lib.o
[root@faxsrv /]# ln -s 64_fcpci-lib.o fcpci-lib.o
[root@faxsrv /]# cd ../fcpci_src/
[root@faxsrv /]# make clean
[root@faxsrv /]# make all

Kernelmodul installieren

[root@faxsrv /]# mkdir /lib/modules/`uname -r`/kernel/extras
[root@faxsrv /]# cp fcpci.ko /lib/modules/`uname -r`/kernel/extras
[root@faxsrv /]# depmod -a

kontrollieren ob alles geklappt hat

[root@faxsrv /]# modprobe -r fcpci
[root@faxsrv /]# modprobe -r avmfritz
[root@faxsrv /]# modprobe -r mISDNipac
[root@faxsrv /]# modprobe -r mISDN_core
[root@faxsrv /]# modprobe fcpci
[root@faxsrv /]# dmesg | grep fcpci

Installation AVM B1 PCI

[root@faxsrv /]# mkdir -p /usr/share/isdn
[root@faxsrv /]# cd /usr/share/isdn
[root@faxsrv /]# wget http://wiki.tecart.de/images/1/16/B1.t4.tar.gz
[root@faxsrv /]# tar -xvzf B1.t4.tar.gz

CAPI installieren

Einige Module auf die Blacklist setzen

[root@faxsrv /]# echo -e '\nblacklist mISDNipac\nblacklist avmfritz\n' >> /etc/modprobe.d/blacklist.conf

Datei /etc/apt/sources.list bearbeiten

deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main contrib non-free
[root@faxsrv /]# apt-get update
[root@faxsrv /]# apt-get install isdnactivecards
[root@faxsrv /]# usermod -G dialout uucp
[root@faxsrv /]# chown -R uucp:dialout /dev/capi*

Datei /etc/isdn/capi.conf bearbeiten

Entweder b1pci für FRITZ!Card PCI oder b1pci für AVM B1 auskommentieren.

# card          file            proto   io      irq     mem     cardnr  options
#b1isa          b1.t4           DSS1    0x150   7       -       -       P2P
b1pci           b1.t4           DSS1    -       -       -       -       <<<<< für AVM B1
#c4             c4.bin          DSS1    -       -       -       -
#c4             -               DSS1    -       -       -       -
#c4             -               DSS1    -       -       -       -       P2P
#c4             -               DSS1    -       -       -       -       P2P
#c2             c2.bin          DSS1    -       -       -       -
#c2             -               DSS1    -       -       -       -
#t1isa          t1.t4           DSS1    0x340   9       -       0
#t1pci          t1.t4           DSS1    -       -       -       -
fcpci           -               -       -       -       -       -       <<<<< für FRITZ!Card PCI
#fcpcmcia       -               -       -       -       -       -
#fcusb          -               -       -       -       -       -
#fxusb          -               -       -       -       -       -
#fcclassic      -               -       0x150   10      -       -
#fcdsl          fdslbase.bin    DSS1    -       -       -       -
#fcdsl2         fdsl2base.bin   DSS1    -       -       -       -
#fcdslsl        fdssbase.bin    DSS1    -       -       -       -
#fcdslslusb     fdlubase.frm    DSS1    -       -       -       -
#fcdslusba      fdlabase.frm    DSS1    -       -       -       -
#fcdslusb2      fds2base.frm    DSS1    -       -       -       -
#fcdslusb       fdsubase.frm    DSS1    -       -       -       -

HylaFax installieren

[root@faxsrv /]# apt-get -y install hylafax-server hylafax-client capi4hylafax psrip

Datei /etc/default/capi4hylafax bearbeiten

run_capi4hylafax=1

Datei /etc/default/hylafax bearbeiten

...
USE_FAXGETTY=no
RUN_HYLAFAX=1
...

Datei /etc/hylafax/config bearbeiten

SendFaxCmd:             "/usr/bin/c2faxsend"
DialStringRules:        "etc/dialrules"
LogFacility:            daemon
CountryCode:            49
AreaCode:               0361
LongDistancePrefix:     0
InternationalPrefix:    00

Datei /etc/hylafax/config.faxCAPI bearbeiten

SpoolDir:               /var/spool/hylafax
FaxRcvdCmd:             /var/spool/hylafax/bin/faxrcvd
PollRcvdCmd:            /var/spool/hylafax/bin/pollrcvd
FaxReceiveUser:         uucp
FaxReceiveGroup:        dialout
LogFile:                /var/spool/hylafax/log/capi4hylafax
LogTraceLevel:          4
LogFileMode:            0600
{
    HylafaxDeviceName:          faxCAPI
    RecvFileMode:               0666
    FAXNumber:                  +49.361.2623858
    LocalIdentifier:            "TecArt Group"
    MaxConcurrentRecvs:         2
    OutgoingController:         1
    OutgoingMSN:                2623858
    SuppressMSN:                0
    NumberPrefix:
    UseISDNFaxService:          0
    RingingDuration:            0
    {
        Controller:             1
        AcceptSpeech:           1
        UseDDI:                 0
        DDIOffset:              0
        DDILength:              3
        IncomingDDIs:           0
        IncomingMSNs:           2623858
        AcceptGlobalCall:       0
    }
}

Datei /etc/rc.local bearbeiten

...
/bin/chown -R uucp:dialout /dev/capi*
/bin/ln -s /dev/capi20 /dev/faxCAPI
/etc/init.d/capi4hylafax restart
/etc/init.d/hylafax restart

exit 0;

Datei /var/spool/hylafax/etc/hosts.hfaxd bearbeiten und lokales Netz hinzufügen:

...
192\.168\.:::

Bearbeiten Sie /var/spool/hylafax/bin/faxrcvd

INFO=$SBIN/faxinfo
FAX2PS=$TIFFBIN/fax2ps
TIFF2PS=tiff2ps
TOADDR=fax@tecart.de       <<<<
FROMADDR=fax@tecart.de     <<<<
TEMPLATE=de                <<<< 
TIFFINFO=tiffinfo
NOTIFY_FAXMASTER=always

:

FILETYPE=pdf
SENDTO=fax@tecart.de

Bearbeiten Sie /var/spool/hylafax/bin/notify

INFO=$SBIN/faxinfo
TIFFINFO=tiffinfo
FAX2PS=$TIFFBIN/fax2ps
TIFF2PS=tiff2ps
PS2PDF=ps2pdf
PDF2PS=pdf2ps
PS2FAX=bin/ps2fax
PDF2FAX=bin/pdf2fax
TOADDR=fax@tecart.de       <<<<
FROMADDR=fax@tecart.de     <<<<
NOTIFY_FAXMASTER=never 
RETURNFILETYPE=pdf         <<<<
TEMPLATE=de                <<<<

Bearbeiten Sie /var/spool/hylafax/bin/wedged

TOADDR=fax@tecart.de
FROMADDR=fax@tecart.de
WEDGED_EMAIL_INTERVAL=20         # minutes: at most 1 wedged email every X mins
WEDGED_DISABLE_FAXGETTY=        # if set, faxgetty disabled from inittab

Datei /var/spool/hylafax/etc/FaxDispatch bearbeiten

#
# Dispatch fax to email depending on own MSN or extention (ISDN lines)
# sourced from faxrcvd
#
if [ "$CALLID3" != "" ]; then
    PHONEMATCH=$CALLID3\$
    USERENTRY=`grep -v "^#" etc/users | grep "$PHONEMATCH"`
    if [ "$USERENTRY" != "" ]; then
	USERNAME=`echo $USERENTRY | awk '{print $1}'`
	SENDTO="$USERNAME"
    fi
fi

und ausführbar machen

[root@faxsrv /]# chmod +x /var/spool/hylafax/etc/FaxDispatch

Datei /var/spool/hylafax/etc/users bearbeiten

#
# Sample users file for FaxDispatch on ISDN lines
# format: <email>  <MSN or extention>
#
user1@tecart.de	   2623858
user2@tecart.de    2623859

Faxuser hinzufügen

[root@faxsrv /]# faxadduser fax -p fax
[root@faxsrv /]# faxadduser faxadmin -a faxadmin

Serverneustart

[root@faxsrv /]# reboot