mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
ae7f08398b
(This used to be commit 03dd90ab923ec88cdada8c5d725d9482bd9826f2)
36 lines
860 B
Plaintext
36 lines
860 B
Plaintext
Virtual line printer test program (vlp)
|
|
=======================================
|
|
|
|
This can be useful for testing/debugging Samba print code. It gives you a
|
|
virtual full-function printer.
|
|
|
|
Setup
|
|
|
|
1) Configure and build Samba.
|
|
For this to work, you need to add:
|
|
-DDEVELOPER
|
|
to your CFLAGS, and add:
|
|
--srcdir=<wherever your source is>
|
|
when running configure. Generally
|
|
./configure --srcdir=`pwd` <other configure options>
|
|
should work.
|
|
|
|
2) Build and install vlp.
|
|
# cd testsuite/printing
|
|
# make -f Makefile.vlp vlp
|
|
# su
|
|
# cp vlp /usr/local/samba/bin
|
|
|
|
3) Set up Samba to use vlp.
|
|
In your smb.conf file under [global], add the following option:
|
|
printing = vlp
|
|
and then add any number of print shares, without needing to make them
|
|
really exist.
|
|
|
|
[testprinter]
|
|
printable = yes
|
|
|
|
is all you need for the most basic virtual printer.
|
|
|
|
|