LINUX.ORG.RU

Сообщения cyclon

 

pureftpd, винда и запрос пароля

Форум — General

Такая ситуация образовалась, переношу proftpd с одного серванта на 
другой. На первом (с которого переношу) стоит фря и pureftpd 
(относительно старая версия 1.0.18), на втором дебиан етч с pureftpd 
(1.0.21). Так вот я взял конфиги с фри перетащил на линукс и запустил
 pureftpd. Проблема такая образовалась, когда захожу на фрёвый сервак
 из венды, появляется окно ввода пароля (анонимный вход отключён). А 
вот когда захожу на линуксовый фтп с тем же конфигом, то окно запроса
 пароля не появляется, просто говорит что нет доступа и всё, _А_ 
_ЗАПРОС_ _НУЖЕН_. Вот и вопрос, что не так, как заставить фтп просить 
пароль.

Вот конфи:

# cat /etc/pure-ftpd.conf | grep -v "^#" | grep -v "^$"
ChrootEveryone              yes
BrokenClientsCompatibility  yes
MaxClientsNumber            20
Daemonize                   yes
MaxClientsPerIP             3
VerboseLog                  no
DisplayDotFiles             yes
AnonymousOnly               no
NoAnonymous                 yes
SyslogFacility              ftp
DontResolve                 yes
MaxIdleTime                 3
MySQLConfigFile               /etc/pureftpd-mysql.conf
LimitRecursion              2000 8
AnonymousCanCreateDirs      no
MaxLoad                     4
AntiWarez                   no
Umask                       133:022
MinUID                      100
AllowUserFXP                no
AllowAnonymousFXP           no
ProhibitDotFilesWrite       no
ProhibitDotFilesRead        no
AutoRename                  no
AnonymousCantUpload         no
AltLog                     stats:/var/log/pureftpd/pureftpd.log
MaxDiskUsage               99
CustomerProof              no
IPV4Only                 yes

Заранее спасибо!!!
cyclon
()

ZYXEL U-336E Plus

Форум — Linux-hardware

Пое*авшись порядка двух недель с данной железкой, понял что причиной всех проблем был компорт hp'оного пролианта к которому оно и было подключен. Целью этого секса было создание факсоприёмника (факс сервера). Сейчас вроде как всё работает но хотелось бы лучше, а именно примерно из 10, пришедших с момента включения, факсов три не закончились мессагой line errror, причём два из трёх с одного номера. Я конечно понимаю что могут быть проблемы на линии, но хочется как нибудь улушить результат тренингов, что бы онм не заканчивались ошибками. Вопрос такой, какую строку инициализации и ответа лучше подсунуть сему момеду, что бы оно работало лучше. Смотрел доку по модему, но сочинил только такое:

answer-chat "" ATA CONNECT \c \r init-chat "" ATZ OK ATS18=0S40.2=1S0=0Q0E1M0*E0*M1 OK \c

всё это суётся в mgetty+sendfax.

Заранее спасибо!!!

cyclon
()

mgetty+sendfax не видит несущей... Помогите!!!

Форум — General

В общем с hylafax'ом не вышло, решил попробовать мгетти. И тут косяк,
при передаче факса в логах такое:

