apt-key has been deprecated. The reason is explained in 1 (the way apt-key works, adding all the keys to a single /etc/apt/trusted.gpg file, and trusting all the keys for packages irrespective of )
From the apt-key manpage:
DEPRECATION Except for using apt-key del in maintainer scripts, the use of apt-key is deprecated.
We will follow the procedure below to install a version of Python different than the system installed one.
In this system (WSL Debian 11), the distro provided Python is 3.9. We will install a newer release (3.12.3)
Install required dependencies (follow the python dev guide docs) # For debian 11, Add the following in /etc/apt/sources.
Configure Loki to log journald. Promtail configuration in the target hosts should contain something like:
scrape_configs: ... - job_name: journal journal: labels: host: nix job: systemd-journal max_age: 12h relabel_configs: - source_labels: - __journal__systemd_unit target_label: unit To confirm ssh logs are being retrieved, in grafana explore use a query like:
By default, UFW in ubuntu logs blocked packets in 3 different files: /var/log/ufw.log, /var/log/kern.log, and /var/log/syslog.
The UFW package creates the following /etc/rsyslog.d/20-ufw.conf (in ubuntu 22.04):
$ cat /etc/rsyslog.d/20-ufw.conf # Log kernel generated UFW log messages to file :msg,contains,"[UFW " /var/log/ufw.log # Uncomment the following to stop logging anything that matches the last rule.