emperor: (Default)
Add MemoryShare This Entry
posted by [personal profile] emperor at 09:47pm on 14/11/2007 under
So, I bought one of these off ebay for about £180 incl next-day delivery. I'm currently working on getting it going with linux.

It's on its own bit of ethernet, hanging off eth3 (currently setup as it came). I used lpadmin and foomatic-configure to get the system to know about it, and then the CUPS web interface to set some sensible defaults (use the large paper tray, use duplex). I frobbed samba (as per the cupsaddsmb man-page) to export the printer. This currently means making /var/spool/samba writable by anyone, as otherwise smbd complains it can't write to the directory to create a spool file[1].

TODO:
renumber the ethernet address of the printer
sort the permissions issue with smb (any ideas?)
review cupsd.conf to make sure access etc is sensible.

[1]
[2007/11/14 22:14:52, 1] smbd/service.c:make_connection_snum(642)
  jpl-111 (172.16.22.237) connect to service lj2300dtn initially as user sac48 (
uid=1053, gid=1053) (pid 27773)
[2007/11/14 22:15:30, 0] printing/printing.c:print_job_start(2297)
  print_job_start: insufficient permissions to open spool file /var/spool/samba/
smbprn.00000008.C6UOEZ.
[2007/11/14 22:15:30, 0] printing/printing.c:print_job_start(2297)
  print_job_start: insufficient permissions to open spool file /var/spool/samba/
smbprn.00000009.9R2Oen.
[2007/11/14 22:15:30, 1] smbd/service.c:close_cnum(835)
  jpl-111 (172.16.22.237) closed connection to service lj2300dtn
There are 6 comments on this entry. (Reply.)
 
posted by [identity profile] new-brunette.livejournal.com at 12:28am on 15/11/2007
Permissions on /var/spool/samba should be 1777 - smbd will be running as whichever user's authenticated.
emperor: (Default)
posted by [personal profile] emperor at 10:12am on 15/11/2007
Hm, I wonder if sac48 isn't getting authenticated properly (I think she doesn't usually have to type a password to get at the file shares (which are public)).
shortcipher: (abacus)
posted by [personal profile] shortcipher at 09:06am on 15/11/2007
I've not frobbed Samba in a while; there's always the compromise of making /var/spool/samba writeable by some group and putting the right users (and Samba system accounts?) in the group.
(deleted comment)
 
posted by [identity profile] arnhem.livejournal.com at 11:59am on 15/11/2007
It's also possible to make windows print to IPP (by specifying a url like

http://machine:631/printers/printername

in the 3rd box in the "add new printer" wizard's first dialogue)
emperor: (Default)
posted by [personal profile] emperor at 02:37pm on 15/11/2007
Would that Just Work? If so, it sounds rather like The Right Answer, rather than all this Samba pain.
 
posted by [identity profile] arnhem.livejournal.com at 03:34pm on 15/11/2007
If it's going to work, it'll Just Work. (So if you've already got a happy CUPS server and it's just samba that's causing pain, then it's certainly worth trying; if it works, you'll find out very quickly 8-) )

Niggles are:

a) no authentication / user accounting
b) you can't do the magic "here's your printer driver" thing you can do with samba (as far as I'm aware)
c) there's a failure mode where windows and cups refuse to talk to each other, either at the last stage of installing the printer, or on the first attempt to print to it, and then attempts to print cause Explorer to hang. This happens to a random subset of our Windows XP boxes with no readily apparent common cause and has been driving me mad. A colleague has suggested that the problem lies in Windows trying to use http proxies for IPP stuff, but I'm not completely convinced from my observations. But if this is going to break for you, it'll be obvious when you first test the printer (and at that point, I think I'd recommend not pursuing this line of investigation, as doing so has given me nasty headaches ...)

So summary: worth a try, if it works it'll do so immediately; if it doesn't work first time, run away.

October

SunMonTueWedThuFriSat
      1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
26
 
27
 
28
 
29
 
30
 
31