
How to Build and Install the m2300w Driver:
===========================================


Using the pre-built RPM:
------------------------

    We are also providing a pre-built RPM for download. This RPM was
    built on SuSE Linux 8.1, but since it does not depend on particular
    SuSE features, there is a good chance, that it may also work with
    other Linux distributions, which support RPM.

    1. download m2300w-<version>.rpm from
       http://sourceforge.net/project/showfiles.php?group_id=108751

    2. install or upgrade the rpm package (needs to be done as root)

	$ su
	Password: ********
    	$ rpm -U m2300w-<version>.rpm

    3. Run cups config to install a new printer

       If you are upgrading from a previous version of the m2300w
       driver, then REMOVE all printer queues which are associated
       with the m2300w driver and reinstall them from the scratch.


Building and installing the driver from the source distribution:
----------------------------------------------------------------

    1. Download m2300w-<version>.tar.gz from
       http://sourceforge.net/project/showfiles.php?group_id=108751

    2. Unpack the archive:

       $ tar zxvf m2300w-<version>.tar.gz
       	   or
       $ gzip -dc m2300w-<version>.tar.gz | tar xvf -
       (if you are not using GNU tar)

    3. Enter the top-level directory and run "configure"

       $ cd m2300w-<version>
       $ ./configure

    4. Run make

       $ make

    5. Install the files (needs to be done as root)

	$ su
	Password: ********
	# make install

    6. Run cups config to install a new printer

       If you are upgrading from a previous version of the m2300w
       driver, then REMOVE all printer queues which are associated
       with the m2300w driver and reinstall them from the scratch.


Building the RPM package from the source distribution:
------------------------------------------------------

    The spec file included in the distribution only supports
    packaging of the files. You CANNOT use rpm to BUILD the driver
    with the supplied spec file. In order to build a RPM package
    from the source distribution, perform the following steps:

    1. Download m2300w-<version>.tar.gz from
       http://sourceforge.net/project/showfiles.php?group_id=108751

    2. Unpack the archive:

       $ tar zxvf m2300w-<version>.tar.gz
       	   or
       $ gzip -dc m2300w-<version>.tar.gz | tar xvf -
       (if you are not using GNU tar)

    3. Enter the top-level directory and run "configure"

       $ cd m2300w-<version>
       $ ./configure

    4. Run make to build the RPM

       $ make rpm

       The resulting RPM package is placed in rpm's built-in standard
       location, usually /usr/src/packages/RPMS/i386 (or similar).
       Make sure that this directory is writeable for your user id
       if you don't run "make rpm" as "root".

