发信人: shadow (Shadow), 信区: Linux
标 题: Wine下搞定打印
发信站: BBS 水木清华站 (Sun Nov 24 22:41:21 2002), 站内
支持中文!
详细步骤请参考 Wine Documentation 中关于 Printing的内容.
简单步骤:
1. 从Wine源码包中找到 generic.ppd 文件, 编译好的rpm包中通常没有.
或者到这儿下载: ftp://jcnp.pku.edu.cn/unix/tools/wine/
把 generic.ppd 拷贝到 /etc/wine/
2. 修改 config
[spooler]
"LPT1:" = "|cat >/tmp/wine.ps"
"LPT2:" = "|lpr"
其中 "cat >/tmp/wine.ps" 表示打印到文件, lpr表示用 /etc/printcap
中的默认打印机打印.
3. 修改 ~/.wine/win.ini 添加:
[windows]
device=Wine PostScript Driver,WINEPS,LPT1:
[devices]
Wine PostScript Driver=WINEPS,LPT1:
4. 修改 ~/.wine/system.reg 添加:
[SystemCurrentControlSetControlPrintEnvironmentsWindows 4.0DriversPS Driver] 1038148770
"Configuration File"="wineps.drv"
"Data File"="<datafile?>"
"Datatype"="RAW"
"Dependent Files"=str(7):""
"Driver"="wineps.drv"
"Help File"="<helpfile?>"
"Help Files"=""
"Monitor"=""
"Version"=dword:00000400
[SystemCurrentControlSetControlPrintPrintersWine PostScript Driver] 10038147402
"Attributes"=dword:00000000
"Default Devmode"=hex:57,69,6e,65,20,50,6f,73,74,53,63,72,69,70,74,20,44,72,69, 76,65,72,00,00,00,00,00,00,00,00,00,00,0a,03,01,00,9c,00,08,00,13,7b,00,00,
01,00,09,00,9a,0b,33,08,64,00,01,00,07,00,00,00,02,00,00,00,00,00,03,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"Name"="Wine PostScript Driver"
"Port"="LPT1:"
"Print Processor"="WinPrint"
"Printer Driver"="PS Driver"
"Priority"=dword:00000000
"Start Time"=dword:00000000
"Status"=dword:00000000
"Until Time"=dword:00000000
[SystemCurrentControlSetControlPrintPrintersWine PostScript DriverPrrinterDriverData] 1001545261
"PPD File"="/etc/wine/generic.ppd"
[SystemCurrentControlSetControlPrintPrintersWine PostScript DriverPSSubTable] 1038033224
"Arial"="Helvetica"
"Courier New"="Courier"
"Helv"="Helvetica"
"Priority"=dword:00000000
"Start Time"=dword:00000000
"Status"=dword:00000000
"Until Time"=dword:00000000
[SystemCurrentControlSetControlPrintPrintersWine PostScript DriverPrrinterDriverData] 1001545261
"PPD File"="/etc/wine/generic.ppd"
[SystemCurrentControlSetControlPrintPrintersWine PostScript DriverPrrinterDriverDataFontSubTable] 1038033224
"Arial"="Helvetica"
"Courier New"="Courier"
"Helv"="Helvetica"
"Times New Roman"="Times"
--
朋友, 生活吧!
没有什么可忧愁的,
我们的生活是美好而短暂的.
我们欢乐的日子是不长的!