on berryboot install new debian wheezy raspbian rename to ...PMS3 and make default, reboot in setup enable SSH, name RPIPMS3 sudo apt-get update sudo apt-get upgrade sudo apt-get install mc sudo apt-get install tightvncserver vncserver : 1 password: piremote sudo nano /etc/init.d/vncserver ### BEGIN INIT INFO # Provides: vncserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start VNC Server at boot time # Description: Start VNC Server at boot time. ### END INIT INFO #!/bin/sh # /etc/init.d/vncserver # Set the VNCUSER variable to the name of the user to start tightvncserver under VNCUSER='pi' case "$1" in start) su $VNCUSER -c '/usr/bin/tightvncserver :1' echo "Tightvncserver started" ;; stop) /usr/bin/tightvncserver -kill :1 echo "Tightvncserver stopped" ;; *) echo "Usage: /etc/init.d/vncserver {start|stop}" exit 1 ;; esac exit 0 [ctrl][o][enter][ctrl][x] sudo chmod 755 /etc/init.d/vncserver sudo update-rc.d vncserver defaults sudo nano /etc/network/interfaces change: iface etho inet dhcp to: iface eth0 inet static address 192.168.1.101 netmask 255.255.255.0 gateway 192.168.1.1 [ctrl][o][enter][ctrl][x] sudo apt-get install python-serial sudo apt-get install python-matplotlib wget http://kll.engineering-news.org/kllfusion01/downloads/PMS3RPIv3.zip sudo apt-get install arduino sudo apt-get install arduino-mk avrdude-doc equivs libjna-java-doc icedtea-plugin libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts sudo reboot ifconfig check IP unzip PMS3RPIv3.zip sudo rm PMS3RPIv3.zip test arduino IDE, it makes /home/pi/sketchbook !close it again copy arduino /home/pi/PMS3RPIv3/arduinosketch/PMS3RPI to /home/pi/sketchbook run arduino IDE again and find PMS3RPI sketch adjust |tools|board|(MEGA) and |tools|serial port| upload better not try the arduino ide terminal on that data stream mkdir /home/pi/python_work/ cp /home/pi/PMS3RPIv3/pythoncode/arduino_stream_PMS3.py /home/pi/python_work/ cp /home/pi/PMS3RPIv3/pythoncode/PMS3scope_v3.py /home/pi/python_work/ chmod +x /home/pi/python_work/arduino_stream_PMS3.py chmod +x /home/pi/python_work/PMS3scope_v3.py python /home/pi/python_work/arduino_stream_PMS3.py after 11 files [ctrl][c] ls -l /run/shm/ sudo nano /etc/init.d/arduino_stream_PMS3 #!/bin/sh ### BEGIN INIT INFO # Provides: arduino_stream_PMS3 # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: python catch arduino data stream auto start # Description: start pyton service to store arduino PMS3 data stream to files ### END INIT INFO MYNAME='/etc/init.d/arduino_stream_PMS3' #DAEMON_NAME='arduino_stream_PMS3' DAEMON_NAME='arduino_stream' # use python 2.7 symlink #DAEMON='/usr/bin/python /home/pi/python_work/'$DAEMON_NAME'.py' DAEMON='/usr/bin/python /home/pi/python_work/'$DAEMON_NAME'_PMS3.py' #DAEMON_OPTS='' DAEMON_USER='root' PIDFILE='/run/'$DAEMON_NAME'.pid' . /lib/lsb/init-functions do_start () { log_daemon_msg 'Starting system '$DAEMON_NAME start-stop-daemon --start --oknodo --background --pidfile $PIDFILE --make-pidfile --name $DAEMON_NAME --user $DAEMON_USER --exec $DAEMON log_end_msg $? } do_stop () { log_daemon_msg 'Stopping system '$DAEMON_NAME start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE --retry 30 --exec $DAEMON log_end_msg $? } case "$1" in start|stop) do_${1} ;; restart|reload|force-reload) do_stop do_start ;; status) status_of_proc -p "$PIDFILE" "$DAEMON" $DAEMON_NAME && exit 0 || exit $? ;; *) echo "Usage: $MYNAME {start|stop|restart|status}" exit 1 ;; esac exit 0 [ctrl][o][enter][ctrl][x] sudo chmod 755 /etc/init.d/arduino_stream_PMS3 sudo update-rc.d arduino_stream_PMS3 defaults sudo /etc/init.d/arduino_stream_PMS3 start top sudo reboot top find python with 15 .. 20% CPU python /home/pi/python_work/PMS3scope_v3.py press CONTI