Cups: Difference between revisions
(Created page with "{{Draft}} == Installation == Install the CUPS package {{Cmd|apk add cups}} == Make it autostart == Next time you reboot your Alpine Linux box, you would probably want ''cupsd'...") |
(Make page redirect to "Printer Setup".) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT [[Printer Setup]] | |||
{{Draft}} | {{Draft}} | ||
{{Warning|This manual no longer working anymore !!}} | |||
== Installation == | == Installation == | ||
Line 17: | Line 21: | ||
{{Cmd|lppasswd -a root}} | {{Cmd|lppasswd -a root}} | ||
== Configuring the cups server == | |||
{{ | Edit {{Path|/etc/cups/cupsd.conf}}. | ||
Replace Listen | Replace ''Listen localhost:631'' with ''Listen *:631'' | ||
Allow from | Allow hosts in your subnet to connect by adding ''Allow localhost'' and ''Allow from subnet/mask'' in <Location /> section: | ||
<pre> | |||
# Restrict access to the server... | |||
<Location /> | |||
Order allow,deny | |||
Allow localhost | |||
Allow from 192.168.0.0/24 | |||
</Location> | |||
</pre> | |||
{{Cmd|/etc/init.d/cupsd restart}} | {{Cmd|/etc/init.d/cupsd restart}} | ||
Line 31: | Line 43: | ||
http://[CUPS server]:631/ | http://[CUPS server]:631/ | ||
[[Category: | [[Category:Server]] |
Latest revision as of 03:54, 16 July 2018
Redirect to:
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
Warning: This manual no longer working anymore !!
Installation
Install the CUPS package
apk add cups
Make it autostart
Next time you reboot your Alpine Linux box, you would probably want cupsd to automatically start.
rc-update add cupsd
You can check your boot services:
rc-status
/etc/init.d/cupsd start
lppasswd -a root
Configuring the cups server
Edit /etc/cups/cupsd.conf.
Replace Listen localhost:631 with Listen *:631
Allow hosts in your subnet to connect by adding Allow localhost and Allow from subnet/mask in <Location /> section:
# Restrict access to the server... <Location /> Order allow,deny Allow localhost Allow from 192.168.0.0/24 </Location>
/etc/init.d/cupsd restart
http://[CUPS server]:631/