feat: add doc cups

This commit is contained in:
dancingCycle 2022-04-11 13:13:42 +02:00
parent 005fd1b0f3
commit 32ca50abb8
6 changed files with 78 additions and 13 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

54
doc/cups.md Normal file
View File

@ -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 <host>: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 <user> to group ```ldamin```
```
sudo usermod -a -G lpadmin <user>
```
* 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

View File

@ -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 <tbd>/tcp
sudo ufw allow <port>
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)

View File

@ -20,6 +20,8 @@ sudo systemctl restart sshd
```
ss -tupln|grep <sshd port number>
* update firewall with <sshd port number> like [this](firewall.md)
## Public Key Authentication
Follow [this](./ssh-pub-key-auth.md) guide to configure public key authentication.