| Last change
 on this file since 320 was             133, checked in by Paul Smedley, 17 years ago | 
        
          | 
Update trunk to 3.2.0pre3
 | 
        
          | File size:
            860 bytes | 
      
      
| Line |  | 
|---|
| 1 | Virtual line printer test program (vlp) | 
|---|
| 2 | ======================================= | 
|---|
| 3 |  | 
|---|
| 4 | This can be useful for testing/debugging Samba print code.  It gives you a | 
|---|
| 5 | virtual full-function printer. | 
|---|
| 6 |  | 
|---|
| 7 | Setup | 
|---|
| 8 |  | 
|---|
| 9 | 1) Configure and build Samba. | 
|---|
| 10 | For this to work, you need to add: | 
|---|
| 11 | -DDEVELOPER | 
|---|
| 12 | to your CFLAGS, and add: | 
|---|
| 13 | --srcdir=<wherever your source is> | 
|---|
| 14 | when running configure.  Generally | 
|---|
| 15 | ./configure --srcdir=`pwd` <other configure options> | 
|---|
| 16 | should work. | 
|---|
| 17 |  | 
|---|
| 18 | 2) Build and install vlp. | 
|---|
| 19 | # cd testsuite/printing | 
|---|
| 20 | # make -f Makefile.vlp vlp | 
|---|
| 21 | # su | 
|---|
| 22 | # cp vlp /usr/local/samba/bin | 
|---|
| 23 |  | 
|---|
| 24 | 3) Set up Samba to use vlp. | 
|---|
| 25 | In your smb.conf file under [global], add the following option: | 
|---|
| 26 | printing = vlp | 
|---|
| 27 | and then add any number of print shares, without needing to make them | 
|---|
| 28 | really exist. | 
|---|
| 29 |  | 
|---|
| 30 | [testprinter] | 
|---|
| 31 | printable = yes | 
|---|
| 32 |  | 
|---|
| 33 | is all you need for the most basic virtual printer. | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.