You are not logged in.
I'm trying to share a printer over a samba server. There are both windows and linux clients that will access the share. The printer works fine in Arch as a local printer. The other shared samba resources is working like it should from the other machines. There is no firewall installet on any machine inside my network.
So there is something wrong with my samba printer setup.
Here is my smb.conf. I have left out the folder shares.
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = Hjemmenett
# server string is the equivalent of the NT Description field
server string = Samba
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details. NOTE: To get the behaviour of
# Samba-1.9.18, you'll need to use "security = share".
security = user
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Mapping for linux username to windows username.
username map = /etc/samba/smbusers
# Printer setup
printing = bsd
load printers = yes
show add printer wizard = yes
printcap name = /etc/printcap
printer admin = root
lpq cache time = 20
use client driver = no
[printers]
comment = all printers
printable = yes
path = /var/spool/cups
browseable = no
guest ok = yes
public = yes
read only = yes
writeable = no
[HP_PSC_750]
comment = Printers and restricted access
path = /var/spool/cups/tmp
printer admin = orjanp
browseable = yes
printable = yes
writeable = no
guest ok = no
What would be the correct variable for path in printers and hp_psc....? Is there any obvious mistakes? What about permissions to the path variable. What would they be like?
I have also tried to get swat up and running without any luck. I thougt that might help me out. I have added
swat 901/tcp
to my /etc/services file, I was suppose to add someting to a /etc/inetd.conf file to, but I didn't find any. My /etc/xinetd.d/swat file looks like this
service swat
{
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
log_on_success += HOST DURATION
log_on_failure += HOST
disable = no
only_from = localhost 10.0.0.110
}
I'm able to add the shared printer on my WindowsXP machine, but when I try to print a test page i get the following error:
Test page failed to print. Unable to create a print job
Any tips on how to get this working? After several hours of searching, witout any luck, I just want to get my printer shared over my network.
Ørjan Pettersen
Offline
Are you using cups as your print daemon? In that case you'd have to change the printing line to cups.
I have pages on both cups and samba that might or might not help
http://home.nyc.rr.com/computertaijutsu/cups.html
http://home.nyc.rr.com/computertaijutsu/samba.html
(err, you can probably figure out which refers to cups and which to samba)
Printing can be a complete pain in the neck, unfortunately. If you are using cups, I think you would also change use client driver to yes, usually makes it easier.
Offline
I did try to change it to cups, but with no luck. I still get the same error.
I see that you have a path under printers that says /var/spool/samba. Is it the same what the path is? Can it be anything as long as it is spesified in the path variable? My /var/spool directory contains /cron /cups and /mail. Can I make a random folder and put it in path in smb.conf? What kind of permissions do the folder need to have?
Both the path variable in smb.conf and /var/spool directory is somewhat a bit confusing. Some info would be appreciated.
orjanp...
Ørjan Pettersen
Offline
Hrrm, I have always taken that from the default smb.conf. The directory was (I think) on all distros, automagically created when I installed samba
You can try doing a mkdir /var/spool/samba. Looks like permissions are 777 by default.
Does cups work by itself, that is, without samba?
Offline
Cups works, I can print in from my arch server where the printer is connected. I'll try to make a /samba folder.
Ørjan Pettersen
Offline
I made /var/spool/samba and /var/spool/samba/hp. Now I was able to send the test page to the printer without getting the error. But the printer didn't print anything. So I'm getting somewhere atleast. But still not working.
Do I have to specify the folders to cups in any way?
Ørjan Pettersen
Offline
Might be a cups issue.
Suppose the printer name is printer
Does echo hello | lp -d printer
print anything?
Offline
I get the following error
[root@ArchLinux orjanp]# echo hello | lp -d printer
lp: unable to print file: client-error-not-found
But I can print a random file from kate without any problems.
Ørjan Pettersen
Offline
sounds like a cups issue then. Check out my cups page and see if any of the things there help you.
Afraid I have no other ideas--C(an't)U(sually)P(rint)S(tuff) can be great or a total pain in the neck.
Offline
Sorry, my mistake, it was to late for me.
[root@ArchLinux root]# echo hello | lp -d HP_PSC_750
request id is HP_PSC_750-3 (1 file(s))
It works like a charm.
So cups works, and I don't get any error printing from a Windows XP machine. But the printer don't print anyting when accessed from the windows machine.
Anyone with an idea?
Ørjan Pettersen
Offline
Can the Windows box access files on the samba box?
Does /var/log/cups/error_log show anything?
The only other thing I can think of is uncommenting that mime thing that I mention on my cups page. (Too lazy to look for the exact file now).
Printing is indicated as cups, use client driver = yes, correct?
Offline
The files is accessible on the samba box. Printing is cups and client driver is yes.
I'll have a closer look at your cups page later today.
Ørjan Pettersen
Offline
Hrm, yes, but it does seem a samba thing--I had suggested it was a cups issue when I thought that lp -d <printername> wasn't working.
I'm a bit stumped, to be honest. It's probably something obscure that we're overlooking.
Offline
I have the same problem, since I first configured samba, and could never fix it. I've looked everywhere. Hope you can make it work.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
Finally I managed to get swat running. I had hoped it would help me configurating my printer share, but no.
I order to get swat working I had to install xinetd and use it instead fo inetd. How to configure /etc/services and /etc/xinetd.conf there is help to be found at this page.
As for the getting the printer to print issue, it don't work and I do not know how to make it work.
In the swat/printer parameter there is an option to choose printer from a dropdown menu. My installed printer isn't listed in that menu. Anyone know why?
The problem, at least it seems like it to me, is that the spool file never is written to the /var/spool/someting folder. When I'm printing a file on the server, a spool file pops up in /var/spool/cups. But when I try to print from a windows machine through samba, it's never created a spool file in the printer path directory.
Any ideas anyone?
Ørjan Pettersen
Offline
Change the debugging level to something really high for cups (in /etc/cups/cupsd.conf), then try printing. You should see enough information about the error in the cups log file then.
I bet it has to do with enabling the octet-stream mime conversion in /etc/cups/mime.convs.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Now we might be getting somewhere. The error.log file gave me the following output.
E [13/Jul/2004:10:11:46 +0200] print_job: Unsupported format 'application/octet-stream'!
I [13/Jul/2004:10:11:46 +0200] Hint: Do you have the raw file printing rules enabled?
Then I had to uncomment one line in /etc/cups/mime.types and /etc/cups/mime.convs. The line is at the end of both files, and is
application/octet-stream
application/octet-stream application/vnd.cups-raw 0 -
Then I got a
Unable to open usb port device....
that required a "turning on the printer" before "turning on the linux box". So a simple reboot fixed that.
Suddently, I'm able to print from windows over samba. The error.log file was the answer to all my praires. No my world is again a happy place.
Thanks so much for all the help I've got. I will post my smb.conf file later, when I have cleaned it up. It looks like a mess now.
Thanks again.
Ørjan Pettersen
Offline
Glad you got it working--when it works out of the box it's great, but whe it doesn't, it can be frustrating--and often, setting debug level higher does no good.
Glad it was the octet stream one, I think I have that one covered on my page.
Offline
Can someone help me?, I have tried everything you've said, and still can't print. THis is the extra sensitive error.log
d [13/Jul/2004:13:34:29 -0400] AcceptClient(0x8088c30) 0 NumClients = 0
D [13/Jul/2004:13:34:29 -0400] AcceptClient() 5 from localhost:631.
d [13/Jul/2004:13:34:29 -0400] AcceptClient: Adding fd 5 to InputSet...
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5, used=0
D [13/Jul/2004:13:34:29 -0400] ReadClient() 5 POST / HTTP/1.1
d [13/Jul/2004:13:34:29 -0400] decode_auth(0x402fa008): Authorization string = ""
d [13/Jul/2004:13:34:29 -0400] decode_auth() 5 username=""
d [13/Jul/2004:13:34:29 -0400] IsAuthorized: con->uri = "/"
d [13/Jul/2004:13:34:29 -0400] FindBest: uri = "/"...
d [13/Jul/2004:13:34:29 -0400] FindBest: Location / Limit 7f
d [13/Jul/2004:13:34:29 -0400] FindBest: Location /admin Limit 7f
d [13/Jul/2004:13:34:29 -0400] FindBest: best = "/"
d [13/Jul/2004:13:34:29 -0400] IsAuthorized: auth = 0, satisfy=0...
d [13/Jul/2004:13:34:29 -0400] POST /
d [13/Jul/2004:13:34:29 -0400] CONTENT_TYPE = application/ipp
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5 con->data_encoding = length, con->data_remaining = 273, con->file = 0
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5, used=265
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5 con->data_encoding = length, con->data_remaining = 265, con->file = 0
d [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest(0x402fa008[5]): operation_id = 000a
d [13/Jul/2004:13:34:29 -0400] get_jobs(0x402fa008[5], ipp://localhost/printers/Deskjet_3320)
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 42
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 43
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 44
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 45
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 46
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 47
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 48
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 49
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 50
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 51
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 52
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 53
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 54
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 55
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 56
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 57
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 58
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 59
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 60
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 61
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 62
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 63
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 64
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 65
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 66
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 67
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 68
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 69
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 70
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 71
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 72
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 73
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 74
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 75
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 76
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 77
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 78
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 79
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 80
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 81
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 82
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 83
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 84
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 85
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 86
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 87
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 88
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 89
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 90
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 91
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 92
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 93
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 94
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 95
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 96
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 97
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 98
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 99
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 100
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 101
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 102
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 103
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 104
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 105
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 106
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 107
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 108
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 109
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 110
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 111
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 112
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 113
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 114
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 115
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 116
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 117
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 118
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 119
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 120
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 121
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 122
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 123
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 124
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 125
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 126
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 127
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 128
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 129
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 130
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 131
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 132
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 133
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 134
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 135
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 136
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 137
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 138
d [13/Jul/2004:13:34:29 -0400] get_jobs: job->id = 139
D [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest: 5 status_code=0
d [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest: Adding fd 5 to OutputSet...
d [13/Jul/2004:13:34:29 -0400] WriteClient: Removing fd 5 from OutputSet...
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5, used=0
D [13/Jul/2004:13:34:29 -0400] ReadClient() 5 POST / HTTP/1.1
d [13/Jul/2004:13:34:29 -0400] decode_auth(0x402fa008): Authorization string = ""
d [13/Jul/2004:13:34:29 -0400] decode_auth() 5 username=""
d [13/Jul/2004:13:34:29 -0400] IsAuthorized: con->uri = "/"
d [13/Jul/2004:13:34:29 -0400] FindBest: uri = "/"...
d [13/Jul/2004:13:34:29 -0400] FindBest: Location / Limit 7f
d [13/Jul/2004:13:34:29 -0400] FindBest: Location /admin Limit 7f
d [13/Jul/2004:13:34:29 -0400] FindBest: best = "/"
d [13/Jul/2004:13:34:29 -0400] IsAuthorized: auth = 0, satisfy=0...
d [13/Jul/2004:13:34:29 -0400] POST /
d [13/Jul/2004:13:34:29 -0400] CONTENT_TYPE = application/ipp
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5 con->data_encoding = length, con->data_remaining = 194, con->file = 0
d [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest(0x402fa008[5]): operation_id = 000b
d [13/Jul/2004:13:34:29 -0400] get_printer_attrs(0x402fa008[5], ipp://localhost/printers/Deskjet_3320)
d [13/Jul/2004:13:34:29 -0400] add_printer_state_reasons(0x402fa008[5], 0x8094100[Deskjet_3320])
d [13/Jul/2004:13:34:29 -0400] add_queued_job_count(0x402fa008[5], 0x8094100[Deskjet_3320])
d [13/Jul/2004:13:34:29 -0400] copy_attrs(0x812e7d8, 0x8090cd8, (nil), 0)
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090d00[printer-uri-supported,4,45])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090d78[uri-authentication-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090de8[uri-security-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090e40[printer-name,4,42])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090e98[printer-location,4,41])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090ef0[printer-info,4,41])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090f48[printer-more-info,4,45])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090fb8[job-quota-period,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8090ff8[job-k-limit,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8091030[job-page-limit,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8091070[job-sheets-default,4,42])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80910d8[device-uri,4,45])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80a0940[color-supported,4,22])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80a1298[pages-per-minute,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80a1da8[printer-make-and-model,4,41])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80a2520[media-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8091180[media-default,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x809a0f8[finishings-supported,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80992a0[finishings-default,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8099098[printer-type,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attrs(0x812e7d8, 0x808d798, (nil), 0)
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x808d7c0[pdl-override-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x808d808[ipp-versions-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x808d858[operations-supported,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x808d9d8[multiple-document-jobs-supported,4,22])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80945f8[multiple-operation-time-out,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094620[multiple-document-handling-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80946d8[charset-configured,4,47])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094728[charset-supported,4,47])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094a98[natural-language-configured,4,48])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094af0[generated-natural-language-supported,4,48])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094b58[document-format-default,4,49])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094bc0[document-format-supported,4,80000049])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094d58[compression-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094dc8[job-priority-supported,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094e10[job-priority-default,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094e58[copies-supported,4,33])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094e98[copies-default,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094ed8[page-ranges-supported,4,22])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094f20[number-up-supported,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094f98[number-up-default,4,21])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8094fd8[orientation-requested-supported,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8095048[orientation-requested-default,4,23])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8095098[job-hold-until-supported,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x80951b8[job-hold-until-default,4,44])
d [13/Jul/2004:13:34:29 -0400] copy_attribute(0x812e7d8, 0x8095210[job-sheets-supported,4,42])
D [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest: 5 status_code=0
d [13/Jul/2004:13:34:29 -0400] ProcessIPPRequest: Adding fd 5 to OutputSet...
d [13/Jul/2004:13:34:29 -0400] WriteClient: Removing fd 5 from OutputSet...
d [13/Jul/2004:13:34:29 -0400] ReadClient() 5, used=0
D [13/Jul/2004:13:34:29 -0400] CloseClient() 5
d [13/Jul/2004:13:34:29 -0400] CloseClient: Removing fd 5 from InputSet and OutputSet...
The weirdest of all, is that the other computer can use my printer while I'm in windows, but in Linux, it can't print, and what's more, every program that tries to print crashes. I can print localy fine.
This is my smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba HOWTO Collection.
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = FAMILIA
# server string is the equivalent of the NT Description field
server string = PC Totó
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the HOWTO Collection for details.
security = share
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.0.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# you may wish to override the location of the printcap file
printcap name = /etc/printcap
# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
; printcap name = lpstat
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
printing = cups
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
; realm = MY_REALM
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
; passdb backend = tdbsam
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
; include = /usr/local/samba/lib/smb.conf.%m
# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \%LProfiles%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = yes
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdle %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/cups
browseable = no
public = yes
# Set public = yes to allow user 'guest account' to print
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr # using cups own drivers (use generic PostScript on clients).
lpq command = lpstat -o %p
lprm command = cancel %p-%j
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[/]
comment = /
path = /
public = yes
browsable = yes
writable = no
[home]
comment = /home/alfonso_pola
path = /home/alfonso_pola
; valid users =
public = yes
writable = no
browsable = yes
; printable = no
; create mask = 0765
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
For one, your cups spool is set incorrectly. /usr/spool/cups shouldn't exist. Try /var/spool/cups.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
you're right, but that did not fix a thing.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
Finally...I configured the printer sharing, through cups (added allow from 192.168.0.0/24), and then added the printer in the windows client as http://192.168.0.2:631/printers/deskjet and it worked.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline