Navigation

    蓝鲸ROS机器人论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    Linux服务器共享打印机和扫描仪给Windows

    技术交流
    samba ubunu scanservjs
    1
    1
    436
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • weijiz
      weijiz last edited by

      现在服务器基本都是Linux的了,但是日常办公电脑很多还是Windows。下面介绍在这种情况下插在Linux服务器上的打印机和扫描仪如何共享给Windows用户。

      首先要在服务器上开启samba服务

      sudo apt install samba
      

      设置密码

      sudo smbpasswd -a xxxx
      New SMB password:
      Retype new SMB password:
      Added user xxxx.
      

      其中xxxx是samba用户名

      修改/etc/samba/smb.conf

      [global]
      workgroup = WORKGROUP
      netbios name = BWOFFICE
      hosts allow = 192.168.0.
      security = user
      server role = standalone server
      map to guest = Bad User
      load printers = yes
      printcap name = cups
      disable spoolss = No
      cups options = raw
      use client driver = yes
      
      [teamshare]
      comment = team share folder
      browseable = yes
      path = /home/bwoffice/TeamShare
      create mask = 0775
      directory mask = 0775
      valid users = bwoffice
      force user = bwoffice
      force group = bwoffice
      public = yes
      writable = yes
      available = yes
      
      [printers]
      browseable = yes
      path = /var/spool/samba
      guest ok = yes
      writable = yes
      printable = yes
      printer name = m126a
      create mask = 0775
      
      [print$]
      comment = Printer Drivers
      path = /var/lib/samba/printers
      browseable = yes
      read only = yes
      guest ok = yes
      

      按照上面的配置,注意修改成自己的用户和路径就可以共享文件夹和打印机了。
      当然前提是安装好打印机驱动。

      对于打印机驱动,惠普打印机可以直接apt安装驱动。其他型号打印机只能搜一搜看看了。

      sudo apt-get install hplip hplip-gui
      

      比较麻烦的是扫描仪驱动。我们的扫描仪是和打印机一体的。直接打开惠普的打印机驱动在扫描的时候会提示下载插件。插件安装完成后就可以开启扫描功能了。插件下载速度很慢,我们可以直接手动下载安装。下载地址 注意下载的版本一定要和系统安装的hplip版本一致,否则会安装失败。

      扫描仪的共享通过 scanservjs 。这是一个web程序,在网页中点击扫描后直接调用主机上的扫描仪,然后扫描生成图片或者pdf。功能全面而且简单易用。

      scan.png

      需要注意的是docker的安装方式会有权限问题,导致docker无法访问扫描仪硬件。手动安装的方式没有问题。

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright © 2015-2021 BlueWhale community