Docker error response from daemon: AppArmor

Debian users running the latest Docker version 23 currently receive the following error when starting a container: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded How to fix AppArmor Docker error You may also get the full error message: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `apparmor_parser apparmor_parser --version` failed with output: error: exec: "apparmor_parser": executable file not found in $PATH Error: failed to start containers: container-name To fix this AppArmor Error on Debian 11 all you need to do is installing the AppArmor package. ...

2023-02-07 · 1 min · 213 words · ae3

Systemd timer as a cron replacement

Instead of using a cronjob placed in our crontab, we can make use of a systemd timer on a modern linux system which is running systemd. For a systemd timer to work, it needs two parts. One part consists of a .timer file, and a .service file. The .timer file specifies when our service should be started. Just like a cronjob we can specify here on which days, in which week or at which time our service should be started. Our .service file contains all the details about the script or command we want to run. ...

2022-12-29 · 2 min · 366 words · ae3

Telegram Notification on successful SSH Login

With the following script we monitor the SSH login on a server and send a notification via Telegram API. This way you will get a notification in real time when someone logs in to your server via SSH. For me this is a valuable security feature. Telegram Notification on successful SSH Login telegram-send Python Script First, we create the following Python script, which is used to send messages to Telegram’s API. ...

2022-12-12 · 2 min · 406 words · ae3