- 论坛徽章:
- 0
|
问题较长,还请DX耐心读完,因为问题真的很急,谢谢:
我的情况是这样的:
刚刚接手的是已经运行了一段时间的 Sun solaris 2.6,是我们的application server,打印请求是从这架服务器送向位于其他各个部门的打印机,每个部门都有一个大小象modem一样的小盒子,接出一或多台打印机,这个小盒子应该就是打印服务器吧。
现在某个部门在他的打印服务器上新接出了一台打印机,我在server上是这样做的:
1。在admintool里,新加一个\'Local printer\',printer port 改成\'/dev/null\',printer type 改成 \'unknown\',file contents 改成\'any\',选中 accept print requests\' 和 \'process print requests\';以上这些都是查看已有的其他打印机的配置;
2。在 /etc/lp/printers/ fh-prt-lex02/ 中(fh-prt-lex02 是我新加的打印机名称),修改configuration 文件,如下:
Banner: off
Content types: any
Device: /dev/null
Interface: /usr/local/lib/axis/ftp_fh-prt-lex02
Printer type: unknown
Modules:
Options:
以上修改了interface后面的内容,也是参照其他打印机的相应相修改的;
3。去interface所指的路径里,拷贝一个已有的文件,并起名为ftp_fh-prt-lex02 ,内容如下:
#!/bin/sh
#
# FILE NAME: sysv/ftp_sysv
#
# This is an interface program which prints to an Axis print server using
# ftp in a System V Unix environment.
#
# (C) Copyright 1993, Axis Communications AB, LUND, SWEDEN.
#
# Version 2.1 Apr 26, 1993 RW.
#
# 1. Set \"internet_address\" to the internet address of your print server.
# If you have assigned the print server a name in /etc/hosts, you can
# use that name instead.
#
internet_address=fh-prt
#
# 2. Set \"logical_printer\" to the logical printer you wish to use on the
# print server.
#
logical_printer=pr5
#
# 4. Set \"login_name\" and \"password\" to the login name and password you
# wish to use on the print server. Normally, \"anyone\" and \"none\",
# respectively, will suffice.
#
login_name=anyone
password=none
#
# 5. If you have more than one printer queue printing via Axis print servers,
# remember that each queue must have a seperate interface program (e.g.
# copy of this file) set up accordingly.
#
# ---- main body of script begins here ---
#
#
copies=$4
shift; shift; shift; shift; shift
files=\"$*\"
i=1
while [ $i -le $copies ]
do
for file in $files
do
/bin/cat > /tmp/ftp-$$.axis << endftp
user $login_name $password
binary
put $file $logical_printer
quit
endftp
$ftp_path -n $internet_address < /tmp/ftp-$$.axis
/bin/rm /tmp/ftp-$$.axis
done
i=`expr $i + 1`
done
exit 0
4。之后,去/etc/lp/interfaces/ 中也做了类似上一步的改动;
5。accept fh-prt-lex02
6。enable fh-prt-lex02
7。lp -d fh-prt-lex02 /testprinter
得到:request id is fh-prt-lex02-2217 (1 file(s))
去打印机处查看,无反映。 : (
问题1。上述过程哪有问题,请DX 指正。
问题2。在与上述环境和操作过程相同的另一套系统中,最终得到的结果是:Queue is disabled. 请问是何原因,怎样解决呢?
问题3。问个傻问题:如果是全新的Sun Solaris8,要实现上述的环境要求,是不是先要在solaris上安装打印机驱动程序才能打印呀?
多谢指教!谢谢!
|
|