LINUX.ORG.RU

Сообщения alex772

 

cups не печатает принтер

Форум — General

alex@lbprinter2 ~> lp /var/www/html/1.png id запроса G500-1537 (1 файл.)

получил на принтере файл,

далее повторно делаю несколько раз: lp /var/www/html/1.png и результат каждый раз с новым айди запроса но на принтере ничего нет. Пример результат, который выдается после выполнения lp 1.png: alex@lbprinter2 ~> lp /var/www/html/1.png id запроса G500-1540 (1 файл.)

выключаю принтер из сети и включаю, делаю команду повторно (lp /var/www/html/1.png) - печатает, после выкл\вкл принтера

снова делаю lp /var/www/html/1.png и ничего не печатает… т.е. после каждой печати, чтобы напечаталось нужно выкл\вкл принтер

принтер подключен по усб

выключаю принтер и делаю команду (lpstat -p)

alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:45:42

при выключенном принтере делаю повторно lpstat -p

пишет, что принтер свободен, но принтер выключен… не понятно… как может быть свободен, когда он выключен… тут что-то не так

делаю повторно команду lpstat -p и результат такой же:

alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:45:42 alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:45:42 alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:45:42 alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:45:42

пишет что включен, но по факту принтер то выключен… должен поидее то писать что принтер отключен, а не «включен» или вообще ничего не писать по подключенным принтерам, потому что они выключены…

выключенный принтер принтер и ввожу lpstat -p результат:

alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:50:22

но он выключен… теперь включаю еще раз и статус: alex@lbprinter2 ~> lpstat -p принтер G500 свободен. Включен с момента Пн 19 окт 2020 11:55:59

время «включения принтера» обновилось на новое… один раз распечатает задание и далее не будет печатать…

как проверить видет ли капс принтер в подключенном виде?.. почему может не печатать?.. бьюсь который день… понять не могу, как иницилизировать проблему?

 , ,

alex772
()

Php curl post iptables открытие порта на локальной машине

Форум — General

Сервер1 на айпи 1.1.1.1, вебсервер на порту 80 Сервер2 на айпи 2.2.2.2, вебсервер апач на порту 99

На сервере1 находится php скрипт, который отправляет сообщение с 80 порта в сторону сервера2 через curl методом post на 99 порт

вопрос

почему нужно на сервере1 открывать порт 99 в фаерволе чтобы запрос ушел на сервер2 на порт 99?..

p.s. Правило iptables выглядит так: -A ALLOWOUT ! -o lo -p tcp -m tcp –dport 99 -m owner –uid-owner 1258 -j ACCEPT

 , , ,

alex772
()

fsck много цифр после исполнения

Форум — General

Подскажите, пожалуйста,

выполняю fsck -y /dev/sda1

https://prnt.sc/skivws

проходит step 1… step 2… и вроде после step 5 появляется такое: https://youtu.be/WEBQnSPd79g (на экране бегают циферки),

очень долго это длится… все жду и жду… уже минут 20 жду…

что это за циферки? это сканирование секторов?

 

alex772
()

Godex

Форум — Admin

У меня стоит Debian с окружение xfce

Подключил принтер, через капс (локалхост:631) установил его предварительно установив пакет ппд с сайта гудекса.

Принтер в системе определяется как Godex DT2. Не отправляется на печать документ. Подскажите, пожалуйста, что не так?… Диагности выдает это:

{'cups_connection_failure': False}
Page 2 (<troubleshoot.ChoosePrinter.ChoosePrinter object at 0x7f552cb6e080>):
{'cups_dest': <cups.Dest GODEX_DT2>,
 'cups_instance': None,
 'cups_queue': 'GODEX_DT2',
 'cups_queue_listed': True}
