Printer Server: Difference between revisions

From AbahDoku Wiki
No edit summary
No edit summary
Line 12: Line 12:
==Configurasi cups==
==Configurasi cups==
  nano /etc/cups/cupsd.conf
  nano /etc/cups/cupsd.conf
Edit baris berikut :
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
mejadi :
# Only listen for connections from the local machine.
Port:631
Listen /var/run/cups/cups.sock
dan tambahkan :
Allow @LOCAL
pada baris setelah Order allow,deny
# Restrict access to the server...
<Location />
  Order allow,deny
</Location>
dan
# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>
sehingga menjadi :
# Restrict access to the server...
<Location />
  Order allow,deny
  Allow @LOCAL
</Location>
dan
# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>

Revision as of 03:32, 16 March 2023

OS yang digunakan adalah "ARMBIAN 5.84 user-built Debian GNU/Linux 9 (stretch) 5.1.0-rc1-aml-s905"

Update Armbian

apt update

Install CUPS

apt install cups

Cek status cups

systemctl status

Configurasi cups

nano /etc/cups/cupsd.conf

Edit baris berikut :

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

mejadi :

# Only listen for connections from the local machine.
Port:631
Listen /var/run/cups/cups.sock

dan tambahkan :

Allow @LOCAL

pada baris setelah Order allow,deny

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

dan

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

sehingga menjadi :

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow @LOCAL
</Location>

dan

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>