Pegg 0.12a Installation
----------------------

	Pegg 0.12a - A small printing program for the
	Casio "EGG" KP-C10/C50 label Printer.

	Copyright (c) 2003 Daniel Amkreutz, <daniel.amkreutz@tu-harburg.de>

        IMPORTANT NOTICE:

	* This software was designed using data made available by and is released
          with the permission of CASIO COMPUTER CO., LTD.
        * CASIO COMPUTER Co., LTD. assumes no responsibility for the content of
          this software.
        * Please do not contact CASIO COMPUTER CO., LTD. with any inquiries
          concerning this software.

	A large amount of code is borrowed from the libusb Documentation.
	The communication API of the Printer has been greatly documented
	and published by CASIO COMPUTER CO., LTD

							Many Thanks.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

	You may use this program for whatever you want as long the above written
	text remains.

	Please support Pegg by testing it and reporting bugs !

------


1) INSTALLATION

Pegg uses libusb 0.1.7(!) (libusb.sourceforge.net)
In order to install Pegg 0.1a make sure that you have installed the libusb includes and gcc
(eg. /usr/include/usb.h). The compillation of pegg is not difficult. Just type the folowing:

gcc -o pegg pegg.c -I<YOUR INCLUDE PATH> -L<YOUR LIBUSB PATH> -lusb

for example: (usb.h is in /usr/include and libusb is installed in /usr/lib)

gcc -o pegg pegg.c -I/usr/include -L/usr/lib -lusb

For KP-C50/KLP1000:

You have to modify the source according to the way described in line 207 of pegg.c

2) TESTING

After the installation you may test pegg by doing the folowing:

1. Connect your printer.

2. Try a pegg -t to see if pegg recognizes your printer. You should see the type of your printer
   in the output. (You might have to be loged in as root in order to scan the USB)

3. If pegg has found your printer print a test label using the test_raw file. To do so type in
   this command:

   pegg -5 ./test_raw

   (5 specifies maximum density of the print)
   The printer should now print a label with some text on it.


3) INSTALLING MANPAGE

In order to install the manpage, copy pegg.1.gz to your manpage location (normally /usr/share/man)

   EXAMPLE: cp ./pegg.1.gz /usr/share/man1/.
