File: INSTALL

package info (click to toggle)
m2300w 0.51-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,120 kB
  • ctags: 296
  • sloc: perl: 4,026; ansic: 2,260; xml: 788; sh: 488; makefile: 195; python: 8
file content (166 lines) | stat: -rw-r--r-- 5,424 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

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

Prerequisites:
--------------

    1. Ghostscript

       Please refer to README.ghostscript or to
       http://m2300w.sourceforge.net/gs/

    2. Foomatic (see http://www.linuxprinting.org/foomatic.html)

       Foomatic is a database-driven system for integrating free
       software printer drivers (like the m2300w driver) with common
       spoolers under Unix. It supports CUPS, LPRng, LPD, GNUlpr, PPR,
       PDQ, CPS, and direct printing.

       Although m2300w-wrapper could be theoretically invoked directly,
       it is basically designed for being invoked from foomatic's universal
       print filter "foomatic-rip".
       
       Therefore, m2300w requires "foomatic-rip" as prerequisite. Some
       Linux distributions (e.g. SuSE) include foomatic-rip, while it
       is missing in other distributions (e.g. RedHat 9).

       To verify whether "foomatic-rip" is installed on your system,
       you can check, if the file /usr/bin/foomatic-rip and the
       symbolic link /usr/lib/cups/filter/foomatic-rip exist.
       
       If they do not exist, then get the latest "foomatic-filters"
       package from http://www.linuxprinting.org/download/foomatic and
       install it on your system.

       For your convenience, starting with version 0.3, the pre-built
       m2300w RPM package (see below) installs a foomatic-rip binary,
       if it is missing on the system. If you build the driver from
       the sources, then you need to build and install "foomatic-filters"
       yourself.

    3. Spooler

       Basically, m2300w is expected to work with all spoolers supported
       by foomatic. However, the preferred spooler is CUPS, and m2300w
       has only been tested in conjunction with CUPS.

    4. Psnup

       If you intend to use the n-up feature of the driver, the program
       "psnup" needs to be installed on your system.


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. Make sure that all prerequisites are installed (see above)

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

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

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

    4. 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. Make sure that all prerequisites are installed (see above)

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

    3. 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)

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

       $ cd m2300w-<version>
       $ ./configure

    5. Run make

       $ make

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

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

    7. 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".


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

    1. Download source RPM package m2300w-<version>-<release>.src.rpm

    2. Install the source RPM package

       # rpm -i m2300w-<version>-<release>.src.rpm

    3. Build the binary RPM package
    
       # cd /usr/src/packages/SPECS
       # rpm -bb m2300w-<version>-<release>.spec

       The resulting RPM package is placed in rpm's built-in standard
       location, usually /usr/src/packages/RPMS/i386 (or similar).