Code: Select all
interface samba {
help "Use this interface if your printer is connected
to a Samba server"
requires "smbclient" # This is part of the Samba system.
required_args "WHICH_PRINTER"
argument {
var = "WHICH_PRINTER"
desc = "Samba printer name"
help = "This is the Samba name of the printer, eg
//computer/printer"
}
send_exec { /usr/sbin/smbclient -N "$WHICH_PRINTER" -c "print -" < $INPUT }
}
Then I found that this would fail to connect because Samba seems to add a trailing space to the computer name, but I resolved this by adding the computer name and IP address to /etc/hosts.
Finally I struggled with the LJ5 driver file, /etc/pdq/drivers/misc/hp-laserjet-5-0.9, which contains lines indicating that the programs xxd and mpage are required, but these are missing from the Puppy distribution.
A workaround is to mimic their existence by linking bogus copies of them to something tame, such as /bin/true, ie
Code: Select all
ln -s /bin/true /usr/local/bin/xxd
ln -s /bin/true /usr/local/bin/mpage
1. That the samba interface file be included in the distribution,
2. That smbclient be fixed so that the host file entry is not required, and
3. That xxd and mpage be included in the Puppy distribution.
Another useful post is http://www.murga.org/%7Epuppy/viewtopic ... ight=samba