Changeset fde7a06
- Timestamp:
- 10/29/2014 11:41:19 PM (9 years ago)
- Branches:
- krejzi/svn
- Children:
- 533ebfd
- Parents:
- 3f05421
- Files:
-
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
introduction/welcome/changelog.xml
r3f05421 rfde7a06 51 51 </listitem> 52 52 <listitem> 53 <para>[krejzi] - Changed CUPS, CUPS-Filters and Gutenprint instructions to work on systemd setups.</para> 54 </listitem> 55 <listitem> 53 56 <para>[krejzi] - Changed ALSA-Utils instructions to work on systemd setups.</para> 54 57 </listitem> -
pst/printing/cups-filters-systemd.xml
r3f05421 rfde7a06 6 6 7 7 <!ENTITY cups-filters-download-http 8 "http://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">8 "http://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz"> 9 9 <!ENTITY cups-filters-download-ftp " "> 10 10 <!ENTITY cups-filters-md5sum "f16a422bf3135e90b83f969c13a259cf"> … … 114 114 <sect2 role="installation"> 115 115 <title>Installation of CUPS Filters</title> 116 117 <para> 118 First, fix the systemd unit file to work with 119 <application>CUPS</application> 2.0 and later: 120 </para> 121 122 <screen><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen> 116 123 117 124 <para> … … 140 147 <screen role="root"><userinput>make install</userinput></screen> 141 148 149 <para> 150 Install the systemd unit by running the following command as the 151 <systemitem class="username">root</systemitem> user: 152 </para> 153 154 <screen role="root"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen> 155 142 156 </sect2> 143 157 … … 183 197 </sect2> 184 198 185 <!-- TODO: Write a bootscript for cups-browsed --> 199 <sect2 role="configuration"> 200 <title>Configuring Cups Filters</title> 201 202 <sect3 id="cups-filters-init"> 203 <title>Systemd Units</title> 204 205 <para> 206 To start the <command>cups-browsed</command> daemon at boot, enable 207 the previously installed systemd unit by running the following command 208 as the <systemitem class="username">root</systemitem> user: 209 </para> 210 211 <indexterm zone="cups-filters cups-filters-init"> 212 <primary sortas="f-cups-browsed">cups-browsed</primary> 213 </indexterm> 214 215 <screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen> 216 217 </sect3> 218 219 </sect2> 186 220 187 221 <sect2 role="content"> -
pst/printing/cups-systemd.xml
r3f05421 rfde7a06 78 78 <para role="recommended"> 79 79 <xref linkend="colord"/>, 80 <xref linkend="dbus"/> ,and80 <xref linkend="dbus"/> and 81 81 <xref linkend="libusb"/> 82 82 </para> … … 91 91 <xref linkend="openjdk"/>, 92 92 <xref linkend="php"/>, 93 <xref linkend="python2"/> ,and93 <xref linkend="python2"/> and 94 94 <xref linkend="xdg-utils"/> 95 96 </para> 97 98 <bridgehead renderas="sect4">Required (Postinstall)</bridgehead> 99 <para role="required runtime"> 95 </para> 96 97 <bridgehead renderas="sect4">Required (Runtime)</bridgehead> 98 <para role="optional"> 100 99 <xref linkend="cups-filters"/> 101 100 </para> 102 101 103 <bridgehead renderas="sect4">Optional (Postinstall)</bridgehead> 104 <para role="optional runtime"> 102 <bridgehead renderas="sect4">Optional (Runtime)</bridgehead> 103 <para role="optional"> 104 <ulink url="https://www.openprinting.org/download/foomatic/">Foomatic</ulink>, 105 105 <xref linkend="gutenprint"/> and 106 <ulink url="http://hplipopensource.com/hplip-web/index.html"> hplip</ulink> (HP printers)107 </para> 108 106 <ulink url="http://hplipopensource.com/hplip-web/index.html">HPLIP</ulink> (HP printers) 107 </para> 108 109 109 <para condition="html" role="usernotes">User Notes: 110 110 <ulink url="&blfs-wiki;/cups"/> … … 211 211 </para> 212 212 213 <screen><userinput>sed -i 's:555:755:g;s:444:644:g' Makedefs.in && 214 sed -i '/MAN.*.EXT/s:.gz::g' \ 215 configure config-scripts/cups-manpages.m4 && 216 sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4 && 213 <screen><userinput>sed -i "s:555:755:g;s:444:644:g" Makedefs.in && 214 sed -i "/MAN.*.EXT/s:.gz::g" config-scripts/cups-manpages.m4 && 215 sed -i "/LIBGCRYPTCONFIG/d" config-scripts/cups-ssl.m4 && 217 216 218 217 aclocal -I config-scripts && … … 220 219 221 220 ./configure --libdir=/usr/lib \ 222 --disable-systemd \223 221 --with-rcdir=/tmp/cupsinit \ 224 222 --with-system-groups=lpadmin \ … … 240 238 <screen role="root"><userinput>make install && 241 239 rm -rf /tmp/cupsinit && 242 ln -s vnf../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen>240 ln -sfv ../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen> 243 241 244 242 <para> … … 262 260 <para> 263 261 If you reinstall or update <application>Cups</application>, commands 264 above break <xref linkend="cups-filters"/>, which needs, therefore, 265 to be reinstalled.</para> 262 above will break <xref linkend="cups-filters"/>, so it needs to be 263 reinstalled. 264 </para> 266 265 </note> 267 266 … … 275 274 276 275 <para> 277 <command>sed ... Makedefs.in</command>: Fix files and directories278 permissions .279 </para> 280 281 <para> 282 <command>sed ... cups-manpages.m4</command>: This sed prevents283 compression of the man pages by default.284 </para> 285 286 <para> 287 <command>sed ... cups-ssl.m4</command>: Prevent288 <command>configure</command> script from searching276 <command>sed -i ... Makedefs.in</command>: This sed fixes 277 permissions of the installed files and directories. 278 </para> 279 280 <para> 281 <command>sed -i ... cups-manpages.m4</command>: This sed 282 prevents compression of the man pages by default. 283 </para> 284 285 <para> 286 <command>sed -i ... cups-ssl.m4</command>: This sed prevents 287 <command>configure</command> from searching for 289 288 <command>libgcrypt-config</command>, because 290 <application>libgcrypt</application> is not used anywere else inthe289 <application>libgcrypt</application> is not required by the 291 290 package. 292 </para>293 294 <para>295 <parameter>--disable-systemd</parameter>: Systemd is not supported by296 BLFS.297 291 </para> 298 292 … … 341 335 342 336 <para> 343 Normally, printers are set up via a web browser. The 344 <application>Cups</application> server will normally connect via 345 the url http://localhost:631. From there printers, print 346 jobs, and the server configuration can be set up and managed. 347 Remote system administration can also be set up. Configuration 348 can also be done from the command line via the 349 <command>lpadmin</command>, <command>lpoptions</command>, 350 and <command>lpstat</command> commands. 337 The <application>Cups</application> web interface can be accessed 338 via <ulink url="http://localhost:631"/>. From there, printers 339 and print jobs can be managed, and the server configuration 340 can be changed. Configuration can also be done from the command 341 line using the <command>lpadmin</command>, 342 <command>lpoptions</command> and <command>lpstat</command> 343 commands. 351 344 </para> 352 345 … … 402 395 403 396 <sect3 id="cups-init"> 404 <title> Boot Script</title>397 <title>Systemd Units</title> 405 398 406 399 <para> 407 If you want the <application>Cups</application> print service to start408 a utomatically when the system is booted, install the init409 script included in the <xref linkend="bootscripts"/>410 package:400 To start the <command>cupsd</command> daemon when something tries to 401 access it, enable the previously installed systemd units by running 402 the following command as the 403 <systemitem class="username">root</systemitem> user: 411 404 </para> 412 405 … … 415 408 </indexterm> 416 409 417 <screen role="root"><userinput> make install-cups</userinput></screen>410 <screen role="root"><userinput>systemctl enable org.cups.cupsd</userinput></screen> 418 411 419 412 </sect3> … … 435 428 cupstestppd, ippfind, ipptool, lp, lpadmin, lpc, lpinfo, lpmove, 436 429 lpoptions, lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge, 437 ppdpo ,and reject430 ppdpo and reject 438 431 </seg> 439 432 <seg> 440 433 libcupscgi.so, libcupsimage.so, libcupsmime.so, 441 libcupsppdc.so ,and libcups.so434 libcupsppdc.so and libcups.so 442 435 </seg> 443 436 <seg> … … 449 442 /var/cache/cups, 450 443 /var/log/cups, 451 /var/run/cups ,and444 /var/run/cups and 452 445 /var/spool/cups 453 446 </seg> -
pst/printing/gs.xml
r3f05421 rfde7a06 79 79 <title>Standard Fonts</title> 80 80 <listitem> 81 <para>Download ( HTTP): <ulink url="&gs-standard-fonts-download;"/></para>81 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para> 82 82 </listitem> 83 83 <listitem> … … 120 120 suggested font), 121 121 <xref linkend="gtk2"/>, 122 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), 122 123 <xref linkend="libidn"/>, 123 <xref linkend="libpaper"/>, 124 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), and 124 <xref linkend="libpaper"/>, and 125 125 <xref linkend="x-window-system"/> 126 126 </para> … … 156 156 copies of <application>expat</application>, 157 157 <application>freetype</application>, <application>lcms2</application>, 158 <application>libjpeg</application>, and <application>libpng</application>: 158 <application>libjpeg</application>, <application>libpng</application> 159 and <application>zlib</application>: 159 160 </para> 160 161 161 162 <screen><userinput>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure && 162 rm -rf expat freetype lcms2 jpeg libpng </userinput></screen>163 rm -rf expat freetype lcms2 jpeg libpng zlib</userinput></screen> 163 164 <!-- 164 165 <note> … … 174 175 <para>Compile <application>Ghostscript</application>:</para> 175 176 176 <screen><userinput>rm -rf zlib && 177 ./configure --prefix=/usr --disable-compile-inits \ 178 --enable-dynamic --with-system-libtiff && 177 <screen><userinput>./configure --prefix=/usr \ 178 --disable-compile-inits \ 179 --enable-dynamic \ 180 --with-system-libtiff && 179 181 make</userinput></screen> 180 182 … … 210 212 <para>If you want the shared library too:</para> 211 213 212 <screen role="root"><userinput>make soinstall &&214 <screen role="root"><userinput>make soinstall<!-- && 213 215 install -v -m644 base/*.h /usr/include/ghostscript && 214 ln -v -s ghostscript /usr/include/ps </userinput></screen>216 ln -v -s ghostscript /usr/include/ps--></userinput></screen> 215 217 216 218 <para>Now make the documentation accessible from the normal place:</para> … … 237 239 <para> 238 240 <command>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' ... </command>: 239 Fix to build with system <application>zlib</application>.240 </para> 241 242 < para>241 Fixes building with system <application>Zlib</application>. 242 </para> 243 244 <!-- <para> 243 245 <command>rm -rf zlib</command>: 244 246 <application>zlib</application> was installed as part of LFS. 245 </para> 247 </para> --> 246 248 247 249 <para> … … 255 257 </para> 256 258 257 < para>259 <!-- <para> Nothing needs these. The ones installed by soinstall are sufficient. 258 260 <command>install -v -m644 base/*.h... </command>: Some packages 259 261 (<application>ImageMagick</application> is one) need the … … 262 264 </para> 263 265 264 <para> 266 <para> Haven't found anything that needs this 265 267 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages 266 268 expect to find the interface headers in an alternate location. 267 </para> 269 </para> --> 268 270 269 271 <para> … … 277 279 to the <xref linkend="cups"/> libraries if you have installed those. 278 280 </para> 281 279 282 </sect2> 280 283 -
pst/printing/gutenprint-systemd.xml
r3f05421 rfde7a06 173 173 class="username">root</systemitem> user):</para> 174 174 175 <screen role="root"><userinput> /etc/rc.d/init.d/cups restart</userinput></screen>175 <screen role="root"><userinput>systemctl restart org.cups.cupsd</userinput></screen> 176 176 177 177 <!-- <para>This command may take a long time (up to 10 minutes) -
pst/printing/printing.xml
r3f05421 rfde7a06 20 20 or paper.</para> 21 21 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups .xml"/>23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters .xml"/>22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-systemd.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters-systemd.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gs.xml"/> 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gutenprint .xml"/>25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gutenprint-systemd.xml"/> 26 26 27 27 </chapter>
Note:
See TracChangeset
for help on using the changeset viewer.