|
RaspberryPiSetup
Setup instructions for the RaspberryPI
Phase-Setup IntroductionDescription of the setup of pidora and all neccessary packages to develop this project. This setup is used for both, the server and the clients. Details1. Download and install pidora
2. Install (and configure) the following packages:C++ compileryum install gcc-c++ VNC serveryum install tigervnc-server yum install switchdesk create/edit /etc/init.d/vncserver (change VNCUSER and the "-geometry' argument of vncserver to fit your needs): #! /bin/bash
#
# vncserver Bring up/down vncserver
#
# chkconfig: - 10 90
# description: Activates/Deactivates vncserver to start at boot time.
#
### BEGIN INIT INFO
# Provides: $vncserver
# Should-Start:
# Default-Start: 3 5
# Default-Stop: 0 1
# Short-Description: Bring up/down vncserver
# Description: Bring up/down vncserver
### END INIT INFO
VNCUSER='pi'
case "$1" in
start)
export HOME=/home/$VNCUSER
su - $VNCUSER -c '/usr/bin/vncserver :1 -geometry 1680x1050'
su - $VNCUSER -c '/usr/bin/switchdesk xfce'
echo "Starting VNC Server for $VNCUSER "
;;
stop)
pkill Xvnc
echo "VNC Server stopped"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/vncserver {start|stop|restart}"
exit 1
;;
esac
exit 0run (optional) chkconfig --level 35 vncserver on start vncserver: systemctl start vncserver.service Edit ~/.vnc/xstartup, comment the following line. #unset SESSION_MANAGER wiringPiyum install git-core git clone git://git.drogon.net/wiringPi git pull origin cd wiringPi ./build install development tools and librariesyum install svn yum install dbg yum install mysql-devel yum install i2c-tools yum install gnuplot Get the sourceGet sourcecode with: as guest: svn checkout http://home-power-control.googlecode.com/svn/trunk/ HomePowerControl-read-only as member: svn checkout https://home-power-control.googlecode.com/svn/trunk/ HomePowerControl --username <your_mail_addr> Crosscompiler setupIf you want to cross-compile the project (highly recommended), you find a description to setup the environment for a Fedora-based host here: CrossCompiler |