public
Last active

Line by line input for how I got SiriProxy running on a fresh install of Ubuntu 11.10

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
#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

On debian (sid), line 34 and 37 should be "/etc/profile.d/rvm.sh"

I followed this since I use OpenSuse and worked like a charm. Only issue was I am running port 443 so it failed but once I shutdown apache GOLDEN!!!

http://www.ketchup-mayo-senf.de/blog/-it-howto-siri-fully-working-with-your-own-siriproxy-for-iphone-4-iphone-3gs-ipod-ipad#comment-1245

Will this work as an spire proxy?

Good question. I am assuming if not out of the box you can easily alter the
code to ensure that the serial # and the other 3 variables are sent to
apple from the proxy.

On Wed, Jan 25, 2012 at 7:29 PM, Andres Douglas <
reply@reply.github.com

wrote:

Will this work as an spire proxy?


Reply to this email directly or view it on GitHub:
https://gist.github.com/1428474

I'm having issues on "/usr/bin/env: siriproxy: No such file or directory".

I start fresh using Virtual Box on PC with Ubuntu 11.10. I follow all the commands as per your instructions.
. All commands are OK, but after I enter "rvmsudo siriproxy server", an error msg appear "/usr/bin/env: siriproxy: No such file or directory".

Please help. Thanks.

Tried /usr/local/bin?
On Jan 27, 2012 9:37 AM, "evo" <
reply@reply.github.com>
wrote:

I'm having issues on "/usr/bin/env: siriproxy: No such file or directory".

I start fresh using Virtual Box on PC with Ubuntu 11.10. I follow all the
commands as per your instructions.
. All commands are OK, but after I enter "rvmsudo siriproxy server", an
error msg appear "/usr/bin/env: siriproxy: No such file or directory".

Please help. Thanks.


Reply to this email directly or view it on GitHub:
https://gist.github.com/1428474

@xerothermic.

How should I run the rvmsudo siriproxy server? On the /usr/local/bin?

Please show me how to do it. Thanks in advance.

@xerothermic

I try it but here are the results.

sps@sps-box:/usr/local/bin$ rvmsudo siriproxy server
[sudo] password for sps:
/usr/bin/env: siriproxy: No such file or directory
sps@sps-box:/usr/local/bin$

I did all the process using my mac with Unbuntu and Parallels and spire. at the end I use the same DNS from Unbuntu. I try to use the DNS alone, does not work and I don't have web access. If I put the both DNS, I have Web Access and still dont have a Siri working. I have to keep the computer with unbuntu and virtual machine always on? Please help me

I followed all of this,but when i speak to siri,it said:"sorry...etc" to me
why?

here is the server info.:
Create server for iPhone connection
start conn #, @zip_stream=#Zlib::Deflate:0xa63ea98, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#>]

i have the same thing with zhshwolf!! in terminal on the final step with the test is getting in Create server for iPhone connection loop..

any ideas??

thanks

Pete, I created instructions for how to get SiriProxy running on a Marvell plug computer. You might want to add to SiriProxy page.

https://gist.github.com/3889896

Thanks,

Elvis

@plamoni

I created a new wiki page for installation how tos.

https://github.com/plamoni/SiriProxy/wiki/Installation-How-Tos

You missed rake in the packages to install in the beginning. Was not present on my ubuntu server.

Also ruby-bundler

I installed it, but when i ask siri for something it doesn't work...
In terminal window:
Create server for iPhone connection
start conn #, @zip_stream=#Zlib::Deflate:0x94ce81c, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#>]
Create server for iPhone connection
start conn #, @zip_stream=#Zlib::Deflate:0x9bd3004, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#>]
Create server for iPhone connection
start conn #, @zip_stream=#Zlib::Deflate:0x9bd208c, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#>]
[Info - iPhone] Received Object: LoadAssistant
/home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in encode': "\x8E" on UTF-8 (Encoding::InvalidByteSequenceError)
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in
charset_convert'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in string_to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:in
to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in block in dict_to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in
map'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in dict_to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in
to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in block in dict_to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in
map'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in dict_to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in
to_binary'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in to_str'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:in
to_str'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in to_plist'
from /home/luca/SiriProxy/lib/siriproxy/connection.rb:150:in
inject_object_to_output_stream'
from /home/luca/SiriProxy/lib/siriproxy/connection.rb:90:in process_compressed_data'
from /home/luca/SiriProxy/lib/siriproxy/connection.rb:58:in
receive_binary_data'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in receive_data'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in
run_machine'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in run'
from /home/luca/SiriProxy/lib/siriproxy.rb:16:in
initialize'
from /home/luca/SiriProxy/lib/siriproxy/command_line.rb:96:in new'
from /home/luca/SiriProxy/lib/siriproxy/command_line.rb:96:in
start_server'
from /home/luca/SiriProxy/lib/siriproxy/command_line.rb:85:in run_server'
from /home/luca/SiriProxy/lib/siriproxy/command_line.rb:37:in
initialize'
from /home/luca/SiriProxy/bin/siriproxy:6:in new'
from /home/luca/SiriProxy/bin/siriproxy:6:in
'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in load'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in
'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in eval'
from /home/luca/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in
'

Does it work only in English or also in other languages?
How can I fix it?
Thanks
Luca

Does this not work with the iPhone 5? I have the server up and running, certificate on my phone, but my phone isn't connecting through it.

Issues I had while installing:
A.) Accidentally did a multi-user install of rvm by being root while installing
->ended up installing to /usr/local/rvm
B.) Had issues using bash_profile, used bashrc instead
C.) I had to copy over the config file and create the directory before making the project

I ended up using the instructions here for installing and dealing with rvm: https://rvm.io/rvm/install/

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.