Skip to content

Instantly share code, notes, and snippets.

@xerothermic
Forked from plamoni/gist:1428474
Created January 14, 2012 16:55
Show Gist options
  • Save xerothermic/1612028 to your computer and use it in GitHub Desktop.
Save xerothermic/1612028 to your computer and use it in GitHub Desktop.
Line by line input for how I got SiriProxy running on a fresh install of Ubuntu 11.10
#Here's what I did to get to the point where I'm at:
#-Install Ubuntu 11.10
#-Get all available updates
#-Add the VirtualBox add-ons and video driver
#-Set up SSH (for the SCP at the end)
#
# I have done nothing else to this virtual machine.
# On my iPhone, I set the DNS server to 192.168.2.131 (the IP of the virtual machine)
#
# That's all the pre-setup that was done on the iPhone (the certificate is installed as part of the process)
# Here are the exact steps steps I followed:
#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
#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!
#Restart dnsmasq
sudo /etc/init.d/dnsmasq restart
#Install RVM
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
#Set RVM path
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
#Set the RVM path to be set up every time I log in
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
#Install Ruby 1.9.3 -- This will take several minutes
rvm install 1.9.3
#Use ruby 1.9.3 as the default (and current) version of ruby
rvm use 1.9.3 --default
#clone the SiriProxy repo
git clone git://github.com/plamoni/SiriProxy.git
#Enter the SiriProxy directory
cd SiriProxy
#Install SiriProxy -- Can take a minute or two
rake install
#Make the .siriproxy directory in my home directory
mkdir ~/.siriproxy
#Copy the example config
cp ./config.example.yml ~/.siriproxy/config.yml
#Generate the certificates
siriproxy gencerts
#Install the certificate on the phone.
# The way I do it in the video is through dropbox on my host machine.
# You can email the certificate to yourself, or whatever floats your boat.
# Here's the SCP command I use in the video. It's probably 100% worthless to anyone else
#
# scp 192.168.2.131:~/.siriproxy/ca.pem ~/Dropbox/Public/siri.vm.pem
#Bundle SiriProxy (this installs the plugins and whatnot)
siriproxy bundle
#Start the server
rvmsudo siriproxy server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment