cupsd is a type of scheduler for CUPS (Common Unit Printing System). It implements the printing system on the basis of the Internet Printing Protocol(Version 2.1). If no options is being specified on the command-line then the default configuration file /etc/cups/cupsd.conf will be automatically be used.
To install the CUPS in your Linux machine, simply use the sudo command with the apt. A complete CUPS package installation has many package dependencies, but they can all be specified on the same command line. Enter the following command on the terminal:
sudo apt install cups
Once authenticated with your username and password, the packages must be downloaded and installed without error. As the conclusion of the installation, the CUPS server will be going to start automatically by default.
cupsd [ -c config-file ] [ -f ] [ -F ] [ -h ] [ -l ] [ -t ]
- cupsd -c config-file: This option uses the named configuration file.
- cupsd -f: This option runs cupsd in the foreground. The default is to run in the background as a “daemon”.
- cupsd -F: This option runs cupsd in the foreground but detaches the process from the controlling terminal and also from the current directory. This is very useful for running cupsd from init.
- cupsd -h: This option shows the program usage.
- cupsd -l config-file: This option passed to cupsd when it is being run from launchd or systemd command.
- cupsd -t: This option tests the configuration file for syntax errors.
- cupsd command with help option: It will print the general syntax of the command along with the various options that can be used with the cupsd command as well as gives a brief description about each option.
Web Interface: CUPS can be easily configured and can be monitored using a web interface, which is by default available at http://localhost:631/admin. The web interface can be used to perform all the printer management tasks.
In order to perform the administrative tasks through the web interface, you must either have the root account enabled on your server, or you need to authenticate as a user in the lpadmin group. For security reasons, CUPS by default won’t authenticate a user that doesn’t have a password.
To add a user to the lpadmin group, run at the following command in your terminal prompt:
sudo usermod -aG lpadmin username
- Run the cupsd in the background with all the default configuration file:
- Test a configuration file known to be test.conf:
cupsd -t -c test.conf
- Run cupsd command in the foreground with a test configuration file known to be test.conf:
cupsd -f -c test.conf
- ar command in Linux with examples
- tar command in Linux with examples
- wc command in Linux with examples
- look command in Linux with Examples
- dir command in Linux with examples
- Cat command in Linux with examples
- env command in Linux with Examples
- du command in Linux with examples
- df command in Linux with Examples
- seq command in Linux with Examples
- ex command in Linux with examples
- bc command in Linux with examples
- ln command in Linux with Examples
- col command in Linux with Examples
- bg command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.