SAMBA+CUPS+非postscript印表機 (已解決) - Linux

Franklin avatar
By Franklin
at 2009-08-09T18:04

Table of Contents



自問自答.........

分享一下解決方法........


我被預設的設定檔陰了.....


預設的/etc/samba/smb.conf

裡面有一行

cups options = raw

...........把他註解掉就好了

也就是改成

; cups options = raw


真是太蠢了.........


※ 引述《x4base (RU~)》之銘言:
: 請問一下
: 我的作業系統是Fedora 10 (64-bit)
: 我安裝了
: samba-3.2.11
: cups-1:1.3.10-5
: hplip-2.8.12-6
: ghostscript-8.63-6
: 設定大多是參考鳥哥的網站
: http://linux.vbird.org/linux_server/0370samba.php#server_printer
: windows postscript驅動也是用上面網頁提供的
: (ps5ui.dll, pscript5.dll, pscript.hlp, pscript.ntf)
: cups的驅動則是用cups-windows-1:6.0-1(i386)
: (cups-windows-6.0-1.i386.rpm from http://www.cups.org/software.php
: (cups6.inf. cups6.ini, cupsps6.dll, cupsui6.dll)
: (不知道用i386版本是不是正確)
: 我想分享印表機給室友的Windows XP (32-bit)
: 我的印表機是 HP PSC 2210 多功能事務機
: http://tinyurl.com/l9r4gg
: 印表機的驅動是Fedora自動幫我裝好的
: 本機列印完全正常
: 從windows端可以新增印表機
: 但是
: 當我在記事上打「123」測試列印
: 印出來的結果卻是一整張
: %!PS-Adobe-3.0
: %cupsJobTicket: job-hold-until=no-hold
: %cupsJobTicket: job-sheets=n
: %%Title: <AE4CA474A5D1A8BD2DB25CA5FAB07BB07B>
: %%Creator> PScripts5.dll Version 5.2
: .........
: 滿滿的指令
: 我自己是猜可能是PostScript指令
: 而且我猜我的印表機應該也不是支援PostScript的機型
: 但我本機列印非常正常
: 表示postScript interpreter應該存在吧?
: 為什麼透過samba結果卻不一樣呢
: 請問我應該調整哪邊的設定
: 或者打什麼關鍵字或參考什麼文件
: 謝謝!
: 印出來的內容長得像這樣
: %!PS-Adobe-3.0
: %%Title: <A5BCA952A657202D20B04FA8C6A5BB>
: %%Creator: PScript5.dll Version 5.2
: %%CreationDate: 8/9/2009 1:59:23
: %%BoundingBox: (atend)
: %%Pages: (atend)
: %%Orientation: Portrait
: %%PageOrder: Ascend
: %%DocumentNeededResources: (atend)
: %%DocumentSuppliedResources: (atend)
: %%DocumentData: Clean7Bit
: %%TargetDevice: (PSC 2200 Series) (3010.000) 550
: %%LanguageLevel: 3
: %%EndComments
: %%BeginDefaults
: %%PageBoundingBox: 18 36 594 783
: %%ViewingOrientation: 1 0 0 1
: %%EndDefaults
: %%BeginProlog
: %%BeginResource: file Pscript_WinNT_ErrorHandler 5.0 0
: /currentpacking where{pop/oldpack currentpacking def/setpacking where{pop
: false
: setpacking}if}if/$brkpage 64 dict def $brkpage begin/prnt{dup type/stringtype
: ne{=string cvs}if dup length 6 mul/tx exch def/ty 10 def currentpoint/toy
: exch
: def/tox exch def 1 setgray newpath tox toy 2 sub moveto 0 ty rlineto tx 0
: rlineto 0 ty neg rlineto closepath fill tox toy moveto 0 setgray show}bind
: def
: /nl{currentpoint exch pop lmargin exch moveto 0 -10 rmoveto}def/=={/cp 0 def
: typeprint nl}def/typeprint{dup type exec}readonly def/lmargin 72 def/rmargin
: 72
: def/tprint{dup length cp add rmargin gt{nl/cp 0 def}if dup length cp add/cp
: ................
: Pscript_WinNT_ErrorHandler會出現
: 是表示我的驅動程式是錯的嗎?

--
Tags: Linux

All Comments

openSUSE 11.1 網路設定的問題

Anonymous avatar
By Anonymous
at 2009-08-09T17:44
第一次玩 linux系統 使用的是openSUSE11.1 電腦有兩張網卡 不知道 網路設定是哪裡出了問題 要抓套件 都沒辦法抓 網頁的話 有時候可以連 有時候很慢 有時候是沒辦法連.. ping www.google.com.tw 正常 網路上查了 相關網路設定東西 Gateway DNS ...

急!一顆硬碟 多個linux的問題

Enid avatar
By Enid
at 2009-08-09T17:16
我是LINUX的新手 最近想把Fedora 5跟11灌在一起(還有XP,共三個作業系統) 也是一直出現錯誤! 也重灌了很多遍! (反正就是分割表讀不到的問題,所以後安裝的作業系統就不能安裝atat?) 現在 我的主要分割有XP、Fedora 11(的and#34;/and#34;)、SWAP 想 ...

關於linux(尤其是ubuntu)聲效的修理方法

Necoo avatar
By Necoo
at 2009-08-09T17:14
這是我長久以來在linux上修理音效所得到的結果, 對於高手應該比較沒有參考價值,我也只玩了將近兩年的open OS, 所以還真的蠻菜的....... http://numbertheory-mpdk.blogspot.com/2009/08/how-to-drive-your-sound.html ...

網頁伺服器的正解和反解析?

Mia avatar
By Mia
at 2009-08-09T16:03
一般我們在架設網頁伺服器時候,在DNS會宣告正解和反解。 我在網頁上看過有些網站都只有數字ex:http://192.211.444.21之類的 而沒有英文網址。 可以請問這樣的架設會不會有什麼問題出現?? - ...

關於將fedora載入usb

Valerie avatar
By Valerie
at 2009-08-09T12:55
※ 引述《nothinkmuch (回復)》之銘言: : 我用liveusb-creator-3.7.1製作 : ISO檔是 Fedora-11-i686-Live : 但每當製作到99%就會出現failed 可能是你抓的iso抓壞了,可用checksum去檢查 但我記得liveusb本身就會檢查checks ...