LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Printing Over Network (https://www.linuxquestions.org/questions/linux-general-1/printing-over-network-283275/)

eggoz 01-28-2005 08:19 AM

Printing Over Network
 
I have a small server running FC 2. There is an HP 3650 attached to it via USB. I can print from the server with no problem. Even just a normal user can print (lpr testfile.txt works). I should also mention the printer was setup within the gui using one of the Printer config tools. My other computer is running Suse 9.2. I have set up the printer and it gives no problems connecting to it. But when I try to print something, I get this error:
An error occurred while retrieving the printer list:

Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: the IPP request failed for an unknown reason.

I know the printer is setup and shared. Here is my samba config file:
[global]
log file = /var/log/samba/%m.log
printer = HP3650
load printers = yes
idmap gid = 16777216-33554431
socket options = TCP_NODELAY
winbind use default domain = no
template shell = /bin/false
dns proxy = no
netbios name = SambaIntelli
server string = Samba Server on IntelliStation
idmap uid = 16777216-33554431
workgroup = WORKGROUP
os level = 20
printcap name = /etc/printcap
security = user
max log size = 50
[HP3650]
guest account = root
printer = HP3650
writeable = yes
printable = yes
path = /var/spool/cups
comment = Hp Deskjet 3650
public = yes
use client driver = Yes

I have also tried it from my Windows 2000 boot and have not gotten it to work. What am I missing? Thanks.

homey 01-28-2005 10:27 AM

At the Fedora box, type printconf-gui and right click on the printer,
Select sharing...
[X] This queue is available to other computers
Allowed hosts
All hosts

Save and exit printconf then restart cups with the command: service cups restart

eggoz 01-28-2005 04:51 PM

I have that done already. But I did it again just for fun.

Dark_Helmet 01-28-2005 05:28 PM

Does the Fedora box have a firewall enabled? As far as I know, the cups print server needs to allow external hosts to print, and you also need to poke a hole in your firewall to allow the packets into the server.

I could be wrong. Maybe Fedora's administrative tools would handle that for you behind the scenes. Still, it's something to check.

eggoz 01-28-2005 06:00 PM

Yup. But I have disabled the firewall for now in FC.

Dark_Helmet 01-28-2005 08:54 PM

I may have to bow out of this one. I'm not familiar with Samba enough to make any real suggestions. All I can say is that you might consider checking both the Samba log file and the Cups log file if you're keeping track of them. I know the Cups server has an option somewhere to increase the verbosity of the log file. I can't say if Samba has the same. Maybe the log files will help shed some light. The only other things I could think to try would be to hook up Ethereal and analyze the packets (that would probably be a real pain in the arse) or to look up the Cups source code and try to backtrack (another pain in the arse).

Wish I could be more helpful...

otoomet 01-30-2005 02:02 AM

Your error message was related with IPP (internet printing protocol) which has nothing to do with samba, AFAIK. Have you checked the cups log files /var/log/cups/*?

How did you set up the printer on the client? Was it visible and you just clicked on it, or did you specify the path?

Cups server has the ability to broadcast to the network the available printers. This must be switched on in '/etc/cups/cupsd.conf' (I do not remember exact name). If your printer is broadcasted, it should be visible in cups config. Broadcasting is not necessary for network printing, but then you have specify the correct path.

Best,

Ott

steve1972 02-01-2005 11:12 AM

Set up Samba correctly...
 
Read online CUPS manual section in SYS Admin Manual.

I have provided a link that will show you how to set up Samba correctly:

http://www.cups.org/doc-1.1/sam.html#8_9


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