LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-06-2009, 07:11 AM   #1
Arancaytar
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 1
Printing to a Windows shared printer from cups


There is a Windows PC in our home network (workgroup WINHOME) named BEETLE, and it has a shared printer names HPLASERJ. I can print to this printer over the network when I have booted Windows, but have so far been unable to connect to it from my Ubuntu 8.10 system (cups package version is 1.3.9-2).

When I open the printer configuration dialog, I assume the option I need is "Windows Printer via SAMBA". When browsing the available printer shares, I find the right workgroup (WINHOME) and even the right Windows PC (BEETLE), but below the PC there are no printers listed.

Manually entering the path WINHOME/BEETLE/HPLASERJ as the printer share will also fail: The "Verify" button brings up an alert that "this print share is not accessible".

Ignoring this warning and selecting the printer driver in the following dialog will cause a new printer to be added, but printing to this printer will repeatedly prompt me for my username and password on this Windows PC, even after I entered it correctly.

Do I need to install or configure anything on the Windows print server that I wouldn't need for printing from another Windows PC? I'm not aware of any SAMBA service enabled or running on the print server, if that is required. My user account on the server is also a user with "restricted access", but since I can print to it from another Windows machine, that shouldn't be the problem... or could it?
 
Old 05-07-2009, 03:53 PM   #2
billairds
LQ Newbie
 
Registered: Feb 2007
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by Arancaytar View Post
There is a Windows PC in our home network (workgroup WINHOME) named BEETLE, and it has a shared printer names HPLASERJ. I can print to this printer over the network when I have booted Windows, but have so far been unable to connect to it from my Ubuntu 8.10 system (cups package version is 1.3.9-2).

When I open the printer configuration dialog, I assume the option I need is "Windows Printer via SAMBA". When browsing the available printer shares, I find the right workgroup (WINHOME) and even the right Windows PC (BEETLE), but below the PC there are no printers listed.

Manually entering the path WINHOME/BEETLE/HPLASERJ as the printer share will also fail: The "Verify" button brings up an alert that "this print share is not accessible".

Ignoring this warning and selecting the printer driver in the following dialog will cause a new printer to be added, but printing to this printer will repeatedly prompt me for my username and password on this Windows PC, even after I entered it correctly.

Do I need to install or configure anything on the Windows print server that I wouldn't need for printing from another Windows PC? I'm not aware of any SAMBA service enabled or running on the print server, if that is required. My user account on the server is also a user with "restricted access", but since I can print to it from another Windows machine, that shouldn't be the problem... or could it?
Hi,

I had the same problem and this what you need to do;
First get the cups driver for your printer.
verify cups and lpd are installed. usually this is done by default.
then you need to open a terminal as root to run the following syntax.

1) sudo aa-complain cupsd
2) sudo mkdir /usr/share/cups/model
3) ln -s /etc/init.d/cupsys /etc/init.d/lpd
4) mkdir /var/spool/lpd ( this is required if folder does not exist)

verify you have psutils installed.

make sure the printer is on.

Install LPR driver and cupswrapper driver

5) dpkg -i --force-all --force-architecture (lpr-drivername)
6) dpkg -i --force-all --force-architecture (cupswrapper-drivername)

7) Command (for dpkg) : dpkg -l | grep (your priner here)
This to check the drivers installed

8) Open a web browser and go to "http://localhost:631/printers".
Click "Modify Printer" and set following parameters.

- "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" for Device
- lpd://(Your printer's IP address)/ binary_p1 for Device URI
- your printer here for Make/Manufacturer Selection
- Your printer's name for Model/Driver Selection

the above is lower case upper case sensative

do a test print

my printer is connected to a 4 port switch and any pc in the network can print to it.


hope this helps

billairds
 
  


Reply


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
Suse 11.0 printing to a Windows shared printer steve.ervin21 Suse/Novell 1 10-21-2008 12:32 PM
Printing to windows Shared Printer Kane2002 Linux - Hardware 3 01-28-2007 08:12 AM
Printing to windows shared printer carnold Suse/Novell 1 05-09-2006 07:00 AM
Printing to a Windows Shared printer rwillard Linux - Newbie 8 03-17-2005 11:05 AM
Windows printing to samba shared printer?l rohang Linux - Networking 4 09-02-2004 12:20 AM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
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