Upd.
I'm learning linux on raspberry pi, so this script is important to me, especially the screenshot and temperature functions.
If you copy the text to the terminal, the script works. But after running in the terminal, it doesn't work. I'm confused. o_O