Page 3 (<troubleshoot.CheckPrinterSanity.CheckPrinterSanity object at 0x7f552cb6eba8>):
{'cups_device_uri_scheme': 'usb',
 'cups_printer_dict': {'device-uri': 'usb://GODEX/DT2?serial=19120DC3',
                       'printer-info': 'GODEX DT2',
                       'printer-is-shared': False,
                       'printer-location': '',
                       'printer-make-and-model': 'GODEX DT2, 1.1.4',
                       'printer-state': 3,
                       'printer-state-message': 'Rendering completed',
                       'printer-state-reasons': ['none'],
                       'printer-type': 2134084,
                       'printer-uri-supported': 'ipp://localhost/printers/GODEX_DT2'},
 'cups_printer_remote': False,
 'is_cups_class': False,
 'local_cups_queue_attributes': {'charset-configured': 'utf-8',
                                 'charset-supported': ['us-ascii', 'utf-8'],
                                 'color-supported': False,
                                 'compression-supported': ['none', 'gzip'],
                                 'copies-default': 1,
                                 'copies-supported': (1, 9999),
                                 'cups-version': '2.2.10',
                                 'device-uri': 'usb://GODEX/DT2?serial=19120DC3',
                                 'document-format-default': 'application/octet-stream',
                                 'document-format-supported': ['application/octet-stream',
                                                               'application/pdf',
                                                               'application/postscript',
                                                               'application/vnd.adobe-reader-postscript',
                                                               'application/vnd.cups-pdf',
                                                               'application/vnd.cups-pdf-banner',
                                                               'application/vnd.cups-postscript',
                                                               'application/vnd.cups-raster',
                                                               'application/vnd.cups-raw',
                                                               'application/x-cshell',
                                                               'application/x-csource',
                                                               'application/x-perl',
                                                               'application/x-shell',
                                                               'image/gif',
                                                               'image/jpeg',
                                                               'image/png',
                                                               'image/pwg-raster',
                                                               'image/tiff',
                                                               'image/urf',
                                                               'image/x-bitmap',
                                                               'image/x-photocd',
                                                               'image/x-portable-anymap',
                                                               'image/x-portable-bitmap',
                                                               'image/x-portable-graymap',
                                                               'image/x-portable-pixmap',
                                                               'image/x-sgi-rgb',
                                                               'image/x-sun-raster',
                                                               'image/x-xbitmap',
                                                               'image/x-xpixmap',
                                                               'image/x-xwindowdump',
                                                               'text/css',
                                                               'text/html',
                                                               'text/plain'],
                                 'finishings-default': 3,
                                 'finishings-supported': [3],
                                 'generated-natural-language-supported': ['ru-ru'],
                                 'ipp-features-supported': ['subscription-object'],
                                 'ipp-versions-supported': ['1.0',
                                                            '1.1',
                                                            '2.0',
                                                            '2.1'],
                                 'ippget-event-life': 15,
                                 'job-cancel-after-default': 10800,
                                 'job-cancel-after-supported': (0, 2147483647),
                                 'job-creation-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'ipp-attribute-fidelity',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'job-sheets',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'output-bin',
                                                                       'orientation-requested',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-hold-until-default': 'no-hold',
                                 'job-hold-until-supported': ['no-hold',
                                                              'indefinite',
                                                              'day-time',
                                                              'evening',
                                                              'night',
                                                              'second-shift',
                                                              'third-shift',
                                                              'weekend'],
                                 'job-ids-supported': True,
                                 'job-k-limit': 0,
                                 'job-k-octets-supported': (0, 110288292),
                                 'job-page-limit': 0,
                                 'job-priority-default': 50,
                                 'job-priority-supported': [100],
                                 'job-quota-period': 0,
                                 'job-settable-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'output-bin',
                                                                       'orientation-requested',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-sheets-default': ('none', 'none'),
                                 'job-sheets-supported': ['none',
                                                          'classified',
                                                          'confidential',
                                                          'form',
                                                          'secret',
                                                          'standard',
                                                          'topsecret',
                                                          'unclassified'],
                                 'jpeg-k-octets-supported': (0, 110288292),
                                 'jpeg-x-dimension-supported': (0, 65535),
                                 'jpeg-y-dimension-supported': (1, 65535),
                                 'marker-change-time': 0,
                                 'media-bottom-margin-supported': [0],
                                 'media-col-default': '(unknown IPP value tag '
                                                      '0x34)',
                                 'media-col-supported': ['media-bottom-margin',
                                                         'media-left-margin',
                                                         'media-right-margin',
                                                         'media-size',
                                                         'media-source',
                                                         'media-top-margin',
                                                         'media-type'],
                                 'media-default': 'om_w114h130_40.22x45.86mm',
                                 'media-left-margin-supported': [0],
                                 'media-right-margin-supported': [0],
                                 'media-size-supported': ['(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)'],
                                 'media-supported': ['om_w114h48_40.22x16.93mm',
                                                     'om_w114h57_40.22x20.11mm',
                                                     'om_w114h85_40.22x29.99mm',
                                                     'om_w114h100_40.22x35.28mm',
                                                     'om_w114h130_40.22x45.86mm',
                                                     'om_w142h57_50.09x20.11mm',
                                                     'om_w142h71_50.09x25.05mm',
                                                     'om_w142h85_50.09x29.99mm',
                                                     'om_w142h100_50.09x35.28mm',
                                                     'om_w142h114_50.09x40.22mm',
                                                     'om_w142h144_50.09x50.09mm',
                                                     'om_w154h114_54.33x40.22mm',
                                                     'om_w154h150_54.33x52.92mm',
                                                     'om_w154h215_54.33x75.85mm',
                                                     'custom_min_15x4mm',
                                                     'custom_max_53.85x1727.2mm'],
                                 'media-top-margin-supported': [0],
                                 'multiple-document-handling-supported': ['separate-documents-uncollated-copies',
                                                                          'separate-documents-collated-copies'],
                                 'multiple-document-jobs-supported': True,
                                 'multiple-operation-time-out': 300,
                                 'multiple-operation-time-out-action': 'process-job',
                                 'natural-language-configured': 'ru-ru',
                                 'notify-attributes-supported': ['printer-state-change-time',
                                                                 'notify-lease-expiration-time',
                                                                 'notify-subscriber-user-name'],
                                 'notify-events-default': ['job-completed'],
                                 'notify-events-supported': ['job-completed',
                                                             'job-config-changed',
                                                             'job-created',
                                                             'job-progress',
                                                             'job-state-changed',
                                                             'job-stopped',
                                                             'printer-added',
                                                             'printer-changed',
                                                             'printer-config-changed',
                                                             'printer-deleted',
                                                             'printer-finishings-changed',
                                                             'printer-media-changed',
                                                             'printer-modified',
                                                             'printer-restarted',
                                                             'printer-shutdown',
                                                             'printer-state-changed',
                                                             'printer-stopped',
                                                             'server-audit',
                                                             'server-restarted',
                                                             'server-started',
                                                             'server-stopped'],
                                 'notify-lease-duration-default': 86400,
                                 'notify-lease-duration-supported': (0,
                                                                     2147483647),
                                 'notify-max-events-supported': [100],
                                 'notify-pull-method-supported': ['ippget'],
                                 'notify-schemes-supported': ['dbus',
                                                              'mailto',
                                                              'rss'],
                                 'number-up-default': 1,
                                 'number-up-supported': [1, 2, 4, 6, 9, 16],
                                 'operations-supported': [2,
                                                          4,
                                                          5,
                                                          6,
                                                          8,
                                                          9,
                                                          10,
                                                          11,
                                                          12,
                                                          13,
                                                          16,
                                                          17,
                                                          18,
                                                          19,
                                                          20,
                                                          21,
                                                          22,
                                                          23,
                                                          24,
                                                          25,
                                                          26,
                                                          27,
                                                          28,
                                                          34,
                                                          35,
                                                          37,
                                                          38,
                                                          56,
                                                          57,
                                                          59,
                                                          16385,
                                                          16386,
                                                          16387,
                                                          16388,
                                                          16389,
                                                          16390,
                                                          16391,
                                                          16392,
                                                          16393,
                                                          16394,
                                                          16395,
                                                          16396,
                                                          16397,
                                                          16398,
                                                          16399,
                                                          16423,
                                                          14],
                                 'orientation-requested-default': None,
                                 'orientation-requested-supported': [3,
                                                                     4,
                                                                     5,
                                                                     6],
                                 'output-bin-default': 'face-down',
                                 'output-bin-supported': ['face-down'],
                                 'page-ranges-supported': True,
                                 'pages-per-minute': 1,
                                 'pdf-k-octets-supported': (0, 110288292),
                                 'pdf-versions-supported': ['adobe-1.2',
                                                            'adobe-1.3',
                                                            'adobe-1.4',
                                                            'adobe-1.5',
                                                            'adobe-1.6',
                                                            'adobe-1.7',
                                                            'iso-19005-1_2005',
                                                            'iso-32000-1_2008',
                                                            'pwg-5102.3'],
                                 'pdl-override-supported': ['attempted'],
                                 'port-monitor': 'none',
                                 'port-monitor-supported': ['none'],
                                 'print-color-mode-default': 'monochrome',
                                 'print-color-mode-supported': ['monochrome'],
                                 'print-quality-default': 4,
                                 'print-quality-supported': [4],
                                 'printer-commands': 'none',
                                 'printer-config-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-config-change-time': 1584546396,
                                 'printer-current-time': '(IPP_TAG_DATE)',
                                 'printer-dns-sd-name': None,
                                 'printer-error-policy': 'retry-job',
                                 'printer-error-policy-supported': ['abort-job',
                                                                    'retry-current-job',
                                                                    'retry-job',
                                                                    'stop-printer'],
                                 'printer-geo-location': '(unknown IPP value '
                                                         'tag 0x12)',
                                 'printer-get-attributes-supported': ['document-format'],
                                 'printer-icons': 'http://localhost/icons/GODEX_DT2.png',
                                 'printer-info': 'GODEX DT2',
                                 'printer-is-accepting-jobs': True,
                                 'printer-is-shared': False,
                                 'printer-is-temporary': False,
                                 'printer-location': '',
                                 'printer-make-and-model': 'GODEX DT2, 1.1.4',
                                 'printer-more-info': 'http://localhost/printers/GODEX_DT2',
                                 'printer-name': 'GODEX_DT2',
                                 'printer-op-policy': 'default',
                                 'printer-op-policy-supported': ['authenticated',
                                                                 'default',
                                                                 'kerberos'],
                                 'printer-organization': '',
                                 'printer-organizational-unit': '',
                                 'printer-resolution-default': (203, 203, 3),
                                 'printer-resolution-supported': [(203,
                                                                   203,
                                                                   3)],
                                 'printer-settable-attributes-supported': ['printer-geo-location',
                                                                           'printer-info',
                                                                           'printer-location',
                                                                           'printer-organization',
                                                                           'printer-organizational-unit'],
                                 'printer-state': 3,
                                 'printer-state-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-state-change-time': 1584546401,
                                 'printer-state-message': 'Rendering completed',
                                 'printer-state-reasons': ['none'],
                                 'printer-type': 2134084,
                                 'printer-up-time': 1584546409,
                                 'printer-uri-supported': ['ipp://localhost/printers/GODEX_DT2'],
                                 'printer-uuid': 'urn:uuid:df86f8a1-9302-3fd6-7d63-336e94fc21e0',
                                 'pwg-raster-document-resolution-supported': [(203,
                                                                               203,
                                                                               3)],
                                 'pwg-raster-document-sheet-back': 'normal',
                                 'pwg-raster-document-type-supported': ['black_1',
                                                                        'sgray_8'],
                                 'queued-job-count': 1,
                                 'server-is-sharing-printers': False,
                                 'sides-default': 'one-sided',
                                 'sides-supported': ['one-sided'],
                                 'uri-authentication-supported': ['requesting-user-name'],
                                 'uri-security-supported': ['none'],
                                 'which-jobs-supported': ['completed',
                                                          'not-completed',
                                                          'aborted',
                                                          'all',
                                                          'canceled',
                                                          'pending',
                                                          'pending-held',
                                                          'processing',
                                                          'processing-stopped']}}
