Sorry for the delay in posting, here are some quick notes I used when setting up the Plamoni Siri Proxy. I got most from Plamoni's script here
https://gist.github.com/1428474
If you are installing with a standard user i.e. 'pi' you will need to sudo most of these commands. I can't guarantee this is 100% accurate, some is from memory but it should certainly help..
1. Install Debian Squeeze ( I cheated and bought a 32Gb Card with the image already installed)
1. Install all the prerequisites
sudo apt-get install dnsmasq ruby build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
2. Setup DNS Masq - or insert a host entry in your router to forward guzzoni.apple.com to the pi
#edit the dnsmasq conf
sudo vi /etc/dnsmasq.conf
# Keystrokes in vi:
# /address=
# A <enter> address=/guzzoni.apple.com/192.168.2.131 <--This is the IP of the VM
# <esc> :wq!
Then Restart dnsmasq
$ sudo /etc/init.d/dnsmasq restart
3.Download and install RVM (if you don't have it already):
$ curl -s
https://raw.github.com/wayneeseguin/rvm ... -installer > curl.bash
modify curl.bash and insert -k option into ALL curl commands.
Execute curl.bash
Activate RVM:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
(optional, but useful) Add RVM to your .bash_profile:
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
4.Install Ruby 1.9.3 (if you don't have it already - Warning this takes hours on the pi!!):
$ rvm install 1.9.3
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9330k 100 9330k 0 0 574k 0 0:00:16 0:00:16 --:--:-- 768k
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /usr/local/rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p0
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 107k 0 0:00:04 0:00:04 --:--:-- 143k
Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
Prepare yaml in /usr/local/rvm/src/yaml-0.1.4.
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Installing yaml to /usr/local/rvm/usr
ruby-1.9.3-p0 - #configuring
ruby-1.9.3-p0 - #compiling
ruby-1.9.3-p0 - #installing
Retrieving rubygems-1.8.10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243k 100 243k 0 0 472k 0 --:--:-- --:--:-- --:--:-- 696k
Extracting rubygems-1.8.10 ...
Removing old Rubygems files...
Installing rubygems-1.8.10 for ruby-1.9.3-p0 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p0 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p0 - #importing default gemsets (/usr/local/rvm/gemsets/)
Install of ruby-1.9.3-p0 - #complete
5.Set RVM to use/default to 1.9.3:
$ rvm use 1.9.3 --default
Using /usr/local/rvm/gems/ruby-1.9.3-p0
6. Install GIT if missing
$ apt-get install git
7.Install Rake and Bundler:
$ rvmsudo gem install rake bundler
8.Install SiriProxy gem (do this from your SiriProxy directory):
$ rake install
9.Make .siriproxy directory:
$ mkdir ~/.siriproxy
10.Move default config file to .siriproxy
(if you need to make configuration changes, do that now by editing the config.yml):
$ cp ./config.example.yml ~/.siriproxy/config.yml
11.Generate certificates:
$ ./bin/siriproxy gencerts
12.Install ~/.siriproxy/ca.pem on your phone. This can easily be done by emailing the file to yourself and clicking on it in the iPhone email app. Follow the prompts.
13. Bundle SiriProxy (this should be done every time you change the config.yml):
$ siriproxy bundle
14.Start SiriProxy (must start as root because it uses a port < 1024):
$ rvmsudo siriproxy server
Note: I also created a link:-
~/siriproxy-example.rb -> /home/pi/.rvm/gems/ruby-1.9.3-p194/gems/siriproxy-0.3.0/plugins/siriproxy-example/lib/siriproxy-example.rb
This makes editing the config a little easier..