HylaFAX faxsetup

참조 : http://www.aboutdebian.com/fax.htm

http://www.elastix.org/index.php/en/component/kunena/38-hylafax/47686-hylafax-client-yajhfc-cant-save-file-tif.html

http://www6.uniovi.es/hylafax/troubleshooting.html

http://woodair.blog.me/100016250690

참조 :http://www.hylafax.org/content/How-To

http://hylafax.sourceforge.net/howto/using.php (log)

포트 확인
[root@localhost ~]# setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
1) Install
yum -y install ghostscript sharutils

2)
yum install hylafax

3)
[root@group /]# faxsetup

Setup program for HylaFAX ™ 4.4.4.

Created for i686-pc-linux-gnu on Tue Jan 8 14:53:57 EST 2008.

Reading cached parameters from /var/spool/hylafax/etc/setup.cache.

Found base64 encoder: /usr/bin/base64
Found Quoted-Printable encoder: qp-encode
Found mimencode for compatibilty: mimencode
Checking system for proper client configuration.
Checking system for proper server configuration.
Warning: /sbin/vgetty does not exist or is not an executable program!

The file:

/sbin/vgetty

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /sbin/vgetty that points to your program
then you must reconfigure and rebuild HylaFAX from source code.
Warning: /bin/egetty does not exist or is not an executable program!

The file:

/bin/egetty

does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /bin/egetty that points to your program
then you must reconfigure and rebuild HylaFAX from source code.

Setting Ghostscript font path in /etc/hylafax/hyla.conf.

 

Warning: /usr/share/ghostscript/fonts does not exist or is not a directory!

The directory /usr/share/ghostscript/fonts does not exist or this file is not a directory.
This is the directory where the HylaFAX client applications expect to
locate font metric information to use in formatting ASCII text for
submission as facsimile. Without this information HylaFAX may generate
illegible facsimile from ASCII text.
Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.
Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.

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]? [root@group /]#

Something is hung, faxq did not terminate in response to the faxquit
command. There do not appear to be any faxsend or pagesend subprocesses
actively handling outbound jobs so the reason for it running is unknown.
Should we continue to wait

 

faxstat
HylaFAX scheduler on myhome.co.kr: Running
Modem modem (+82.02.): Waiting for modem to come ready

추가 ___

*Add users without passwords:
/usr/sbin/faxadduser username

*Add users with passwords (optional):
/usr/sbin/faxadduser -p password username

*Edit this file for the modem automatic answer:
vi /etc/inittab

# Run faxgetty in runlevel 2 and 3
t2:23:respawn:/usr/sbin/faxgetty ttyS0

*Modify this file to choose where to send received faxes:
vi /var/spool/hylafax/etc/FaxDispatch
SENDTO=FaxMaster;
SENDTO=user@domain.ca;
FILETYPE=pdf;
MIMENCODE=bin/uuencode_it;

*Edit this file to avoid page chopping, complete pages will be sent:
vi /etc/hylafax/hyla.conf
#PageChop: none # Avoid page chopping
PageChop: none # Avoid page chopping

*reboot

참조 : http://www.sertec.ca/Howtos/HowtoConfigCentOS53.html
비고 :

#dmesg | grep tty

** ttyS0 은 com1을 의미함

ㅇ 부팅시 grub, lilo 등에 설정하기
console=ttyS0,38400 console=tty0 옵션을 넣어준다.

minicom 등에서 속도를 같이 맞추어준다.

ㅇ /etc/inittab 에서 세팅하여 사용하기
s0:2345:respawn:/sbin/agetty 38400 ttyS0

CentOS (2.6.18-128.el5xen)
CentOS-base (2.6.18-128.el5)

전 /boot/grub/grub.conf 파일에서
default = 1로 수정해서 부팅시 바로 두번째 메뉴로 부팅

dmesg | grep tty

[root@localhost ~]# dmesg | grep tty
[root@localhost ~]# setserial -G /dev/ttyS0
/dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal skip_test
[root@localhost ~]# setserial /dev/ttyS0 uart 16550a port 0x3f8 irq 4 baud_base 115200 spd_normal skip_test

1. 모뎀 설치 및 세팅
(1) 모뎀을 usb에 꼽는다.
(2) usb모뎀을 사용하게 할 모듈 설정
# modprobe usbserial vendor=0x0572 product=0x1321
이렇게 하면 ttyACM0 를 /dev 폴더에서 확인할 수 있습니다.
(이걸 못 찾아서 엄청 고생했고, 숫자0을 알파벳 대문자O로 오인해서 하루 해맸습니다.T_T)

2. hylafax 설치 및 설정
(1) 설치
# sudo apt-get install hylafax-client hylafax-server
(2) 설정
# faxsetup -server
대부분은 그냥 기본값을 그대로 사용합니다. 대부분 ENTER 누르면 됩니다.
중간에 모뎀 입력하는 란에서 /dev/ttyACM0 로 넣어주면 됩니다.
– 바꿀 부분만 간추리면 –
Country code [1]? 82 (국가코드)
Area code [415]? 31 (지역번호 0빼고)
Phone number of fax modem [+1.999.555.1212]? (fax 전화번호)
Protection mode for received facsimile [0600]? 644
Protection mode for session logs [0600]? 644
Protection mode for ttyACM0 [0600]? 666
Rings to wait before answering [1]? (벨 몇 번 울린 후 팩스 받을지)
Max number of pages to accept in a received facsimile [25]? (팩스 한 번에 받을 장수)

