Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1100372
  • 博文数量: 286
  • 博客积分: 3124
  • 博客等级: 中校
  • 技术积分: 5186
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 23:42
个人简介

Bomi

文章存档

2015年(1)

2013年(1)

2012年(281)

2008年(3)

分类: 系统运维

2012-02-05 00:33:54

我需要在Solaris 安装Windows Server上USB接口的HP LaserJet P2015打印机
linux 下有HPLIP,Solaris 下除了用Samba外还有没有其他方法?
因为公司有HP JetDirect打印服务器,所一尝试了下,但是好像行不通!
Solaris 10 本身已经支持许多型号的打印机,但是05/08版内尚未包含我要使用的这款打印机!
首先从HP网站下载和型号匹配的
这里我下载:HP LaserJet P2015 printer 对应的文件: net_lj2015.sh.Z
1.解压缩下载得到的Modelscripts文件
//我下载的文件存放在/export/home/oracle 目录下
$ cd /export/home/oracle
$ ls
Desktop      nocop.dmp      oraInventory
Documents    net_lj2015.sh.Z
$su
口令:
# uncompress net_lj2015.sh.Z
# ls
Desktop   Documents   ncop.dmp   net_lj2015.sh    oraInventory
#
2.更改Modelscripts脚本文件的属性,使其具有可执行权限
# chmod 775 net_lj2015.sh
**行脚步
# ./net_lj2015.sh
x - 2938.cfg [compressed]
x - installer [compressed]
x - net_lj2015 [compressed]
x - net_lj2015.1 [compressed]
        These model script. files cannot be installed completely witho安装ut
        the software package of HP JetDirect Printer Installer for UNIX
        being installed first.
        Please check our website

        for more details on this software package.
安装程序提示必须首先安装HP JetDirect Printer Installer for UNIX
通过google 搜索找到!
软件相关信息:
HP JetDirect Printer Installer for UNIX version E.10.34.
Release Date: 2002-08-05           Version: E.10.34
Operating system(s):    Solaris 2.6, Solaris 7, Solaris 8, Solaris 9
Download file size:      3.12M  
同样我将下载文件保存在/export/home/oracle目录下
# ls
Desktop        SOLe134.PKG    net_lj2015.sh
Documents      ncop.dmp       oraInventory
# pkgadd -d SOLe134.PKG
The following packages are available:
  1  HPNPL     JetDirect Printer Installer for Unix
               (sparc) E.10.34
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
处理软件包范例来自
JetDirect Printer Installer for Unix(sparc) E.10.34
(c)Copyright Hewlett-Packard Company 1991, 1992, 1993.  All Rights Reserved.
(c)Copyright 1983 Regents of the University of California
(c)Copyright 1988, 1989 by Carnegie Mellon University
                         RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. ** is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.
                         Hewlett-Packard Company
                         3000 Hanover Street
                         Palo Alto, CA 94304 U.S.A.
Where should HPNPL be installed?
( for /opt/hpnpl) [?,q]
HPNPL will be installed in /opt/hpnpl.
Install BOOTP subsystem? (default=y) [y,n,?,q] y
____________________________________________________________________________
Please configure the sub-packages you would like to install.
    ---------------------------------------------------
    0.          Done altering installation configuration
    1. [ On  ]  HPNPF
    2. [ Off ]  CONVERT(from hpnp to hpnpl)
    ?.          Help
    ---------------------------------------------------
Select a number to toggle an installation option.
When done select 0.  Select ? for help information: 1
____________________________________________________________________________
Please configure the sub-packages you would like to install.
    ---------------------------------------------------
    0.          Done altering installation configuration
    1. [ Off ]  HPNPF
    2. [ Off ]  CONVERT(from hpnp to hpnpl)
    ?.          Help
    ---------------------------------------------------
Select a number to toggle an installation option.
When done select 0.  Select ? for help information: ?
  HPNPF ...... Enables network printing and administration from this host.
  CONVERT .... Converts JetAdmin created queues to JPIU
               (i.e from /opt/hpnp to /opt/hpnpl). You can also convert
               JetAdmin created queues, after installing the JPIU software
               by executing "transferqueue local". For more information
               see man page of transferqueue.
____________________________________________________________________________
Please configure the sub-packages you would like to install.
    ---------------------------------------------------
    0.          Done altering installation configuration
    1. [ Off ]  HPNPF
    2. [ Off ]  CONVERT(from hpnp to hpnpl)
    ?.          Help
    ---------------------------------------------------
Select a number to toggle an installation option.
When done select 0.  Select ? for help information: 1
____________________________________________________________________________
Please configure the sub-packages you would like to install.
    ---------------------------------------------------
    0.          Done altering installation configuration
    1. [ On  ]  HPNPF
    2. [ Off ]  CONVERT(from hpnp to hpnpl)
    ?.          Help
    ---------------------------------------------------
Select a number to toggle an installation option.
When done select 0.  Select ? for help information: 2
____________________________________________________________________________
Please configure the sub-packages you would like to install.
    ---------------------------------------------------
    0.          Done altering installation configuration
    1. [ On  ]  HPNPF
    2. [ On  ]  CONVERT(from hpnp to hpnpl)
    ?.          Help
    ---------------------------------------------------
Select a number to toggle an installation option.
When done select 0.  Select ? for help information: 0
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
下列文件已经被安装到系统中,并正在被其它的软件包所使用:
  /usr <只改动属性>
  /usr/bin <只改动属性>
你是否要安装这些有冲突的文件 [y,n,?,q] y
## 检查setuid/setgid程序。
在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.
要继续安装 [y,n,?] y
安装JetDirect Printer Installer for Unix成为
## 执行预安装正文
##正在安装1部分- 1.
/opt/hpnpl/INSTALL.UNX
/opt/hpnpl/README.UNX
/opt/hpnpl/TRANSFER.UNX
/opt/hpnpl/copyright
/opt/hpnpl/help-html/Hpjpiu.html
/opt/hpnpl/help-html/cell.gif
/opt/hpnpl/help-html/hplogo.gif
/opt/hpnpl/tmp/readme
/opt/hpnpl/version
[ 确认类别 ]
/opt/hpnpl/etc/hpnpsnmp
/opt/hpnpl/lib/hpnplib.so
/opt/hpnpl/lib/hpnpsnmp1.so
/opt/hpnpl/lib/hpnpsnmp2.so
/opt/hpnpl/lib/libsnmp.so
/opt/hpnpl/man/man4/hpnpsnmp.4
[ 确认类别 ]
/opt/hpnpl/admin/InstallModelScript
/opt/hpnpl/admin/PJLpasswdf
/opt/hpnpl/admin/PrinterList
。。。。。。
/opt/hpnpl/testfiles/hpgl2
/opt/hpnpl/testfiles/ps
/opt/hpnpl/testfiles/text
[ 确认类别 ]
## 执行预安装正文
Installing /etc/bootptab
Note : The file  /etc/bootptab  will not get deleted when Uninstalling
JPIU Software.
The bootps entry:
        bootps       dgram  udp wait   root /usr/sbin/bootpd   bootpd
has been added to /etc/inetd.conf.
Signalled inetd to re-read /etc/inetd.conf.
Updating Software Database.
NOTE:  You may wish to add /opt/hpnpl/man to MANPATH in
       /etc/profile, etc.
NOTE:  You may wish to add /opt/hpnpl/bin to PATH in
       /etc/profile, etc.
NOTE:  You may wish to add /opt/hpnpl/lib to LD_LIBRARY_PATH in
       /etc/profile, etc.
Converting model scripts in /etc/lp/interfaces from /opt/hpnp to
/opt/hpnpl.  Old model scripts will be saved in /tmp.
安装成功
再次尝试更改Modelscripts脚本
# ls
Desktop        SOLe134.PKG    net_lj2015.sh
Documents      ncop.dmp       oraInventory
# ./net_lj2015.sh
x - 2938.cfg [compressed]
x - installer [compressed]
x - net_lj2015 [compressed]
x - net_lj2015.1 [compressed]
cp:不能创建 /etc/lp/model/hpnpl/net_lj2015: 无此文件或目录
chmod: 警告: 不能访问 /etc/lp/model/hpnpl/net_lj2015
chown: /etc/lp/model/hpnpl/net_lj2015: 无此文件或目录
检测目录:
# cd /etc/lp
# ls
alerts      fd          interfaces  ppd         pwheels
classes     forms       logs        printers
的确没有目录 model/hpnpl
??Why
手工建目录:
# mkdir model
# cd model
# mkdir hpnpl
再次尝试更改Modelscripts脚本
# cd /export/home/oracle
# ls
Desktop        SOLe134.PKG    net_lj2015.sh
Documents      ncop.dmp       oraInventory
# ./net_lj2015.sh
x - 2938.cfg [compressed]
x - installer [compressed]
x - net_lj2015 [compressed]
x - net_lj2015.1 [compressed]
The installation is now complete!
#
还在尝试中!

[ 本帖最后由 云杉上的蝴蝶 于 2008-8-2 04:56 编辑 ]

阅读(933) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~