#!/bin/bash # preconfigure debconf-set-selections <<\EOF postfix postfix/mailname string fax postfix postfix/main_mailer_type select Internet Site EOF # install hylafax apt-get install -y capi4hylafax hylafax-server # # default configuration # # configure capi sed -i 's|#run_capi4hylafax=1|run_capi4hylafax=1|g' /etc/default/capi4hylafax sed -i 's|USE_FAXGETTY=yes|USE_FAXGETTY=no|g' /etc/default/hylafax echo "SendFaxCmd: /usr/bin/c2faxsend" >> /etc/hylafax/config echo "@192.168.0.[0-9]+$" >> /etc/hylafax/hosts.hfaxd # disable AutoCoverPage sed -i 's|# AutoCoverPage:|Auto
Installation (tested on Linux squezze 2.6.32-5-xen-amd64)
apt-get install -y wget capiutils
wget http://dl.dropbox.com/u/4170695/www/fcpci.tar.gz -O /tmp/fcpci.tar.gz
tar xzf /tmp/fcpci.tar.gz -C /tmp/
/tmp/fcpci/install.sh
# redirect your ISDN card on dom0 sed -i 's|tty0|tty0 pciback.hide=(04:06.0)|g' /boot/grub/menu.lst reboot # set domU parameter [ -z $DOMAIN_NAME ] && DOMAIN_NAME=fax [ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:fa:fa [ -z $DOMAIN_RAM ] && DOMAIN_RAM=256Mb [ -z $DOMAIN_HDD ] && DOMAIN_HDD=2Gb [ -z $DOMAIN_PCI ] && DOMAIN_PCI=04:06.0 # create domU http://www.panticz.de/Xen-domU-ubuntu-jaunty # redirect avm usb card echo "pci=['${DOMAIN_PCI}']" >> /etc/xen/${DOMAIN_NAME} # add to autostart (optional) ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto # start domU xm create -c
#!/bin/bash # If you use Ubuntu Gutsy you don´t need to compile the fcusb2 driver at self, follow this howto # it will automaticly download and configure all needed files # be sure that you running this script as root if [ "$USER" != "root" ]; then sudo $0 exit 0 fi # install needed packages apt-get install -y avm-fritz-firmware linux-restricted-modules-$(uname -r) wget # install avm firmware #wget http://www.avm.de/files/cardware/fritzcrdusb.v20/linux/suse.93/fcusb2-suse93-3.11-07.tar.gz -P /tmp #tar -xzf /tmp/fcusb2-suse93-3.11-07.tar.gz -C /tmp #mkdir /usr/share/isdn/
queue status
faxstat -s # shows fax in the queue waiting to be sent
faxstat -d # shows faxes sent
faxstat -r #shows faxes received
delete fax
faxrm JOB_ID
or if you can´t delete run under creator
sudo -u USERNAME faxrm JOB_ID
HylaFax spool directory
/var/spool/hylafax/
delete all send faxes
for i in $(ls /var/spool/hylafax/doneq); do
faxrm ${i:1}
done
get rejected fax nubers
faxstat -d | grep REJECT | cut -d" " -f 7 > fax_rejected.txt