|
|
本帖最后由 yz0515 于 2022-12-13 14:18 编辑
一、玩客云固件采用地址,两个usb都可以用,一个查无线网卡,一个插打印机。
二、连ssh,安装cpus
- apt update
- apt-get install cups
复制代码 三、安装惠普驱动四、修改cupsd.conf这4处参考修改为
- # Only listen for connections from the local machine.
- Listen 0.0.0.0:631
- Listen /var/run/cups/cups.sock
- # Restrict access to the server...
- <Location />
- Order allow,deny
- Allow all
- </Location>
- # Restrict access to the admin pages...
- <Location /admin>
- Order allow,deny
- Allow all
- </Location>
- # Restrict access to configuration files...
- <Location /admin/conf>
- AuthType Default
- Require user @SYSTEM
- Order allow,deny
- Allow all
- </Location>
复制代码 然后重启cups
五、进入cups后台添加打印机
浏览器访问https://玩客云ip:631,需要输入玩客云账号密码认证,然后add print--》Local Printers(选择打印机)--》 Sharing(打对钩)--》选对应型号驱动--》继续,配置好后发现无法打印。
我的打印机是惠普M1005,比较老旧,驱动显示需要装插件。
然后到这里 找到刚才cups管理页面驱动显示的版本号,使用wget下载
- wget https://developers.hp.com/sites/default/files/hplip-3.18.12-plugin.run
- wget https://developers.hp.com/sites/default/files/hplip-3.18.12-plugin.run.asc
复制代码 然后安装插件
- root@arm:~#hp-setup -i
- HP Linux Imaging and Printing System (ver. 3.18.12)
- Printer/Fax Setup Utility ver. 9.0
- Copyright (c) 2001-15 HP Development Company, LP
- This software comes with ABSOLUTELY NO WARRANTY.
- This is free software, and you are welcome to distribute it
- under certain conditions. See COPYING file for more details.
- (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
- --------------------------------
- | SELECT CONNECTION (I/O) TYPE |
- --------------------------------
- Num Connection Description
- Type
- -------- ---------- ----------------------------------------------------------
- 0* usb Universal Serial Bus (USB)
- 1 net Network/Ethernet/Wireless (direct connection or JetDirect)
- Enter number 0...1 for connection type (q=quit, enter=usb*) ?
- Using connection type: usb
- Setting up device: hp:/usb/HP_LaserJet_M1005?serial=KJ4HDNA
- ------------------------
- | PLUG-IN INSTALLATION |
- ------------------------
- HP Linux Imaging and Printing System (ver. 3.18.12)
- Plugin Download and Install Utility ver. 2.1
- Copyright (c) 2001-15 HP Development Company, LP
- This software comes with ABSOLUTELY NO WARRANTY.
- This is free software, and you are welcome to distribute it
- under certain conditions. See COPYING file for more details.
- warning: It is not recommended to run 'hp-plugin' in a root mode.
- HP Linux Imaging and Printing System (ver. 3.18.12)
- Plugin Download and Install Utility ver. 2.1
- Copyright (c) 2001-15 HP Development Company, LP
- This software comes with ABSOLUTELY NO WARRANTY.
- This is free software, and you are welcome to distribute it
- under certain conditions. See COPYING file for more details.
- error: PolicyKit support requires DBUS or PolicyKit support files missing
- (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
- ------------------------------------------
- | PLUG-IN INSTALLATION FOR HPLIP 3.18.12 |
- ------------------------------------------
- Option Description
- ---------- --------------------------------------------------
- d Download plug-in from HP (recommended)
- p Specify a path to the plug-in (advanced)
- q Quit hp-plugin (skip installation)
- Enter option (d=download*, p=specify path, q=quit) ? p #选择p,指定目录刚才wget的目录,否则无法下载
- Enter the path to the 'hplip-3.18.12-plugin.run' file (q=quit) : /root/
- ---------------
- | COPY PLUGIN |
- ---------------
- Downloading plug-in from: file:///root/hplip-3.18.12-plugin.run
- Downloading plug-in: [\ ] 0% 1100%Receiving digital keys: /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
- error: Unable to recieve key from keyserver
- Do you still want to install the plug-in? (y=yes, n=no*, q=quit) ? y #选择y,不效验加密
- ----------------------
- | INSTALLING PLUG-IN |
- ----------------------
- Creating directory plugin_tmp
- Verifying archive integrity... All good.
- Uncompressing HPLIP 3.18.12 Plugin Self Extracting Archive.........................................................
- HP Linux Imaging and Printing System (ver. 3.18.12)
- Plugin Installer ver. 3.0
- Copyright (c) 2001-15 HP Development Company, LP
- This software comes with ABSOLUTELY NO WARRANTY.
- This is free software, and you are welcome to distribute it
- under certain conditions. See COPYING file for more details.
- Plug-in version: 3.18.12
- Installed HPLIP version: 3.18.12
- Number of files to install: 55
- You must agree to the license terms before installing the plug-in:
- LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in
- These License Terms govern your Use of the HPLIP Driver Plug-in Software (the "Software"). USE OF THE SOFTWARE
- INCLUDING, WITHOUT LIMITATION, ANY DOCUMENTATION, IS SUBJECT TO THESE LICENSE TERMS AND THE APPLICABLE AS-IS WARRANTY
- STATEMENT. BY DOWNLOADING AND INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THESE TERMS. IF YOU DO NOT AGREE
- TO ALL OF THESE TERMS, DO NOT DOWNLOAD AND INSTALL THE SOFTWARE ON YOUR SYSTEM.
- 1. License Grant. HP grants you a license to Use one copy of the Software with HP printing products only. "Use" includesusing, storing, loading, installing, executing, and displaying the Software. You may not modify the Software or disable
- any licensing or control features of the Software.
- 2. Ownership. The Software is owned and copyrighted by HP or its third party suppliers. Your license confers no title
- to, or ownership in, the Software and is not a sale of any rights in the Software. HP's third party suppliers may
- protect their rights in the Software in the event of any violation of these license terms.
- 3. Copies and Adaptations. You may only make copies or adaptations of the Software for archival purposes or when copyingor adaptation is an essential step in the authorized Use of the Software. You must reproduce all copyright notices in
- the original Software on all copies or adaptations. You may not copy the Software onto any public network.
- 4. No Disassembly. You may not Disassemble the Software unless HP's prior written consent is obtained. "Disassemble"
- includes disassembling, decompiling, decrypting, and reverse engineering. In some jurisdictions, HP's consent may not berequired for limited Disassembly. Upon request, you will provide HP with reasonably detailed information regarding any
- Disassembly.
- 5. No Transfer. You may not assign, sublicense or otherwise transfer all or any part of these License Terms or the
- Software.
- 6. Termination. HP may terminate your license, upon notice, for failure to comply with any of these License Terms. Upon
- termination, you must immediately destroy the Software, together with all copies, adaptations and merged portions in anyform.
- 7. Export Requirements. You may not export or re-export the Software or any copy or adaptation in violation of any
- applicable laws or regulations.
- 8. U.S. Government Restricted Rights. The Software has been developed entirely at private expense. It is delivered and
- licensed, as defined in any applicable DFARS, FARS, or other equivalent federal agency regulation or contract clause, aseither "commercial computer software" or "restricted computer software", whichever is applicable. You have only those
- rights provided for such Software by the applicable clause or regulation or by these License Terms.
- 9. DISCLAIMER OF WARRANTIES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, HP AND ITS SUPPLIERS PROVIDE THE
- SOFTWARE "AS IS" AND WITH ALL FAULTS, AND HEREBY DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED,
- OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF TITLE AND NON-INFRINGEMENT, ANY IMPLIED WARRANTIES, DUTIES ORCONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE, AND OF LACK OF VIRUSES ALL WITH REGARD TO THE
- SOFTWARE. Some states/jurisdictions do not allow exclusion of implied warranties or limitations on the duration of
- implied warranties, so the above disclaimer may not apply to you in its entirety.
- 10. LIMITATION OF LIABILITY. Notwithstanding any damages that you might incur, the entire liability of HP and any of itssuppliers under any provision of this agreement and your exclusive remedy for all of the foregoing shall be limited to
- the greater of the amount actually paid by you separately for the Software or U.S. $5.00. TO THE MAXIMUM EXTENT
- PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL HP OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
- INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS OR
- CONFIDENTIAL OR OTHER INFORMATION, FOR BUSINESS INTERRUPTION, FOR PERSONAL INJURY, FOR LOSS OF PRIVACY ARISING OUT OF ORIN ANY WAY RELATED TO THE USE OF OR INABILITY TO USE THE SOFTWARE, OR OTHERWISE IN CONNECTION WITH ANY PROVISION OF THISAGREEMENT, EVEN IF HP OR ANY SUPPLIER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND EVEN IF THE REMEDY FAILS
- OF ITS ESSENTIAL PURPOSE. Some states/jurisdictions do not allow the exclusion or limitation of incidental or
- consequential damages, so the above limitation or exclusion may not apply to you.
- Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
- Done.
- Done.
- ---------------------
- | PRINT QUEUE SETUP |
- ---------------------
- Please enter a name for this print queue (m=use model name:'HP_LaserJet_M1005'*, q=quit) ?
- Using queue name: HP_LaserJet_M1005
- Locating PPD file... Please wait.
- Found PPD file: drv:///hpcups.drv/hp-laserjet_m1005.ppd
- Description:
- Note: The model number may vary slightly from the actual model number on the device.
- Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ?
- Enter a location description for this printer (q=quit) ?
- Enter additonal information or notes for this printer (q=quit) ?
- Adding print queue to CUPS:
- Device URI: hp:/usb/HP_LaserJet_M1005?serial=KJ4HDNA
- Queue name: HP_LaserJet_M1005
- PPD file: drv:///hpcups.drv/hp-laserjet_m1005.ppd
- Location:
- Information:
- ---------------------
- | PRINTER TEST PAGE |
- ---------------------
- Would you like to print a test page (y=yes*, n=no, q=quit) ? y #打印测试页
- warning: hp-testpage should not be run as root/superuser.
- HP Linux Imaging and Printing System (ver. 3.18.12)
- Testpage Print Utility ver. 6.0
- Copyright (c) 2001-15 HP Development Company, LP
- This software comes with ABSOLUTELY NO WARRANTY.
- This is free software, and you are welcome to distribute it
- under certain conditions. See COPYING file for more details.
- Printing test page to printer HP_LaserJet_M1005...
- request id is HP_LaserJet_M1005-3 (1 file(s))
- Test page has been sent to printer.
- note: If an error occured, or the test page failed to print, refer to the HPLIP website
- note: at: http://hplip.sourceforge.net for troubleshooting and support.
- Done.
- Done.
复制代码 没意外应该可以正常使用了,但目前ios无法airprint。
安装
- apt-get -y install avahi-daemon avahi-discover libnss-mdns
复制代码 目前打印功能应该正常使用了。然后配置扫描。
六、安装sane
- apt-get install sane sane-utils
复制代码 查看是否挂载
测试一下
- sudo scanimage -d hpljm1005:libusb:002:003 >/tmp/test.pnm
复制代码 正常后开始配置,
- vi /etc/sane.d/saned.conf
复制代码 根据情况添加一行
然后- sane-port 6566/tcp # SANE network scanner daemon
复制代码 没有添加
再设置守护
我这边使用的是xinetd,没有的话安装使用inetd也行,但我的安装不了。参考这里
配置xinetd
- vi /etc/xinetd.d/sane-port
- #内容参考以下
- service sane-port
- {
- socket_type = stream
- server = /usr/local/sbin/saned
- protocol = tcp
- user = saned
- group = saned
- wait = no
- disable = no
- }
复制代码 然后
- service xinetd restart
- #再查看状态
- service xinetd status
- #如果报错,重新启动试下
- shutdown -r now
复制代码 重启后登录ssh,查看xinetd状态。
- service xinetd status
- #正常的话有以下内容
- /etc/xinetd.d/sane-port [file=/etc/xinetd.d/sane-port]
- #或者查看端口
- lsof -i:6566
复制代码 七、PC端设置
打印:添加页面会直接搜索到,通过共享地址填写也行。
扫描:下载,然后安装,添加玩客云ip。通过系统的扫描与传真软件扫描。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
评分
-
查看全部评分
|