From 32ca50abb89920a67165e9e77d803fc0001b9142 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Mon, 11 Apr 2022 13:13:42 +0200 Subject: [PATCH] feat: add doc cups --- README.md | 1 + devices/acer.md | 5 +++-- devices/ltpt490.md | 10 ++++----- doc/cups.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++ doc/firewall.md | 19 +++++++++++----- doc/ssh-server.md | 2 ++ 6 files changed, 78 insertions(+), 13 deletions(-) create mode 100644 doc/cups.md diff --git a/README.md b/README.md index d5cb6b3..723df47 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ * [Apache](doc/apache.md) * [Create bootable USB Drive For OS Installation](doc/bootable-usb-drive.md) +* [Cups](doc/cups.md) * [Debian Installation](doc/debian-install.md) * [Debian Configuration](doc/debian-config.md) * [Debian Lid Switch Configuration](doc/debian-lid-switch-config.md) diff --git a/devices/acer.md b/devices/acer.md index f0a8fbd..cdc94e4 100644 --- a/devices/acer.md +++ b/devices/acer.md @@ -2,11 +2,12 @@ * press the <> key to interrupt the start sequence * press the <> key to enter the BIOS setup -* prepare USB stick for Debian installation like [this](../doc/bootable-usb-drive.md) +* [Bootable USB](../doc/bootable-usb-drive.md) * [Debian Installation](../doc/debian-install.md) * [Debian Configuration](../doc/debian-config.md) * [Debian Keyboard Layout](../doc/debian-keyboard-layout.md) * [Debian Lid Switch Configuration](../doc/debian-lid-switch-config.md) +* [Firewall](../doc/firewall.md) * [SSH Server](../doc/ssh-server.md) * [SSH Public Key Authentication](../doc/ssh-pub-key-auth.md) -* [SSH Public Key Authentication](../doc/ssh-pub-key-auth.md) +* [Cups](../doc/cups.md) diff --git a/devices/ltpt490.md b/devices/ltpt490.md index 7a133c5..c79c929 100644 --- a/devices/ltpt490.md +++ b/devices/ltpt490.md @@ -1,11 +1,9 @@ # Lenovo ThinkPad T490 * press the Enter key to interrupt the start sequence - * press the F1 key to enter the BIOS setup - -* prepare USB stick for Debian installation like [this](../doc/bootable-usb-drive.md) - -* install Debian like [this](../doc/debian-install.md) - +* [Bootable USB](../doc/bootable-usb-drive.md) +* [Debian Installation](../doc/debian-install.md) +* [Debian Configuration](../doc/debian-config.md) * [Debian Keyboard Layout](../doc/debian-keyboard-layout.md) +* [Debian Lid Switch Configuration](../doc/debian-lid-switch-config.md) diff --git a/doc/cups.md b/doc/cups.md new file mode 100644 index 0000000..0dd22be --- /dev/null +++ b/doc/cups.md @@ -0,0 +1,54 @@ +# Setup Cups Printing Service + +* get the latest version of installed packages and refresh the repo cache +``` +sudo apt update +``` + +* install driver and cups from the official repository +``` +sudo apt install printer-driver-all --no-install-recommends +sudo apt install cups --no-install-recommends +``` + +* install firewall and update with cups web interface port ```631``` like [this](firewall.md) + +* enable cups access from network clients by editing ```/etc/cups/cupsd.conf``` +``` +sudo vi /etc/cups/cupsd.conf +``` + +* change the following values in ```sudo vi /etc/cups/cupsd.conf``` +``` +Listen :631 + + +# Show shared printers on the local network. +BrowseAddress All + +# Default authentication type, when authentication is required... +DefaultAuthType Basic + +# Restrict access to the server... +Allow All + +# Restrict access to the admin pages... +Allow All + +# Restrict access to configuration files... +Allow All +``` + +* add user to group ```ldamin``` +``` +sudo usermod -a -G lpadmin +``` + +* restart cups service +``` +sudo systemctl restart cups +``` + +* open http://192.168.178.51:631/ in web browser on any client in the network + +* follow cups web interface to add network printer and share it with clients diff --git a/doc/firewall.md b/doc/firewall.md index 9c3f10e..45636ee 100644 --- a/doc/firewall.md +++ b/doc/firewall.md @@ -1,15 +1,24 @@ -# Enable Firewall +# Setup Ufw Firewall -* install UFW (Uncomplicated Firewall) +* get the latest version of installed packages and refresh the repo cache +``` +sudo apt update +``` + +* install firewall directly from the official repository ``` sudo apt install ufw --no-install-recommends ``` -* enable ufw and configure rules +* configure ports and update firewall ``` -sudo ufw enable sudo ufw default deny incoming sudo ufw default allow outgoing -sudo ufw allow /tcp +sudo ufw allow +sudo ufw enable sudo ufw status numbered ``` + +# Links + +[Initial Server Setup with Debian 10](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-10#step-4-%E2%80%94-setting-up-a-basic-firewall) diff --git a/doc/ssh-server.md b/doc/ssh-server.md index 200ea3a..d4dc22e 100644 --- a/doc/ssh-server.md +++ b/doc/ssh-server.md @@ -20,6 +20,8 @@ sudo systemctl restart sshd ``` ss -tupln|grep +* update firewall with like [this](firewall.md) + ## Public Key Authentication Follow [this](./ssh-pub-key-auth.md) guide to configure public key authentication.