09/12 18:17:19 yS0  mgetty: interim release 1.1.36-Jun15
09/12 18:17:19 yS0   mgetty.c compiled at Aug 13 2007, 11:53:09
09/12 18:17:19 yS0   user id: 0, pid: 5078, parent pid: 1
09/12 18:17:19 yS0   reading configuration data for port 'ttyS0'
09/12 18:17:19 yS0   reading /etc/mgetty/mgetty.config...
09/12 18:17:19 yS0   conf lib: read: 'port /dev/ttyS0'
09/12 18:17:19 yS0   section: port /dev/ttyS0, ignore
09/12 18:17:19 yS0   conf lib: read: 'debug 9'
09/12 18:17:19 yS0   conf lib: read: 'fax-id 0573'
09/12 18:17:19 yS0   conf lib: read: 'speed 9600'
09/12 18:17:19 yS0   conf lib: read: 'direct NO'
09/12 18:17:19 yS0   conf lib: read: 'blocking NO'
09/12 18:17:19 yS0   conf lib: read: 'port-owner uucp'
09/12 18:17:19 yS0   conf lib: read: 'port-group uucp'
09/12 18:17:19 yS0   conf lib: read: 'port-mode 0660'
09/12 18:17:19 yS0   conf lib: read: 'toggle-dtr YES'
09/12 18:17:19 yS0   conf lib: read: 'toggle-dtr-waittime 500'
09/12 18:17:19 yS0   conf lib: read: 'data-only NO'
09/12 18:17:19 yS0   conf lib: read: 'fax-only YES'
09/12 18:17:19 yS0   conf lib: read: 'init-chat "" \d\d\d+++\d\d\dAT OK'
09/12 18:17:19 yS0   conf lib: read: 'modem-type c2.0'
09/12 18:17:19 yS0   conf lib: read: 'modem-quirks 0x04'
09/12 18:17:19 yS0   conf lib: read: 'modem-check-time 3600'
09/12 18:17:19 yS0   conf lib: read: 'rings 1'
09/12 18:17:19 yS0   conf lib: read: 'answer-chat "" ATH1 OK \d\d\d\dATA CONNECT \c \r'
09/12 18:17:19 yS0   conf lib: read: 'autobauding NO'
09/12 18:17:19 yS0   conf lib: read: 'ringback NO'
09/12 18:17:19 yS0   conf lib: read: 'ringback-time 30'
09/12 18:17:19 yS0   conf lib: read: 'ignore-carrier false'
09/12 18:17:19 yS0   conf lib: read: 'issue-file /etc/issue'
09/12 18:17:19 yS0   conf lib: read: 'prompt-waittime 500'
09/12 18:17:19 yS0   conf lib: read: 'login-prompt @!login:'
09/12 18:17:19 yS0   conf lib: read: 'login-time 240'
09/12 18:17:19 yS0   conf lib: read: 'diskspace 1024'
09/12 18:17:19 yS0   conf lib: read: 'notify '
09/12 18:17:19 yS0   conf lib: read: 'fax-owner uucp'
09/12 18:17:19 yS0   conf lib: read: 'fax-group uucp'
09/12 18:17:19 yS0   conf lib: read: 'fax-mode 0660'
09/12 18:17:19 yS0   key: 'speed', type=0, flags=2, data=9600
09/12 18:17:19 yS0   key: 'switchbd', type=0, flags=1, data=0
09/12 18:17:19 yS0   key: 'direct', type=3, flags=1, data=FALSE
09/12 18:17:19 yS0   key: 'blocking', type=3, flags=1, data=FALSE
09/12 18:17:19 yS0   key: 'port-owner', type=1, flags=1, data=root
09/12 18:17:19 yS0   key: 'port-group', type=1, flags=1, data=dialout
09/12 18:17:19 yS0   key: 'port-mode', type=0, flags=1, data=432
09/12 18:17:19 yS0   key: 'toggle-dtr', type=3, flags=1, data=TRUE
09/12 18:17:19 yS0   key: 'toggle-dtr-waittime', type=0, flags=1, data=500
09/12 18:17:19 yS0   key: 'need-dsr', type=3, flags=1, data=FALSE
09/12 18:17:19 yS0   key: 'data-only', type=3, flags=1, data=FALSE
09/12 18:17:19 yS0   key: 'fax-only', type=3, flags=1, data=FALSE
09/12 18:17:19 yS0   key: 'modem-type', type=1, flags=1, data=auto
09/12 18:17:19 yS0   key: 'modem-quirks', type=0, flags=0, data=(empty)
09/12 18:17:19 yS0   key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK AT OK
\dATQ0V1H0 OK  yS0   key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d
09/12 18:17:19 yS0   key: 'post-init-chat', type=2, flags=0, data=(empty)
09/12 18:17:19 yS0   key: 'data-flow', type=4, flags=1, data=1
09/12 18:17:19 yS0   key: 'fax-send-flow', type=4, flags=1, data=7
09/12 18:17:19 yS0   key: 'fax-rec-flow', type=4, flags=1, data=7
09/12 18:17:19 yS0   key: 'modem-check-time', type=0, flags=1, data=3600
09/12 18:17:19 yS0   key: 'rings', type=0, flags=1, data=1
09/12 18:17:19 yS0   key: 'msn-list', type=2, flags=0, data=(empty)
09/12 18:17:19 yS0   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
09/12 18:17:19 yS0   key: 'cnd-program', type=1, flags=0, data=(empty)
09/12 18:17:19 yS0   key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c
cyclon
()

hylafax, вешается модем

Форум — General

Используется hylafax 4.4.1. И зюхелевский модем. Так вот, где то после 10 факсов,
сыпется такое:
...
Sep 11 14:00:08.33: [ 3949]: RECV received frame number 19
Sep 11 14:00:08.48: [ 3949]: RECV received frame number 20
Sep 11 14:00:08.61: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:00:38.62: [ 3949]: Timeout awaiting synchronization sequence
Sep 11 14:00:38.62: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:01:08.00: [ 3949]: Timeout awaiting synchronization sequence
...
потом наступает таймаут и прога закрывает соединение:
Sep 11 14:04:38.00: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:05:08.00: [ 3949]: Timeout awaiting synchronization sequence
Sep 11 14:05:40.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:42.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:44.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:44.01: [ 3949]: <-- [9:AT+FRH=3\r]
Sep 11 14:06:29.54: [ 3949]: --> [0:]
Sep 11 14:06:29.54: [ 3949]: MODEM <Empty line>
Sep 11 14:06:29.54: [ 3949]: <-- data [1]
Sep 11 14:06:29.74: [ 3949]: MODEM <Timeout>
Sep 11 14:06:29.75: [ 3949]: RECV: 5376 bytes of data, 254 total lines
Sep 11 14:06:29.75: [ 3949]: RECV keeping unconfirmed page
Sep 11 14:06:29.75: [ 3949]: RECV FAX (000000071): from <UNSPECIFIED>, page 1 in 6:35, INF, 7.7 line/mm, 2-D MMR, 14400 bit/s
Sep 11 14:06:29.75: [ 3949]: RECV FAX (000000071): recvq/fax000000069.tif from <UNSPECIFIED>, route to <unspecified>, 1 pages in 6:35
Sep 11 14:06:29.75: [ 3949]: RECV FAX: T.30 T2 timeout, expected signal not received
Sep 11 14:06:29.75: [ 3949]: <-- [9:AT+FTH=3\r]
Sep 11 14:06:37.31: [ 3949]: --> [0:]
Sep 11 14:06:37.31: [ 3949]: RECV FAX (000000071): session with <UNSPECIFIED> terminated abnormally: T.30 T2 timeout, expected signal not received
Sep 11 14:06:37.31: [ 3949]: RECV FAX: bin/faxrcvd "recvq/fax000000069.tif" "ttyS0" "000000071" "T.30 T2 timeout, expected signal not received"
Sep 11 14:06:37.31: [ 3949]: RECV FAX: end
Sep 11 14:06:37.31: [ 3949]: T.30 T2 timeout, expected signal not received
Sep 11 14:06:37.31: [ 3949]: SESSION END

