Giter VIP home page Giter VIP logo

dockerfiles's Introduction

Dockerfiles Build Status

A collection of Dockerfiles.

Fresh images are generated by the CI on a daily basis.

Images

Note: images are based on the official Debian images (slim versions)

Dependencies

Project's structure

  • Each directory contains dockerfiles used to build a specific image
  • build.sh: builds images and tag them using their directory and the extension of their Dockerfile (i.e. the gnupg/Dockerfile.unstable is used to build the $DOCKER_USER/gnupg:unstable image).
  • build.env: contains settings for the build.sh script
  • gen-dockerfiles.sh: this script is used to generate dockefiles every time a gen-*.env file is found in a directory (the Dockerfile is generated using the gen-$TYPE-dockerfile.sh script and named Dockerfile.$TYPE)
  • gen-light-dockerfile.sh: this script is used to generate multi-stage dockefiles used to build light images that only contains a few executables and static files (no system tools, no shell, ...).
  • */gen-*.env: contains settings for the Dockerfile generation scripts

dockerfiles's People

Contributors

olbat avatar peczenyj avatar stellarpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Error launching docker image

Hi, I'm running the cups on my docker, but there's some error starting it up
on raspbian 4 buster.

`standard_init_linux.go:211: exec user process caused "exec format error"

standard_init_linux.go:211: exec user process caused "exec format error"

standard_init_linux.go:211: exec user process caused "exec format error"`

Please do let me know if I can provide other logs.

HP LaserJet MFP M1005

My printer HP LaserJet MFP M1005 is not detected. I've seen the output of lsusb on the host. The lsusb shows my printer but the docker app doesn't detect my printer.

docker won't start with volumes mapped

Hi, I have been trying to setup your cups docker on Unraid and can get it working but cannot work out how to make my setup persist a reboot! I've tried mapping /etc/cups to appdata/cups/config on host but this causes the container to fail to start, my limited knowledge of docker says that appdata is overwriting the container when I want it the other way round yes? Also need the HP plugin to persist as my Laserjet CP1025 color needs the propriatry plugin! If I run hp-plugin in the container console and accept the license then it works until reboot!

My docker run command:
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='cupsd' --net='host' -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'TCP_PORT_631'='631' -v '/var/run/dbus/':'/var/run/dbus/':'rw' -v '/dev/':'/dev/':'rw' -v '/mnt/user/appdata/cupsd/logs':'/var/log':'rw' -v '/mnt/user/appdata/cupsd/config':'/etc/cups/':'rw' -v '/mnt/user/appdata/cupsd/hpconfig':'/etc/hp/':'rw' 'olbat/cupsd'

Yours hopefully,
Tim

User on CUPS print server image: container always restarts

I want to use this configuration:

cups:
    container_name: sf4_cups
    image: olbat/cupsd
    ports:
      - 631:631
    restart: always
    volumes:
      - .docker/cups/printers.conf:/etc/cups/printers.conf

But the mounting file printers.conf has its rights which change to root:

root

So, I trie to add user to config:

cups:
    container_name: sf4_cups
    image: olbat/cupsd
    ports:
      - 631:631
    restart: always
    user: "${USER_ID}:${GROUP_ID}"
    volumes:
      - .docker/cups/printers.conf:/etc/cups/printers.conf

But with this configuration, the container always restarts:

docker_ps

/config

Is there a way to create a /config so that when I create printer and it auto update or I recreate it I don't loss all configuration data.

Web interface is not working

Hi,

I've tried to run the container using the manual, but Web UI is not working at all.

If I use --net=host, CUPS error_log is empty, and I get this:

127.0.0.1 refused to connect. ERR_CONNECTION_REFUSED

I've also tried to run the container without --net=host (631:631 port mapping).
In this case, CUPS error_log shows the following:

Unable to open listen socket for address [v1.::1]:631 - Cannot assign requested address for address [v1.::1]:631 - Cannot assign requested address.

netstat -plnt

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1/cupsd

And http://127.0.0.1:631/ shows me this:

127.0.0.1 didn’t send any data. ERR_EMPTY_RESPONSE

HP LaserJet MFP M1005

My printer HP LaserJet MFP M1005 is not detected. I've seen the output of lsusb on the host. The lsusb shows my printer but the docker app doesn't detect my printer.

Cannot resolve *.local hostname from docker

I successfully run CUPS container, add printer.
But I'm faced with problem that CUPS cannot resolve .local hostname of printer when I print test page.
I'm not so confident in mDNS, avahi, etc. I will be very appreciate for any advice.
It works perfectly when i just start CUPS on host without docker

Bad Request from Kubernetes

I've got the attached kubernets yaml. When I hit the service directly I get a Bad Request response. Interestingly if I send the header Host: localhost it seems to work just fine.

my log (/var/log/cups/error_log ) files show the following error showing it failing when I access the service directly and through istio behind the domain.

E [22/Apr/2022:19:57:53 +0000] [Client 131] Request from "localhost" using invalid Host: field "10.10.20.138:631".
E [22/Apr/2022:20:09:15 +0000] [Client 149] Request from "localhost" using invalid Host: field "cups.sk.stringking.com".

I've added the below configs as frequently reccomended.

Listen *:631
ServerAlias *
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: p1
  labels:
    p1.service: p1-cups
  name: cups
spec:
  replicas: 1
  selector:
    matchLabels:
      p1.service: cups
  template:
    metadata:
      labels:
        p1.service: cups
    spec:
      containers:
        - name: cups
          image: olbat/cupsd
          ports:
            - containerPort: 631
          volumeMounts:
            - name: cups
              mountPath: /data
            - name: cups-config
              mountPath: /etc/cups/cupsd.conf
              subPath: cupsd.conf
          imagePullPolicy: Always
      restartPolicy: Always
      volumes:
        - name: cups
          persistentVolumeClaim:
            claimName: cups
        - name: cups-config
          configMap:
            name: cups-config
---
apiVersion: v1
kind: Service
metadata:
  namespace: p1
  name: p1-cups-service
  labels:
    p1.service: p1-cups-service
spec:
  ports:
    - name: http
      protocol: TCP
      port: 631
      targetPort: 631
  selector:
    p1.service: cups
  type: LoadBalancer
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: p1-cups
  namespace: p1
spec:
  gateways:
  - {{ .Values.web.gateway }}
  hosts:
  - "cups.sk.stringking.com"
  http:
  - name: p1
    match:
    route:
    - destination:
        host: p1-cups-service
        port:
          number: 631
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: cups
  namespace: p1
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: "storefs1-rook-cephfs"
  resources:
    requests:
      storage: 10Gi
---
apiVersion: v1
kind: ConfigMap
metadata:
  namespace: p1
  name: cups-config
data:
  cupsd.conf: |
    #
    # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
    # complete description of this file.
    #
    
    # Log general information in error_log - change "warn" to "debug"
    # for troubleshooting...
    LogLevel warn
    
    # Deactivate CUPS' internal logrotating, as we provide a better one, especially
    # LogLevel debug2 gets usable now
    MaxLogSize 0
    
    # Listen on external interfaces for connections
    Listen *:631
    Listen /var/run/cups/cups.sock
    ServerAlias *
    
    # Show shared printers on the local network.
    Browsing On
    
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    
    # Restrict access to the server...
    <Location />
      Order allow,deny
      Allow localhost
      Allow All
    </Location>
    
    # Restrict access to the admin pages...
    <Location /admin>
      Order allow,deny
      Allow All
    </Location>
    
    # Restrict access to configuration files...
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
      Allow All
    </Location>
    
    # Set the default printer/job policies...
    <Policy default>
      # Job/subscription privacy...
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
    
      # Job-related operations must be done by the owner or an administrator...
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        Order deny,allow
      </Limit>
    
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      # All administration operations require an administrator to authenticate...
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # All printer operations require a printer operator to authenticate...
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # Only the owner or an administrator can cancel or authenticate a job...
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    
    # Set the authenticated printer/job policies...
    <Policy authenticated>
      # Job/subscription privacy...
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
    
      # Job-related operations must be done by the owner or an administrator...
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        AuthType Default
        Order deny,allow
      </Limit>
    
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      # All administration operations require an administrator to authenticate...
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # All printer operations require a printer operator to authenticate...
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
    
      # Only the owner or an administrator can cancel or authenticate a job...
      <Limit Cancel-Job CUPS-Authenticate-Job>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
    
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>

