Search found 32 matches

by huidbui25
Tue May 19, 2020 9:42 pm
Forum: Troubleshooting
Topic: You have new mail warning when starting the shell
Replies: 5
Views: 949

Re: You have new mail warning when starting the shell

Found it, in /etc/cron.d/pihole remove the line that contains logrotate. I'll open a PR to either remove or in Pi-hole upstream (they serve a regular logrotate config, no need to run it manually IMO) or add a check if the command or available before calling it. New info on the issue: pi-hole 5.0, a...
by huidbui25
Tue May 19, 2020 9:34 pm
Forum: General Discussion
Topic: Install new unbound version
Replies: 1
Views: 286

Install new unbound version

Hi! A new unbound version has been released , namely 1.10.1, covering a few CVEs. I am wondering if Is there a way to install it on DietPi and not have to wait for the next major release from Raspbian? I don't know how to compile it myself. Default version included in the apt packages is the older v...
by huidbui25
Sat Mar 21, 2020 2:05 pm
Forum: Troubleshooting
Topic: You have new mail warning when starting the shell
Replies: 5
Views: 949

Re: You have new mail warning when starting the shell

Thank you very much for your prompt reply and help! It worked. :) And sorry for the late answer, my attention was distracted by that China virus :/ Just one (minor) issue left: The email that was sent (because of that logrotate cronjob) was completely blank. So, emailing itself seemed to work but no...
by huidbui25
Thu Mar 12, 2020 10:10 pm
Forum: Troubleshooting
Topic: You have new mail warning when starting the shell
Replies: 5
Views: 949

You have new mail warning when starting the shell

Hi! Each time I login to the shell I can see a little message telling me 'You have new mail': The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux ...
by huidbui25
Fri Feb 14, 2020 7:53 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 2694

Re: Temperature by email

WarHawk wrote:
Fri Feb 07, 2020 4:53 am
neat..post it up!
Good idea. Done so here. I'm a Linux novice tho.
by huidbui25
Fri Feb 14, 2020 7:46 pm
Forum: Community Tutorials
Topic: [Tutorial] Check CPU temperature and send warning mail
Replies: 1
Views: 1591

[Tutorial] Check CPU temperature and send warning mail

This tutorial guides you through the steps to set up a simple script that monitors your Raspberry's CPU temperature and automatically sends emails as long as the CPU temperature exceeds a threshold defined by you. Of course, after you set up everything, you can use the mailing feature for other mail...
by huidbui25
Fri Feb 07, 2020 11:22 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 2694

Re: Temperature by email

Heureka ... more or less ;) I have to add "sudo" to the cronjob line to make it work:

Code: Select all

*/2 * * * * sudo bash /usr/local/bin/temp_mon
I only don't understand the reason why it doesn't work without that "sudo".
by huidbui25
Fri Feb 07, 2020 10:56 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 2694

Re: Temperature by email

Ahh, I'm getting closer. The error is not caused by cron but by the mailing program, it trys to send to the wrong email address. But not sure why. When executing the script manually it works, when exectuted by cron the mailer uses different mail settings and hence fails.
by huidbui25
Fri Feb 07, 2020 10:35 pm
Forum: General Discussion
Topic: Temperature by email
Replies: 17
Views: 2694

Re: Temperature by email

MichaIng wrote:
Fri Feb 07, 2020 5:00 pm
One can also increase cron log level via /etc/default/cron.
I'll try that and see what I find ...