How to know Raspberrypi CPU Core temperature?

Knowing the Raspberrypi CPU Temperature is necessary in order to prevent damage to it. Too much heat can reduce the performance of the RaspberryPI, 85°C is too much, it can melt or explode it CPU.

48°C - 65°C temperature is quite reasonable depending on the usage.

To know theRaspberrypi CPU Core temperature simply key-in or copy and paste in the LXTerminal the code below:
sudo /opt/vc/bin/vcgencmd measure_temp

Look like this in the LXTerminal:
pi@raspberrypi:~ $ sudo /opt/vc/bin/vcgencmd measure_temp



You can also print the temperature every second using a python script. Just take a look at the code as follow.

-- + --
import os
import time

def measure_temp():
        temp = os.popen("vcgencmd measure_temp").readline()
        return (temp.replace("temp=",""))

while True:
        print(measure_temp())
        time.sleep(1)
-- + --

You can also modify the time.sleep into 5 seconds, take note that it measures in second not in a millisecond.

Copy 8GB of RaspberryPI image to 16GB or 32GB and use maximum space

Upgrading RaspberryPI storage drive/device will happen when some more space in it. But the challenge to make it is always there. You've questioned that, it is possible? And the answer is "YES".

Writing the 8GB img to 16GB is very easy to do using "Win32 Disk Imager" it's because 16GB is greater than 8GB, it means that whole 8GB is exactly fit 16GB and it has other un-allocated free space of another 8GB. And the question is on how utilize it?

In order to the un-allocated space, there are a few steps to follow.

The steps that I did:
1. Copy the 8GB img to the 16GB storage drive/device using "Win32 Disk Imager".
2. Boot you RaspberryPI using your old 8GB SD card or USB.
3. Open LXTerminal and type or copy and paste "sudo apt-get install gparted".
4. Connect the 16GB SD card or USB in the other USB slot.
5. Type or copy and paste "gksudo gparted" in the LXTerminal. Wait for the GParted window will appear.
6. In the drop menu located at the upper right side the GParted and select the 16GB SD card or USB.
7. Click "Resize/Move" and move the GParted slider to the end.
8. Click "Apply All Operations" to all apply the change you to the storage drive.
9. Just close the GParted window and shutdown the RaspberryPI
10. Remove the 8GB and keep the 16GB plug in the USB port.

The RaspberryPI will the display the text indicator in a startup but it will not continue in your desktop, but don't panic, it just detecting all the block and keeps all intact. I will restart in the second time, and it time that the RaspberryPI will boot to its desktop.

Check the storage if it increases in size/capacity, if "YES", congratulations, you made it and that's easy.