Can't create temporary file

Hello, I have been trying to get cupsd working on my OMV 4 server using docker.
i have managed to install the printer, but after i print a new job it says:

Stopped: "Can't create temporary file"

this is the log from my /var/log/cups/error_log, it's a picture from putty, because i don't know how to get the file out of docker container.
error_log

i have tried to put it with --privileged and --tmpfs /tmp.
Thanks

I can't install lsb

root@cupsd:/# sudo apt-get install lsb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package lsb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lsb' has no installation candidate

How to fix .

Printing error: Unable to determine number of pages, page count: -1

I'm running olbat/cupsd: 7c36346746d6

Windows 10 Test page prints OK. I am seeing the following issue while printing from Chrome 78.0.3904.70 on MacOS Mojave 10.14.6:

D [26/Oct/2019:14:51:24 -0400] [Job 7] Device protocol: 2
D [26/Oct/2019:14:51:24 -0400] [Job 7] Sending data to printer.
D [26/Oct/2019:14:51:24 -0400] [Job 7] Process is dying with "Unable to determine number of pages, page count: -1
D [26/Oct/2019:14:51:24 -0400] [Job 7] ", exit stat 3
D [26/Oct/2019:14:51:24 -0400] [Job 7] Cleaning up...
D [26/Oct/2019:14:51:24 -0400] [Job 7] PID 190 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3.
D [26/Oct/2019:14:51:24 -0400] [Job 7] Hint: Try setting the LogLevel to "debug" to find out more.
D [26/Oct/2019:14:51:24 -0400] [Job 7] Sent 0 bytes...
D [26/Oct/2019:14:51:24 -0400] [Job 7] Waiting for read thread to exit...
D [26/Oct/2019:14:51:24 -0400] [Job 7] PID 191 (/usr/lib/cups/backend/usb) exited with no errors.
D [26/Oct/2019:14:51:24 -0400] [Job 7] End of messages
D [26/Oct/2019:14:51:24 -0400] [Job 7] printer-state=3(idle)
D [26/Oct/2019:14:51:24 -0400] [Job 7] printer-state-message="Sending data to printer."
D [26/Oct/2019:14:51:24 -0400] [Job 7] printer-state-reasons=none

It looks like the following cups-filters bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926576

It claims that the bug was fixed in cups-filters 1.22.5-1

Here are the related apt packages:

# apt list cups-filters
Listing... Done
cups-filters/now 1.25.11-1 amd64 [installed,local]
# apt list ghostscript
Listing... Done
ghostscript/now 9.27~dfsg-3.1 amd64 [installed,local]

Since the image is using cups-filters 1.25.11-1, it should contain the fix.

@olbat Have you encountered this yourself? Maybe the fix is not in the debian/testing image?

Problems Runing Cups on Synology as a docker

Hi Olbat (and all),

I'm trying to run Cups in a docker and the launch goed fine, setp also works and i can see the printer on my Iphone.
When I launch a print job I can select the printer (using Gutenberg driver HP3800dn).

The problems comes when actually printing, it somtimes start printing but stops after one page or does not rpint at all.

Maybe you can share your expertise on htis issue?

Hemant

hp 1020 plus

Thank you for sharing! ~

I have two printers, EPSION R1430 is normal
The HP 1020 PLUES 3 drivers tried and could not connect properly.
The specific performance is that after adding a printer, the test page cannot be printed.

Installation command:
docker run -d -p 631:631 --privileged -v /dev/bus/usb:/dev/bus/usb --name cupsd olbat/cupsd
PS: Local printer status cannot be found without adding the --privileged parameter.

Look forward to your reply~

install cups at the DiskStation Docker

install cups at the DiskStation Docker

PC can use the printer, but user selects a printer and presses "print";
after an elapsed period, an error message is displayed on the iOS device: "The printer is offline."

how to fix it?

Unable to print on Brother DCP-J125

