Saturday, 11 February 2017

Qt on Raspberry Pi

Download Raspberry Pi Toolchain

mkdir ~/raspi
cd ~/raspi
git clone https://github.com/raspberrypi/tools



You may configure Qt Creator to build apps for Raspberry Pi
https://www.ics.com/blog/configuring-qt-creator-raspberry-pi


References:-

  • http://wiki.qt.io/RaspberryPi_Beginners_Guide
  • https://github.com/pbouda/buildroot-qt-dev
  • https://wiki.qt.io/RaspberryPi2EGLFS#Step_by_step

Saturday, 4 February 2017

Raspberry pi 2 vs Raspberry pi 3

Raspberry pi 2 vs Raspberry pi 3



Feature Raspberry Pi 2 Raspberry Pi 3
Processor quad-core 900MHz quad-core 1.2GHz
RAM 1GB RAM with 4th generation VideoCore CPU 1GB RAM with 4th generation VideoCore CPU

 .

Friday, 3 February 2017

Flashing raspberry pi OS to USB drive

Booting from USB drive

dd bs=4M if=2017-01-11-raspbian-jessie.img of=/dev/sdd






The SD card might be bigger than the original image
dd bs=4M if=/dev/sdd of=from-sd-card.img

truncate --reference 2017-01-11-raspbian-jessie.img from-sd-card.img

diff -s from-sd-card.img 2017-01-11-raspbian-jessie.img

raspi-config tips and tricks

1. Expanding file system

2. You can change keyboard layout from raspi-config 

 Go to "Internationalisation Option" -> "Change Keyboard Layout"

3. Enable/Disable ssh 

Troubleshooting Raspberry Pi

1. Cant startx

Some useful tools to install on raspberry pi


Chrome Web Browser
sudo apt-get install chromium-browser


Terminator - multi partition terminal
sudo apt-get install terminator

Wireshark
sudo apt-get install wireshark


VLC Player
sudo apt-get install vlc

Iptux - IP Messenger
sudo apt-get install iptux


LAMP

sudo apt-get install apache2 -y
sudo apt-get install php5 libapache2-mod-php5 -y
sudo apt-get install mysql-server php5-mysql -y 
sudo service apache2 restart

Installing LAMP on Raspbarry pi 2




  Apache
  sudo apt-get install apache2 -y


  PHP
  sudo apt-get install php5 libapache2-mod-php5 -y

 MySQL
 sudo apt-get install mysql-server php5-mysql -y

  Restart Apache Service
  sudo service apache2 restart

  if you face problems, quick try this:-
   sudo apt-get update