DeskTux

Linux on Desktops

User Tools

Site Tools


apps:printserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
apps:printserver [2019-11-09 09:25] – ↷ Page moved from raspi:printserver to apps:printserver jensapps:printserver [2019-11-09 09:29] – Adapt for usage in apps jens
Line 1: Line 1:
 ====== Printserver ====== ====== Printserver ======
- +If you are in a household with several client computers that want to share a printer, you could use a Raspberry Pi or NUC to do soHowever, some printjobs can be extremely slow on a Raspberry Pi due to the limited computing power for spooling large pages.
-The Raspberry Pi is extremely suitable to serve all kinds of handy things on your home network that usually would require a server. This is mainly due to its very low power consumption, but also because it is very small and can be hidden in a lot of places. For example, if you own an old USB printer that still works perfectly and want to make network printer out of it using your Raspberry Pi. The Pi will even spool your printed jobs and print them as soon as you turn on the printer. Though I have to warn you: the computing power of the Raspberry Pi makes spooling a quite slow job, but still workable.+
  
 ===== Server installation and configuration ===== ===== Server installation and configuration =====
-  - On your Raspberry, install CUPS: <code>sudo apt-get install cups</code>+  - Install CUPS: <code>sudo apt install cups</code>
   - After the installation go to the dicectory ''/etc/cups'' and edit the ''cupsd.conf''. Edit the following lines: <code>Listen localhost:631</code> must be <code>Listen *:631</code>   - After the installation go to the dicectory ''/etc/cups'' and edit the ''cupsd.conf''. Edit the following lines: <code>Listen localhost:631</code> must be <code>Listen *:631</code>
   - Look for all sections beginning with ''<Location>'' and add the following line as a last line in that section to allow printing and administration from the local network: <code>Allow @LOCAL</code>   - Look for all sections beginning with ''<Location>'' and add the following line as a last line in that section to allow printing and administration from the local network: <code>Allow @LOCAL</code>
-  - Add the user ''pi'' to the group ''lpadmin'' so you can use this username for the web interface: <code>sudo adduser pi lpadmin</code>+  - On a Raspberry Pi, add the user ''pi'' to the group ''lpadmin'' so you can use this username for the web interface: <code>sudo adduser pi lpadmin</code>
   - Afterwards, restart the CUPS daemon: <code>service cups restart</code>   - Afterwards, restart the CUPS daemon: <code>service cups restart</code>
-  - Finally, go to the CUPS webinterface "Administration" tab on your Pi through ''<nowiki>https://RaspberryPi-IP-or-Name:631/admin</nowiki>'' and check the following:+  - Finally, go to the CUPS webinterface "Administration" tab on your server through ''<nowiki>https://Server-IP-or-Name:631/admin</nowiki>'' and check the following:
     * Share printers connected to this system     * Share printers connected to this system
     * Allow remote administration     * Allow remote administration
Line 18: Line 17:
 On the client side installation and configuration is a lot easier. On the client side installation and configuration is a lot easier.
  
-  - Install the CUPS Client: <code>apt-get install cups-client</code>+  - Install the CUPS Client: <code>apt install cups-client</code>
   - Create the file ''~/.cups/client.conf'' with the following content: <code>ServerName RaspberryPi-IP-or-Name</code> It is possible that the directory ''~/.cups'' doesn't exist, just create it. If you prefer that to be a global setting, create that same file in ''/etc/cups''.   - Create the file ''~/.cups/client.conf'' with the following content: <code>ServerName RaspberryPi-IP-or-Name</code> It is possible that the directory ''~/.cups'' doesn't exist, just create it. If you prefer that to be a global setting, create that same file in ''/etc/cups''.
   - That's it, now you're good to go!   - That's it, now you're good to go!
apps/printserver.txt · Last modified: 2024-04-12 15:00 by jens