но проблема в том что модем не кладёт трубку и держит её вплоть до полной 
перезгрузки сервака. 

Что делать?! Лазил по их сайту, но ничего не помогло или же я не понял идёю.
Помогите кто может!!!!!

Заранее спасибо!!!

#
# Generic Class 1 modem configuration.
#
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#
CountryCode:            7
AreaCode:               495
FAXNumber:              0573
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0644
LogFileMode:            0644
DeviceMode:             0644
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
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:              Class1          # use this to supply a hint
ModemRate:              19200           # rate for DCE-DTE communication
ModemFlowControl:       xonxoff         # XON/XOFF flow control assumed
#
ModemSetupDTRCmd:       AT&D2           # setup so DTR drop resets modem
ModemSetupDCDCmd:       AT&C1           # setup so DCD follows carrier
#GettyArgs:             "-h %l dx_%s"   # modem must auto-detect fax/data
#
# We can append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# NB: If you need to prefix phone numbers to get through a PBX,
#     put it in the ModemDialCmd; e.g. "DT9%s@".
#
#ModemDialCmd:          ATDT%s          # T for tone dialing
#
# Other possible configuration stuff.  The default strings are
# shown below.  Only those that are different from the defaults
# need to be included in the configuration file.
#
ModemResetCmds:        "AT&B1&N0&S0*F0S38.3=1S39=0"             # stuff to do when modem is reset
ModemAnswerCmd:         ATA             # use this to answer phone
#ModemNoFlowCmd:                AT&K            # disable flow control cmd
#ModemHardFlowCmd:      AT&K3           # hardware flow control cmd
#ModemSoftFlowCmd:      AT&K4           # software flow control cmd
#ModemNoAutoAnswerCmd:  ATS0=0          # disable auto-answer
#
# Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
# Note that we both turn the speaker on/off and set volume.
#
ModemSetVolumeCmd:      "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
#ModemEchoOffCmd:       ATE0            # disable command echo
#ModemVerboseResultsCmd:        ATV1            # enable verbose command results
#ModemResultCodesCmd:   ATQ0            # enable result codes
#ModemOnHookCmd:                ATH0            # place phone on hook (hangup)
#ModemSoftResetCmd:     ATZ             # do soft reset of modem
#ModemSoftResetCmdDelay:        3000    # pause after soft reset
#ModemWaitTimeCmd:      ATS7=60         # wait 60 seconds for carrier
#ModemCommaPauseTimeCmd:        ATS8=2          # comma pause time is 2 seconds
#ModemRecvFillOrder:    LSB2MSB         # bit order of received facsimile
#ModemSendFillOrder:    LSB2MSB         # bit order modem expects for transmit
#
Class1Cmd:              AT+FCLASS=1     # command to enter class 1
Class1PPMWaitCmd:       AT+FTS=7        # command to stop and wait before PPM
Class1TCFWaitCmd:       AT+FTS=7        # command to stop and wait before TCF
Class1EOPWaitCmd:       AT+FTS=9        # command to stop and wait before EOP
Class1SwitchingCmd:     AT+FRS=8        # silence between HDLC recv and trans
Class1TrainingRecovery: 1500            # 1.5sec delay after training failure
Class1RecvAbortOK:      200             # wait 200ms for abort response
Class1RecvIdentTimer:   40000           # 35+5secs waiting for ident frames
Class1TCFMaxNonZero:    10              # max 10% of data may be non-zero
Class1TCFMinRun:        1000            # min run is 2/3rds of TCF duration
Class1FrameOverhead:    2
cyclon
()

Помогите с efax'ом (очень срочно)!!!!

Форум — Admin

Прошу помощи!!!!
Поставил efax, поправил /etc/efax.rc. Отправляю с факс-аппарата на модем факс.
Факс снимает трубу, базарит с факс-аппаратом и что то получает....
Я передавал небольшую служебку, но когда открыл полученный документ, то
увидел набор из линий и квадратов, а так же ругань просмотрщика на не правильный
размер файла. Вопрос такой, как это исправить?!!!

