Você está na página 1de 8

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ...

Pgina 1 de 8

El bal de Nico

Inicio Acerca de mi

Instalar y configu u servidor de faxes u rar n tilizando Hylafax en Karmic


16022010

Qu es el hylafax y por qu instalarlo? Hylafax es un software destinado a empresas y que permite enviar y recibir faxes. Est implementado con una arquitectura cliente-servidor por lo que los fax-mdems pueden estar en un equipo de la red que puede recibir los faxes que se han de enviar desde el resto de clientes de la red. La mayora de usuarios de Hylafax lo utilizan como un servidor para enviar y recibir faxes para un grupo de trabajo. Esto ahorra tiempo ya que no hay que esperar a que el fax est disponible ni que acabe de enviar/recibir. Los administradores pueden sacar partido de los mecanismos de generacin de reportes que ofrece, pudiendo realizar resmenes de los historiales de faxes enviados y recibidos. Entre las capacidades de Hylafax se encuentran: - Fax broadcasting: Enviar un fax a mltiples destinos. - Fax-to-Email Gateway: Recepcin de faxes va ficheros adjuntos en el correo electrnico. - Email-to-Fax Gateway: Enviar faxes va ficheros adjuntos en el correo electrnico. - Distribu cin y rou ting au tomtico de faxes. - Impresin au tomtica de faxes. La integracin con nuestro entorno de trabajo se puede realizar mediante clientes especficos para cada sistema operativo. Pero, para entornos Windows incorpora la capacidad de integrarse con Samba publicando una impresora que recibe las peticiones de envo de faxes. Desde cualquier editor de textos se puede enviar un fax imprimiendo en la impresora adecuada. Por qu instalarlo? Es un producto que tiene muchos beneficios. Por tratar algunos: - Ahorro de papel - No se pierden los faxes: quedan almacenados en el servidor, por lo que aunque se pierda la copia impresa (en caso de sacarla) no pasa nada, tenemos el original guardado. - Ahorro de tiempo, no hay que desplazarse hasta el fax manual para mandar , recibir los faxes.

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 2 de 8

Instalar hylafax A la hora de instalar hylafax hemos de tener en cuenta que cada mdem tiene una configuracin y unos parmetros distintos, por lo que la instalacin y posterior configuracin que vamos a explicar aqu corresponde al mdem que nosotros hemos utilizado. En ste caso el mdem es un US Robotics 5637 e hylafax ha sido instalado bajo un Ubuntu Karmic (9.10). Actualmente, en la distribucin ubuntu, podemos encontrar el paquete hylafax-server en los repositorios, y ser el propio ubuntu quin se ocupar de resolver las dependencias necesarias. Instalamos el paquete necesario:
$ sudo su Password: ****** # aptitude install hylafax-server

Despus de ste paquete comienza automticamente la configuracin de hylafax-server:


01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Configurandohylafaxserver(4.2.51)... Addingsystemuser`faxmaster'... Addingnewgroup`faxmaster'(114). Addingnewuser`faxmaster'(114)withgroup`faxmaster'. Notcreatinghomedirectory`/var/spool/hylafax'. Setupprogramfor HylaFAX(tm)4.2.5. Createdfor i686pclinuxgnuonMonJan1617:09:50UTC2006. Lookslike/usr/bin/base64encodesupportsbase64encoding. Checkingsystemfor properserverconfiguration. Warning:/etc/hylafax/gettylinkdoesnotexistorisnotanexecutableprogram! Thefile: /etc/hylafax/gettylink doesnotexistorthisfile isnotanexecutableprogram.The HylaFAXsoftwareoptionallyusesthisprogramandthefactthat itdoesnotexistonthesystemisnotafatalerror.Ifthe programresidesin adifferentlocationandyoudo notwantto install asymboliclinkfor /etc/hylafax/gettylinkthatpointstoyourprogram then youmustreconfigureandrebuildHylaFAXfromsource code. Warning:/etc/hylafax/egettylinkdoesnotexistorisnotanexecutableprogram! Thefile: /etc/hylafax/egettylink doesnotexistorthisfile isnotanexecutableprogram.The HylaFAXsoftwareoptionallyusesthisprogramandthefactthat itdoesnotexistonthesystemisnotafatalerror.Ifthe programresidesin adifferentlocationandyoudo notwantto install asymboliclinkfor /etc/hylafax/egettylinkthatpointstoyourprogram then youmustreconfigureandrebuildHylaFAXfromsource code. Make/var/spool/hylafax/bin/ps2faxalinkto/var/spool/hylafax/bin/ps2fax.gs. Make/var/spool/hylafax/bin/pdf2faxalinkto/var/spool/hylafax/bin/pdf2fax.gs. Update/var/spool/hylafax/status/any.info. HylaFAXconfigurationparametersare: [1]Initscriptstartsfaxq:yes [2]Initscriptstartshfaxdyes [3]Startoldprotocol:no [4]Startpagingprotocol:no Aretheseok[yes]? Modemsupportfunctionswrittento/var/spool/hylafax/etc/setup.modem. Configurationparameterswrittento/var/spool/hylafax/etc/setup.cache. RestartingHylaFAXserverprocesses. Youdo notappeartohaveanymodemsconfiguredfor use.Modemsare configuredfor usewithHylaFAXwiththefaxaddmodem(8)command. Doyouwanttorunfaxaddmodemtoconfigureamodem[yes]? Doneverifyingsystemsetup. Creating/etc/hylafax/setup.cachefrom/var/spool/hylafax/etc/setup.cache. Creating/etc/hylafax/setup.modemfrom/var/spool/hylafax/etc/setup.modem. /var/spool/hylafax

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 3 de 8

