informatica:linux:hylafax
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatica:linux:hylafax [2009/05/15 08:54] – creado 194.179.83.89 | informatica:linux:hylafax [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
1. Instalar el servidor de faxes Hylafax | 1. Instalar el servidor de faxes Hylafax | ||
- | aptitude install hylafax-server | + | aptitude update && |
2. Conectar físicamente el módem externo, a ser posible en el puerto COM1 | 2. Conectar físicamente el módem externo, a ser posible en el puerto COM1 | ||
Line 17: | Line 17: | ||
faxsetup | faxsetup | ||
- | Ir contestando las preguntas. La mayoría de ellas pulsando ' | + | Ir contestando las preguntas. La mayoría de ellas pulsando ' |
- | < | ||
- | ... | ||
- | Warning:/ | ||
- | ... | ||
- | Warning:/ | ||
- | ... | ||
- | Warning:/ | ||
- | ... | ||
- | Aretheseok[yes]? | + | |
- | CanIterminatethisfaxqprocess(7586)[yes]? | + | |
- | ShouldIrestarttheHylaFAXserverprocesses[yes]? | + | ... |
- | Doyouwanttorunfaxaddmodemtoconfigureamodem[yes]? | + | |
- | Serialportthatmodemisconnectedto[ttyS0]? | + | ... |
- | Countrycode[1]? | + | Warning:/etc/hylafax/egetty-linkdoesnotexistorisnotanexecutableprogram! |
- | Areacode[415]? | + | ... |
- | Phonenumberoffaxmodem[+1.999.555.1212]? | + | Are these ok [yes]? |
- | Localidentificationstring(forTSI/CIG)[" | + | Can I terminate this faxq process |
- | Longdistancedialingprefix[1]? | + | |
- | Internationaldialingprefix[011]? | + | Do you want to run faxaddmodem to configure a modem [yes]? |
- | Dialstringrulesfile(relativeto/ | + | |
- | Tracingduringnormalserveroperation[1]? | + | **Country code [1]? 34** |
- | Tracingduringsendandreceivesessions[11]? | + | Area code [415]? |
- | Protectionmodeforreceivedfacsimile[0600]? | + | **Phone number of fax modem [+1.999.555.1212]? 900000000** |
- | Protectionmodeforsessionlogs[0600]? | + | |
- | ProtectionmodeforttyS0[0600]? | + | |
- | Ringstowaitbeforeanswering[1]? | + | |
- | Modemspeakervolume[off]? | + | |
- | Commandlineargumentstogettyprogram[" | + | |
- | PathnameofTSIaccesscontrollistfile(relativeto/var/spool/hylafax)["" | + | |
- | PathnameofCaller-IDaccesscontrollistfile(relativeto/ | + | |
- | Taglinefontfile(relativeto/var/spool/hylafax)[etc/lutRS18.pcf]? | + | |
- | Taglineformatstring[" | + | |
- | TimebeforepurgingastaleUUCPlockfile(secs)[30]?30 | + | |
- | HoldUUCPlockfileduringinbounddatacalls[Yes]?y | + | |
- | HoldUUCPlockfileduringinboundvoicecalls[Yes]?y | + | |
- | Percentgoodlinestoacceptduringcopyqualitychecking[95]?95 | + | |
- | Maxconsecutivebadlinestoacceptduringcopyqualitychecking[5]?5 | + | |
- | Maxnumberofpagestoacceptinareceivedfacsimile[25]?25 | + | |
- | SyslogfacilitynameforServerTracingmessages[daemon]? | + | |
- | SetUIDto0tomanipulateCLOCAL["" | + | |
- | Useavailablepriorityjobschedulingmechanism["" | + | |
- | CountryCode: | + | **Local identification string (for TSI/CIG) ["NothingSetup"]? MI_NOMBRE** |
- | AreaCode: | + | |
- | FAXNumber: | + | |
- | LongDistancePrefix: | + | |
- | InternationalPrefix: | + | |
- | DialStringRules: | + | |
- | SessionTracing: | + | |
- | RecvFileMode: | + | |
- | RingsBeforeAnswer: | + | |
- | SpeakerVolume: | + | |
- | GettyArgs:"-h%ldx_%s" | + | |
- | LocalIdentifier: | + | |
- | TagLineFont: | + | |
- | TagLineFormat:" | + | |
- | MaxRecvPages: | + | |
- | LockDataCalls: | + | |
- | LockVoiceCalls: | + | |
- | Aretheseok[yes]?y | + | **Long distance dialing prefix |
- | Howshoulditbeconfigured[1]?1 | + | |
- | DTE-DCEflowcontrolscheme[default]?default | + | Dial string rules file (relative to / |
- | + | Tracing during normal server operation [1]? | |
- | ModemDialCmd: | + | |
- | ModemFlowControl: | + | |
- | ModemHardFlowCmd: | + | |
- | ModemMfrQueryCmd: | + | Protection mode for ttyS0 [0600]? |
- | ModemModelQueryCmd: | + | **Rings to wait before answering [1]? 6** |
- | ModemNoFlowCmd: | + | Modem speaker volume [off]? |
- | ModemRate: | + | Command line arguments to getty program ["-h %l dx_%s" |
- | ModemRevQueryCmd: | + | |
- | ModemSetupDCDCmd: | + | |
- | ModemSetupDTRCmd: | + | Tag line font file (relative to / |
- | ModemSoftFlowCmd: | + | Tag line format string ["From %%l|%c|Page %%P of %%T" |
- | + | Time before purging a stale UUCP lock file (secs) [30]? | |
- | Aretheseok[yes]?y | + | Hold UUCP lockfile during inbound data calls [Yes]? |
- | + | Hold UUCP lockfile during inbound voice calls [Yes]? | |
- | CountryCode: | + | |
- | AreaCode: | + | Max consecutive bad lines to accept during copy quality checking [5]? |
- | LongDistancePrefix: | + | Max number of pages to accept in a received facsimile [25]? |
- | InternationalPrefix: | + | |
- | DialStringRules: | + | Set UID to 0 to manipulate CLOCAL ["" |
- | + | Use available priority job scheduling mechanism ["" | |
- | Aretheseok[yes]?y | + | ... |
- | Doyouwanttorunfaxaddmodemtoconfigureanothermodem[yes]?n | + | Are these ok [yes]? |
- | ShouldIrunfaxmodemforeachconfiguredmodem[yes]?y | + | ... |
- | </ | + | How should it be configured [1]? |
+ | ... | ||
+ | | ||
+ | ... | ||
+ | Are these ok [yes]? | ||
+ | ... | ||
+ | Are these ok [yes]? | ||
+ | ... | ||
+ | **Do you want to run faxaddmodem to configure another modem [yes]? | ||
+ | ... | ||
+ | Should I run faxmodem for each configured modem [yes]? | ||
4. Reiniciar el servidor de faxes: | 4. Reiniciar el servidor de faxes: | ||
Line 124: | Line 92: | ||
Si en el campo nº 11 (contando por la izquierda) hay un " | Si en el campo nº 11 (contando por la izquierda) hay un " | ||
+ | |||
===== Enviar por correo fax recibido ===== | ===== Enviar por correo fax recibido ===== | ||
Line 139: | Line 108: | ||
* [[informatica: | * [[informatica: | ||
* Salida a internet de la máquina donde está instalado el servidor de faxes hylafax | * Salida a internet de la máquina donde está instalado el servidor de faxes hylafax | ||
- | * Tener configurado un servidor de correo saliente, o bien [[informatica: | + | * Tener configurado un servidor de correo saliente, o bien [[informatica: |
(Todo como root) | (Todo como root) | ||
- | 1. nano / | + | 1. Editar: |
+ | |||
+ | | ||
+ | |||
+ | Y añadirle el siguiente contenido: | ||
FILETYPE=pdf; | FILETYPE=pdf; | ||
SENDTO=FaxMaster; | SENDTO=FaxMaster; | ||
- | 2. nano / | + | 2. Editar: |
+ | |||
+ | | ||
+ | |||
+ | Y añadirle el siguiente contenido: | ||
#!/bin/sh | #!/bin/sh | ||
uuencode -m $1 $1 | grep -E -v " | uuencode -m $1 $1 | grep -E -v " | ||
- | 3. chmod +x / | + | 3. Hacer el archivo ejecutable: |
+ | |||
+ | | ||
4. Crear los siguientes archivos: | 4. Crear los siguientes archivos: | ||
Line 170: | Line 149: | ||
TEMPLATE=es | TEMPLATE=es | ||
- | 5. cp / | + | 5. Renombrar archivo: |
- | 6. nano / | + | cp / |
+ | |||
+ | 6. Editar: | ||
+ | |||
+ | | ||
Añadir estas dos lineas: | Añadir estas dos lineas: | ||
Line 248: | Line 231: | ||
/ | / | ||
+ | |||
+ | |||
+ | ===== Fijar un horario de funcionamiento ===== | ||
+ | |||
+ | Para establecer un horario en el que funcione hylafax editar / | ||
+ | |||
+ | TimeOfDay: | ||
+ | |||
+ | Según esta configuración, | ||
+ | |||
+ | |||
+ | |||
+ | ===== Configurar tiempos de espera máximos, reintentos... ===== | ||
+ | |||
+ | 1. Si se quiere para todo el sistema editar: | ||
+ | |||
+ | nano / | ||
+ | |||
+ | Si se quiere solo par un módem, por ejemplo ' | ||
+ | |||
+ | nano / | ||
+ | |||
+ | Y añadirle el siguiente código: | ||
+ | |||
+ | < | ||
+ | ##################### | ||
+ | |||
+ | # The delay in seconds to wait before retrying a job whose | ||
+ | # dialing attempt failed with a BUSY status result. | ||
+ | JobReqBusy: 10 | ||
+ | |||
+ | # The delay in seconds to wait before retrying a job whose | ||
+ | # dialing attempt failed with a NO ANSWER status result. | ||
+ | JobReqNoAnswer: | ||
+ | |||
+ | # The delay in seconds to wait before retrying a job whose | ||
+ | # dialing attempt failed with a NO CARRIER status result. | ||
+ | JobReqNoCarrier: | ||
+ | |||
+ | # requeue interval for data connection dial result | ||
+ | JobReqDataConn: | ||
+ | |||
+ | # requeue interval for carrier without +FCON dial result | ||
+ | JobReqNoFCon: | ||
+ | |||
+ | # requeue interval for '' | ||
+ | JobReqOther: | ||
+ | |||
+ | # requeue interval after fax protocol error | ||
+ | JobReqProto: | ||
+ | |||
+ | ##################### | ||
+ | |||
+ | # The number of times to redial a phone number after receiving | ||
+ | # a BUSY result code when the number has not been successfully dialed before. | ||
+ | JobRetryBusy: | ||
+ | |||
+ | # The number of times to redial a phone number after the dialing | ||
+ | # attempt failed because of NO ANSWER when the number has not been successfully dialed before. | ||
+ | JobRetryNoAnswer: | ||
+ | |||
+ | # The number of times to redial a phone number after the dialing | ||
+ | # attempt failed because of NO CARRIER when the number has not been successfully dialed before. | ||
+ | JobRetryNoCarrier: | ||
+ | |||
+ | # number of times to retry dialing on '' | ||
+ | NoCarrierRetrys: | ||
+ | |||
+ | # max phone calls to make to transmit a job | ||
+ | MaxDials: 6 | ||
+ | |||
+ | </ | ||
+ | |||
+ | 2. Grabar el archivo y salir | ||
+ | |||
+ | 3. Para que los cambios tomen efecto hay que reiniciar el servidor de faxes: | ||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | ===== El comando ' | ||
+ | |||
+ | *Solución*: | ||
+ | |||
+ | sudo faxadduser usuario | ||
+ | |||
+ | Eso solo no me funciona, asi que edito: | ||
+ | |||
+ | sudo vim / | ||
+ | |||
+ | Y le anyado lo siguiente: | ||
+ | |||
+ | < | ||
+ | localhost: | ||
+ | ^www-data@ | ||
+ | ^usuario@ | ||
+ | ^root@ | ||
+ | </ | ||
+ | |||
+ | Por si acaso reinicio hylafax: | ||
+ | |||
+ | sudo / | ||
informatica/linux/hylafax.1242377692.txt.gz · Last modified: 2015/04/13 20:19 (external edit)