Page 4 (<troubleshoot.CheckPPDSanity.CheckPPDSanity object at 0x7f552cb6e048>):
{'cups_printer_ppd_defaults': {'General': {'PageRegion': 'w114h130',
                                           'PageSize': 'w114h130',
                                           'Resolution': '203dpi',
                                           'cupsDarkness': '0'},
                               'LabelSetup': {'gdxBlackMark': 'none',
                                              'gdxBlackPos': '0',
                                              'gdxGapLength': '2',
                                              'gdxLeft': 'none',
                                              'gdxTop': 'none'},
                               'PrinterSetup': {'gdxMode': 'none',
                                                'gdxOffset': 'none',
                                                'gdxRate': 'none',
                                                'negative': 'False'}},
 'cups_printer_ppd_valid': True,
 'missing_pkgs_and_exes': ([], [])}
Page 5 (<troubleshoot.LocalOrRemote.LocalOrRemote object at 0x7f552cb6e160>):
{'printer_is_remote': False}
Page 6 (<troubleshoot.DeviceListed.DeviceListed object at 0x7f552cb6ec88>):
{'cups_device_dict': {'device-class': 'direct',
                      'device-id': 'MANUFACTURER:GODEX ;COMMAND '
                                   'SET:EZPL;MODEL:DT2;COMMENT:Anything you '
                                   'like;ACTIVE COMMAND '
                                   'SET:EZPL;COMPATIBLEID:GODEX_DT2',
                      'device-info': 'GODEX DT2',
                      'device-make-and-model': 'GODEX DT2'}}
