この設定は、SMB,LPR,IPP,JetDirectのすべての時に行う必要があります。
Windowsクライアントからは、プリンタが理解できる言語で出力されます。
MacOSXがそのデータを受けた時、そのままプリンタに流す為には、
以下のように設定を変更する必要があります。
これは、FreeBSD+CUPS(Windows2000から印刷)で作業したことと同じです。
方法は2つあります。
- /etc/cups/ の mime.types と mime.convs を変更する。
- /etc/cups/ に raw.types と raw.convs を追加する。
mime.types/mime.convsを変更する方法
/etc/cups/mime.convs を sudo vi で開きます。
ibg4:/etc/cups kenz$ pwd
/etc/cups
ibg4:/etc/cups kenz$ sudo vi mime.convs
一番下にある以下の設定を有効にします。
ibg4:/etc/cups kenz$ tail mime.convs
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#
#application/octet-stream application/vnd.cups-raw 0 -
application/octet-stream application/vnd.cups-raw 0 -
#
# End of "$Id: mime.convs,v 1.1.1.8 2003/05/14 05:23:46 jlovell Exp $".
#
今度は、mime.types を開きます。
ibg4:/etc/cups kenz$ sudo vi mime.types
こちらも一番下の設定を有効にします。
ibg4:/etc/cups kenz$ tail mime.types
# filter line in mime.convs to allow raw file printing without the
# -oraw option.
#
#application/octet-stream
application/octet-stream
#
# End of "$Id: mime.types,v 1.1.1.9 2003/04/11 21:07:16 jlovell Exp $".
#
変更した設定をCUPSに反映させるために、cupsd を再起動します。
ibg4:/etc/cups kenz$ sudo /System/Library/StartupItems/PrintingServices/PrintingServices restart
Restarting printing services
ibg4:/etc/cups kenz$
これでOK。
raw.types/raw.convsを追加する方法
(2005/12/06追加)
これは、mime.types と mime.convs を変更しないで、raw に関するところだけを別のファイルとして追加する方法です。
ibg4:/etc/cups kenz$ pwd
/etc/cups
ibg4:/etc/cups kenz$ ls *.types *.convs
apple.convs command.types mime.types
apple.types mime.convs pstoraster.convs
ibg4:/etc/cups kenz$
以下のような2つのファイルを作成します。
ibg4:/etc/cups kenz$ cat raw.convs
application/octet-stream application/vnd.cups-raw 0 -
ibg4:/etc/cups kenz$ cat raw.types
application/octet-stream
ibg4:/etc/cups kenz$ ls -la raw.*
-rw-r--r-- 1 root lp 75 Dec 6 21:35 raw.convs
-rw-r--r-- 1 root lp 26 Dec 6 21:37 raw.types
ibg4:/etc/cups kenz$
変更した設定をCUPSに反映させるために、cupsd を再起動します。
ibg4:/etc/cups kenz$ sudo /System/Library/StartupItems/PrintingServices/PrintingServices restart
Restarting printing services
ibg4:/etc/cups kenz$
これでOK。