License

Copyright (C) 2008-2017 Oliver Bohlen.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

A copy of the license is included in the section entitled "GNU Free Documentation License".

Introduction

This documentation comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

Howto: Printserver for Gentoo Linux

This is a little describtion how to install a CUPS-Printserver and share the printers over Samba.
You can configure your printers with the WebGUI on "http://:631".

If you want to use this solution you need the following howto(s) finished:

Required hardware

For this topic you need the following hardware: Linux/CUPS compatible printer

Required software

The required software has to be installed with the following command(s):
emerge net-print/cups

Changes in /etc/cups/cupsd.conf

File permissions:
Owner: root
Group: lp
Permissions: -rw-r-----

Click here for a download of the complete file: /etc/cups/cupsd.conf

Changed on 29.11.11
Issued by olli
Beginning line 12

Logging to syslog

AccessLog syslog
ErrorLog syslog
PageLog syslog

Changed on 18.11.13
Issued by olli
Beginning line 19

Allow printing over the network


Before change
Listen localhost:631
After change
Listen *:631

Changed on 18.11.13
Issued by olli
Beginning line 39

Allow printing over the network

  Allow localhost
  Allow from 172.23.*
  Allow from 172.24.*
  Allow from 172.25.*
  Allow from 10.1.1.*

Changes in /etc/cups/mime.convs

File permissions:
Owner: root
Group: root
Permissions: -rw-r--r--

Click here for a download of the complete file: /etc/cups/mime.convs

Changed on 01.10.09
Issued by olli
Beginning line 109

This is needed to allow raw printing


Before change
#application/octet-stream     application/vnd.cups-raw        0       -
After change
application/octet-stream      application/vnd.cups-raw        0       -

Changes in /etc/cups/mime.types

File permissions:
Owner: root
Group: root
Permissions: -rw-r--r--

Click here for a download of the complete file: /etc/cups/mime.types

Changed on 25.09.08
Issued by olli
Beginning line 171

This is needed to allow raw printing


Before change
#application/octet-stream
After change
application/octet-stream

Changes in /etc/samba/smb.conf

File permissions:
Owner: root
Group: root
Permissions: -rw-r--r--

Click here for a download of the complete file: /etc/samba/smb.conf

Changed on 01.10.09
Issued by olli
Beginning line 67

Share all CUPS-Printers over the network

[printers]
   comment = All Printers
   valid users = @users,printuser
   printing = CUPS
   path = /tmp
   printable = yes

Setting up services

For starting the new service after system reboot you should add it to a runlevel with the following command(s):

rc-update add cupsd 

Please send a feedback to: doc<at>gabosh.net

Howto listing
File Index

Here you can find the official Gentoo Linux Forums where you can find a lot of answers.

Here a link to the official Gentoo Linux Homepage.

Edit Howto

About / Impressum

Click here for About / Impressum

Wishlist

If you want to support my work you can find my Amazon whishlist here