Wed, 05 Aug 2009 17:32:05 +0100
updated README
README | file | annotate | diff | revisions |
1.1 diff -r cf9d239ac1c9 -r fd1c6f6066da README 1.2 --- a/README Wed Aug 05 17:10:56 2009 +0100 1.3 +++ b/README Wed Aug 05 17:32:05 2009 +0100 1.4 @@ -7,7 +7,7 @@ 1.5 ================= 1.6 1. What is libptouch? 1.7 2. Supported printers 1.8 - 3. Building and Using libptouch 1.9 + 3. Building and Installing libptouch 1.10 T. TODO, aka Things That Don't Work Yet. 1.11 R. References 1.12 1.13 @@ -73,12 +73,15 @@ 1.14 " " = No 1.15 1.16 1.17 -3. Building and Using libptouch 1.18 -=============================== 1.19 +3. Building and Installing libptouch 1.20 +==================================== 1.21 To build libptouch, you will need: 1.22 GNU gcc version 3.1 or later (libptouch is tested with gcc 4.3.3) 1.23 GNU make version 3.80 or later (libptouch is tested with make 3.81) 1.24 - libgd version 2.0 or higher (libptouch is tested with libgd 2.0.36) 1.25 + libgd version 2.0 or later (libptouch is tested with libgd 2.0.36) 1.26 + 1.27 +To build the documentation, you will also need: 1.28 + doxygen version 1.5 or later (libptouch is tested with doxygen 1.5.8) 1.29 1.30 Briefly, this means any common Linux distribution (Debian or RedHat based) 1.31 released in 2006 or later should successfully build libptouch. As for other 1.32 @@ -96,6 +99,33 @@ 1.33 1.34 This will build the libptouch library and documentation from the source code. 1.35 1.36 +To install libptouch into /usr/local, type: 1.37 + $ make install 1.38 + 1.39 +To install libptouch into another directory, say /opt/libptouch, type: 1.40 + $ make install PREFIX=/opt/libptouch 1.41 + 1.42 + 1.43 +4. Using libptouch 1.44 +================== 1.45 +[... TODO ...] 1.46 + 1.47 + 1.48 +5. Using libptouch-based Applications Without Superuser Privileges 1.49 +================================================================== 1.50 +To use a libptouch-based application without superuser (root) privileges, you 1.51 +must do one of two things: 1.52 + 1.53 + 1. Set the application's group ID to the user that normally owns printers 1.54 + (or serial ports) on your system, then chmod the application to "g+S" 1.55 + (turn the Set Group ID bit on). This will only work if all your printers 1.56 + use the same interface type, e.g. all serial or all USB. 1.57 + 1.58 + 2. Add the user who will be running the application to the 'lp' or 'dialout' 1.59 + group (for USB or serial printers respectively). Note that a user can be 1.60 + a member of more than one group -- see your system documentation for more 1.61 + information. 1.62 + 1.63 1.64 T. TODO, aka Things That Don't Work Yet. 1.65 ========================================