52 53 54

StoppingHylaFAXdaemons:faxq(notrunning)hfaxd(notrunning)faxgetty. +/bin/cp a"/etc/hylafax/setup.cache" "/var/spool/hylafax/etc/setup.cache" StartingHylaFAXdaemons:faxqhfaxdfaxgetty.

Tal y como nos indica, no hemos configurado an nuestro mdem. Para ello nos comenta que empleemos el comando faxaddmodem:
# faxaddmodem

Y nos pregunta en qu puerto est el modem escuchando (en mi caso es el ttyACM0):


Serial port that modem is connected to [ttyS0]? ttyACM0

En este momento nos preguntar diferentes datos necesarios para poder enviar los faxes, como prefijos, nuestro nmero, algn cdigo que identifique nuestro fax, etc. En aquellas preguntas en las que no modifico la opcin por defecto (la que est entre corchetes) simplemente le doy al Intro o Return para aceptar.
Ok, time to setup a configuration file for the modem. The manual page config(5) may be useful during this process. Also be aware that at any time you can safely interrupt this procedure. Reading scheduler config file /var/spool/hylafax/etc/config. No existing configuration, let's do this from scratch. Country code [1]? 34 Area code [415]? 96 Phone number of fax modem [+1.999.555.1212]? Local identification string (for TSI/CIG) ["NothingSetup"]? Prueba Long distance dialing prefix [1]? 0 International dialing prefix [011]? 00 Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]? etc/dialrules.europe Tracing during normal server operation [1]? 0xFFF Tracing during send and receive sessions [11]? 0xFFF Protection mode for received facsimile [0600]? 0777 Protection mode for session logs [0600]? 077 Protection mode for ttySL0 [0600]? 0777 Rings to wait before answering [1]? Modem speaker volume [off]? low Command line arguments to getty program ["-h %l dx_%s"]? Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]? Pathname of Caller-ID access control list file (relative to /var/spool/hylafax) [""]? Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]? Tag line format string ["From %%l|%c|Page %%P of %%T"]? Time before purging a stale UUCP lock file (secs) [30]? Hold UUCP lockfile during inbound data calls [Yes]? Hold UUCP lockfile during inbound voice calls [Yes]? Percent good lines to accept during copy quality checking [95]? Max consecutive bad lines to accept during copy quality checking [5]? Max number of pages to accept in a received facsimile [25]? Syslog facility name for ServerTracing messages [daemon]? Set UID to 0 to manipulate CLOCAL [""]? Use available priority job scheduling mechanism [""]? The non-default server configuration parameters are: CountryCode: 34 AreaCode: 96 FAXNumber: LongDistancePrefix: 0 InternationalPrefix: 00 DialStringRules: etc/dialrules.europe SessionTracing: 0xFFF RingsBeforeAnswer: 1 SpeakerVolume: high GettyArgs: "-h %l dx_%s"

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 4 de 8

LocalIdentifier: Prueba TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 25 Are these ok [yes]? Yes

