Ppf
From M1Research
Line 27: | Line 27: | ||
*2. Unpack. (<code>cat ppf-X.Y-zzz.fc1.bz2 | bzip2 -cd > ppf</code>) | *2. Unpack. (<code>cat ppf-X.Y-zzz.fc1.bz2 | bzip2 -cd > ppf</code>) | ||
*3. Install binary. (<code>chmod u=rwx,g=rx,o=rx ppf ; chown root.root ppf ; cp -f ppf /usr/sbin/ppf </code>) | *3. Install binary. (<code>chmod u=rwx,g=rx,o=rx ppf ; chown root.root ppf ; cp -f ppf /usr/sbin/ppf </code>) | ||
+ | |||
+ | === Running === | ||
+ | |||
+ | Start program required 2 arguments: | ||
+ | <pre>/usr/sbin/ppf <printer port> <tcp port></pre> | ||
+ | Where: | ||
+ | *<code><printer port> </code>- device name where printer connected to; | ||
+ | *<code><tcp port></code> - number of tcp port to listen, typicaly you should use 9100. | ||
+ | Example: | ||
+ | |||
+ | <pre> | ||
+ | /usr/sbin/ppf /dev/usb/lp0 9100 | ||
+ | or | ||
+ | /usr/sbin/ppf /dev/lp0 9100 | ||
+ | </pre> |
Revision as of 19:51, 6 January 2006
Printer Port Forwarder
Contents |
Description
ppf is simple solution for sharing USB or LPT printer across the network using Network Printing Protocol (JetDirect/AppSocket protocols).
I use this solution for connecting printer to diskless Linux terminal station (see LTSP project for more info) and share it to throw another server (Windows or Unix printing system) with complex queuing and minitoring system.
ppf software is a TCP deamon that listen TCP/9100 and forward all datas comes to phisical printer port, like simple print server (which embedded into network attached printers, like JetDirect)
Goals
We use ppf for sharing printer connected to diskless station station. There are no need to install Samba or CUPS on PC where printer connected to. You use printer throw "standart network port" (in Windows terms).
Downloads
Version 0.1-alpha:
- Source download: ppf-0.1-alpha.tar.bz2
- Precompiled binary: ppf-0.1-alpha.fc1.bz2
Installation
From sources:
- 1. Download c source tarball
- 2. Unpack. (
bzip2 -9 ppf-X.Y-zzz.src.bz2 | tar xvf -
) - 3. Compile. (
cd ppf-X.Y-zzz; make
) - 4. Install binary. (
chmod u=rwx,g=rx,o=rx ppf ; chown root.root ppf ; cp -f ppf /usr/sbin/ppf
)
From binary
- 1. Download precompiled binary file archive
- 2. Unpack. (
cat ppf-X.Y-zzz.fc1.bz2 | bzip2 -cd > ppf
) - 3. Install binary. (
chmod u=rwx,g=rx,o=rx ppf ; chown root.root ppf ; cp -f ppf /usr/sbin/ppf
)
Running
Start program required 2 arguments:
/usr/sbin/ppf <printer port> <tcp port>
Where:
<printer port>
- device name where printer connected to;<tcp port>
- number of tcp port to listen, typicaly you should use 9100.
Example:
/usr/sbin/ppf /dev/usb/lp0 9100 or /usr/sbin/ppf /dev/lp0 9100