Friday, November 21, 2008

What Goes Inside A Wedding Invitation

nwal003 [print server under slugos - cups]

while cups [common unix printing system] almost out-of-the-box for more than half a year to run with under unslung, it was time the software according to slugos to port. the disadvantages of unslung I have already discussed at length, plus I wanted to get away from the heterogeneous mixture, to a uniform standard of my nslu2 devices.
had said beforehand that the difficulty of the implementation of this software is under slugos only lead to the fact that different installation instructions on the internet are available. it helps nothing here for a guide to follow in cups or unslung OpenSlug or debian, but the instructions are observed by all to howto's accordingly. The following is a manual and a list of possible fall as the print server from me was implemented in slugos, instructions with a focus on existing and their key differences to slugos.
cups is [ipkg] as a package in most distributions. But while under a unslung, ipkg install cups' already constitutes the foundation, must be patched first of all [Optware] under slugos. There is no, stable package cups ', but it is also in slugos, Optware feed' find. cups [version 1.3.9-1] can be downloaded here [http://ftp.easysw.com/pub/cups/1.3.9/cups-1.3.9-source.tar.bz2]. to saying that the [dependencies to other packages], package chain 'is considered, it should first undergo a manual ipkg bootstrap werden. ipkg in der grundinstallation bietet ‚considered stable packages’ als feed an. ‚ipkg update’ hält unter /var/lib/ipkg listen der angebotenen packete zur verfügung. will man aber auf optware repositories [ /opt/lib/ipkg/lists/ ] zugreifen muß man eben ipkg patchen. die grundanleitung gibt es hier .
somit können wir von nun an lediglich durch setzten der path-variable steuern ob wir ipkg mit stable oder eben unstable [optware ] feeds ausführen wollen. beginnend mit
#export PATH=/opt/bin:/opt/sbin:$PATH
setzten wir entsprechend ipkg auf optware-feed [ /opt/bin/ipkg wird nun zuerst berücksichtigt]. weiter der anleitung folgend:
#ipkg install cups
#ipkg install cups-doc [ die statischen html-seiten des web-guis ]
die abhängigen packages libjpeg, libpng, libtiff, openssl, zlib, openldap-libs werden ohne zutun automatisch installiert! wir wechseln in das konfigurations-directory /opt/etc/cups und erkennen die entscheidende config-datei cupsd.conf . [diese ist sehr groß gehalten, und für den ersten schnellen erfolg ungeeignet – security probleme, basic authentication und location directiven werden hier zur ersten unüberwindlichen hürde !!] wir erstellen eine minimalistische cupsd.conf:

cupsd.conf

[ !achtung! - It has been found that a default policy moves, if is not equipped, based his character on basic-authentication. you see the very nice if you booting the cups error log.


... I [21/Nov/2008: 10:14:00 +0100] Creating CUPS default administrative policy:
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;policy default>
I [ 21/Nov/2008: 10:14:00 +0100] \u0026lt;Limit Send-Document Send-URI, Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-
I [21/Nov/2008: 10 : 14:00 +0100] Order Deny, Allow
I [21/Nov/2008: 10:14:00 +0100] Require user @ OWNER @ SYSTEM
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;/ Limit>
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;Limit Pause-Printer Resume-Printer Set- Printer-Attributes Enable-Disable-Printer Printer
I [21/Nov/2008: 10:14:00 +0100] Order Deny, Allow
I [21/Nov/2008: 10:14:00 +0100] AuthType Default
I [21/Nov/2008: 10:14:00 +0100] Require user @ SYSTEM
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;/ Limit>

we ... want to avoid but this case first and define a policy just fine with AuthType None!]
so is the cupsd.conf configuration completed and we dedicate ourselves to the actual printer driver installation, and definition. the cups supplied with printers.conf in / opt / etc / cups / show a hp990c printer. this is obviously not mine, but I use an HP deskjet F2100. significantly but the device definition is under slugos. We will use / dev/lp0 printer as the default device, although we really do not lp0 - ie, a parallel interface - have. unslung under the same printer to work under / dev/usb/lp0. for the correct implementation of the necessary devices will be another kernel module responsible. [! Oops! ipkg feed is now cross or stable - we remove / opt / bin: / usr / sbin in the path]


# export PATH = / usr / local / bin: / usr / bin: / bin: / usr / local / sbin: / usr / sbin: / sbin
# ipkg install kernel-module-usblp
# depmod-a / lib / modules/2.6.21.7/kernel/drivers/usb/class/usblp.ko

and edit our printers.conf follows:
printers.conf

now we even start writing a script so that everything plays together properly, but instead we use the cups supplied with template / opt/doc/cups/S88cups.
two small adaptations are necessary in this case:

  • replace the printer driver definition
    if
    to see [http://www.nslu2-linux.org/wiki/OpenSlug/InstallCups]

    if ((lsmod
    start and test it with a browser, the web-gui http://nwal003:631 - the cups surface appears.
    but as I print primarily on windows, I'm not going to the web-gui received, it will give only a first impression.
    under windows to install the printer driver, we have not. Ppd file in cups deposited [the printer serves as a kind of raw device]. We define it as a valid TCP network printers and can now run the printer from the pressure-control manager.


0 comments:

Post a Comment