HYLAFAX : SERVER |
( mehmet.cakir@linuxprompt.com ) |
Kuruluma başlamadan önce paket listesini güncellemede fayda var.
Aşağıdaki satırlara göre /etc/apt altındaki source.list dosyanızı
| linuxprompt~# deb http://security.debian.org/ etch/updates main contrib non-free |
| linuxprompt~# deb ftp://ftp.fr.debian.org/debian etch main contrib non-free |
güncelleyin. Güncellemeleri yaptıktan sonra kuruluma başlayabiliriz.
| linuxprompt~# apt-get install hylafax-server wvdial |
Kurulumu bittikten sonra faxsetup komutunu yazarak karşınıza gelen soruları cevapladıktan sonra sisteminizde kullanacağınız modemi sisteme tanıtma işlemi başlıcaktır.Eğer sisteminizde kullandığınız modem mevcut ise modemi tanıma işlemi kısa sürectir. Zira daha önce sisteminizde modem kullanmadıysanız modemi tanıtma işlemi biraz zaman alabilir.
komutu kulllanılır.
Sorulara ön tanımlı cevaplar verebilirsiniz.
| Country code [1]? |
90 ( ülke kodu ) |
| Area code [415]? |
212 ( şehirlerarası il kodu ) |
| Phone number of fax modem [+1.999.555.1212]? |
+90.212.123.3456 ( Bağlantı yapılacak telefon numarası ) |
| Local identification string (for TSI/CIG) ["NothingSetup"]? |
Linux Prompt ( Giden faxlarda şirket ünvanı ) |
| Long distance dialing prefix [1]? |
9 ( Eğer telefon hattı santral 'a bağlı ise santralden çıkış numarası ) |
| International dialing prefix [011]? |
900 ( Uluslar arası ülke kodu ) |
| Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]? |
(Server'ın modeme göndereceği kuralları , komutları saklayacağı yer ) |
| Tracing during normal server operation [1]? |
(Sistem aktif iken operasyonların izlenip izlenmemsi. ) |
| Tracing during send and receive sessions [11]? |
(Sistem aktif iken gönderim ve alım operasyonlarında izleyeceği süreç --11 gönderim ve alım işlemi açık anlamındadır-- 10 sadece gönderim açık alım kapalı -- 01 gönderim kapalı alım açık ) |
| Protection mode for received facsimile [0600]? |
0644 |
| Protection mode for session logs [0600]? |
0644 |
| Protection mode for ttyS0 [0600]? |
0666 |
| Rings to wait before answering [1]? |
( Gelen Fax 'ın kaç çalmadan kabul edilmesi , default olarak enter ile geçiniz ) |
| Modem speaker volume [off]? |
OFF ( Modem 'in bağlantı sesi ) |
| Command line arguments to getty program ["-h %l dx_%s"]? |
( Default olarak enter ile geçininiz ) |
| Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]? |
( Default olarak enter ile geçininiz ) |
| Pathname of Caller-ID access control list file (relative to /var/spool/hylafax) [""]? |
( Default olarak enter ile geçininiz ) |
| Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]? |
( Default olarak enter ile geçininiz ) |
| Tag line format string ["From %%l|%c|Page %%P of %%T"]? |
( Default olarak enter ile geçininiz ) |
| Time before purging a stale UUCP lock file (secs) [30]? |
( Default olarak enter ile geçininiz ) |
| Hold UUCP lockfile during inbound data calls [Yes]? |
( Default olarak enter ile geçininiz ) |
| Hold UUCP lockfile during inbound voice calls [Yes]? |
( Default olarak enter ile geçininiz ) |
| Percent good lines to accept during copy quality checking [95]? |
( Default olarak enter ile geçininiz ) |
| Max consecutive bad lines to accept during copy quality checking [5]? |
( Default olarak enter ile geçininiz ) |
| Max number of pages to accept in a received facsimile [25]? |
( Default olarak enter ile geçininiz ) |
| Syslog facility name for ServerTracing messages [daemon]? |
( Default olarak enter ile geçininiz ) |
| Set UID to 0 to manipulate CLOCAL [""]? |
( Default olarak enter ile geçininiz ) |
| Use available priority job scheduling mechanism [""] |
( Default olarak enter ile geçininiz ) |
Sorulara verdiğiniz cevaplardan sonra karşınıza belirlemiş olduğunuz tanımalama cıkacaktır.
CountryCode: 90
AreaCode: 212
FAXNumber: +90.212.123.45.67
LongDistancePrefix: 9
InternationalPrefix: 900
DialStringRules: etc/dialrules
SessionTracing: 11
RecvFileMode: 0644
LogFileMode: 0644
DeviceMode: 0666
RingsBeforeAnswer: 1
SpeakerVolume: low
GettyArgs: "-h %l dx_%s"
LocalIdentifier: Linux Prompt
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
Are these ok [yes]? |
Yaptığımız ayarlar doğru ise "Are these ok [yes]?" Yes yazarak enter ile geçiyoruz. Eğer değişiklik yapmak istiyorsak "no" yazıp ayarları teker teker değiştirebiliriz. Daha sonrada "/etc/hylafax/config.ttyS0" dosyası içinden de değişiklik yapabiliriz.
Sıra modemimizi yapılandırmaya geldi. Modemimizi yapılandırmak için Wvdial programı modemi otomatik algılar ve gerekli tanımlamaları yapar.
| Probing for best speed to talk to modem: 38400 |
Modem iletisim hizini degistirmenize gerek yok enterla geçelim.
Sunucu modemle iletişime geçer ve ondan kendi ile ilgili tanımlamaları alır.
Product code (ATI0) is "5601".
Other information (ATI3) is .
DTE-DCE flow control scheme [default]? <------( Default olarak enter ile geçin ) |
Modemimizin yapılandırmasıda bittikten sonra karşımıza yapılan ayarlar gelir.
Modem manufacturer is "3Com U. S. Robotics".
Modem model is "3CP5610".
Using prototype configuration file usr-xon...
The modem configuration parameters are:
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: ""
Are these ok [yes]? |
Ayarlarımız dogru ise enter ile geçtikten sonra çevirme özellikleri listelenir ve buda enter ile geçilir.
CountryCode: 90
AreaCode: 212
LongDistancePrefix: 9
InternationalPrefix: 90
DialStringRules: etc/dialrules
Are these ok [yes]? |
Kurulum burada bitiyor.Sistem processlerine bakarak hylafaxın çalışıp
çalışmadığına bakabilir veya hata verdiyse /var/log/syslog dosyasından
hatanın ayrıntıların inceleyebilirsiniz.
Bir network 'a Ya da tek tek ip 'e izin vermek isterseniz ;
| linuxprompt~# vi /etc/hylafax/hosts.hfaxd |
dosyası içerisine,
Örn:
Network 'umuz 10.1.0.0/8 (10.1.0.0 / 255.0.0.0 ) oldugu icin 10\.1\.0\.::
10.1.0.65
10.1.0.72
10.1.0.34
| linuxprompt~# /etc/init.d/hylafax restart |
Komutu ile hylafax 'ı yeniden başlatıyoruz ve faxstat komutu ile hylafax 'ın çalışıp çalışmadığını görebiliriz.
HylaFAX scheduler on linuxprompt.linuxprompt.com: Running
Modem ttyS0 (+90.212.123.34.56): Waiting for modem to come ready |
Görüldüğü gibi hylafax hazır durumda.
Kuruluma başlamadan önce paket listesini güncellemede fayda var.Aşağıdaki satırlara göre /etc/apt altındaki source.list dosyanızı
güncelleyin.
| linuxprompt~# deb ftp://ftp.fr.debian.org/debian testing main contrib non-free |
Güncellemeleri yaptıktan sonra kuruluma başlayabiliriz.
linuxprompt~# apt-get update
linuxprompt~# apt-get install hylafax-client |
Komutu ile kurulumu başlatıyoruz. Kurulum bittikten sonra "/etc/hylafax/hyla.conf" dosyası içersinde ;
Host: FAX SERVER 'IN IP 'SI yazan yere fax server 'ımızın ip 'sini yazıp bilgisayarımızı reboot etmemiz yeterli olacaktır.
Need to get 0B/369kB of archives.
After this operation, 877kB of additional disk space will be used.
Selecting previously deselected package hylafax-client.
(Reading database ... 131544 files and directories currently installed.)
Unpacking hylafax-client (from .../hylafax-client_2%3a4.4.4-5_i386.deb) ...
Setting up hylafax-client (2:4.4.4-5) ... |
| linuxprompt~# cd hylafax/ |
linuxprompt~# ls
faxcover.ps faxmail.ps hyla.conf pagesizes typerules |
| linuxprompt~# cat /etc/hylafax/hyla.conf |
#
# /etc/hylafax/hyla.conf
#
# System-wide client configuration file
# System-wide configuration information
# -------------------------------------
# Host - host to contact for service
#
Host: FAX SERVER 'IN IP 'SI
# Verbose - whether or not to enable protocol tracing
#
Verbose: No
# Faxstat configuration information
# ---------------------------------
# TimeZone - control whether the times and dates are reported in the local
# timezone of the server (`local') or in GMT (`GMT').
#
TimeZone: local
# Sendfax configuration information
# ---------------------------------
# DialRules - file containing dialstring rules
#
DialRules: "/etc/hylafax/dialrules"
# If you don't want to have cover pages added automatically for every fax send
# by "sendfax", please uncomment the following line.
# AutoCoverPage: No
# These three fontMap paths are for etch:sarge:woody
FontMap:
/usr/share/gs-esp/8.15/lib:/usr/share/gs-esp/7.07/lib:/usr/share/gs/6.53
FontPath: /usr/share/fonts/type1/gsfonts |
|