Debian Codegraph @

doc/INSTALL

raw
1 INSTALLATION
2 ------------
3 (Debian and ubuntu now have packages in repositories you can install)
4 There may be a more recent version available as a .deb file on sourceforge.
5 There may be a more recent source code version available as a .tar.gz file on sourceforge.
6
7 The general procedure will be like this if you compile from source.
8 (see below for details for different distros):
9
10 Download:
11 You download the compressed archive file
12
13 Unpack:
14 You uncompress the archive to get several files required to install the driver.
15 (This is one of those files, so you have probably done that already)
16
17 (Optional) Install packages needed for this driver to work:
18 You may need to install some packages before you can install the driver.
19 Most distros have some package manager that you use to do this.
20
21 (Optional) Uninstall:
22 If you have already installed a previous version of this driver, it might be helpful to uninstall it.
23 If not, ignore this step.
24
25 Configure:
26 Check details of the system and change the install process to suit.
27 Configuring will be done by a command like "./configure"
28
29 Compile:
30 You need to convert the program, written in c, into something your computer can run.
31 Compiling will be done by a command like "make"
32
33 Install driver, PPD files, and extra files:
34 Various files need to be copied to folders where the system can find them.
35 This will be done with a command like "make install"
36
37 Create printers:
38 This is where you tell cups about the new printer.
39
40 Then it should be possible to print.
41
42
43 Detailed versions follow for different distros:
44
45 UBUNTU NOTES
46 ------------
47 (in the following NN in the filename c2espNN means the 2 digits of the release no)
48 (so for release 0.4, you would type c2esp04 )
49
50 Download:
51 You download the compressed archive file from http://sourceforge.net/projects/cupsdriverkodak/
52 It is usually convenient to store the dowloaded file in your home directory.
53
54 Unpack:
55 You uncompress the archive to get several files required to install the driver.
56 If you double click on the dowloaded .tar.gz file, the archive manager should open.
57 Use the extract button to extract files from the archive.
58 The goal is to get a folder called something like c2esp04 (the last 2 digits depend on the version of the driver)in some place you specify, for example in your home folder.
59 This folder should contain the files in the archive.
60
61 (Optional) Install packages needed for this driver to work:
62 You may need to install some packages if you do not already have them, before you can install the driver.
63 I'm assuming you know how to do that (with synaptic package manager).
64 You will need the following:
65 build-essential
66 cups
67 libcups2-dev
68 libcupsimage2-dev
69 libcupsdriver1-dev
70
71 For cups versions 1.6 or later the cups dependencies may be different
72
73 You need to open a terminal for the following steps:
74 ctrl-alt-t will start terminal
75 When the terminal starts you will be in your home folder. You need to navigate to the folder where you unpacked the driver.
76 (in the following NN in the filename c2espNN means the 2 digits of the release no)
77 (so for release 0.4, you would type c2esp04 )
78 For example (in this example "$" represents the prompt, you type what follows the $:
79 $ cd c2espNN
80
81 (Optional) Uninstall:
82 If you have already installed a previous version of this driver, it might be helpful to uninstall it.
83 If not, ignore this step.
84 To uninstall, you type:
85 $ sudo make uninstall
86 The sudo indicates that you want to do some kind of system modification that you would normally be prevented from doing.
87 So you get asked for the password the first time you use sudo.
88
89 Configure:
90 To configure, you type:
91 $ ./configure
92 You may get messages suggesting you need to install some package (see the (Optional) Install packages section above)
93 You may get some warnings, you can probably ignore those.
94
95 Compile:
96 You need to convert the program, written in c, into something your computer can run.
97 To compile, you type:
98 $ make
99 You may get messages suggesting you need to install some package (see the (Optional) Install packages section above)
100 You may get some warnings, you can probably ignore those.
101 You may get some error messages, if so it's unlikely you can continue.
102
103 Install driver, PPD files, and extra files:
104 Various files need to be copied to folders where the system can find them.
105 To install, you type:
106 $ sudo make install
107 The sudo indicates that you want to do some kind of system modification that you would normally be prevented from doing.
108 So you get asked for the password the first time you use sudo.
109
110 Create printers:
111 This is where you tell cups about the new printer.
112 Turn the printer on.
113
114 (in ubuntu 10.xx)
115 Menu: System/Administration/Printing
116 A printer configuration window should open.
117 Click the "new" button, and wait while the system searches for printers, you should get a "Select device" window.
118 Navigate to the printer (network printer or USB printer).
119 I find I have to wait for several seconds after clicking on a network printer for it to be highlighted.
120 If you are setting up a new version of c2esp, you may have more than one version of the printer to choose from.
121 From c2esp11 and later there is more than one ppd file: model 5200 has no duplex, model 5500 has duplex.
122 From c2esp13 and later there are 4 ppd files 5200 non duplex / 5500 duplex, dithered / non dithered
123 Select the file that best matches your printer model. Dithered is better quality, uses more memory and is slower.
124 From c2esp18 and later there is one ppd per printer model. Dithered/non dithered are choices in the colour options.
125 Click "Forward" and wait again for the "Describe printer" window.
126 Change the names if you wish, and click the "Apply" button.
127 Print test page if you wish, but you might do this first:
128 If you right click the newly created printer in the printer configuration window, you can set up some default properties like:
129 Colour or b/w, resolution, paper size etc. (under printer options)
130 I generally make 2 printers, one colour and one b/w. But that's not essential.
131 Also in the printer configuration window, you can see some messages showing progress of the print job.
132
133 (in ubuntu 11.0x)
134 I think you need to use the web interface for cups, point web browser to http://localhost:631/admin
135 Then follow a similar sequence to above to create a printer queue.
136
137 Now there is a script to try and update ppds of existing print queues, if you are updating c2esp
138 $ sudo make forceppd
139 (in ubuntu 11.10 and later)
140 c2esp is included in this disto, so the printer should just work
141 (you may need to create print queue as described for ubuntu 11.0x
142
143
144 Then it should be possible for you to print.
145
146 SIXTY FOUR BIT
147 ------
148 There are three ways that I know to install in 64 bit.
149 1. This way is potentially the easiest, I have not tested it: jolting, made a repository from version c2esp08 Install it like this in terminal: sudo add-apt-repository ppa:jolting/cupsdriverkodak sudo apt-get update sudo apt-get install c2esp
150
151 2. You download the latest tar file (currently c2esp26) and extract it somewhere convenient for you then make and install it. You can find instructions in the extracted tar file, or in some other topics in help. Also you can find some tips from people who have done this in other topics in help.
152
153 3. Debian and Ubuntu now include c2esp as an installable package.
154
155 DEBIAN NOTES
156 ------------
157 BEWARE, THESE DEBIAN NOTES ARE JUST A GUESS THEY ARE UNTESTED.
158
159 Install build-essential, cupsys FIRST:
160 $ su
161 # apt-get install build-essential
162 # apt-get install cupsys
163
164 $ wget -O c2espNN.tar.gz http://<address of file>
165 $ tar zxf c2espNN.tar.gz
166 $ cd c2espNN
167 $ ./configure
168 $ make
169 $ su
170 # make install
171 $ firefox http://localhost:631
172
173
174 UNINSTALLING
175 ------------
176 This will uninstall everything from your system.
177
178 $ su
179 # make uninstall
180
181 BUG REPORTS
182 -----------
183
184 DEVELOPER AND DEBUGGING TIPS
185 ----------------------------
186 c2esp creates some files in /tmp if it was compiled with DEBUGFILES = 1
187 KodakPrintLog - may help to identify where c2esp goes wrong
188 KodakPrintFile - a copy of what gets sent to the printer
189 RasForComp.pbm - the raster data, before it gets compressed and sent to the printer
190
191 In /etc/cups/cupsd.conf
192 Change LogLevel warn to LogLevel debug to get much more information in /var/log/cups/error_log
193 All the logging output that would go into the file KodakPrintLog now goes into cups/error_log.
194 This allows users who install a binary package to get logging data without needing to recompile.
195
196 Since cups/error_log gets quite large,
197 the command c2esplog is provided to extract the lines relevant to c2esp from cups/error_log.
198
199
200