Ahora proceder a ponerse en contacto con el mdem para ver qu capacidades tiene:
01 02 03 04 05 06 07 Nowwearegoingtoprobethetty porttofigureoutthetype ofmodemthatisattached.Thistakesafewseconds,sobepatient. Notethatif youdo nothavethemodemcabledtotheport,orthe modemisturnedoff,thismayhang(justgoandcableupthemodem orturniton,orwhatever). Probingfor bestspeedtotalktomodem:38400OK. Thedifferencebetweenfaxclasseshastodo withhowHylaFAXinteractswiththemodemandthe faxprotocolfeaturesthatareusedwhensendingorreceivingfaxes.Oneclassisn'tinherently betterthananother;however,oneprobablywillsuitauser'sneedsbetterthanothers. Class1reliesonHylaFAXtoperformthebulkofthefaxprotocol. Class2reliesonthemodemtoperformthebulkofthefaxprotocol. Class2.0issimilartoClass2butmayincludemore features. Class1.0issimilartoClass1butmayaddV.34faxcapability. Class2.1issimilartoClass2.0butaddsV.34faxcapability. HylaFAXgenerallywillhavemore featureswhenusingClass1/1.0thanwhenusingmostmodems' Class2orClass2.0implementations.Generallyanyproblemsencounteredin Class1/1.0canbe resolvedbymodificationstoHylaFAX,butusuallyanyproblemsencounteredin Class2/2.0/2.1 willrequirethemodemmanufacturertoresolveit. UseClass1unlessyouhaveagoodreasonnotto. Hmm,thislookslikeaClass1modem. Productcode(ATI0)is"5601".

08 09 10 11 12 13 14 15

16 17 18 19 20 21 22 23 24 25

Otherinformation(ATI3)is"U.S.Robotics56KFAXUSBV1.1.0". DTEDCEflowcontrolscheme[default]?

Aceptamos la configuracin por defecto.


01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Modemmodelis"3CP5610". Usingprototypeconfigurationfile usrxon... Themodemconfigurationparametersare: ModemAnswerCmd:AT+FCLASS=1A ModemFlowControl:xonxoff ModemHardFlowCmd:AT&H1&I0&R2 ModemMfrQueryCmd:!USR ModemModelQueryCmd:ATI3 ModemNoFlowCmd:AT&H0&I0&R1 ModemRate:19200 ModemResultCodesCmd:ATQ0X4 ModemRevQueryCmd:ATI7 ModemSetupAACmd:AT+FCLASS=0 ModemSetupDCDCmd:AT&C1 ModemSetupDTRCmd:ATS13=1&D2 ModemSoftFlowCmd:AT&H2&I2&R1 Class1NFLOCmd:AT&H0&I0&R1 Class1HFLOCmd:AT&H1&I0&R2 Class1SFLOCmd:"" Class1ResponseWaitCmd:AT+FRS=1 Class1SwitchingCmd:""

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 5 de 8

26 27 28 29 30 31 32 33 34 35 36 37

Aretheseok[yes]? Creatingnewconfigurationfile /var/spool/hylafax/etc/config.ttyACM0... ...savingcurrentfile as/var/spool/hylafax/etc/config.ttyACM0.sav. Donesettingupthemodemconfiguration. Checking/var/spool/hylafax/etc/configfor consistency... ...everythinglooksok;leavingexistingfile unchanged. Don'tforgettorestarthylafaxin ordertorunfaxgettyonthisnewmodem line. /var/spool/hylafax/config

A pesar de que ha detectado el mdem correctamente, la configuracin por defecto no interacta bien con el mdem, por lo que resulta necesario hacer algunas modificaciones. La configuracin final queda as:
# Configuration for using the Class 1 command interface with # a USR Courier or Sportster modem and XON/XOFF flow control. # CountryCode: 34 AreaCode: 96 FAXNumber: +34.96.123.456 LongDistancePrefix: 0 InternationalPrefix: 00 DialStringRules: etc/dialrules.europe ServerTracing: 0xFFF SessionTracing: 0xFFF RecvFileMode: 0777 LogFileMode: 0777 DeviceMode: 0777 RingsBeforeAnswer: 1 SpeakerVolume: high GettyArgs: "-h %l dx_%s" LocalIdentifier: "Prueba" TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 25 # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 19200 # rate for DCE-DTE communication ModemFlowControl: rtscts # software flow control # ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemNoFlowCmd: AT&H0 # setup modem for no flow control ModemHardFlowCmd: AT&H1 # setup modem for hardware flow control ModemSoftFlowCmd: AT&H2 # setup modem for software flow control ModemResultCodesCmd: ATQ0X3 # enable result codes #ModemDialCmd: ATDT%s@ # ModemMfrQueryCmd: !USR5637 ModemModelQueryCmd: ATI3 ModemRevQueryCmd: ATI7 # XXX returns a multi-line result # # When AT+FCLASS=1 is issued the modem automatically switches # to software flow control; these parameters let the fax software # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT+FLO=1 # setup modem for no flow control Class1HFLOCmd: AT+FLO=2 # setup modem for hardware flow control Class1SFLOCmd: AT+FLO=0 # modem does this automatically

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 6 de 8