Page 7 (<troubleshoot.PrinterStateReasons.PrinterStateReasons object at 0x7f552e37d1d0>):
{'printer-state-message': 'Rendering completed',
 'printer-state-reasons': ['none']}
Page 8 (<troubleshoot.Locale.Locale object at 0x7f552cb87908>):
{'printer_page_size': 'w114h130',
 'system_locale_lang': None,
 'user_locale_ctype': 'ru_RU',
 'user_locale_messages': 'ru_RU'}

 ,

alex772
()

openwrt установка драйвера принтера

Форум — Linux-install

Здравствуйте

на сайте производителя я нашел драйверы принтера, пишут про него cups-cовместим…

в архиве с драйвером есть

  1. bash файл (#!/bin/bash… # batch file to install printer driver) для установки
  2. ppd файл под мою модель принтера

поставил openwrt на роутер asus установил kmod-usb-printer установил p910nd поставил для удобства luci-app-p910nd… не дружу я с командной строкой, через вебку показалось все просто…

принтер подключил по usb к роутеру

«настроил» сервер печати https://prnt.sc/pyrm9s

и попробовал подключить в виндоус сетевой принтер на 192.168.1.1 на порт 9100… попробовал отправить документ, но как и ожидал, что печати не будет… потому что драйвер не установлен …

распаковал драйвер… а теперь сижу думаю как его загрузить то на роутер.. через opkg он не устанавливается, ведь не из репозитория openwrt… ну и дальше уперся в стену… в новинку это все, не понимаю что делать

  1. хотелось бы все таки как-то увидеть что openwrt на usb порте роутера видит «неизвестное» устройство… как?

  2. как скопировать проприетарный драйвер в openwrt без opkg?..

  3. для запуска баш-файла нужно что-то устанавливать через opkg?

4…. подскажите, пожалуйста…

 , install printer, , ,

alex772
()

запуск закрытого процесса

Форум — General

Здравствуйте

подскажите, пожалуйста,

у меня есть файл php, он создает процесс в системе

как можно проверять на стороне линукса что этот процесс работает и в случае если не работает открывать его повторно?

 ,

alex772
()

Zyxel сервер печати

Форум — Linux-install

Здравствуйте

посоветуйте… может есть небольшой готовый дистрибутив для организации из роутера печатного сервера?..

 , ,

alex772
()

Не могу подключиться в Spark к Openfire

Форум — General

Все клиенты подключаются без проблем, Спарк не подключается. Подскажите почему такое может быть?

p.s. http://prntscr.com/jusypd

 ,

alex772
()

Ldap+asterisk правила набора

Форум — Admin

Здравствуйте Хочу через лдап сделать ограничение звоноков на номера по заданному шаблону. Подскажите, пожалуйста, как настроить в атериске чтобы при исходящем звонке запрос делался в лдап для сверки разрешения пользователю на исходящий звонок?

 ,

alex772
()

Centos7 Openfire перенос inverse с :7070/inverse в :80/

Форум — General

Здравствуйте

centos7x86 openfire

хочу переместить Openfire встроенный вебсервер с 7070 на 80порт и переместить веб-чат inverse из папки /inverse в /

чтобы чат открывался сразу как вводишь адрес сервера, например, сейчас открывается так xx.com:7070/inverse, а нужно xx.com/

не могу понять, то ли он как-то зашит, то ли еще что...

подскажите, пожалуйста

 

alex772
()

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