将打印机共享到Windows客户端

将打印机共享到Windows客户端

我的台式机运行的是 Ubuntu 14.04,并连接了一台 Canon MP490 打印机。我想将打印机共享给运行 Windows 7 的 Gateway 笔记本电脑。

打印机在桌面上打印正常。笔记本电脑能够发现打印机,我安装了驱动程序。一切看起来都很正常,应该可以正常工作。当我尝试从笔记本电脑打印时,它不起作用。看起来它正在将作业发送到打印机,然后什么也没发生。

我一直在 Google 上搜索,但没有找到可行的答案。我现在有点迷茫。

以下是我的 Samba 配置:

[global]
workgroup = sandman
server string = UbuntuDesktop
netbios name = srvr1
security = share
map to guest = bad user
name resolve order = bcast host
dns proxy = no
username map = /etc/samba/smbusers
; encrypt passwords = yes
guest ok = yes
; guest account = nobody
printcap name = cups
printing = cups

[Videos]
comment = Videos and Movies
path = /home/harvey/Videos
writeable = yes
; browseable = yes
guest ok = yes

[Public]
comment = Public folder.
path = /home/harvey/Public
writeable = yes
; browseable = yes
guest ok = yes

[Pictures]
comment = Photos
path = /home/harvey/Pictures
writeable = yes
; browseable = yes
guest ok = yes

[Music]
comment = Music
path = /home/harvey/Music
writeable = yes
; browseable = yes
guest ok = yes

[printers]
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
guest account = smbprint
path = /home/smbprint 

答案1

我在尝试共享连接到我的 Ubuntu 桌面的佳能打印机时遇到了很多问题,与你所说的类似。作业看起来像是可以打印,但从来没有打印过。最简单的解决方案是安装 Google Chrome 并使用其云打印机功能。然后在 Windows 端有一个 Google Cloud 打印机应用程序。从我的 Android 设备打印也很好用。在我的 smb.conf 文件中,我注释掉了所有对打印机的引用,这样它们就不会显示在 Windows PC 上。

相关内容