精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>电脑技术>>● FreeBSD>>系统管理>>系统设置与技巧>>Samba>>经验广告:FreeBSD samba share LPT for

主题:经验广告:FreeBSD samba share LPT for
发信人: Hopper()
整理人: calvin(1999-01-25 16:49:03), 站内信件
成功设置好FreeBSD's samba share printers for Win95/98,
把经验广告如下:

关于FreeBSD share打印机给W95/W98的设置过程

1. 硬件
      a. kernel 支持 /dev/lpt0 , 并口一,
         dmesg | grep lpt0应当有如下的显示:
         lpt0 at 0x378-0x37f irq 7 on isa
         lpt0: Interrupt-driven port
      b. 正确连接打印机到LPT1.
2. 软件设置
      a. /etc/printcap文件应当有如下的选项:
         lp|local line printer:\
                :sh:\                                       
                :lp=/dev/lpt0:sd=/var/spool/output/lp:\
                 lf=/var/log/lpd-errs:
                注意到前面的是一个TAB符。lf这一行联到上一行。
      b. smb.conf文件的设置应当有如下的几项:
         [gobal]
           load printers = yes
           printcap name = /etc/printcap
           printing = bsd
         [printers]
           comment = All Printers
           path = /var/spool/output/%p
           browseable = yes  # -- no is also ok.
           # Set public = yes to allow user 'guest account' to print
           #   guest ok = no
           public = yes      #  ---  can select guest ok = no
           writable = yes     #  --- no is also ok.
           printable = yes    # --- it must be yes!!
           lpq command = /usr/bin/lpq %p
           lprm command = /usr/bin/lprm -P%p %j
           print command = /usr/bin/lpr -r -P%p %s ; rm %s
       c. 对应的目录应当有如下的权限:
          (权限一定不能错,要不只能有samba的admin用户才能打印!)
           /var/spool/output/lp         777
           /var/spool/output/lpd        777
           /var/spool/output            777
       d. 重起samba, 和 lpd进程。
       e. 用W95/W98的网络邻居去安装打印机,并把打印机的型号选对。

All things will be OK!

--
※ 来源:.广州网易 BBS bbs.nease.net.[FROM: 202.103.135.100]

[关闭][返回]