On my main PC running Ubuntu I downloaded the latest Raspbian image from the Raspberrypi.org website: https://www.raspberrypi.org/downloads/
Insert SD card to PC, delete any existing partitions and apply, I used gparted.
Right click on the downloaded raspbian.img and click “Open with Disk Image Writer”, select your SD card and write the image.
When finished (if required) add ssh file if you need to ssh in and the wifi config file also. Files available here: https://github.com/CactusProjects/rpi-general Copy them to the /boot partition.
Remove SD card from PC when complete and place in the RaspberryPi. Add power and let it boot up. It seems all LCD’s are naturally upside-down so open terminal and use nano to open and edit the /boot/config.txt file:
sudo nano /boot/config.txt
Add the below to the bottom of /boot/config.txt file:
lcd_rotate = 2
Reboot (using sudo reboot), everything should be right way up now. Good practice to get latest updates as be on your way:
sudo apt-get update sudo apt-get upgrade sudo reboot