메뉴 건너뛰기

kalmason

White Paper

Please understand my incorrect and poor korean expression

조회 수 272 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

FaxModem Linux CentOS6 / HylaFax 설치 / source로 설치

 

usb to rs232 연결상태 확인

dmesg | grep tty
console [tty0] enabled
usb 2-3: ch341-uart converter now attached to ttyUSB0
 

screen /dev/ttyUSB0 9600   모뎀이 연결 되어 있다면 AT 명령을 내려본다.

at

ok

 

빠져나오기

ctl a

ctl d

 


하이라fax 설치 <root에서 설치할것>

ftp://ftp.hylafax.org/source/ 소스를 받아서 할것..

tar xvfz hylafax-6.0.6.tar.gz

./configure (use all of the defaults)
make
make install

[root@LOGiMASON lib]# /usr/local/sbin/faxsetup

Setup program for HylaFAX (tm) 6.0.6.

Created for x86_64-unknown-linux-gnu on Wed Jul 15 16:08:35 KST 2015.

....

....

....

엔터누르면 안넘어가면 글짜쓰고,,그러다가...

faxmodem port 넣으라고 나오면 ttyUSB0 넣는다. 그러면 모뎀check하고 ok 떨어지면 설정완료,,,

....

....

마구 엔터누르다가... 아래글 만나면 no 하세요.. 습관적으로 엔터누르면 다시 설정합니다..ㅋㅋㅋ

 

Do you want to run faxaddmodem to configure another modem [yes]? no
 

Should I run faxmodem for each configured modem [yes]?
/usr/local/sbin/faxmodem ttyUSB0
 

- 끝 -


vi /etc/rc.d/rc.local 안에 아래 내용추가 "MSdos의 autoexe.bat와 비슷"

/usr/local/sbin/faxmodem ttyUSB0
/usr/local/sbin/hylafax start

/usr/local/sbin/faxgetty -D /dev/ttyUSB0
 


서버 리부팅

 

받은 fax는 /var/spool/hylafax/recvq
fax수신번호는 /var/spool/hylafax/recvq/seqf 에 있습니다. text로 번호를 매긴다. 100이면 다음에 수신되는 fax번호가
fax00000100.tif 가 된다.

 

logimason.com 에서는 이렇게 카피해 놓는다. crontab

 /var/spool/hylafax/recvq/  ->    /var/www/html/faxdata/rx

 /var/spool/hylafax/sendq/  ->    /var/www/html/faxdata/tx

 

 

명령어
telnet을 이용하여 linux서버에 접속한 후 아래명령을 사용하여 fax서버를 제어할수 있습니다.
< fax상태>
faxstat -s(전송 대기 중인 큐내의 팩스를 보여준다)
faxstat -d(전송된 팩스를 보여준다)
faxstat -r(수신된 팩스를 보여준다)

< fax보내기 >
sendfax -n -d 123456 /tmp/test.tif
    fax파일은 tiff파일이면 된다. 단 흑백으로만 tiff파일을 만든다.

< fax삭제 >
faxrm JID번호

<스풀을 청소>
faxclean

<통계보기>
faxcron