I've managed to install CUPS via Docker without issues.
Printer is connected using USB to the machine
Added binding dev/bus/usb:/dev/bus/usb so now I can see the printer under CUPS Admin panel.
Added PPD file in Admin Panel. All looks good but it's not printing :(
I get status: Idle - "File "/usr/lib/cups/filter/brlpdwrapperdcpj125" not available: No such file or directory"

Can you please advise me how I can fix this issue?

Docker not persistent

No volumes expose to create a persistent container that doesn't loose info on server reboot or docker recreate/upgrade.

Synology NAS docker, CUPS not printing information sent via IPP

Hi there,

I'm not sure exactly where to start with this one, or exactly what information to give, but I will be happy to supply logs etc if requested. Basically I am running this docker container on my Synology NAS, latest DSM 7.0 (was running on version 6 before as well with same issue), and the printer (Brother QL810W) seems to hang on jobs sent via IPP using nodeJS. It goes into a waiting to print mode that never ends. I know the printer does work correctly through CUPS, as I am able to print a test page via the CUPS interface as well as change the label stock etc. hHre is the process I go through:

  • Generate PDF file using nodeJS on same server running CUPS
  • Send PDF file via IPP to CUPS printer
  • Printer receives and processes jobs, but hangs and never prints.
  • The light flashes green, but no error pops up, it is simply waiting to print, as if it hasn't sent all the data.

I will compile a zip that has the code and output that I see and upload it shortly. For now, I have uploaded what I have access to, which is the nodeJS file that sends the data to cups.
nodetest.zip

I hope you can help me work this one out. I feel like it is so close to working, but something small is missing. Thanks!

Printer not detected under 'add printer'

Hi,

Please let me know if this is the wrong place to ask this.

My Brother HL-1110 is not showing up in the list under 'add printer'. I'm sure it's passed through to the container, it is listed when running lsusb. Is there a way to troubleshoot this?

I tried manually adding it through usb://Brother/HL-1110?serial=XXXXXXXX but this didn't do the trick either.

Thanks in advance!

Bad Request

Hello,

I was hoping I could get some advice on an issue I'm facing.

I've installed the container using the given command on Docker Hub:

docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsd

I have also opened port 631 on my server's firewall.

I have a problem however, if I attempt to reach CUPS using my servers DNS and the port I am met with the message "Bad Request".

As far as I understand, I need to change the ServerAlias setting so that CUPS can be accessed externally, but I am a total novice when it comes to Docker and am not sure how I go about this when I do not have access to the files contained with Docker container.

Any advice would be greatly appreciated. The server I have installed this docker container on is running CentOS 8.

Thanks,

Dan

cupsd: modify cupsd.conf

Is there any way to mount cupsd configs externally?

Are there any downsides to just mounting /etc/cupsd externally?

unable to install brother printer

hello i'm trying to install a laser printer hl-4140 with brother driver tool but it crashes and I have to do a dpkg --configure -a that leads nowhere.
https://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.1-1.gz

root@omvnas:/# gunzip linux-brprinter-installer-2.2.1-1.gz
root@omvnas:/# sudo su
root@omvnas:/# sudo bash linux-brprinter-installer-2.2.1-1
Input model name ->hl-4140cn

You are going to install following packages.
hl4140cnlpr-1.1.1-5.i386.deb
hl4140cncupswrapper-1.1.1-5.i386.deb
OK? [y/N] ->y

=========================================
Brother License Agreement

Brother retains any and all copyrights to the Software. In no case this Agreement shall be construed to assign or otherwise transfer from Brother to User any copyrights or other intellectual property rights to whole or any part of the So
ftware.

Brother grants User a non-exclusive license: to reproduce and/or distribute (via Internet or in any other manner) the Software. Further, Brother grants User a non-exclusive license to modify, alter, translate or otherwise prepare derivat
ive works of the Software and to reproduce and distribute (via Internet or in any other manner) such modification, alteration, translation or other derivative works for any purpose.

