Windows - cups-pdf on CentOS 5.4


32bit、64bit共に同一手順で問題ありませんでした。
参考にしたのはこちら
PDF出力ができるcups-pdfのインストール(CentOS)
ITサポーターズの仲間たち
4. Windows マシンとのプリンタ共有方法

cups-pdfのインストール

cups-pdf - Extension for creating pdf-Files with CUPS
から cups-pdf-2.4.6-1.el5.i386.rpm を適当な dir にDL
# ps-ax | grep -i cups でデーモンが起動されていることを確認
起動しているとcupsに自動登録されますが、停止している場合手動
で追加しないといけません(めんどいです)

# rpm -Uhv cups-pdf-2.4.6-1.el5.i386.rpm
# vi /etc/cups/mime.convs
以下の行をコメントアウト
#application/octet-stream application/vnd.cups-raw 0 -

# service cups restart
cups を停止中: [ OK ]
cups を起動中: [ OK ]

でデフォルトで ~usr/Desktop に出力されます(FFから印刷して確認)

samba の設定

Windowsからの印刷には smbprint ユーザーを使います
# adduser -u uid -g gid -d home_dir smbprint
# passwd smbprint でパスワードの設定

以下 CentOSのhost名はcentで行っています
# vi /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
interfaces = lo eth0 192.168.X.XX/24
hosts allow = 127. 192.168.X.
printcap name = cups
printing = cups
netbios name = CENT

security = user
passdb backend = tdbsam

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

# service smb restart
SMB サービスを停止中: [ OK ]
NMB サービスを停止中: [ OK ]
SMB サービスを起動中: [ OK ]
NMB サービスを起動中: [ OK ]

# pdbedit -a smbprint
new password:
retype new password:
Unix username: smbprint
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1735381148-2528900510-1358264319-1000
Primary Group SID: S-1-5-21-1735381148-2528900510-1358264319-513
Full Name:
Home Directory: \\cent\smbprint
HomeDir Drive:
Logon Script:
Profile Path: \\cent\smbprint\profile
Domain: CENT
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 日, 21 3月 2010 11:27:27 JST
Password can change: 日, 21 3月 2010 11:27:27 JST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Windows側から samba経由で smbprint ユーザーでアクセス出来る事を確認

Cups-PDF をダブルクリックすると プリンターのインストール画面が表示
されます。
XPの場合は「HP PaontJet XL300 v2011.112」を指定するといいようです

プリンタのプロパティ->印刷設定->詳細オプション で
TrueType フォント-> ソフトフォントとしてダウンロード に変更(した方が嬉しいはず)

テストページの印刷を行うと ~smbprint/Desktop 上におなじみの書式で印刷されます