How to set temperature warnings to avoid overheat?

Solution 1:

You can use psensor to monitor the computer temperature. This is a GUI application that readout the CPU and Mainboard sensors.

sudo apt-get install psensor 

After starting psensor, go to the "Sensor preference Menu", choose your CPU sensor and click on Alarm - Activate Desktop Notifications. You can modify the temperature limit for your needs:

screenshot

Can also start after login:

screenshot

Solution 2:

System-monitor GNOME extension

You also have system-monitor:

screenshot

And choose your threshold

screenshot

AFAIK it just changes the temperature color. No notification or acoustic alarm. There is a feature request about this issue.