The license of the Software from Brother hereunder is granted "AS IS." BROTHER HEREBY DISCLAIMS ANY WARRANTIES WITH RESPECT TO THE SOFTWARE, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTY FOR THE QUALITY, MERCHANTABILITY, FITN
ESS FOR PARTICULAR PURPOSE OR NON-INFRINGEMENT.
Brother shall have no liability in contract, tort (including negligence or breach of statutory duty) or otherwise for any interruption of use, loss of data, or for any indirect, incidental, punitive or consequential loss or damage, or fo
r any loss of profit, revenue, data, goodwill or anticipated savings that arises under, out of, or in contemplation of this Agreement or otherwise arises due to any error, inaccuracy or defect in the Software even if Brother has been adv
ised of the possibility of such loss or damage.
Further, Brother shall have no liability to disclose and/or distribute the source cord of the Software to User under any circumstances. In no case shall the above license by Brother to modify, alter, translate or otherwise prepare deriva
tive works of the Software be construed as Brother's implied agreement or undertakings to disclose and/or distribute the source cord of the Software.

Do you agree? [Y/n] ->Y

wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/hl4140cnlpr-1.1.1-5.i386.deb
--2019-09-09 14:34:54-- http://www.brother.com/pub/bsc/linux/packages/hl4140cnlpr-1.1.1-5.i386.deb
Résolution de www.brother.com (www.brother.com)… 23.222.51.20
Connexion à www.brother.com (www.brother.com)|23.222.51.20|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 755656 (738K) [application/x-troff-man]
Sauvegarde en : « hl4140cnlpr-1.1.1-5.i386.deb »

hl4140cnlpr-1.1.1-5.i386.deb 100%[========================================================================================================================================>] 737.95K 4.31MB/s ds 0.2s

2019-09-09 14:34:54 (4.31 MB/s) — « hl4140cnlpr-1.1.1-5.i386.deb » sauvegardé [755656/755656]

=========================================
GPL License Agreement

This Software may be used in accordance with GNU General Public License (GPL). Please read carefully the following GPL and click on "I Accept" button. If you cannot agree with the following terms, please click "I don't Accept" button. In
case of your non-acceptance, you can not use this Software.
Note:
Please click on "I Accept" while holding down "Shift" or right click on "I Accept" and select "Save Target As,,," from the menu.

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Preamble

The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software
is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to your programs, too.

When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that
you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.

To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the soft
ware, or if you modify it.

For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their rights.

We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.

Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know th
at what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.

Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this
, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.

The precise terms and conditions for copying, distribution and modification follow.

GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or
    work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into a
    nother language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of war
    ranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.

    You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet al
    l of these conditions:

    a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this Li
    cense.

    c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user ho
    w to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)

    These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and
    its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms
    of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.

    Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on t
    he Program.

    In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this Lic
    ense.

  3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding
    source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such an offer, in accord with Subsection b above.)

    The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface defin
    ition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary
    form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.

    If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even th
    ough third parties are not compelled to copy the source along with the object code.

  4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate
    your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.

  5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not a
    ccept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying
    the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. Y
    ou may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.

  7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict th
    e conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequ
    ence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could
    satisfy both it and this License would be to refrain entirely from distribution of the Program.

    If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.

    It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free softwar
    e distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it
    is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.

    This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographic
    al distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new probl
    ems or concerns.

    Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that
    version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.

  10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, wri
    te to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of softw
    are generally.

NO WARRANTY

  1. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
    "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE P
    ROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  2. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENE
    RAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILUR
    E OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a point
er to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio
n.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) year name of author Gnomovision
comes with ABSOLUTELY NO WARRANTY; for details type show w'. This is free software, and you are welcome to redistribute it under certain conditions; type show c' for details.

The hypothetical commands show w' and show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than show w' and show c'; they could even be mouse-clicks or
menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If th
is is what you want to do, use the GNU Library General Public License instead of this License.

Do you agree? [Y/n] ->Y

wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/hl4140cncupswrapper-1.1.1-5.i386.deb
--2019-09-09 14:34:56-- http://www.brother.com/pub/bsc/linux/packages/hl4140cncupswrapper-1.1.1-5.i386.deb
Résolution de www.brother.com (www.brother.com)… 23.222.51.20
Connexion à www.brother.com (www.brother.com)|23.222.51.20|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 12274 (12K) [application/x-troff-man]
Sauvegarde en : « hl4140cncupswrapper-1.1.1-5.i386.deb »

hl4140cncupswrapper-1.1.1-5.i386.deb 100%[========================================================================================================================================>] 11.99K --.-KB/s ds 0.002s

2019-09-09 14:34:56 (5.01 MB/s) — « hl4140cncupswrapper-1.1.1-5.i386.deb » sauvegardé [12274/12274]

Réception de :1 http://cdn-fastly.deb.debian.org/debian testing InRelease [109 kB]
Réception de :2 http://cdn-fastly.deb.debian.org/debian testing/main amd64 Packages [10.4 MB]
10.5 Mo réceptionnés en 2s (6,005 ko/s)
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Aucune version du paquet ia32-libs n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source
Cependant les paquets suivants le remplacent :
lib32z1

E: Le paquet « ia32-libs » n'a pas de version susceptible d'être installée
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
lib32gcc1 libc6-i386
Les NOUVEAUX paquets suivants seront installés :
lib32gcc1 lib32stdc++6 libc6-i386
0 mis à jour, 3 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 3,438 ko dans les archives.
Après cette opération, 16.4 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [Y/n] Y
Réception de :1 http://cdn-fastly.deb.debian.org/debian testing/main amd64 libc6-i386 amd64 2.28-10 [2,872 kB]
Réception de :2 http://cdn-fastly.deb.debian.org/debian testing/main amd64 lib32gcc1 amd64 1:9.2.1-4 [47.8 kB]
Réception de :3 http://cdn-fastly.deb.debian.org/debian testing/main amd64 lib32stdc++6 amd64 9.2.1-4 [518 kB]
3,438 ko réceptionnés en 1s (4,236 ko/s)
debconf: delaying package configuration, since apt-utils is not installed
Sélection du paquet libc6-i386 précédemment désélectionné.
(Lecture de la base de données... 22079 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../libc6-i386_2.28-10_amd64.deb ...
Dépaquetage de libc6-i386 (2.28-10) ...
Sélection du paquet lib32gcc1 précédemment désélectionné.
Préparation du dépaquetage de .../lib32gcc1_1%3a9.2.1-4_amd64.deb ...
Dépaquetage de lib32gcc1 (1:9.2.1-4) ...
Sélection du paquet lib32stdc++6 précédemment désélectionné.
Préparation du dépaquetage de .../lib32stdc++6_9.2.1-4_amd64.deb ...
Dépaquetage de lib32stdc++6 (9.2.1-4) ...
Paramétrage de libc6-i386 (2.28-10) ...
Paramétrage de lib32gcc1 (1:9.2.1-4) ...
Paramétrage de lib32stdc++6 (9.2.1-4) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.28-10) ...
dpkg -x hl4140cnlpr-1.1.1-5.i386.deb /
dpkg -x hl4140cncupswrapper-1.1.1-5.i386.deb /
dpkg-deb: building package 'hl4140cnlpr' in 'hl4140cnlpr-1.1.1-5a.i386.deb'.
dpkg -b ./brother_driver_packdir hl4140cnlpr-1.1.1-5a.i386.deb
dpkg-deb: building package 'hl4140cncupswrapper' in 'hl4140cncupswrapper-1.1.1-5a.i386.deb'.
dpkg -b ./brother_driver_packdir hl4140cncupswrapper-1.1.1-5a.i386.deb
dpkg -i --force-all hl4140cnlpr-1.1.1-5a.i386.deb
dpkg: avertissement: problème contourné par utilisation de --force :
dpkg: avertissement: l'architecture du paquet (i386) ne correspond pas à celle du système (amd64)
Sélection du paquet hl4140cnlpr:i386 précédemment désélectionné.
(Lecture de la base de données... 22392 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de hl4140cnlpr-1.1.1-5a.i386.deb ...
Dépaquetage de hl4140cnlpr:i386 (1.1.1-5) ...
Paramétrage de hl4140cnlpr:i386 (1.1.1-5) ...
mkdir: impossible de créer le répertoire « /var/spool/lpd/hl4140cn »: Aucun fichier ou dossier de ce type
chown: impossible d'accéder à '/var/spool/lpd/hl4140cn': Aucun fichier ou dossier de ce type
chgrp: impossible d'accéder à '/var/spool/lpd/hl4140cn': Aucun fichier ou dossier de ce type
chmod: impossible d'accéder à '/var/spool/lpd/hl4140cn': Aucun fichier ou dossier de ce type
dpkg -i --force-all hl4140cncupswrapper-1.1.1-5a.i386.deb
dpkg: avertissement: problème contourné par utilisation de --force :
dpkg: avertissement: l'architecture du paquet (i386) ne correspond pas à celle du système (amd64)
Sélection du paquet hl4140cncupswrapper:i386 précédemment désélectionné.
(Lecture de la base de données... 22424 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de hl4140cncupswrapper-1.1.1-5a.i386.deb ...
Dépaquetage de hl4140cncupswrapper:i386 (1.1.1-5) ...
Paramétrage de hl4140cncupswrapper:i386 (1.1.1-5) ...
block ==> Restarting Common Unix Printing System: cupsdroot@omvnas:~#

after restarting i use dpkg --configure -a but not issue

No device can locate shared printers

after adding 3 printers and 2 classes to CUPs and changing servername in the config as directed, no device on the network can see shared printers. Even the server running the docker cannot see the printers.

Lost printers after Docker image update

It appears after performing a docker-compose pull to update the Docker image, the image loses saved printers. Is this normal? Is there a way to prevent printers from disappearing after a Docker image update?

Problem running cups on a QNAP NAS

Hello,
I tied this
docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd --net=host olbat/cupsd
with my QNAP was. The container starts, I can even access the config pages on port 631; but the container stops suddenly after 20-30 seconds..
I do not have a clue what to do to solve it.

A suggestion to enable AirPrint for some hp printers

According to https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html , Some HP printers require proprietary software technologies to allow full access to printer features and performance. Unfortunately, these technologies cannot be open sourced, but to resolve this HP uses a binary plug-in for these printers.This may cause some printers like p1108 can be found in iOS but won’t print anything.So I manually download the hp plug-in
from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.21.6-plugin.run ,and config it.Now the AirPrint works fine with my hp p1108.

Unable to add printer using print as username and password

Hi. I ran the docker container exactly according to your instructions and I can open the cups GUI at http://127.0.0.1. I'm trying to add a printer, and am being asked for a username and password. I entered print for both, but it doesn't work. Any tips?

Docker containers are hosted on an Ubuntu server, and I've tried to connect from both that server and from an external Mint client on our network.

HP DeskJet 2300 series print only with colors

I connected this printer via usb to your cups container. Everything work's fine, but i can't print without colors. I set everywhere to print grayscale, but the printer is printing with colors.

Daily update of image?

I am using watchtower in order to keep my images updated. Can it be that every night a new image is pushed even if nothing has changed?

cups-pdf update

Dear olbat,
after I've tried to use cups-pdf and only got blank pages -
I've researched a bit and saw that some updates are necessary
to have it working correctly again.
I've done apt update && apt upgrade and several packages got updated
(one additional got installed) and it works again.
TL;DR

  • please let the docker image creation update the packages for cups-pdf
The following NEW packages will be installed:
  libffi8
The following packages will be upgraded:
  base-passwd gcc-11-base gir1.2-glib-2.0 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libexif12 libgcc-s1
  libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libp11-kit0 libperl5.32 libpython3.9 libpython3.9-minimal libpython3.9-stdlib libssh2-1 libstdc++6
  libwayland-client0 libxi6 libxrandr2 perl perl-base perl-modules-5.32 printer-driver-cups-pdf printer-driver-indexbraille python3-gi python3.9
  python3.9-minimal sysvinit-utils tzdata xterm

/etc/cups Folder

Dear olbat,
would it be possible to allow the mount/binding of the cups folder to a folder on the host
in a next version?
(With first copying over the standard cups files to this folder).
This would make it very easy to backup the (only) necessary files.
I've done that manually (I only needed printers.conf) and it worked very well!
...
Is there any secret by connecting a CUPS client to this docker? (does the connecting
container need to be linked to the cups server?)

user and passwort not good

hello i try to use your images but the print/print user and password not good can you help me?

My docker compose file

version: '3'

services:
cups:
image: olbat/cupsd
ports:
- 631:631
volumes:
- /Users/neudodo/docker/cups/config:/var/run/dbus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.