| 1 |
Dependencies |
| 2 |
------------ |
| 3 |
|
| 4 |
Email-Reminder requires Python 3.6 or later, as well as the following packages: |
| 5 |
|
| 6 |
- defusedxml |
| 7 |
- PySide6.QtCore |
| 8 |
- PySide6.QtGui |
| 9 |
- PySide6.QtWidgets |
| 10 |
|
| 11 |
Installation |
| 12 |
------------ |
| 13 |
|
| 14 |
Here is the preferred way of installing Email-Reminder: |
| 15 |
|
| 16 |
1- Run `make` to generate all binaries. |
| 17 |
|
| 18 |
2- Run `make install` as root to install all program files. |
| 19 |
|
| 20 |
3- Use the example systemd unit files or set up a cron job so that |
| 21 |
the "collect-reminders" and "send-reminders" scripts run every day |
| 22 |
as the `root` and `email-reminder` users, respectively. Under |
| 23 |
Debian, this is done by putting the following shell script under |
| 24 |
`/etc/cron.daily/`: |
| 25 |
|
| 26 |
#!/bin/sh |
| 27 |
COLLECT_SCRIPT=/usr/sbin/collect-reminders |
| 28 |
SEND_SCRIPT=/usr/bin/send-reminders |
| 29 |
|
| 30 |
if [ -x "$COLLECT_SCRIPT" -a -x "$SEND_SCRIPT" ]; then |
| 31 |
$COLLECT_SCRIPT |
| 32 |
su - email-reminder -c $SEND_SCRIPT |
| 33 |
fi |
| 34 |
|
| 35 |
4- Add an `email-reminder` user account (usually done with the `adduser` or |
| 36 |
`useradd` commands). |
| 37 |
|
| 38 |
5- Create the spool directory for that user only: |
| 39 |
|
| 40 |
mkdir /var/spool/email-reminder |
| 41 |
chown email-reminder:root /var/spool/email-reminder |
| 42 |
chmod 770 /var/spool/email-reminder |
| 43 |
|
| 44 |
6- Should you wish to add a menu entry for Email-Reminder Editor, use |
| 45 |
the `email-reminder-editor.desktop` file. |
| 46 |
|
| 47 |
7- Copy the example config file (`email-reminder.conf`) into `/etc` and adjust |
| 48 |
its permissions: |
| 49 |
|
| 50 |
cp examples/email-reminder.conf /etc/ |
| 51 |
chown email-reminder:root /etc/email-reminder.conf |
| 52 |
chmod 640 /etc/email-reminder.conf |