piesse
2008-01-24 12:23:17 UTC
I am experimenting with samba connecting my ECs box with a M$XP and a
500G Western Digital MyBook (wrong purchase: stay away if you can).
The instructions on http://svn.netlabs.org/samba were a bit inaccurate:
they don't tell you that you are expected to create a couple of
directories under %ETC%/samba (named "pid", "private" and possibly
"lock") and rhey talk about a smb.conf file that doesn't exist in the
latest distributions: you must build it from scratch (which is not
difficult).
Also, downloading and using the useraddpm.exe utility was the only way I
could really manage users.
However, at the end they work!
So far, I was able to setup disk connections, but I am not able to print
on my eCS-connected laserjet from the XP box.
This is what I did:
1)Add the printer to smb.conf using the sscc program.
It generated the following entry in smb.conf:
[LASERJE1]
comment = HP LaserJet 2200
path = /var/spool/LASERJE1
valid users = foo, bar
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
printing = os2
print command = \smbprint.exe "%s" "%p" "%J" "%c" "%z"
lpq command = lpq.exe -s %i -p %p
lprm command = lprm.exe -s %i -p %p %j
printer name = LASERJE1
(I hadded the "valid users" line manually)
2) started nmbd and smbd
3)Found it in "network resources" on the XP box and used it to create a
new printer there using the PCL5 drive that used to work for the same
printer when I was using NETBEUI.
However, when I try to print from there I get an error.
Furthermore, I see that smbd periodically prints the following error:
connect() failed, errno = 10061.
connect() failed, errno = 10061.
Unable to connect to 10.2.1.3.
connect() failed, errno = 10061.
connect() failed, errno = 10061.
Unable to connect to 10.2.1.3.
...
Where 10.2.1.3 is the IP of the computer where the printer resides (and
where smbd itself is running!)
The message doesn't shows up if I remove the [LASERRJ1] section from
smb.conf, so must be related to it.
Is there something that I did wrong?
Maybe lpd should be running?
Or I need a printcap file in %ETC%?
Or I should check that the "path = /var/spool/LASERJE1" actually
represent the current os/2 spooler of the printer (it doesn't, I just
accepted what sscc suggested)
Or what else?
thanks,
Piersante
500G Western Digital MyBook (wrong purchase: stay away if you can).
The instructions on http://svn.netlabs.org/samba were a bit inaccurate:
they don't tell you that you are expected to create a couple of
directories under %ETC%/samba (named "pid", "private" and possibly
"lock") and rhey talk about a smb.conf file that doesn't exist in the
latest distributions: you must build it from scratch (which is not
difficult).
Also, downloading and using the useraddpm.exe utility was the only way I
could really manage users.
However, at the end they work!
So far, I was able to setup disk connections, but I am not able to print
on my eCS-connected laserjet from the XP box.
This is what I did:
1)Add the printer to smb.conf using the sscc program.
It generated the following entry in smb.conf:
[LASERJE1]
comment = HP LaserJet 2200
path = /var/spool/LASERJE1
valid users = foo, bar
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
printing = os2
print command = \smbprint.exe "%s" "%p" "%J" "%c" "%z"
lpq command = lpq.exe -s %i -p %p
lprm command = lprm.exe -s %i -p %p %j
printer name = LASERJE1
(I hadded the "valid users" line manually)
2) started nmbd and smbd
3)Found it in "network resources" on the XP box and used it to create a
new printer there using the PCL5 drive that used to work for the same
printer when I was using NETBEUI.
However, when I try to print from there I get an error.
Furthermore, I see that smbd periodically prints the following error:
connect() failed, errno = 10061.
connect() failed, errno = 10061.
Unable to connect to 10.2.1.3.
connect() failed, errno = 10061.
connect() failed, errno = 10061.
Unable to connect to 10.2.1.3.
...
Where 10.2.1.3 is the IP of the computer where the printer resides (and
where smbd itself is running!)
The message doesn't shows up if I remove the [LASERRJ1] section from
smb.conf, so must be related to it.
Is there something that I did wrong?
Maybe lpd should be running?
Or I need a printcap file in %ETC%?
Or I should check that the "path = /var/spool/LASERJE1" actually
represent the current os/2 spooler of the printer (it doesn't, I just
accepted what sscc suggested)
Or what else?
thanks,
Piersante