Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1278591
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-09 19:00:28

# The first entry is the 'preferred server' entry and is
# used whenever you do not specify a server explicitly.
#
# User USER01 login to D74_SERVER fileserver with password 'password' D74_SERVER/USER01 password
#
# User CYBER login to the CYBER_DOC fileserver with no password. 
CYBER_DOC/CYBER - 
 
To activate these mounts you type ncpmount/netware to mount D74_SERVER with a login (say) TERRY
 under /NetWare directory. Note that this entry was chosen because no fileserver was specified 
in the mount command. Had we used ncpmount -S CYBER_DOC /netware, then it would mount CYBER_DOC 
with a login of CYBER under /NetWare directory. 
 
Since the passwords for your Novell accounts are not encrypted, you should protect them by 
typing chmod 0600 $HOME/.nwclient.
 
Printing to NetWare print queues
 
Once you are comfortable accessing your files, you can try printing to a Novell print queue. 
 
Use slist to check that you can see your Novell server. 
Type pqlist -S D74_SERVER -U USER01 to list the print queues on D74_SERVER. 
Type nprint -S D74_SERVER -U USER01 -q DMPQUEUE/etc/passwd. This would print the /etc/passwd 
file to the DMPQUEUE print queue on the D74_SERVER by logging in as USER01. If you have created
 your .nwclient file, then you can use nprint -q DMPQUEUE /etc/passwd instead. The server and 
login ID are taken from the .nwclient file. Ensure that the queue names are in capitals. 
Check your Novell print queue from a DOS client using PCONSOLE. You should see a printjob 
called No Description in the DMPQUEUE. 
Printing using nprint is tedious-first it requires you to print to a file and then submit 
using nprint. You can automate this by setting up a Linux print queue, which automatically
 sends it to the NetWare print queue. The following steps are a bit confusing and reading 
about Unix printing in the Printing HOW-TO would be beneficial. 
 
The following steps tell you how to configure a NetWare print queue for Red Hat Linux. 
 
Copy Netwareprint.tgz from the CD-ROM to the /tmp directory. 
cd /;tar xzvf /tmp/netwareprint.tgz. This will replace /usr/bin/printtool, 
/usr/lib/rhs/rhs-printfilters/master-filter, and /usr/lib/rhs/rhs-printfilters/nwprint, 
with the latest versions. 
If you aren't already in X Windows, start by typing startx. 
If the graphical control panel is not visible, start it by typing control-panel & in an XTerm. 
Click the printer icon in the control panel. You should see a list of printers currently 
configured for Linux. 
Click Add. A dialog box with various supported print queues appears. Select Novell 
Netware print queue. 
In Printer name, enter nwqueue. 
Enter D74_SERVER and DMPQUEUE for the NetWare server and print queue. Ensure that the queue 
names are in capitals. 
Enter the user name and password if needed. If you have a password, you must enter it here 
because it will not prompt you for a password during printing. 
In the filter type, select the appropriate printer type. If your laser printer supports 
postscript printing, please use Postscript printer. 
Click OK and you'll see a new printer called nwqueue in the list of printers. 
Select nwqueue from the list and click Test Print from the menu. Use a DOS client with 
PCONSOLE to check the DMPQUEUE. You should see a new print job in the queue. In case it 
doesn't work, try mounting a volume from the server D74_SERVER (on which the print queue resides). 
Now your printing should be set-up. To print /etc
/passwd, type lpr -Pnwqueue /etc/passwd at your prompt. 
To print from Netscape, use the command lpr -Pnwqueue to print. Alternatively, you 
could always print to a file and use nprint to print it manually. 
Utility commands
 
Recent versions of Volker's ncpfs package include a range of user and administration 
commands. The tools are built and installed as part of the ncpfs installation process. 
Though each has a detailed manual page, here is a summary of each from the IPX-HOWTO. 
 
ncopy (Network Copy): Allows efficient file copying using a NetWare function rather 
than a copy across the network. 
nsend (Network Send): Allows you to send messages to other users on a NetWare server.
nwbols (List Bindery Objects): Allows you to list the bindery contents of a NetWare server.
nwboprops (List Properties of a Bindery Object): Allows you to view the properties of a 
NetWare bindery object.
nwfsinfo (Fileserver Information): Prints summary information about NetWare server.
nwpasswd (NetWare Password): Allows you to change NetWare users password.
nwrights (NetWare Rights): Displays the rights associated with a particular file or directory.
nwuserlist (Userlist): Lists the users currently logged into a NetWare fileserver.
pqlist (Print Queue List): Displays the contents of a NetWare print queue.
slist (Server List): Displays a list of known NetWare fileservers.
阅读(501) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~