From a843fb6d3ee9d2521d94f2b50f4464f5b6d42bab Mon Sep 17 00:00:00 2001 From: foglar Date: Sat, 14 Sep 2024 21:30:19 +0200 Subject: [PATCH] ssh, photoprism --- Server/PhotoPrism/README.md | 6 ++++++ Server/Raspberry/README.md | 28 ++++++++++++++++++++++++++++ Server/SSH/README.md | 5 ++++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Server/Raspberry/README.md diff --git a/Server/PhotoPrism/README.md b/Server/PhotoPrism/README.md index 692ff2b..4de9f5f 100644 --- a/Server/PhotoPrism/README.md +++ b/Server/PhotoPrism/README.md @@ -31,3 +31,9 @@ PhotoPrism is a self-hosted photo management platform designed to organize, brow | photoprism auth show [identifier] | Shows detailed information about a session | | photoprism auth rm [identifier] | Deletes a session by id or access token | | photoprism auth reset --yes | Resets the authentication of all users and clients | + +### Viewing Login Attempts + +For security reasons, the authentication logs are not accessible from the web user interface. They can only be viewed in the application service logs or by running the following command in a terminal: + +```docker compose exec photoprism photoprism audit logins [username]``` diff --git a/Server/Raspberry/README.md b/Server/Raspberry/README.md new file mode 100644 index 0000000..8a9a778 --- /dev/null +++ b/Server/Raspberry/README.md @@ -0,0 +1,28 @@ +# Raspberry Pi + +## Setup static ip + +- Edit configuration file `sudoedit /etc/dhcpcd.conf` +- Fill this in the file: +``` +interface +static ip_address=/24 +static routers= +static domain_name_servers= +``` + +
+ +Example configuration + + +``` +interface wlan0 +static ip_address=192.168.1.100/24 +static routers=192.168.1.1 +static domain_name_servers=192.168.1.1 +``` +
+ +- Reboot `sudo reboot` +- Should use configured ip address now diff --git a/Server/SSH/README.md b/Server/SSH/README.md index d50cb4f..ecfdc33 100644 --- a/Server/SSH/README.md +++ b/Server/SSH/README.md @@ -2,11 +2,14 @@ ## Installation and setup -- Start ssh service with `sudo service ssh start` +- Install OpenSSH package (`sudo pacman -S openssh`) on client and server +- On server, start ssh service with `sudo service enable sshd.service` and `sudo service start sshd.service` - Configuration file for ssh server is at `/etc/ssh/sshd_config` - Configuration file for ssh client is at `/etc/ssh/ssh_config` +- More info at [archwiki](https://wiki.archlinux.org/title/OpenSSH) + ## Authorization using keys - Create a keys on your client using command `ssh-keygen -t ed25519 -C "comment"`