# # This should resolve "DIS/DTC received 3 times" errors: # Class1ResponseWaitCmd: AT+FRS=1 # wait after sending TCF for response # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. # ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in class 0 ModemAnswerCmd: AT+FCLASS=1;A # answer in Class 1 ModemAnsweFaxCmd: ATA # # When using AT+FRS=n we see USR modems reset themselves in the middle of sessions # this is not good. So, we seem to work-around that problem by not using the # command. Unfortunately, this isn't an ideal thing. # Class1SwitchingCmd: ""

Clientes Hylafax: A la hora de interactuar con el servidor Hylafax es muy conveniente instalar una aplicacin cliente para manejar tanto el envo como la recepcin de faxes, ya que hacerlo via comando no es prctico. Igualmente, y por si fuera necesario, para enviar un fax desde el terminal deberiamos ejectuar la siguiente orden:
# sendfax -n -d 'nmero de fax' 'ruta del documento (pdf o postcript) a enviar'

En el caso de los faxes recibidos los podremos encontrar en la siguiente ruta y estarn en formato *.tif.:
'/var/spool/hylafax/recq'

Clientes Linux: En caso de ser usuario de GNU/Linux, encontraremos un gran nmero de proyectos libres (no todos mantenidos) para ste cometido. Yo he probado el proyecto web faxy. Se trata de un cliente muy intuitivo y no encontrareis grandes dificultades para instalarlo. El proyecto, como suele ser habitual, viene comprimido en un tar.gz, que podis encontrar aqu, tan slo hemos de descomprimirlo y moverlo a la ruta /var/www para poder empezar a utilizarlo. Deberemos modificar algn fichero de configuracin para indicarle donde se encuentran las rutas del hylafax y otros parmetros, pero nada muy complicado (si tenis cualquier duda podis consultarme utilizando los comentarios). Tambin he probado el cliente Gfax, que se instala va repositorios ejecutando la siguiente orden:
# aptitude install gfax

Tendremos un nuevo programa en el men principal, en Aplicaciones > Oficina > Gfax. Al igual que con Faxy, debereis modificar algunos parmetros en Editar > Preferencias, pero no debera suponeros ningn problema. Clientes Windows: Como en Linux podemos encontrar multitud de proyectos que interactan con hylafax para el envo y la recepcin de faxes. En mi caso he utilizado el cliente yajhfc. La instalacin es muy sencilla y slo hemos de seguir los pasos que se nos vayan indicando. La configuracin es muy similar a Gfax, deberemos indicarle la direccin IP donde se encuentra el servidor Hylafax. Una vez configurado el programa es muy intuitivo y no encontrareis mayores problemas.

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 7 de 8

Fuentes: 1) http://www.imh.es/dokumentazio-irekia/manuales/hylafax-servidor-de-faxes-en-software-libre 2) http://galpon.org/wiki/index.php/Hylafax_en_Ubuntu

S el prime e de que te gusta esta post. ro n cir

Instalar y configurar la tarjeta Wacom Bamboo Pen and Touch en KarmicInstalar Salt 4.0 en Karmic

Acciones
RSS de los Comentarios Trackback

Informacin
Fecha : febrero 16, 2010 Etiquetas: configuracin, hylafax, instalacin, sistemas Categoras : sistemas

Deja un comentario

Buscar

Entradas Recientes
Instalar y Configurar WebDav Instalar y configurar Servidor NIS Ubuntu Lucid 10.04 Repositorio Local: Apt-cacher Instalar y Configurar LDAP en Ubuntu Lucid 10.04 Raid por Software Utilizando mdadm

Archivos
mayo 2010 abril 2010 marzo 2010 febrero 2010

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Instalar y configurar un servidor de faxes utilizando Hylafax en Karmic El bal ... Pgina 8 de 8

Etiquetas

configuracin copias seguridaddesktopdisco duroescritorio gadgets gnu/linux hylafax instalacin iptables LDAP mdadm nis panel permisos personalizar quotas raid rdiff-backup repositorio localrestaurarrkhunter rootkit salt scripting seguridad shell sistemas software ubuntu varios wacom
.dmrc apache apt-cacher aptitude bash bamboowebdav

Posts Ms Vistos
Instalar y Configurar LDAP + NFS en Ubuntu Karmic 9.10 Instalar y configurar Servidor NIS Ubuntu Lucid 10.04 Instalar y configurar un servidor de faxes utilizando 'Hylafax' en Karmic Convertir jpg/jpeg a pdf en Ubuntu

Inicio
Registrarse Acceder RSS de las entradas RSS de los comentarios WordPress.com

Blog de WordPress.com. Theme: Freshy by Jide.

http://elbauldenico.wordpress.com/2010/02/16/instalar-y-configurar-un-servidor-de-fa... 17/04/2012

Você também pode gostar