My favorites | Sign in
Project Home Wiki Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
RaspberryPiSetup  
Setup instructions for the RaspberryPI
Phase-Setup
Updated Mar 12, 2015 by karuna.s...@gmail.com

Introduction

Description of the setup of pidora and all neccessary packages to develop this project. This setup is used for both, the server and the clients.

Details

1. Download and install pidora

  1. Download the image from here: http://www.raspberrypi.org/downloads/ (the server is running fedora-xfce from http://www.digitaldreamtime.co.uk/images/Fidora/21/)
  2. Installation is described here: http://zenit.senecac.on.ca/wiki/index.php/Pidora_Installation
  3. Insert the card to the raspi, boot and follow the instructions on "firstboot"...

2. Install (and configure) the following packages:

C++ compiler

yum install gcc-c++

VNC server

yum 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 0

run (optional)

chkconfig --level 35 vncserver on

start vncserver:

systemctl start vncserver.service

Edit ~/.vnc/xstartup, comment the following line.

#unset SESSION_MANAGER

wiringPi

yum install git-core
git clone git://git.drogon.net/wiringPi
git pull origin
cd wiringPi
./build

install development tools and libraries

yum install svn
yum install dbg
yum install mysql-devel
yum install i2c-tools
yum install gnuplot

Get the source

Get 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 setup

If you want to cross-compile the project (highly recommended), you find a description to setup the environment for a Fedora-based host here: CrossCompiler

Powered by Google Project Hosting