Ubuntu から Windows の共有プリンタを使う

$ sudo apt-get install cups

$ sudo apt-get install samba

$ sudo apt-get install samba-client

$ sudo vi /etc/cups/cups.conf

# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.6.1:631
Listen /var/run/cups/cups.sock

# Restrict access to the server...

Order deny,allow
Allow From 192.168.6.6

# Restrict access to the admin pages...

Order deny,allow
Allow From 192.168.6.6

$ sudo /etc/init.d/cups restart

http://192.168.6.1:631 にアクセス

管理 プリンタ追加をクリック
Windows Printer via SAMBA を選択して「続ける」
「smb://smb://WORKGROUP;USER:PASSWORD@host/printer_name」を入力して「続ける」
※WORKGROUPは不要の場合もあり。
新しいプリンタ名に任意入力
メーカーで「Generic」を選択
モデルで「Generic PostScript Printer(en)」を選択
「デフォルトオプションの設定」をクリック

$ sudo vi /etc/samba/smb.conf
上段:変更前 下段:変更後

# load printers = yes
load printers = yes

        • -

; printcap name = /etc/printcap
printcap name = /etc/printcap

        • -

; printing = cups
printing = cups

$ sudo /etc/init.d/smbd restart