LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Share LAN Windows XP printer? (https://www.linuxquestions.org/questions/linux-hardware-18/share-lan-windows-xp-printer-487600/)

rockymaxsource 09-27-2006 11:56 PM

Share LAN Windows XP printer?
 
Hey,

In my office, we have a Windows XP machine serves as file server and there's a SHARP AR158S printer connect to it. All of my co-workers use printer through the net work. I'm the only person usign Debian. I set up the samba and did the configuration and be able to see the shared folders using smb://server/. By the way the printer is shared on the LAN.

I'm using KDE. I went to Control Center->peripherals->printer. There are 2 options for network printer. One is network
printer(TCP). Another is newwork printer w/Ipp(IPP/HTTP)

In both options I entered smb://server/ppp(my windows XP working
printer name) as printer address and In the subnetwork field I input
192.168.1. after that I hit scan but it tells me:
Code:

"you are about to scan a subnet(192.168.1.*)that does not correspond
to current subnet of this computer (127.0.0.*) .Do you want to scan
the specified subnet anyway?"

In addition, I tried the following:

Code:

LIJIANG:/home/lover# lpadmin -p serverPrinter -h 192.168.1.14 -i -v smb://server/ppp -P /root/ppp.ppd
enable serberPrinter
accept serberPrinter
lpadmin -d serberPrinter

lpadmin: Unable to connect to server: Connection timed out
LIJIANG:/home/lover# enable serberPrinter
bash: enable: serberPrinter: not a shell builtin
LIJIANG:/home/lover# accept serberPrinter
accept: Operation failed: client-error-not-found
LIJIANG:/home/lover# lpadmin -d serberPrinter
lpadmin: set-default failed: client-error-not-found



It seems that my debian network configuration is wrong? Can any of you
help me on this please?

Thanks,
Rocky

odcheck 09-28-2006 03:59 AM

You can use cups,
therefor check if its installed.
and then you have to link like this
Code:

ln -s `which smbspool` /usr/lib/cups/backend/smb
Next you can use http://localhost:631/admin to add your printer
add printer
Windows printer via SAMBA (as device)
smb://134.130.182.1/sharename
Raw

and if you want all those nice special functions from the print you've to use a PPD file.

But in case that you use debian check if with dpkg -l apsfilter if apsfilter is installed. If not then apt-get install apsfilter

farslayer 09-28-2006 08:40 AM

My suggestion would be to bypass the windows server entirely if there is a network interface on the copier itself. In which case the Actual printserver is built into the Sharp machine, and will accept print jobs submitted via lpr.
You will just need the IP address of the Copier/Printer and the lpr port name. Sharp was always fond of using PORT1 as the lpr port name, but I cannot gaurentee that is correct for that particular model.

Then grab the PS ppd for that printer from Sharp
(MAC OSX uses PS ppd files just like linux does.. you just need to un-stuff the file to use it..)
http://www.sharpusa.com/products/Typ...230,18,00.html

rockymaxsource 09-29-2006 08:23 PM

I did below as root:

##---------snap begin------------------#
LIJIANG:/home/lover# smbclient -L server -U Maxsource
Password:
Domain=[SERVER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
.... ...
print$ Disk Printer Drivers
SHARPAR- Printer ppp
... ... ...
AutoMicr Printer Auto Microsoft Office Document Image
Writer on BENF
SHARPAR-.2 Printer SHARP AR-158S (Copy 1)
Domain=[SERVER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
##-------------------snap end---------------------##

/usr/sbin/lpinfo -v shows me the following infomation

#-----------snap begin------------#
network socket
network http
network ipp
network lpd
direct parallel:/dev/unknown-parallel0
direct usb:/dev/usb/lp0
...
direct usb:/dev/usb/lp15
network smb
#---------snap end-----------#

After that I did
LIJIANG:/home/lover# /usr/sbin/lpadmin -p serverPrinter -v
smb://maxsource:passwd@192.168.1.14/SHARPAR- -P /root/ppp.ppd
lpadmin: add-printer (set model) failed: client-error-not-found

I went to http://localhost:631/admin and under Printers I can see
serverPrinter is there. I started the printer and hit "Print Test
Page". But the test page never get printed out. I Configure the Printer but the web-browser tells me "client-error-not-possible". After that I did Modify the printer but I can not find model driver for my WIndows XP printer SHARP AR-158S. I select Raw as well but the printer status is "Idle".

The printer's diver is already on Windowx XP server. Do I still need to install the linux driver on my Debian box? I searched in
http://www.linuxprinting.org and google, but can not find and linux driver for SHARP 158S driver. Does this means I can not share the printer with my co-workers, simply because I use the different System?

Can any of you help me please?

Thanks,
Rocky

rockymaxsource 09-29-2006 08:30 PM

Quote:

Originally Posted by farslayer
My suggestion would be to bypass the windows server entirely if there is a network interface on the copier itself. In which case the Actual printserver is built into the Sharp machine, and will accept print jobs submitted via lpr.
You will just need the IP address of the Copier/Printer and the lpr port name. Sharp was always fond of using PORT1 as the lpr port name, but I cannot gaurentee that is correct for that particular model.

Then grab the PS ppd for that printer from Sharp
(MAC OSX uses PS ppd files just like linux does.. you just need to un-stuff the file to use it..)
http://www.sharpusa.com/products/Typ...230,18,00.html

Please bear me as an newbie.:newbie: Right now the printer is plugged into an usb port of windows XP server. How can I configure the printer has network interface? Or maybe it has been set up that way, How can I configure my debian machine to use the printer please? Do I still go to localhost:631 or just input some command line in the console?

Thanks a lot!
Rocky

farslayer 10-01-2006 04:12 PM

If the printer is conncted to a PC with a USB cable then it is not a NETWORK attached printer.. a network attached printer would have a Network cable connected to it and would not eb connected directly to another PC..

so looks like that option is out. I guess your company didn't buy the Network printerserver option.

rockymaxsource 10-04-2006 09:55 PM

Quote:

Originally Posted by odcheck
You can use cups,
therefor check if its installed.
and then you have to link like this
Code:

ln -s `which smbspool` /usr/lib/cups/backend/smb
Next you can use http://localhost:631/admin to add your printer
add printer
Windows printer via SAMBA (as device)
smb://134.130.182.1/sharename
Raw

and if you want all those nice special functions from the print you've to use a PPD file.

But in case that you use debian check if with dpkg -l apsfilter if apsfilter is installed. If not then apt-get install apsfilter

Hey Thank you very much for your reply!

I followed your instruction. The problem is When I hit the "Print The Test" button, the Printer State turned to "stopped stopped, accepting jobs." automatically on http://localhost:631/printers and I could not start the printer unless I cancel the job.

In addition to that I tried to add a class with the same name as the printer printer I select "serverPrinter" as the members but it throw me this error"Error: client-error-not-possible" I set "FileDevice" to "yes" in cupsd.conf as well. Can any of you help me please?


All times are GMT -5. The time now is 01:35 AM.