/usr/bin/efax: Thu Sep  6 16:54:33 2007 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 54:33 compiled Sep  6 2007 16:30:40
efax: 54:33 argv[0]=/usr/bin/efax
efax: 54:33 argv[1]=-v
efax: 54:33 argv[2]=
efax: 54:33 argv[3]=-v
efax: 54:33 argv[4]=chewmainrxtf
efax: 54:33 argv[5]=-d/dev/ttyS0
efax: 54:33 argv[6]=-iZ
efax: 54:33 argv[7]=-i&FE&D2S7=120
efax: 54:33 argv[8]=-i&C0
efax: 54:33 argv[9]=-iM1L0
efax: 54:33 argv[10]=-j&H2
efax: 54:33 argv[11]=-l
efax: 54:33 argv[12]=3136
efax: 54:33 argv[13]=-kZ
efax: 54:33 argv[14]=-g
efax: 54:33 argv[15]=exec /sbin/getty -h ttyS0 %d vt100
efax: 54:33 argv[16]=-e
efax: 54:33 argv[17]=exec /usr/bin/fone %d
efax: 54:33 argv[18]=-jS0=1
efax: 54:33 argv[19]=-w
efax: 54:33 argv[20]=-s
efax: 54:33 argv[21]=-r
efax: 54:33 argv[22]=%m%d%H%M%S
efax: 54:33 opened /dev/ttyS0
efax: 54:33 command  "Q0V1"
efax: 54:33 waiting 2,0 s
efax: 54:33 .646 [<CR><LF>OK<CR><LF>]
efax: 54:33 response "OK"
efax: 54:33 command  "Z"
efax: 54:33 waiting 5,0 s
efax: 54:34 .711 [<CR><LF>OK<CR><LF>]
efax: 54:34 response "OK"
efax: 54:34 command  "&FE&D2S7=120"
efax: 54:34 waiting 5,0 s
efax: 54:34 .816 [AT&FE&D2S7=120<CR><CR><LF>]
efax: 54:34 .995 [OK<CR><LF>]
efax: 54:34 response "OK"
efax: 54:35 command  "&C0"
efax: 54:35 waiting 5,0 s
efax: 54:35 .260 [<CR><LF>OK<CR><LF>]
efax: 54:35 response "OK"
efax: 54:35 command  "M1L0"
efax: 54:35 waiting 5,0 s
efax: 54:35 .540 [<CR><LF>OK<CR><LF>]
efax: 54:35 response "OK"
efax: 54:35 command  "E0"
efax: 54:35 waiting 5,0 s
efax: 54:35 .805 [<CR><LF>OK<CR><LF>]
efax: 54:35 response "OK"
efax: 54:35 command  "I3"
efax: 54:35 waiting 5,0 s
efax: 54:35 .944 [<CR><LF>USRobotics Courier V.Everything EXT<CR><LF>]
efax: 54:36 .090 [<CR><LF>OK<CR><LF>]
efax: 54:36 response "OK"
efax: 54:36 command  "+FCLASS=?"
efax: 54:36 waiting 5,0 s
efax: 54:36 .234 [<CR><LF>0,1,2.0<CR><LF>]
efax: 54:36 .238 [<CR><LF>OK<CR><LF>]
efax: 54:36 response "OK"
efax: 54:36 command  "+FCLASS=2.0"
efax: 54:36 waiting 5,0 s
efax: 54:36 .385 [<CR><LF>OK<CR><LF>]
efax: 54:36 response "OK"
efax: 54:36 command  "+FMI?"
efax: 54:36 waiting 5,0 s
efax: 54:36 .529 [<CR><LF>USRobotics Courier V.Everything<CR><LF>]
efax: 54:36 .546 [<CR><LF>OK<CR><LF>]
efax: 54:36 response "OK"
efax: 54:36 command  "+FMM?"
efax: 54:36 waiting 5,0 s
efax: 54:36 .689 [<CR><LF>Product type           Russia External<CR><LF>]
efax: 54:36 .710 [Product ID             00345300<CR><LF>]
efax: 54:36 .727 [Options                HST,V32bis,Terbo,VFC,V34+,x2,V90<CR><LF>]
efax: 54:36 .757 [<CR><LF>Fax Options            Class 1,Class 2.0<CR><LF>]
efax: 54:36 .782 [Clock Freq             25 Mhz<CR><LF>]
efax: 54:36 .794 [Flash ROM              1024k<CR><LF>]
efax: 54:36 .811 [Ram                    256k<CR><LF>]
efax: 54:36 .828 [<CR><LF><CR><LF>OK<CR><LF>]
efax: 54:36 response "OK"
efax: 54:36 command  "+FMR?"
efax: 54:36 waiting 5,0 s
efax: 54:36 .974 [<CR><LF>Supervisor date        05/22/01<CR><LF>]
efax: 54:36 .991 [DSP date               05/20/01<CR><LF>]
efax: 54:37 .008 [Supervisor rev         1.0.9<CR><LF>]
efax: 54:37 .025 [DSP rev                1.2.1<CR><LF>]
efax: 54:37 .042 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 using USRobotics Courier V.Everything EXT USRobotics Courier V.Everything Product type           Russia External Supervisor date        05/22/01 in class 2.0
efax: 54:37 command  "+FIP"
efax: 54:37 waiting 5,0 s
efax: 54:37 .185 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FNR=1,1,1,0"
efax: 54:37 waiting 5,0 s
efax: 54:37 .330 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FLO=1"
efax: 54:37 waiting 5,0 s
efax: 54:37 .475 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FBO=0"
efax: 54:37 waiting 5,0 s
efax: 54:37 .620 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FCR=1"
efax: 54:37 waiting 5,0 s
efax: 54:37 .765 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FIS?"
efax: 54:37 waiting 5,0 s
efax: 54:37 .809 [<CR><LF>1,5,0,2,0,0,0,0<CR><LF>]
efax: 54:37 .817 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "+FLI="                3136""
efax: 54:37 waiting 5,0 s
efax: 54:37 .875 [<CR><LF>OK<CR><LF>]
efax: 54:37 response "OK"
efax: 54:37 command  "&H2"
efax: 54:37 waiting 5,0 s
efax: 54:38 .140 [<CR><LF>OK<CR><LF>]
efax: 54:38 response "OK"
efax: 54:38 command  "S0=1"
efax: 54:38 waiting 5,0 s
efax: 54:38 .410 [<CR><LF>OK<CR><LF>]
efax: 54:38 response "OK"
efax: 54:38 waiting for activity
efax: 55:38 activity detected
efax: 55:38 waiting 120,0 s
efax: 55:38 .788 [<CR><LF>RING<CR><LF>]
efax: 55:38 waiting 120,0 s
efax: 55:46 .518 [<CR><LF>+FCO<CR><LF>]
efax: 55:48 .097 [<CR><LF>+FTI:"                3175"<CR><LF>]
efax: 55:48 .373 [<CR><LF>+FCS:0,5,0,2,0,0,0,1<CR><LF>]
efax: 55:48 .541 [<CR><LF>OK<CR><LF>]
efax: 55:48 response "OK"
efax: 55:48 fax call answered
efax: 55:48 remote ID -> "                3175"
efax: 55:48 session  98lpi 14.4kbps 8.5"/215mm  any   1D    -     -  5ms
efax: 55:48 command  "+FDR"
efax: 55:48 waiting 60,0 s
efax: 55:51 .924 [<CR><LF>+FCS:0,5,0,2,0,0,0,1<CR><LF>]
efax: 55:54 .046 [<CR><LF>CONNECT<CR><LF>]
efax: 55:54 response "CONNECT"
efax: 55:54 session  98lpi 14.4kbps 8.5"/215mm  any   1D    -     -  5ms
efax: 55:54 (1:1699)(2:1699)(3:15904)(4:224)(5:1163)(6:1163)(7:139)(8:127)(9:148)(10:759)(1
1:759)(12:1498)(13:1498)(14:102)(15:1699)(16:1699)(17:1699)(18:1699)(19:1699)(20
:1699)(21:1699)(22:1699)(23:1699)(24:1699)(25:1699)(26:1699)(27:1699)(28:1699)(2
9:2162)(30:11604)(31:20610)(32:1699)..... : reception errors
efax: 56:18 Warning: 843 reception errors
efax: 56:18 received 843 lines, 843 errors
efax: 56:18 waiting 16,0 s
efax: 56:34 Error: timed out after waiting
efax: 56:34 wrote 0906165548.001 as 1728x843 pixel 204x98 dpi TIFF page (9507 bytes)
efax: 56:34 wrote 0906165548.002 as 1728x0 pixel 204x98 dpi TIFF page (10 bytes)
efax: 56:34 removed 0906165548.002
efax: 56:34 command  "+FKS"
efax: 56:34 waiting 5,0 s
efax: 56:36 .351 [<CR><LF>+FHS:02<CR><LF>]
efax: 56:36 .356 [<CR><LF>OK<CR><LF>]
efax: 56:36 response "OK"
efax: 56:36 command  "Q0V1"
efax: 56:36 waiting 2,0 s
efax: 56:36 .627 [<CR><LF>OK<CR><LF>]
efax: 56:36 response "OK"
efax: 56:36 command  "Z"
efax: 56:36 waiting 5,0 s
efax: 56:37 .692 [<CR><LF>OK<CR><LF>]
efax: 56:37 response "OK"
efax: 56:37 done, returning 3 (invalid modem response)

