LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-28-2006, 12:56 AM   #1
rockymaxsource
Member
 
Registered: Feb 2006
Posts: 43

Rep: Reputation: 15
Question 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
 
Old 09-28-2006, 04:59 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
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
 
Old 09-28-2006, 09:40 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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
 
Old 09-29-2006, 09:23 PM   #4
rockymaxsource
Member
 
Registered: Feb 2006
Posts: 43

Original Poster
Rep: Reputation: 15
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://maxsourceasswd@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
 
Old 09-29-2006, 09:30 PM   #5
rockymaxsource
Member
 
Registered: Feb 2006
Posts: 43

Original Poster
Rep: Reputation: 15
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. 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
 
Old 10-01-2006, 05:12 PM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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.
 
Old 10-04-2006, 10:55 PM   #7
rockymaxsource
Member
 
Registered: Feb 2006
Posts: 43

Original Poster
Rep: Reputation: 15
Question

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?
 
  


Reply

Tags
printer sharing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows printer share sunlinux Linux - Networking 1 06-18-2006 12:59 AM
How to share printer with Windows? TigerLinux Suse/Novell 2 10-05-2005 10:31 AM
how can i share the printer amoung all system in LAN? malikguna Fedora 1 08-06-2004 01:51 AM
How to share files,folders and printer on a LAN ? ZhiYi Linux - Networking 2 02-15-2003 07:14 AM
I can't get Windows to share the printer! tarballedtux Linux - Networking 0 01-01-2002 08:05 PM


All times are GMT -5. The time now is 02:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration