License

Copyright (C) 2008-2021 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 18.11.13
Issued by olli
Beginning line 12

Allow connections over the network


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

Changed on 18.11.13
Issued by olli
Beginning line 32

Allow printing over the network

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

Changed on 18.11.13
Issued by olli
Beginning line 44

Allow administration from local networks

  Allow localhost
  Allow from 172.23.*
  Allow from 172.25.*

Changes in /etc/cups/cups-files.conf

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

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

Changed on 29.11.11
Issued by olli
Beginning line 35

Logging to syslog


Before change
AccessLog /var/log/cups/access_log
After change
AccessLog syslog

Changed on 29.11.11
Issued by olli
Beginning line 54

Logging to syslog


Before change
ErrorLog /var/log/cups/error_log
After change
ErrorLog syslog

Changed on 29.11.11
Issued by olli
Beginning line 70

Logging to syslog


Before change
PageLog /var/log/cups/page_log
After change
PageLog syslog

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