Заранее спасибо!!!
cyclon
()

Помогите с факс сервером.

Форум — General

Есть задача, сделать факс сервер для приёма факсов (модем на коме) и отправки их по почте. Долго ковырялса с mgetty, но ничего путного не вышло, факс даже не принимается. Просьба такая киньте ссылкой на какую нибудь доку с подробным описанием как и на чём это можно реализовать, или может кто то похожее делал. Перерыл весь гугль но ничего путного не нашёл :((((

Заранее спасибо!!!

cyclon
()

Как открыть putty'вый ppk

Форум — Admin

Тут прислали id_dsa_cyclon.ppk сгенеренный putty, вот встал вопрос, а как 
его перегнать в формат понятный shh клиенту в линуксе, как я понимаю, 
нужно как то растолкать ключи записанные в этом файле в id_sda.

Я попробовал так:

# cat id_dsa
ssh-dss ###### cyclon@server

где ###### public ключ из файла ppk.

Но что то не получается, ссш спрашивает ключевую фразу, я её ввожу 
(ввожу однозначно правильно), а он вот что:

# ssh cyclon@server -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to server [192.168.25.2] port 22.
debug1: Connection established.
debug1: identity file /home/alexandr/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 FreeBSD-20040419
debug1: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'server' is known and matches the RSA host key.
debug1: Found key in /home/alexandr/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/alexandr/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/alexandr/.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/alexandr/.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/alexandr/.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug1: No more authentication methods to try.
Permission denied (publickey).

Заранее спасибо!!!
cyclon
()

Результаты acovea

Форум — Desktop

Вот получил такие результаты:

generation 20 complete, average fitness: 2.90007

Acovea completed its analysis at 2007 Aug 20 22:57:01

Optimistic options:

                                  -fgcse  (2.419)
                       -fschedule-insns2  (1.662)
                       -fstrict-aliasing  (1.51)
                              -ftree-pre  (1.712)
              -maccumulate-outgoing-args  (1.611)

Pessimistic options:

           -fno-guess-branch-probability  (-2.173)
                      -fno-if-conversion  (-2.224)
                      -fno-loop-optimize  (-1.769)
                        -floop-optimize2  (-1.87)
                           -fno-tree-lrs  (-1.669)
                            -fno-tree-ch  (-2.224)
                             -fforce-mem  (-2.022)
                            -mfpmath=387  (-2.123)
                            -mfpmath=sse  (-1.769)
                        -mfpmath=sse,387  (-1.618)

Acovea's Best-of-the-Best:
gcc -lrt -lm -std=gnu99 -O1 -march=opteron -fno-merge-constants -fno-thread-jumps -fno-cprop-registers -fno-if-conversion2 -fno-delayed-branch -fno-tree-ccp -fno-tree-ter -fno-move-loop-invariants -fcrossjumping -fgcse -fexpensive-optimizations -fstrength-reduce -frerun-loop-opt -fcaller-saves -fforce-addr -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks -fthread-jumps -fgcse-lm -fsched-interblock -fsched-spec -falign-functions -falign-loops -ftree-pre -fno-inline -ftracer -funroll-all-loops -fbranch-target-load-optimize2 -fmodulo-sched -fgcse-las -ftree-loop-im -fvariable-expansion-in-unroller -mno-push-args -minline-all-stringops -o /tmp/ACOVEA2AB92FB4 /usr/share/libacovea/benchmarks/huffbench.c

Acovea's Common Options:
gcc -lrt -lm -std=gnu99 -O1 -march=opteron -fno-tree-ccp -fno-tree-ter -fcrossjumping -fgcse -fexpensive-optimizations -fcaller-saves -fforce-addr -fschedule-insns2 -fstrict-aliasing -freorder-blocks -fthread-jumps -ftree-pre -funroll-all-loops -ftree-loop-im -fvariable-expansion-in-unroller -mno-push-args -o /tmp/ACOVEAEC59C9A7 /usr/share/libacovea/benchmarks/huffbench.c

-O1:
gcc -lrt -lm -std=gnu99 -O1 -march=opteron -o /tmp/ACOVEAD05C904A /usr/share/libacovea/benchmarks/huffbench.c

-O2:
gcc -lrt -lm -std=gnu99 -O2 -march=opteron -o /tmp/ACOVEA62DD1876 /usr/share/libacovea/benchmarks/huffbench.c

-O3:
gcc -lrt -lm -std=gnu99 -O3 -march=opteron -o /tmp/ACOVEAEE113350 /usr/share/libacovea/benchmarks/huffbench.c

-O3 -ffast-math:
gcc -lrt -lm -std=gnu99 -O3 -march=opteron -ffast-math -o /tmp/ACOVEA4BD6D278 /usr/share/libacovea/benchmarks/huffbench.c

-Os:
gcc -lrt -lm -std=gnu99 -Os -march=opteron -o /tmp/ACOVEAF8CAEBC0 /usr/share/libacovea/benchmarks/huffbench.c


A relative graph of fitnesses:

     Acovea's Best-of-the-Best: ****************************                          (2.48365)
       Acovea's Common Options: *****************************                         (2.56999)
                           -O1: *********************************                     (2.89893)
                           -O2: ********************************                      (2.85918)
                           -O3: ******************************                        (2.6833)
               -O3 -ffast-math: *******************************                       (2.71792)
                           -Os: **************************************************    (4.36609)

Acovea is done.

Вопрос такой, как их интерпритировать, т.е. , к примеру, какой из -Ox 
лучше, тот у которого больше значение или у которого меньше?! 

Доку читал, но чё то не понятно..

Заранее спасибо!!!
cyclon
()

dma на sis

Форум — Linux-hardware

Не получается включить DMA на матери c sis чипсетом. Вот что имеем:

wcyclon / # cat /usr/src/linux/.config | grep SIS
CONFIG_BLK_DEV_SIS5513=y
CONFIG_SATA_SIS=y
CONFIG_PATA_SIS=y
CONFIG_SIS900=m
CONFIG_SIS190=m
CONFIG_AGP_SIS=m
CONFIG_DRM_SIS=m
CONFIG_I2C_SIS5595=m
CONFIG_I2C_SIS630=m
CONFIG_I2C_SIS96X=m
CONFIG_SENSORS_SIS5595=m
# CONFIG_FB_SIS is not set
CONFIG_USB_SISUSBVGA=m
CONFIG_USB_SISUSBVGA_CON=y
wcyclon / # dmesg | grep SIS
SIS5513: IDE controller at PCI slot 0000:00:02.5
SIS5513: chipset revision 1
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS965 ATA 133 (2nd gen) controller
wcyclon / # dmesg | grep sis
sata_sis 0000:00:05.0: version 0.7
sata_sis 0000:00:05.0: Detected SiS 182/965L chipset
scsi0 : sata_sis
scsi1 : sata_sis
sis190 Gigabit Ethernet driver 1.2 loaded.
wcyclon / # hdparm -d1 -X69 /dev/sda

/dev/sda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device
 setting xfermode to 69 (UltraDMA mode5)
SG_IO: bad/missing ATA_16 sense data::  70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 HDIO_DRIVE_CMD(setxfermode) failed: Input/output error
wcyclon / # hdparm -i /dev/sda

/dev/sda:

 Model=WDC WD800JD-00LSA0                      , FwRev=06.01D06, SerialNo=     WD-WMAM9P363366
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=65
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156299375
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode

Гуглил, но ничего не нашёл :(
Помогите побороть!!!

Заранее спасибо!!!
cyclon
()

vmware-server-console

Форум — General

Тут обнаружил в портах vmware-server-console, чему обрадовался, ибо на
работе некоторые сервера стояит именно в виде вмварьных машин. В общем 
поставил это дело, запустил конфигуратор, как попросил инсталятор. Но 
вот не задача, не пускается это дело от обычного юзверя, вот что говорит:

$ /opt/vmware/server/console/bin/vmware-server-console
/opt/vmware/server/console/bin/vmware-server-console: line 85: /etc/vmware-server-console/locations: Отказано в доступе
/opt/vmware/server/console/bin/vmware-server-console: line 177: /lib/wrapper-gtk24.sh: Нет такого файла или каталога
/opt/vmware/server/console/bin/vmware-server-console: line 177: exec: /lib/wrapper-gtk24.sh: не могу запустить: Нет такого файла или каталога

пробовал ставить суидность на всё что можно, толку ноль :(

От рута пускается...

Заранее спасибо!!!
cyclon
()

Motorola PCS

Форум — Linux-hardware

Имеется Motorola rokr e6 (мобила), которая может работать в режиме веб
камеры. Но вот вопрос, а можно ли её завести под лиуксом...

Вот что имеем:

# lsusb
...
Bus 005 Device 081: ID 22b8:6006 Motorola PCS
...

# cat /proc/bus/usb/devices
T:  Bus=05 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 81 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(unk. ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=22b8 ProdID=6006 Rev= 0.01
S:  Manufacturer=Motorola Inc.
S:  Product=Motorola USB Camera
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=0e(unk. ) Sub=01 Prot=00 Driver=(none)
I:* If#= 1 Alt= 0 #EPs= 1 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=   0 Ivl=125us
I:  If#= 1 Alt= 1 #EPs= 1 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=3072 Ivl=125us

# dmesg
...
usb 5-6: new high speed USB device using ehci_hcd and address 81
usb 5-6: configuration #1 chosen from 1 choice

Можно ли это как то завести, может дрова какие есть? Честно гуглил, 
но ничего не нашёл :(

Заранее спасибо!!!
cyclon
()

pppoe-discovery: Timeout waiting for PADO packets: Success

Форум — General

Не могу понять в чём дело. pppoe соединение устанавливается, однако pppoe-discovery выдаёт:

# pppoe-discovery
pppoe-discovery: Timeout waiting for PADO packets: Success

Что делать, что не так?!
cyclon
()

ndb_mgmd: unknown variable 'HostName=10.0.1.34'

Форум — Admin

Тут решил поиграться с mysql кластером, почитал доку сделал как там 
написано, вот только проблема такого рода, при попытке запустить 
ndb_mgmd мня вываливается такое:

# ndb_mgmd
ndb_mgmd: unknown variable 'HostName=10.0.1.34'

вот конфиг:

[NDBD DEFAULT]
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Management Server
[NDB_MGMD]
HostName=10.0.1.34           # IP address of this server
# Storage Nodes
[NDBD]
HostName=10.0.2.200          # IP address of storage-node-1
DataDir=/var/lib/mysql
[NDBD]
HostName=10.0.2.204          # IP address of storage-node-2
DataDir=/var/lib/mysql
# Setup node IDs for mySQL API-servers (clients of the cluster)
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]

айпишник машин указан правильно, не пойму в чём дело :(

Заранее спасибо!!!
cyclon
()

По быдло ящику, телеканал Столица говорят про РусОС

Форум — Talks

собсно сабж

cyclon
()

setkeycodes не работает

Форум — General

Имееются мультимедия клавишы, типа Home, Zoom и.т.д. Дабы они заработали, решил посмотреть dmesg:

atkbd.c: Unknown key pressed (translated set 2, code 0x94 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e014 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x94 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e014 <keycode>' to make it known.

это результат нажатия одной из таких кнопок. Ну естественно следую написаному
забил команду:

/ # setkeycodes e014 249

так же пробовал вместо е014 указывать 0х94, толку нет

После чего эта кнопка пропала из dmesg, но и в xev её не видно, т.е.
когда её нажимаю xev молчит...после ребута эта кнопка опять видна в dmesg.

Что делать, как задействовать кнопки?!

Заранее спасибо!!!
cyclon
()

HDTV + mplayer = тормоза

Форум — General

Имеется машинка: P4 1.8, 1Gb памяти, видео GF5700LE (проприетарные 
дрова). Дистриб гента, всё собрано с максимальной оптимизацией флаги 
получены подбором с помощью програмки (название забыл):

CFLAGS="-march=pentium4 -Os -fomit-frame-pointer -fgcse -ftracer -fgcse-lm"

emerge -pv mplayer:

media-video/mplayer-1.0.20070622-r1  USE="X a52 aac aalib alsa bidi bl
cddb cdparanoia cpudetection custom-cflags dga directfb dts dv dvb dvd
 dvdnav enca encode fbcon ftp ggi gif gtk iconv jpeg libcaca lirc live
 lzo mad mmx mmxext mp3 musepack nas openal opengl oss png quicktime 
radio rar real rtc samba sdl speex srt sse sse2 svga tga theora tivo 
truetype v4l v4l2 vidix vorbis win32codecs x264 xanim xinerama xv xvid
 zoran -3dnow -3dnowext (-altivec) -amrnb -amrwb -arts -bindist -debug
 -doc -esd -ipv6 -ivtv -jack -joystick -livecd -md5sum -mp2 -pnm 
-ssse3 -unicode -xvmc" VIDEO_CARDS="vesa -mga -s3virge -tdfx"

emerge -pv nvidia-drivers

x11-drivers/nvidia-drivers-1.0.9755-r1

Проблема такая, что при просмотре hdtv фильмов наблюдаются жуткие 
тормоза, выпадения кадров и рассинхронизация звука. Вопрос такой, это 
нормально для моего железа или же проблема в софте, если последнее, то
что делать?!

Заранее спасибо!!!
cyclon
()

[ЖЖ] Кто что готовит?!

Форум — Talks

Вообщем пока жил с предками готовила мать. Готовит надо признать офигенно, можно сказать каждый раз как в дорогой ресторан сходил. Но вот когда стал жить отдельно готовить не кому, девчёнка готовить не умеет %( Но поскольку видел как всё это делается, начал сам готовить. Сейчас оттягиваюсь по жаренной курице (филе и не только) со специями, варёному картофелю присыпанного укропом и брокколи под чесночным соусом. Так же делал медальёны из свинины с гарниром из плова (криветки, сладкий перец..и.т.д) и прочее...

А кто что готовит сам?! :)

 

cyclon
()

2.6.21-gentoo-r3+SOME_PROG+lirc не работает клава

Форум — General

В общем всё началось с мплеера, в нём ни в какую не хотело работать управление с клавы, как потом выяснилось клава вообще не хотела работать, при запущенном мплеере...после долгих разбирательств выяснилось, что при сборке мплеера без поддержки lirc'а всё начинает работать. Дальше больше, та же шняга обнаружилась и у kradio, так же собранного с поддержкой lirc'а. Вот и встал, так сказать вопрос, что случилось, почему на 2.6.19-gentoo-r6 всё работает а тут такая хрень :( Пробовал пересобирать lirc не помогло.. :(

Что длать?!

Заранее спсибо!!!

cyclon
()

mplayer и 2.6.21-gentoo-r3

Форум — General

Проблема такая, до сего момента сидел на 2.6.19-gentoo-r6, но тут решил поставить 2.6.21-gentoo-r3 и столкнулся с проблемой. А именно mplayer а этом ядре не реагирует на нажатия кнопок клавиатуры. Т.е. если на 2.6.19 при нажатии "F" менялся режим показа на полноэкранный,стрелка влево и вправо производила перемотку, а пробел ставил воспроизведение на паузу. То на 2.6.21 mplayer просто не реагирует на эти кнопки, в консоль ничего не пишет... :(((((

Что делать?!

Заранее спасибо!!!

cyclon
()

asterisk+freePBX != конференция

Форум — Admin

Немогу понять в чём прикол, настроил с помощью freePBX конференцию
с номером 222, записал для неё приветствие. Вот только одна проблема
когда звоню на 222 слышу приветствие после чего, через пару секунд,
меня выбрасывает. Вот что наконфигил freePBX:

#cat extensions_additional.conf 

[ext-meetme]
include => ext-meetme-custom
exten => STARTMEETME,1,MeetMe(${MEETME_ROOMNUM},${MEETME_OPTS},${PIN})
exten => STARTMEETME,n,Hangup
exten => h,1,Hangup
exten => 222,1,Set(MEETME_ROOMNUM=222)
exten => 222,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?USER)
exten => 222,n,Answer
exten => 222,n,Wait(1)
exten => 222,n(USER),Set(MEETME_OPTS=ciMs)
exten => 222,n,Playback(custom/localconf)
exten => 222,n,Goto(STARTMEETME,1)

; end of [ext-meetme]

# cat meetme_additional.conf
; do not edit this file, this is an auto-generated file by freepbx
; all modifications must be done from the web gui


conf => 222,

Ошибок в логах вроде никаких нет :(

Что делать?!

Заранее спасибо!!!
cyclon
()

RSS подписка на новые темы