Link to home
Start Free TrialLog in
Avatar of vzhang
vzhang

asked on

share printer between NT and UNIX

Does anyone know how to share a printer between NT and UNIX machine? any help will be appreciated!

-cheers
-victor
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Neither UNIX nor NT make any diffence where a remote printer resides. Just define it as "remote", then you can use it as usual from the client.
Avatar of vzhang
vzhang

ASKER

ahoffmann can you be more specific about how to set up the remote printer for both NT and UNIX, i have no idea what i have to do to accomplish it.  Thanks!
which one should be server, which client?
What's your UNIX flavior?
Avatar of vzhang

ASKER

my problem is that all the NT machines(about 6) are attached to one printer, I have 2 sun solaris machine I want to connect to that same printer as well.   thank you for you help!

-best regards
-victor
Try this link for the Microsoft NT "Services For Unix" add in pack:
http://www.microsoft.com/NTServer/nts/exec/overview/sfu.asp 


on your NT system, you need to determine how you are connecting to that one printer, and how it's connectted to the network..

if it's attached to one of the NT systems' paraellel port, it'll be harder to get to from the unix systems..  

if the printer is direct one hte network, then it's probably quite easy to build the printcap on the unix system..

let's assume the latter


try something like


printer-name:
   :sd=/var/spool/lpd/printer-name:\
   :mx#0:\
   :sh:\
   :rm:printer-ip-address-or-name:\
   :rp:\
   :if=/var/spool/lpd/printer-name/filter:  




in the former case, ie. if the printer is shared by being connectted to a parallel port, your printcap entry on UNIX looks something like this

 printer-name:
   :sd=/var/spool/lpd/printer-name:\
   :mx#0:\
   :sh:\
   :rm:nt-workstation-ip-address-or-name:\
   :rp:shared-printer-name\
   :if=/var/spool/lpd/printer-name/filter:  


and you need to ensure your UNIX system has Samba (or the like) capability...


there are other permutations too.. but without knowing, these are probably the most common..



good luck




> if it's attached to one of the NT systems' paraellel port, it'll be harder to get to from the unix systems..
NO. Just share the printer, and you can use it from anywhere (if you have installed M$'s "Simple TCP/IP services").

Avatar of vzhang

ASKER

I am sorry tfabian, i really want to give you the points. That is why I took sometime to follow your suggestion to solve my problem.  i am using a SunSolaris Machine, there is no such file as /var/spool/lpd/.  why i tried to connect to a remote printer, i have to specify the print server and remote printer name.  the print server is used for NT.
For the SunSolaris machine, in order for me to set up the remote printer, first i have to type the command below

# lpsystem -t s5 printServerName
(I have to specify the system type is either bsd or s5, but  print server is used for NT)

i really don't know what I suppose to do. Any suggestion are greatly appreciated. thanks in advance!

but how is the printer connectted to the NT system??


Avatar of vzhang

ASKER

hey tfabia, all NT workstation are connect to remote printer. thanks!

-cheers
-victor
but how is the printer connectted to the network??

is it connected to a parellel port on one of the NT machines??

does it have a JetDirect Card in it??

or something else??



Avatar of vzhang

ASKER

printer connected is connect to remote printer and control by the NT server, there is a JetDirect Card in the remote printer. Thanks!

ASKER CERTIFIED SOLUTION
Avatar of tfabian
tfabian

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vzhang

ASKER

thank you for the answer tfabian, but i am using the Sun Solaris, there is not such file or directory as /etc/printcap. so what file i have to modify in the  Sun Solaris machine?  Lastly,  do i assign the IP address of my computer to the JETDIRECT card? thanks!


no.. the JETDIRECT CARD needs an ip address of it's own..

/etc/printcap assumes that you're using the lpr style of printing..

with lp, you need to use the enable and accept commands on new print queues I think.. it's been awhile since I've done it.. and you need to use lpstat, lpsched, and the other lp commands..  again, I haven't done it in a while..  so I would need to check up on the exact instructions in the man pages..

that'll take me a bit of time..

good luck


I just did a quick check in the man pages..

lpset to setup printers under lp

/etc/printers.conf is the printer database.. but they tell you to use lpset to create entries in it..

best advice now, read your man pages, and route printouts to the ip address you assign to the jetdirect card..


I've got a load of work ahead of me, and will be out of town for a number of weeks.. so if you have questions, I might not get to them quickly..