View previous topic :: View next topic |
Author |
Message |
yong_sa n00b
Joined: 13 Jan 2005 Posts: 29
|
Posted: Tue May 17, 2005 11:13 pm Post subject: Samba Frustrations [Solved] |
|
|
Hello:
I've unsuccessfully made several attempts to have Samba connecting to my Gentoo box. I tried using the howto, but nothing comes up. I only want to do the following:
1) Have My windows XP clients print on the HP printer (CUPS) that is running on my Gentoo box
The closest I've ever gotten was with this smb.conf file:
Quote: |
[global]
workgroup = CRUZ
netbios name = HERBERT02
security = share
printcap name = cups
disable spoolss = Yes
show add printer wizard = No
printing = cups
[data]
comment = Herberts Documents
path = /home/hrcruz/Desktop/Documents
read only = no
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
|
I can see the printer on the network browser in XP and I can see shares. Here is the problem:
1) When I Print a test page I get the "A test page is now being Printed"but I goet no movement from my printer.
When i check my smbd.log file it says
[2005/05/17 16:16:26, 1] smbd/service.c:make_connection_snum(648)
192.168.0.101 (192.168.0.101) connect to service Deskjet812C initially as user hrcruz (uid=500, gid=100) (pid 23164)
[2005/05/17 16:16:26, 0] smbd/nttrans.c:call_nt_transact_ioctl(2276)
call_nt_transact_ioctl(0x280004): Currently not implemented.
[2005/05/17 16:16:29, 0] printing/print_cups.c:cups_job_submit(765)
Unable to print file to Deskjet812C - client-error-document-format-not-supported
I think it has something to do with the driver.... any ideas?
Thanks so much for your help!
yong_sa
Last edited by yong_sa on Wed May 18, 2005 1:12 am; edited 2 times in total |
|
Back to top |
|
|
embrek n00b
Joined: 29 Dec 2003 Posts: 53
|
Posted: Tue May 17, 2005 11:30 pm Post subject: |
|
|
I have never tried what you are doing but I've had samba woes of my own and in my recent readings I believe I read that if you are using the clients drivers, that you are suppose to list the printer on the XP box as a LOCAL printer not a networked one. Don't know if this helps but I'd thought I'd mention it. _________________ AMD Opteron 140
nVidia 5900XT 128mb
1gig RAM
120gig SATA Hard Drive |
|
Back to top |
|
|
yong_sa n00b
Joined: 13 Jan 2005 Posts: 29
|
Posted: Tue May 17, 2005 11:36 pm Post subject: |
|
|
I tried setting it up as a local one but it makes no provision for a SAMBA. Thanks for the try though. |
|
Back to top |
|
|
encase n00b
Joined: 25 Oct 2004 Posts: 55 Location: Switzerland
|
Posted: Tue May 17, 2005 11:57 pm Post subject: |
|
|
Quote: | Unable to print file to Deskjet812C - client-error-document-format-not-supported |
Check the settings of the printer. your problem is not related with samba. You should know that cups is using 'letter' as standard paper size!! Also check other settings to cups... |
|
Back to top |
|
|
pogi Tux's lil' helper
Joined: 13 May 2005 Posts: 124 Location: Hungary
|
Posted: Wed May 18, 2005 12:11 am Post subject: |
|
|
as far as i know, you have to set up a printer in your smb.conf, not just section [printers], like this
Code: | # Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
[HPDeskJet930C]
comment = HP DeskJet 930C Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root
# Now we setup our printers share. This should be
# browseable, printable, public.
[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root |
i've never tried this, i have a reverse config (trying to set up printing from linux to win), maybe you should read this official (?) howto, if you havent done yet.
pogi _________________ Free! Tibet |
|
Back to top |
|
|
encase n00b
Joined: 25 Oct 2004 Posts: 55 Location: Switzerland
|
Posted: Wed May 18, 2005 12:25 am Post subject: |
|
|
try this:
Comment out application/octet-stream in /etc/cups/mime.types
Code: |
# Raw print file support...
#
# Uncomment the following type and the application/octet-stream
# filter line in mime.convs to allow raw file printing without the
# -oraw option.
#
#############################
# COMMENT OUT FOLLOWING LINE#
#############################
application/octet-stream
|
|
|
Back to top |
|
|
yong_sa n00b
Joined: 13 Jan 2005 Posts: 29
|
Posted: Wed May 18, 2005 12:46 am Post subject: |
|
|
Hello:
I commented out the raw application / octet. Looks like there is some improvement:
Quote: |
[2005/05/17 17:43:44, 1] smbd/service.c:make_connection_snum(648)
192.168.0.101 (192.168.0.101) connect to service DeskJet812C initially as user hrcruz (uid=500, gid=100) (pid 6549)
[2005/05/17 17:43:55, 1] smbd/service.c:close_cnum(836)
192.168.0.101 (192.168.0.101) closed connection to service DeskJet812C |
No errors here, but I still get no respose from the printer.
Checked out my cups error log and get the following:
Quote: |
I [17/May/2005:17:43:49 -0700] Adding start banner page "none" to job 211.
I [17/May/2005:17:43:49 -0700] Adding end banner page "none" to job 211.
I [17/May/2005:17:43:49 -0700] Job 211 queued on 'Deskjet812C' by 'hrcruz'.
E [17/May/2005:17:43:49 -0700] Unable to convert file 0 to printable format for job 211!
I [17/May/2005:17:43:49 -0700] Hint: Do you have ESP Ghostscript installed?
I [17/May/2005:17:43:49 -0700] Hint: Try setting the LogLevel to "debug".
|
As far as I know, I do have ESP Ghostscript installed, according to emerge. |
|
Back to top |
|
|
yong_sa n00b
Joined: 13 Jan 2005 Posts: 29
|
Posted: Wed May 18, 2005 1:11 am Post subject: |
|
|
It's working!!!! It was a problem with the CUPS configuration
I had to also modify the mime.convs file and uncomment the following line:
Quote: |
application/octet-stream application/vnd.cups-raw 0 - |
Thanks for all of your help, especially you encase!
yong_sa |
|
Back to top |
|
|
encase n00b
Joined: 25 Oct 2004 Posts: 55 Location: Switzerland
|
Posted: Wed May 18, 2005 1:15 am Post subject: |
|
|
Now you've to possibilities:
1. Comment out following in /etc/cups/mime.convs:
Code: |
########################################################################
#
# Raw filter...
#
# Uncomment the following filter and the application/octet-stream type
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#
#######################
#Comment out following#
#######################
application/octet-stream application/vnd.cups-raw 0
|
2. As far I know, cups 1.115 has problems with RAW printing. Try using an earlier version...
But I'm not sure, therefore try first with editing the conf-files.. |
|
Back to top |
|
|
|