VNC setup

Official documentation

Modified boot script that will start the VNC server as user pi.

   1 ### BEGIN INIT INFO
   2 # Provides: vncboot
   3 # Required-Start: $remote_fs $syslog
   4 # Required-Stop: $remote_fs $syslog
   5 # Default-Start: 2 3 4 5
   6 # Default-Stop: 0 1 6
   7 # Short-Description: Start VNC Server at boot time
   8 # Description: Start VNC Server at boot time.
   9 ### END INIT INFO
  10 
  11 #! /bin/sh
  12 # /etc/init.d/vncboot
  13 
  14 USER=pi
  15 HOME=/home/pi
  16 
  17 export USER HOME
  18 
  19 case "$1" in
  20  start)
  21   echo "Starting VNC Server"
  22   #Insert your favoured settings for a VNC session
  23   su - $USER  -c '/usr/bin/vncserver :0 -geometry 1280x800 -depth 16 -pixelformat rgb565'
  24   ;;
  25 
  26  stop)
  27   echo "Stopping VNC Server"
  28   /usr/bin/vncserver -kill :0
  29   ;;
  30 
  31  *)
  32   echo "Usage: /etc/init.d/vncboot {start|stop}"
  33   exit 1
  34   ;;
  35 esac
  36 
  37 exit 0

I2C setup

Instructables

I order to access smbus functions like 'i2c_smbus_read_byte_data' use package libi2c-dev (sudo apt-get install libi2c-dev)

Specify the i2c bit-rate by adding the following two lines to '/boot/config.txt':

RaspberryPi 3 onboard WiFi

To completely disable the onboard WiFi from the firmware on the Pi3, add dtoverlay=pi3-disable-wifi in /boot/config.txt

Configure RaspberryPi as WiFi client and AP

Alter network adaptor names

Install opencv

Dependencies

   1 $ sudo apt-get install build-essential cmake cmake-curses-gui pkg-config libpng12-0 libpng12-dev libpng++-dev libpng3 libpnglite-dev zlib1g-dbg zlib1g zlib1g-dev pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools libeigen3-dev

and then

   1 $ sudo apt-get install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs ffmpeg libavcodec-dev libavcodec53 libavformat53 libavformat-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev libxine1-ffmpeg libxine-dev libxine1-bin libunicap2 libunicap2-dev swig libv4l-0 libv4l-dev python-numpy libpython2.6 python-dev python2.6-dev libgtk2.0-dev

Get the source

   1 $ git clone https://github.com/Itseez/opencv.git
   2 
   3 or
   4 
   5 $ wget https://github.com/Itseez/opencv/archive/3.1.0.zip

configure CMake

   1 cd opencv-3.1.0
   2 mkdir release
   3 cd release
   4 ccmake ../

... and press 'c' to configure.

Build the binaries

$ make $ sudo make install }}}

mywiki: RaspberryPi (last edited 2017-09-20 17:08:55 by nicolas)