Mac 関係覚え書き

ログについて

page_log

/var/log/cups/page_log というファイルがある.

/etc/cups/cupsd.conf に

# PageLog: the page log file; if this does not start with a leading /
# then it is assumed to be relative to ServerRoot.  By default set to
# "/private/var/log/cups/page_log"
#
# You can also use the special name "syslog" to send the output to the
# syslog file or daemon.
#

#PageLog /private/var/log/cups/page_log

と定義されていて,

PageLog syslog

とすることで, syslog(や syslog サーバ)に飛ばせる. (facility は lpr -> ex. lpr.info など)

でもって,その書式は, http://www.cups.org/doc-1.1/sam.html#7_12_3

The page_log File

The page_log file lists each page that is sent to a printer. Each line contains the following >information:

printer user job-id date-time page-number num-copies job-billing hostname

DeskJet root 2 [20/May/1999:19:21:05 +0000] 1 0 acme-123 localhost

The printer field contains the name of the printer that printed the page. If you send a job to a >printer class, this field will contain the name of the printer that was assigned the job.

The user field contains the name of the user (the IPP requesting-user-name attribute) that submitted >this file for printing.

The job-id field contains the job number of the page being printed. Job numbers are reset to 1 >whenever the CUPS server is started, so don't depend on this number being unique!

The date-time field contains the date and time of when the page started printing. The format of this >field is identical to the data-time field in the access_log file.

The page-number and num-pages fields contain the page number and number of copies being >printed of that page. For printer that can not produce copies on their own, the num-pages field >will always be 1.

The job-billing field contains a copy of the job-billing attribute provided with the IPP create-job or >print-job requests or "-" if none was provided.

The hostname field contains the name of the host (the IPP job-originating-host-name attribute) that >originated the print job.

と書かれている

カラープリンタのデフォルトの設定をモノクロ出力とする

Lion 以降は CUPS の Web インタフェイスが無効にされているので,

$ cupsctl WebInterface=yes

を実行.

そのあと,http://localhost:631/ へアクセスして,デフォルト設定を変える.

「プリンタ」タブから対象のプリンタを選択, 「プリンタオプションの設定」.

その中にカラーの設定があるはず(プリンタの機種(=PPD)によって異なる)

「プリンタオプションの設定」ボタンを押すと,パスワードを聞かれるので,管理者のユーザ名,パスワードを入力.

http://community.spiceworks.com/how_to/show/15962-setting-a-printer-to-default-to-b-w-in-mac-os-lion-an-mountain-lion

印刷時にパスワードを入力するようにする

Windows サーバ上にあるプリンタを登録する場合,印刷ジョブ投入時にパスワードを入力するダイアログを出すことができる. なので,前提条件として,Windows でシェアしているプリンタを出力先として登録する場合のお話.

あらかじめ対象のプリンタのドライバをインストールしておく.

$ cupsctl WebInterface=yes

として,CUPS 管理インタフェイスを有効にする.

http://localhost:631/ へ接続.

[Administration]タブから [Add Printer] ボタン

パスワードを聞かれたら,管理者のパスワードを入力する.

プロトコルを "Windows printer via spoolss" を選択. Connection: 欄に

smb://Windowsサーバのアドレス/プリンタキュー名

と入力

[Add Printer]を押す

この状態でプリンタ出力すると プリント命令後,ユーザ名とパスワードを聞いてくるようになる.


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-09-04 (木) 17:25:40