Instalando o Hylafax :: Admirável Mundo Novo




Muito Bem Vindo

Prezado Leitor, a proposta desse Blog é compartilhar conhecimento com as pessoas que trabalham com Linux, Asterisk, OpenSER, e com tecnologia de voz sobre a rede IP em geral, através de tutoriais, dicas, howto, notícias entre outros assuntos.

Atente para termo de uso do conteúdo do blog no rodapé da página.

sexta-feira, 25 de julho de 2008

Instalando o Hylafax


Instalando o Hylafax


Nós vamos instalar o Hylafax a partir do Repositório Debian para simplificar a instalação. Fazer isso com o comando apt-get -y install hylafax-server. Dependências são automaticamente resolvidas:

debian:~# apt-get install -y hylafax-server
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  enscript gs-common gs-esp hylafax-client libcupsimage2 libcupsys2 mail
x metamail psmisc
Vorgeschlagene Pakete:
  gv postscript-viewer lpr gs-pdfencrypt gs-cjk-resource mgetty-viewfax 
hylafax-doc mgetty cupsys-common
Empfohlene Pakete:
  psfontmgr netpbm transfig
Die folgenden NEUEN Pakete werden installiert:
  enscript gs-common gs-esp hylafax-client hylafax-server libcupsimage2 
libcupsys2 mailx metamail psmisc
 
[...]
 
Update /var/spool/hylafax/status/any.info.
 
        HylaFAX configuration parameters are:
 
        [1] Init script starts faxq:            yes
        [2] Init script starts hfaxd            yes
        [3] Start old protocol:                 no
        [4] Start paging protocol:              no
Are these ok [yes]? 
Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.
 
Restarting HylaFAX server processes.
 
Should I restart the HylaFAX server processes [yes]? 
You do not appear to have any modems configured for use.  Modems are
configured for use with HylaFAX with the faxaddmodem(8) command.
Do you want to run faxaddmodem to configure a modem [yes]? 
Done verifying system setup.
Updating /etc/hylafax/setup.cache from /var/spool/hylafax/etc/setup.cach
e.
Updating /etc/hylafax/setup.modem from /var/spool/hylafax/etc/setup.mode
m.apt-get -y install hylafax-server
/var/spool/hylafax
Starting HylaFAX: faxq hfaxd faxgetty.
 
debian:~#



O próximo passo é a configuração do servidor de fax. Faça isso com o comando faxsetup:

debian:/usr/src/hylafax-4.3.4# faxsetup
 
[...]
 
Update /var/spool/hylafax/status/any.info.
 
        HylaFAX configuration parameters are:
 
        [1] Init script starts faxq:            yes
        [2] Init script starts hfaxd            yes
        [3] Start old protocol:                 no
        [4] Start paging protocol:              no
 
Are these ok [yes]?



Simplesmente pressione Enter depois das questões 2-3 seguintes.

You have a HylaFAX scheduler process running.  faxq will be
restarted shortly, as soon as some other work has been completed.
Can I terminate this faxq process (4048) [yes]?
Should I restart the HylaFAX server processes [yes]?
 
/etc/init.d/hylafax start
Not starting HylaFAX daemons since they are already running.
 
[...]
 
Modems are configured for use with HylaFAX with the faxaddmodem(8) comma
nd.
Do you want to run faxaddmodem to configure a modem [yes]? 



Nós confirmamos o restart dos processos servidor com yes e é perguntado se nós desejamos instalar um modem. Nosso IAXmodem já está configurado e assim nós podemos proceder e confirma novamente com yes.

Especifique o modem e confirme com Enter.

Serial port that modem is connected to [ttyS0]? ttyIAX0
 
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.



Muitas questões se seguem, mas somente algumas delas são realmente importantes.[44] Aqui é onde você configura códigos de discagem internacional, o número de fax, país e código de área, e o CSID (Call Subscriber ID) que é impresso no topo da linha da página da fax na ponta receptora. Confirme com yes.

No existing configuration, let's do this from scratch.
 
Country code [1]? 1
Area code []? 403
Phone number of fax modem [+1.999.555.1212]? +1 888 555 4091
Local identification string (for TSI/CIG) ["NothingSetup"]? 
Long distance dialing prefix [1]? 1
International dialing prefix [011]? 011
Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?
 
Tracing during normal server operation [1]? 
Tracing during send and receive sessions [11]? 
Protection mode for received facsimile [0600]? 
Protection mode for session logs [0600]? 
Protection mode for ttyIAX0 [0600]? 
Rings to wait before answering [1]? 
Modem speaker volume [off]? 
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/h
ylafax) [""]? 
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 [""]?



Uma página de confirmação se segue onde você pode fazer uma dupla verificação de suas entradas:

The non-default server configuration parameters are:
 
CountryCode:            1
AreaCode:               403
FAXNumber:              +1 888 555 4091
LongDistancePrefix:     0
InternationalPrefix:    00
DialStringRules:        etc/dialrules
SessionTracing:         11
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
 
Are these ok [yes]?



Respondendo com yes, traz-nos a detecção do modem:

Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).
 
Probing for best speed to talk to modem: 38400 OK.
 
About fax classes:
 
The difference between fax classes has to do with how HylaFAX interacts
with the modem and the fax protocol features that are used when sending
or receiving faxes.  One class isn't inherently better than another;
however, one probably will suit a user's needs better than others.
    
Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but may add V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.
      
HylaFAX generally will have more features when using Class 1/1.0 than
when using most modems' Class 2 or Class 2.0 implementations.  Generally
any problems encountered in Class 1/1.0 can be resolved by modifications
to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will
require the modem manufacturer to resolve it.
 
If you're unsure and your modem supports it, use Class 1.
 
This modem looks to have support for Class 1 and 1.0.
How should it be configured [1]? 
 
Hmm, this looks like a Class 1 modem.
Product code (ATI0) is "spandsp".
Other information (ATI3) is "www.soft-switch.org".
DTE-DCE flow control scheme [default]? 
Modem manufacturer is "spandsp".
Modem model is "IAXmodem".
 
Using prototype configuration file iaxmodem...
 
The modem configuration parameters are:
 
ModemResetCmds:         "ATH1\nAT+VCID=1"
 
Are these ok [yes]?



O modem foi detectado e nós somos perguntados se ele é um modem Class 1, e nós confirmamos isso porque ele é exatamente o que desejamos. Os comandos de reset padrão são também aceitáveis. Confirme com yes.


Responder a primeira questão no próximo diálogo com no, uma vez que não precisamos configurar mais nenhum modem. A segunda questão é confirmada pressionando Enter, o que inicia o servidor de fax.

Creating new configuration file /var/spool/hylafax/etc/config.ttyIAX0...
Creating fifo /var/spool/hylafax/FIFO.ttyIAX0 for faxgetty... done.
Done setting up the modem configuration.
 
[...]
 
Do you want to run faxaddmodem to configure another modem [yes]? no
 
[...]
 
Should I run faxmodem for each configured modem [yes]? 
/usr/sbin/faxmodem ttyIAX0
 
Done verifying system setup.
/var/spool/hylafax
 
 
debian:~#



O Hylfax agora está configurado para enviar faxes.




Nenhum comentário:




Creative Commons License
Admirável Mundo Novo: Tudo Sobre Asterisk, OpenSER, Linux e Tecnologias de Voz sobre IP
by Cléviton Mendes de Araújo is licensed under a Creative Commons Atribuição 2.5 Brasil License.