모뎀이 잘 잡혔다면 모뎀 속도 측정이 성공하고 아니면 실패해서 device가 ttyACM0이 맞는지 아니면 다른 이름으로 잡혔는지 확인해야 합니다.
Probing for best speed to talk to modem: 38400 OK

This modem looks to have support for both Class 1 and 2;
how should it be configured [2]? 1 (모르면 1번으로 하면 됩니다.)

이렇게 하면 기본적인 설치는 다 된 것 같습니다.
팩스를 받으려면 faxgetty란 명령을 실행해야 하는데 서버가 실행될 때마다 자동으로 팩스 수신 상태로 만들기 위해서

/etc/init.d/rc.local 파일을 열어 마지막 줄에
/usr/local/sbin/faxgetty -D ttyACM0
이란 내용을 넣어주면 부팅시마다 자동실행 됩니다.
우분투가 아닌 다른 리눅스에서는 설치법이 다릅니다.
필요하신 분들께 도움이 되었으면 좋겠네요. 이상입니다.

[root@localhost ~]# probemodem
Serial port that modem is connected to []? ttyUSB0

Now we are going to probe the tty port. 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.

This looks like a Class 1 and 1.0 modem.

ATI0 RESULT = “OK” RESPONSE = “56000”
ATI1 RESULT = “OK” RESPONSE = “OK”
ATI2 RESULT = “OK” RESPONSE = “OK”
ATI3 RESULT = “OK” RESPONSE = “CX93001-EIS_V0.2002-V92”
ATI4 RESULT = “OK” RESPONSE = “OK”
ATI5 RESULT = “OK” RESPONSE = “61”
ATI6 RESULT = “OK” RESPONSE = “OK”
ATI7 RESULT = “OK” RESPONSE = “OK”
ATI8 RESULT = “ERROR” RESPONSE = “ERROR”
ATI9 RESULT = “ERROR” RESPONSE = “ERROR”

Class 1 stuff…

AT+FCLASS=? RESULT = “OK” RESPONSE = “0,1,1.0,8”
AT+FCLASS? RESULT = “OK” RESPONSE = “1”
AT+FCLASS=0 RESULT = “OK” RESPONSE = “OK”
AT+FCLASS=1 RESULT = “OK” RESPONSE = “OK”
AT+FCLASS? RESULT = “OK” RESPONSE = “1”
AT+FJUNK=? RESULT = “ERROR” RESPONSE = “ERROR”
AT+FJUNK? RESULT = “ERROR” RESPONSE = “ERROR”
AT+FAA=? RESULT = “ERROR” RESPONSE = “ERROR”
AT+FAA? RESULT = “ERROR” RESPONSE = “ERROR”
AT+FAE=? RESULT = “OK” RESPONSE = “(0,1)”
AT+FAE? RESULT = “OK” RESPONSE = “0”
AT+FTH=? RESULT = “OK” RESPONSE = “3,24,48,72,73,74,96,97,98,121,122,145,146”
AT+FRH=? RESULT = “OK” RESPONSE = “3,24,48,72,73,74,96,97,98,121,122,145,146”
AT+FTM=? RESULT = “OK” RESPONSE = “3,24,48,72,73,74,96,97,98,121,122,145,146”
AT+FRM=? RESULT = “OK” RESPONSE = “3,24,48,72,73,74,96,97,98,121,122,145,146”
AT+FTS=? RESULT = “ERROR” RESPONSE = “ERROR”
AT+FRS=? RESULT = “ERROR” RESPONSE = “ERROR”

 

[김성민]님이 남기신 글:

>안녕하세요.
>
>어제 질문에 관련된 것인데요.
>usb 팩스모뎀을 쓰고자 하는데,
>
>부팅된 상태에서 usb 모뎀을 끼우면
>/dev/ttyUSB0 이 생깁니다.
>재부팅 하면 없어지고, 다시 뺐다가 끼우면 생깁니다.
>
>끼워진 상태로 부팅을 하면 플러그인 타입으로 자동인식이 안되는
모양인데,
>이거 방법이 없을까요??
>
>감사합니다..

========================================

1. /etc/modprobe.conf 파일의 제일 마지막에

options usbserial vendor=0x0572 product=0x1321

이렇게 설정하고,
2. 기존에 /etc/rc.d/rc.local 에 기입한 modprobe 명령어 라인은 삭제하고,

/lib/udev/usb_modeswitch vendor=0x0572 product=0x1321 –type option-zerocd

이렇게 설정하고 재부팅해보세요.

  • Thank you for the sensible critique. Me and my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more from this post. I am very glad to see such fantastic info being shared freely out there.

  • It appears to be Paris Hilton is a celeb first and foremost for possessing dollars, and then doing work that fame to make even more. The form of individual who will get compensated just for displaying up at a social gathering, Paris is often more a marketable model than a individual. And what an unlucky model! Paris introduced an exclusive line for Kitson Boutiques advertising her specific model of type ?generally t-shirts display screen printed with her facial area in gold lame. With tons of cheap, shiny dresses as well, it has to be just one of the most unattractive celeb manner lines on the marketplace.