Marek Felšöci

Configuring cups printing service on Guix

Service configuration on GNU Guix [1] is quiet different compared to mainstream Linux distribution. In this post, I address the process of configuring the cups printing service on Guix.

Activating cups as a service

The first step is to configure the system to use the cups package as a service. For this, you need to modify your system configuration file at /etc/config.scm. Find the line starting with (use-service-modules and include cups into the service modules list:

(use-service-modules desktop networking ssh xorg cups)

Then, under the (operating-system entry, search for the line starting with (services. This entry should contain a list of services. Add (service cups-service-type) to the latter:

(services
    (append
      (list (service gnome-desktop-service-type)
            (service openssh-service-type)
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout)))
             ;; This is the line associated with the 'cups' package.
            (service cups-service-type))
      %desktop-services))

Configuration

The last step is to tell cups how to contact the printing server by providing it with the server's address and your user name. In your home directory, create a directory named .cups. Finally, create a client.conf file inside the latter. This configuration file should look like follows.

Note that, in this case I take the example of the printing server at Inria and a user identified by jdoe.

servername cups-bso.inria.fr
User jdoe

Finally, restart your computer!

References

[1]
“GNU Guix software distribution and transactional package manager.” https://guix.gnu.org.

Last update on 18/08/2022


This site is proudly powered by Org mode for Emacs on the servers of Websupport, spol. s r. o.

Source code of the site is publicly available on GitHub.

Featured icons come from the open-source sets Chicago95 and flag-icons.

Content is available under the Creative Commons BY NC ND 4.0 International license unless otherwise stated.

Creative Commons License