[IT] HOWTO: Set up a Linux Server in VMWare for SiriProxy

Update: debian.sh is now online. sorry forgot to upload it

Update: OpenSuse.sh is now updated.
Update: ubuntu.sh is now online.

Update: if you have troubles somewhere try checking out the SiriProxy FAQ here.

What we need

To run a SiriProxy Server we need ( in this scenario) a Linux running in VMWare. To get this, just follow the steps :)

Getting VMWare

Download VMWare Player from the official website or for example here: Chip.de - VMWare Player 4.01

Download a linux iso

You can get various Linux Distributions for free from the internet. For this server i suggest a small distribution, because we don't need a GUI or other stuff.

Debian: http://cdimage.debian.org/debian-cd/6.0.3/i386/iso-cd/debian-6.0.3-i386-netinst.iso
Ubuntu: http://www.ubuntu.com/download/server/download
OpenSuse: http://ftp.halifax.rwth-aachen.de/opensuse/distribution/12.1/iso/openSUSE-12.1-NET-i586.iso

Setting up VMWare

After Installing VMWare Player create a new Virtual Machine with the assistant.

Step 1 - Choose "I will install the operating system later"
step1.png

Step 2 - Select Linux and then your distribution
step2.png

Step 3 - Select the Name of the virtual machine and the path
step3.png

Step 4 - Select the hdd size. 1GB should be fine on a small distribution but use any size you want =)
step4.png

Step 5 - Select "customize hardware"

Step 6 - Remove floppy and sound. set "Network Adapter" to "bridged" and set the CD to your downloaded Linux .iso file. apply all settings and close it with "ok".
step6.png

Step 7 - Press "finish" to finish the creation of our new virtual machine.

Step 8 - on the VMWare welcome screen select "play virtual machine"

Installing the Linux in VMWare

Follow the instructions on your screen and install linux.
Set a static ip on your network adapter! this ip must match your network. mine is f.e.: 192.168.178.24

Once you are completed you should get to the login prompt. enter your credentials and log in. then proceed with the next step.

( additionally you can use "putty" to ssh into your virtual machine. this makes it a lot easier because you can copy & paste the commands from you win/mac into putty console )

Installing Debian

If you have to choose which software to install then check:

- SSH Server

To check which ip you have in your VMWare log into your debian system and execute: ifconfig"
There look for "eth0:"
This is the ip you can use with "putty" or any other ssh client to ssh into your debian.

Installing all needed libs and stuff

Depending on your Linux, choose one of the following steps:

Debian

cd ~
wget http://www.ketchup-mayo-senf.de/blog/debian.sh
chmod 777 debian.sh
./debian.sh

OpenSuse
cd ~
wget http://www.ketchup-mayo-senf.de/blog/OpenSuse.sh
chmod 777 OpenSuse.sh
./OpenSuse.sh

Ubuntu
cd ~
wget http://www.ketchup-mayo-senf.de/blog/ubuntu.sh
chmod 777 ubuntu.sh
./ubuntu.sh

Setting up our SiriProxy

Now we have to put the important 4 keys into our siriProxy.rb file. Best you use "mc" for editing. but feel free to use any other editor like "vi" "vim" "ae" or whatever.

cd ~/hacks/SiriProxy
mcedit siriProxy.rb

Replace there every needed information. you can find the tutorial here

Setting up VPN ( optional )

Download the 3 config files from Server with:

wget http://www.ketchup-mayo-senf.de/blog/pptpd.conf
wget http://www.ketchup-mayo-senf.de/blog/options.pptpd
wget http://www.ketchup-mayo-senf.de/blog/chap-secrets

and restart the pptp server with:

/etc/init.d/pptp restart

Now you can use iPhone VPN to open a vpn connection to your server.

User: KMS
Password: siri

( If on OpenSuse everything is allready done by the script )

Preparing the iPhone 4 / iPhone 3G / iPod etc

Send the ca.crt file you can find in ~/hacks/SiriProxy to your iPhone via EMail.
or open with your iPhone:
http://www.ketchup-mayo-senf.de/blog/ca.crt

on your Phone / Pod install "iFile" via cydia and edit the file:

/private/var/mobile/Library/Preferences/com.apple.assistant.plist

and set the server to your ip / dns

Preparing the iPhone 4S for reading the keys

Send the ca.crt file you can find in ~/hacks/SiriProxy to your iPhone via EMail.
Install it.

If you want to read out the keys from a remote iphone 4s (friend for example which isnt at your home):

Goto "Settings -> VPN" and create a new VPN Connection (pptp) with the credentials from the previous step.

If you want to read the keys from a iPhone 4S in your WLAN:

Connect iPhone 4S to your WLAN. Goto Settings - WLAN -> (tap the blue key) -> tap the dns entry and change it to the ip of your server (in my case 192.168.178.24).

Reading out the Keys from iPhone 4S

you need 2 open shells / putty connections.

on the first:
ruby ~/hacks/applidium/SiriServer.rb > logile.log

on the second:
python ~/hacks/applidium/dns.py

Now talk to Siri on the iPhone 4S. in ~/hacks/applidium/logfile.log you find all needed keys.
stop both programs by using "ctrl + c".

edit the SiriProxy.rb file like stated in one of the steps above.

Starting SiriProxy

ruby ~/hacks/SiriProxy/start.rb

Thats all so far :)

lemme know if you need it more detailed!







86 Antworten zu [IT] HOWTO: Set up a Linux Server in VMWare for SiriProxy

  1. 446 Ray W 2011-12-08 5:50 pm

    You've done great job.
    I am setting your modified siri proxy on Mac OS Lion, however there is no response when iphone connecting to it, I think I might lost some of the "tools", I can find only some of them, hopefully you can give a tutorial shortly, thanks!

  2. 447 Ray W 2011-12-08 5:52 pm

    One more, I have got 4S four keys, certificate ok, just no response at all, really confusing...

  3. 450 admin 2011-12-08 6:06 pm

    Is the CErt right? (Set to ip in Common Name) did you Enter ip correct on the phone? Did u install the on the phone?

  4. 452 Ray W 2011-12-08 6:14 pm

    common name is my computer's public ip, ca.crt installed on the iphone, IP https:// computer public ip.

    I use homebrew and macport, can't find libopenssl-devel, zlib, zlib-devel, ruby-gems ,gcc ,gcc-c++ ...how can I install them?

  5. 453 Ray W 2011-12-08 6:21 pm

    yest, all are right.

    can you give a tutorial on what method to install the tools with?
    I don't know how to install them...can't find on macports or homebrew
    zypper install openssl
    zypper install libopenssl-devel
    zypper install zlib
    zypper install zlib-devel
    zypper install ruby
    zypper install ruby-gems
    zypper install make
    zypper install gcc
    zypper install gcc-c++
    zypper install libxml2*

  6. 454 Tobi 2011-12-08 6:38 pm

    ich schaffe es aktuell nicht mal die debian.sh herunter zuladen 404 not found, ist sie wo sie sein sollte?

  7. 455 tobeeh 2011-12-08 7:11 pm

    http://www.ketchup-mayo-senf.de/blog/ubuntu.sh link doesn't work.. :(

  8. 456 admin 2011-12-08 7:33 pm

    Sorry forgot to upload Ubuntu and Debian scripts. Will do tomorow

  9. 457 admin 2011-12-08 7:34 pm

    Only the opensuse Script is up

  10. 460 Paulo 2011-12-08 8:05 pm

    Hello! First, thanks for this tutorial!

    I did everything as you said.
    When i try to use siri on my phone, i can see the output (loads of characters) of "ruby start.rb". After a while, siri replies "Sorry, i dont have network connection".

    How do i know if i did something wrong, or if my ACE-X-HOST expired?
    What does expire? all the four keys or just one? Which one?

  11. 462 admin 2011-12-08 9:15 pm

    Start it with: ruby start.rb > Test.log

    Try Siri a few Times. Then cancel with ctrl+c and check the logfile.

  12. 466 Markus 2011-12-09 12:29 am

    Hallo Admin,

    Danke für deine sehr ausführliche arbeit.

    Ich finde aber eine Anleitung nicht wie mann ein Wlan HotSport auf sein PC/Live CD macht. Hmmm :-(

    Könntest du uns da auch eine kleines howto machen?

    Viele Grüsse Markus aus Berlin

  13. 467 cyaa 2011-12-09 2:16 am

    hey i tried to run siriserver but i get this error

    applidium-Cracking-Siri-82fcc0b cyaa$ ruby SiriServer.rb
    /Users/cyaa/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
    from /Users/sohi/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
    from SiriServer.rb:74:in `block in <main>'
    from /Users/sohi/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
    from /Users/sohi/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /Users/sohi/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from SiriServer.rb:73:in `<main>'

    any help?

    btw i found this:
    https://bitbucket.org/jaredhobbs/pysiri/wiki/Home

    and it looks really cool easy but after i try to
    easy_install biplist
    i get

    rror: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-65115.write-test'

    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

    /Library/Python/2.7/site-packages/

    Perhaps your account does not have write access to this directory? If the
    installation directory is a system-owned directory, you may need to sign in
    as the administrator or "root" account. If you do not have administrative
    access to this machine, you may wish to choose a different installation
    directory, preferably one that is listed in your PYTHONPATH environment
    variable.

    For information on other options, you may wish to consult the
    documentation at:

    http://peak.telecommunity.com/EasyInstall.html

    Please make the appropriate changes for your system and try again.

    thanks for all the help

  14. 469 Ray W 2011-12-09 3:33 am

    Finally success on MAC os lion

  15. 473 cyaa 2011-12-09 11:18 am

    @Ray W can you help me out?
    im very close! just need to run SiriServer.rb and it should work.

  16. 476 admin 2011-12-09 1:51 pm

    @Markus: was meinst du mit wlan hotspot bzw wieso?

    @ray: if you can remember what ya did.. lemme know (mm@ketchup-mayo-senf.de) then i update the tutorial.

    @cyaa: your problem can be 2 things: first missing rights to run the script (try with sudo)
    second: there is allready a https server running on your system on port 443

    physiri is ok as well, it just converts the keys in a way you dont need it. so i would stay with applidium tools. just my hint.

  17. 477 marcel 2011-12-09 2:13 pm

    jetzt fehlt nur noch ubuntu.sh =)

  18. 478 Nicmroc 2011-12-09 3:43 pm

    Which is my network ip? My public ip? Or the ip in which my pc is assigned?!

  19. 479 admin 2011-12-09 3:59 pm

    @marcel: ist up

    @Nicmroc: what do ya mean?

  20. 481 marcel 2011-12-09 4:20 pm

    @ admin: thx =)

  21. 483 Nicmroc 2011-12-09 5:13 pm

    "Set a static ip on your network adapter! this ip must match your network. mine is f.e.: 192.168.178.24"

    I am using a hackitosh pc with VirtualBox. This ip is the one that is displayed for example under my Ethernet preferences or the one that my ISP provides me? ( and sites like Www.whatiamyip.com show?)

  22. 484 marcel 2011-12-09 5:24 pm

    @admin: einen kleinen Fehler gefunden =)

    Reading out the Keys from iPhone 4S:

    ruby ~/hacks/applidium/SiriServer.rb > logile.log

    müsste aber ein kleines "s" sein

    ruby ~/hacks/applidium/siriServer.rb > logile.log

  23. 485 Nicmroc 2011-12-09 5:28 pm

    Set a static IP on your network adapter!
    This ip must match your network.

    I am using a hackintosh pc. This is Ip displayed under my Ethernet preferences or the one that my ISP provides (...and sites like www.whatismyip.com show.) ?

    Thanks for your help...and your excellent tutorial!

  24. 486 admin 2011-12-09 8:07 pm

    Marcel: yup hast recht

    Nimroc: no u Need an ip Adress matching your local network

  25. 487 Al 2011-12-09 8:19 pm

    Could you post how to set it up so that the siriproxy is automatically updated with the validationdata from the 4s?

  26. 488 Stefan 2011-12-09 9:04 pm

    Hallo,

    immer wenn ich die dns.py ausführe bekomme ich folgende ausgabe

    pyminifakeDNS:: dom.query. 60 IN A 192.168.178.32
    Traceback (most recent call last):
    File "/root/hacks/applidium/dns.py", line 33, in <module>
    udps.bind(('',53))
    File "<string>", line 1, in bind
    socket.error: [Errno 98] Address already in use

    Kann mir jemand helfen? Was mache ich falsch?

    THX

    @admin Danke für das Schöne Howto

  27. 490 matt 2011-12-09 9:56 pm

    hi

    when i run 'python ~/hacks/applidium/dns.py' i get -

    pyminifakeDNS:: dom.query. 60 IN A 192.168.178.24
    Traceback (most recent call last):
    File "/home/matthew/hacks/applidium/dns.py", line 33, in <module>
    udps.bind(('',53))
    File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
    socket.error: [Errno 98] Address already in use

    is there a way i can stop this running on 443?

    thanks

  28. 492 eltomato 2011-12-09 11:00 pm

    Hi,

    ich glaube die Masse an Besuchern lässt deinen Server schmelzen ;)

    Mal nen paar generelle Frage zu dem ganzen Siri Zeugs ..
    1.
    Angenommen ich möchte einen Siri Server im Lokalen Netzwerk aufsetzen, der komplett Offline bleibt und nur auf selbst einprogrammierte Sätze reagiert .. wäre das möglich?

    Alle Webseiten und Blogeinträge, die ich bis jetzt zu dem Thema gelesen habe, benötigen diese 4 Magischen Schlüssel .. (Die ich nicht habe).

    2. Wenn ich die IP meines Siri Servers in die com.apple.assistant.plist eingebe, brauche ich dann trotzdem noch einen Fake DNS Server?

    und 3.
    wenn ich nach deinem Tutorial vorgehe, bekomme ich immer folgenden Fehler beim starten der start.rb:

    siri@siri-virtual-machine:~/hacks/SiriProxy$ ruby ~/hacks/SiriProxy/start.rb
    /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
    from ./siriProxy.rb:278:in `initialize'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from ./siriProxy.rb:277:in `initialize'
    from /home/siri/hacks/SiriProxy/start.rb:11:in `new'
    from /home/siri/hacks/SiriProxy/start.rb:11
    siri@siri-virtual-machine:~/hacks/SiriProxy$

    Irgend ne Idee?

  29. 495 eltomato 2011-12-10 1:30 am

    @matt ..
    open a command window and type in "netstat -ano", search for the pid of the process listening on your port.
    Open the Task Manager, show pid on your list and kill the process.
    hope this helped u

  30. 497 Syby Abraham 2011-12-10 6:08 am

    I'm getting an error when I run the final command ruby ~/hacks/SiriProxy/start.rb, everything else worked fine.

    /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- plugins/thermostat/siriThermostat (LoadError)
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/user/hacks/SiriProxy/start.rb:2:in `<main>'

  31. 498 Bram 2011-12-10 10:39 am

    Finally having the VPN up and running remotely

    I'm having The same problem as Matt :(
    Tried to change the IP in dns.py to 192.168.1.8 (my server) but didn't help.

  32. 500 Bram 2011-12-10 11:16 am

    Ok, Ik have dns.py working..
    Before I ask my friend, I tried with my i4.
    I connected to the VPN over 3G

    Respuesta: debian.home. -> 192.168.1.8

    in the dns.py terminal

    When I run Siri on the i4, I get no thing in the siriServer.rb, and after ctrl+c, the log file is still 0bytes.

  33. 501 Al 2011-12-10 1:45 pm

    I am using the siriServer.rb with the dns.py over VPN. It works fine in terms of retrieving the 4s information. However, the 4s requests die at my server. For example, I cannot have my friend's phone stay connected to the VPN and setup my own script to automatically retrieve the validationdata from the logfile.log because her phone's Siri will not work at all. I have to call her each day, ask her to turn on the VPN, make a request, and then turn off VPN.

    Is this normal?

    Does the siriProxy.rb also collect validationdata somehow in a way where she could just leave her phone connected to my VPN?

  34. 503 admin 2011-12-10 1:58 pm

    Al: will post it next week. With current setup you cant let the phone connected because of the scripts. But you can if i post my new server script.

    Stefan: da läuft schon ein dns server. Beenden mit: /etc/init.d/dns stop

    Matt: same for u as for stefan

    Eltomato: 1. Nein. Lies im anderen blogeintrag wie siri funktioniert. Dann weisst du warum
    2. Nein
    3. Welches os? Falls ubuntu dann einfach vor dem befehl ein sudo setzen

    @bram: is the ip reachable from vpn? Try on iphone 4 by enter the serverip direct to siri config file

  35. 504 bram 2011-12-10 2:26 pm

    tired that, but then, when activating Siri i get an error about the server.keyless.key that can't be found and the app closes

    btw: do i need to change the ip in the dns.py?

    trying on openSUSE instead of debian now.. lets see

  36. 509 Bram 2011-12-10 5:18 pm

    Still trying to get the keys out of the 4S.
    When I have siriServer.rb running, and siri on the iPhone 4 is redirected to 192.168.1.28, this is what happens:

    /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:304:in `start_tls': Could not find ./server.passless.key for start_tls (EventMachine::FileNotFoundException)
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `each'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `start_tls'
    from /home/bram/hacks/applidium/siriServer.rb:27:in `post_init'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from /home/bram/hacks/applidium/siriServer.rb:73

    I know I need a 4S to gain the keys, but how can I let it connect over a VPN? The remote vpn is up and running, but siriServer.rb doesn't give me any logs..

  37. 512 admin 2011-12-10 6:49 pm

    Bram: try cd into server dir and execute it from there. Then it should find the key files.

    In /etc/ppp/options.pptpd is a line with "ms-dns". Find it and set it to your ip.

    If this dont work edit "options" and do the same.

    Check /var/log/messages for pptpd infos and if dns set correct!

  38. 514 Bram 2011-12-10 7:13 pm

    Like this?

    bram@vm:~$ cd ..
    bram@vm:/home$ cd ..
    bram@vm:/$ cd ..
    bram@vm:/$ sudo ruby ~/hacks/applidium/siriServer.rb > logile.log
    -bash: logile.log: Permission denied
    bram@vm:/$ sudo ruby ~/hacks/applidium/siriServer.rb > ~/logile.log
    [sudo] password for bram:

    *here it is waiting until I activate Siri*

    /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:304:in `start_tls': Could not find ./server.passless.key for start_tls (EventMachine::FileNotFoundException)
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `each'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `start_tls'
    from /home/bram/hacks/applidium/siriServer.rb:27:in `post_init'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from /home/bram/hacks/applidium/siriServer.rb:73
    bram@vm:/$

    Same Result when I'm root:

    root@vm:~# sudo ruby /home/bram/hacks/applidium/siriServer.rb > logile.log
    /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:304:in `start_tls': Could not find ./server.passless.key for start_tls (EventMachine::FileNotFoundException)
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `each'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:302:in `start_tls'
    from /home/bram/hacks/applidium/siriServer.rb:27:in `post_init'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from /home/bram/hacks/applidium/siriServer.rb:73
    root@vm:~#

    I already edited ms-dns in the options.pptpd, options looks like a totally different file, but I unhashed a ms-dns and added my ip address, lets hope this works.

    I can't find any messages file/folder inside var/log.

    Thanks for all your help!

  39. 516 Bram 2011-12-10 7:18 pm

    Ok, I have kinda good news :p

    The VPN is working over 3G, when I connect or activate Siri, I get the error in siriServer.rb :)
    Just need to fix that

    ..and then I still need to get SiriProxy running :p

  40. 517 Bram 2011-12-10 7:47 pm

    OMG, I feel like spamming your blog, but hopefully this can help a lot of others too.

    I found this on the internet: https://github.com/plamoni/SiriProxy/issues/27
    And now I understand what you mean with server dir ^^'
    So solved that

    But, now I get another error (I'll google it before I click 'absenden' :p)

    Last login: Sat Dec 10 17:57:11 2011 from macbook-pro-van-bram.local
    bram@vm:~$ cd hacks
    bram@vm:~/hacks$ cd applidium
    bram@vm:~/hacks/applidium$ sudo ruby siriServer.rb > logile.log
    [sudo] password for bram:
    siriServer.rb:40:in `unbind': undefined method `close' for nil:NilClass (NoMethodError)
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:in `event_callback'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from siriServer.rb:73
    bram@vm:~/hacks/applidium$

    Here I found a possible solution: http://modmyi.com/forums/general-iphone-chat/787017-siri-files-extracted-iphone-4s-158.html
    But deleting the certificate of the phone didn't work

    Hmm, there are only 3 hits on Google, guess I'll need your help for this one again

  41. 518 Bram 2011-12-10 9:34 pm

    Hmm, I don't exactly know how I got it..

    So I connect to the VPN remotely with the i4, I start the logging and dns.py, then once started, I activate Siri.
    I notice the incoming connection in the dns shell window
    and this appears in the shell:

    bram@vm:~/hacks/applidium$ sudo ruby siriServer.rb > logile.log

    *I activate Siri*

    ^C/var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine': Interrupt
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from siriServer.rb:73
    bram@vm:~/hacks/applidium$

    a fraction of the dns log:
    Respuesta: p04-bookmarks.icloud.com. -> 192.168.1.24
    Respuesta: guzzoni.apple.com. -> 192.168.1.24
    Respuesta: dns.msftncsi.com. -> 192.168.1.24

    anyways: this is the log I get: http://t.co/46VDLc36

    I tried this with another iPhone 4S, because the friend I tried it with before was with her boyfriend. But she couldn't connect to the VPN..

    Bleh, enough for today. Goodnight

  42. 519 Bram 2011-12-10 11:36 pm

    Ok.. I am addicted :p

    Got the 4S keys, implented them and runned the server.
    I changed the assistant plist to http://192.168.1.24 but when I activate Siri, it doesn't even listen..

    So placed gruzzoni.apple.com back, activated the VPN connection and ran SiriProxy.rb again.. no reaction

    So I also activated the dns.py, every incoming connection over the VPN would be redirected. And it did! lots of data is seen in the shell, but siri tells me it can't connect

  43. 522 Bram 2011-12-11 1:45 pm

    I got it working, just not yet over VPN.

    I wanted to show you a video about my connection problem, but then, all of a sudden it worked! :D In this video you can see it working, that was the first time it worked! :p
    http://www.youtube.com/watch?v=EMEZaMPiFzY

    Can someone explain the problem with the VPN?

    Thanks a lot for this awesome tutorial and your help! :)

  44. 523 marcel 2011-12-11 2:15 pm

    @bram: you must use https://192.168.1.24 instead of http://192.168.1.24

  45. 524 Adam 2011-12-11 2:23 pm

    @Bram: I believe in the com.apple. assistant.plist, the key should look like this "https://192.168.1.24" gotta have that little s I think.

  46. 525 Syby Abraham 2011-12-11 3:22 pm

    I'm getting an error when I run the final command ruby ~/hacks/SiriProxy/start.rb, everything else worked fine.

    /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- plugins/thermostat/siriThermostat (LoadError)
    from /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/user/hacks/SiriProxy/start.rb:2:in `<main>'

  47. 531 Al 2011-12-12 5:37 am

    I have it connecting though the siriProxy. But for some reason, the phone is not displaying some responses. For example, when I ask Siri a question, the phone will show what I said but will not show the response. I see the response in the siriProxy terminal window. Some responses do show up such as Wolfram Alpha requests.

    Why is this happening?

    BTW I am using sirin1ght as my GUI.

  48. 533 admin 2011-12-12 8:41 am

    @Syby: just uncomment the line which contains "thermostat" in SiriProxy.rb by putting a "#" in front. then try again.

    @Al: congrats at least siriserver is running. all you need now is a working siriGUI. its not displaying stuff because you miss the dyld cache fom an iPhone 4S. you can get that by using google... or installing f.e. h1siri and changing their com.apple.assistant.plist to use your server and keys.

    @bram: its hard to follow your problems if you write so much.

    whats your current state?

  49. 538 Syby Abraham 2011-12-12 2:16 pm

    When I uncomment the thermostat require the next require, which is testproxy, fails to load.

    /home/syby/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- plugins/testproxy/testproxy (LoadError)
    from /home/syby/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/syby/hacks/SiriProxy/start.rb:3:in `<main>'

    Do this have something to do with the version of Ruby I'm using?

  50. 539 admin 2011-12-12 2:49 pm

    looks like simple all the modules are not unzipped correct.
    which OS do you use?

    try following again:

    cd ~/hacks
    wget http://www.ketchup-mayo-senf.de/blog/MySiriProxy.zip
    unzip MySiriProxy.zip

  51. 562 Bram 2011-12-13 2:24 pm

    Sorry that I confused you, but I kinda fixed everything.

    As you can see in my latest post in the YT-video, I got it up and running!
    But only if I redirect the router DNS to my server. I'll try to edit the assistant.plist to httpS://192....
    Then I'll see if I can get it working over 3G using the VPN.

    Thanks for the help.

    I noticed that you posted a FAQ, I'll check later today if my problems are mentioned aswell, if not, it may help a lot of people if you include them.

  52. 563 Tobi 2011-12-13 5:52 pm

    hab den server nun frisch aufgesetzt...die keys vom 4s drin und mir sudo ruby start.rb gestartet...aber das IP4 verbindet sich nicht mit dem server, bekomme immer die nachricht das ich keine verbindung habe.
    vielleicht liegt es auch an meinem port, kannst du einen empfehlen wo nicht die tartatur und camera hin ist?
    sirin1ght macht da ja probleme...

  53. 564 Tobi 2011-12-13 6:38 pm

    also wenn ich es auf guzzoni.apple.com lasse und den DNS auf meinen server einstelle, sehe ich wie er arbeitet und er schreibt mir meinen text im handy, aber antwort kommt keine...

  54. 565 Tobi 2011-12-13 6:52 pm

    ok er läuft, aber nur wenn ich den guzzoni.apple.com eintrag lasse und als dns den server verwende...
    haste da noch nen tipp wo das prob liegen könnte?

  55. 567 Peter 2011-12-13 10:45 pm

    Wenn ich ein iPhone 4S bei gestartetem DNS-Server und siriServer.rb verbinde, passiert garnichts.

    Ich würde mich über eine Antwort und baldige Hilfe freuen :-)
    (Es handelt sich um ein iPhone das nicht in meinem Netzwerk ist,
    verbunden wurde es über meine IP, Port 443 wurde geöffnet. Neue
    Zertifikate habe ich auch erstellt + eingefügt.)

  56. 568 Syby Abraham 2011-12-14 5:21 am

    I did a clean reinstall of Ubuntu 11.10 and did everything as in this tutorial and I still get the same error.

  57. 571 admin 2011-12-14 9:48 am

    @tobi: ja klar weiß ich warum. dein server zertifikat ist auf "guzzoni.apple.com" ausgestellt. mach ein neues (anleitung im anderen post) und stell dieses auf deine ip aus.
    zum thema antworten: das liegt an deiner siri gui

    @syby: i dont know why but it seems like the data isnt extracted right on your system. can you just unzip it manually? then it should work :)

    @Bram: your server cert is only for "guzzoni.apple.com". create a new one (using my other tutorial) and set "common name" to your ip

  58. 584 Tobi 2011-12-14 6:05 pm

    ok, dann werde ich das mal probieren...das zweite problem ist dann echt die GUI, die sind alle "mist", sirin1ght, h1siri...entweder tastatur weg oder facetime/imessage...

  59. 597 admin 2011-12-15 3:36 pm

    facetime und imessage gehn bei mir.

  60. 724 hatzl 2011-12-23 6:21 pm

    Mit welcher GUI gehen die bei dir ?

  61. 777 Chandler Lattin 2011-12-27 6:01 am

    The siriProxy.rb doesn't have those lines to edit :(

  62. 882 Thomas 2011-12-28 12:45 pm

    Bei mir wird nach dem Start des SiriProxy nichts in der Conole ausgegeben. Ist das normal oder läuft mein Proxy nicht.

    Hat jemand einen Tipp für mich?

    PS: Hab noch keine Keys vom iP4s drin. Weiß also nicht ob mein Proxy läuft oder nicht.

  63. 915 lachz 2011-12-28 8:47 pm

    Kann mir mal wer sagen wie ihr das unter Debian hinbekommen habt?

    bekomme bei allen gem install commands.

    gem install eventmachine
    ERROR: could not find gem eventmachine locally or in a repository

    kann mir da wer helfen?

  64. 921 theclick64 2011-12-28 10:48 pm

    Hi,
    Erst mal danke für das Tutorial.
    Habe jetzt die Keys bekommen aber wo in der siriProxy.rb muss man genau die Keys einfügen. Find es einfach nicht :D
    MfG theclick64

  65. 930 Luc 2011-12-29 12:35 am

    Mehr details für die VPN Verbindung wären hilfreich :) ansonsten sind noch ein paar Fehler in dem script was zu kopieren ist, die man aber eigentlich beim kopeieren recht schnell findet

  66. 929 Luc 2011-12-29 12:35 am

    Mehr details für die VPN Verbindung wären hilfreich :) ansonsten sind noch ein paar Fehler in dem script was zu kopieren ist, die man aber eigentlich beim kopeieren recht schnell findet

  67. 962 sssangel 2011-12-29 1:33 pm

    Hi I have the same problem than @Syby Abraham

    /home/syby/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- plugins/testproxy/testproxy (LoadError)
    from /home/syby/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/syby/hacks/SiriProxy/start.rb:3:in `<main>'

    I am using ubuntu 10.1 ou Opensuse but can't fixe this.

  68. 1011 John 2011-12-30 9:05 am

    hello,
    On install script ubuntu.sh, At the end
    http://www.ketchup-mayo-senf.de/blog/options.pptp
    shows a 404 page not found.

    how Does this effect the install.

  69. 1073 Lucas 2011-12-31 2:48 pm

    root@siri:~/hacks/SiriProxy# ruby ~/hacks/SiriProxy/start.rb
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- eventmachine (LoadError)
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from ./siriProxy.rb:3
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /root/hacks/SiriProxy/start.rb:6
    root@siri:~/hacks/SiriProxy#

  70. 1074 sssangel 2011-12-31 4:38 pm

    @John
    Yes in the script he forget "d" is"option.pptd"

  71. 1076 Ivan 2011-12-31 6:16 pm

    Hi there!,

    just playing around, everything seems fine (almost clean virtual vmware ubuntu) but upon running sudo ruby start.rb nothing happens (no further messages on the screen), I can telnet my host on port 443 though, but nothing happens. I even changed loglevel to 5, but nada!
    What can I look into?

  72. 1077 sssangel 2011-12-31 7:00 pm

    @Lucas

    ruby start.rb ?

  73. 1078 Modman 2011-12-31 8:28 pm

    For some reason when i'm cd in to hacks/SiriProxy it's not letting me use mcedit....

  74. 1083 Sanchit Chadha 2012-01-01 8:37 am

    I've extracted MySiriProxy.zip correctly and I have also added the hashtag to line 2 of start.rb. But whenever I do ruby start.rb, I get this:

    /home/schadha/.rvm/rubies/ruby-1.9.3-p0/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- plugins/testproxy/testproxy (LoadError)

    I know for a fact that everything has been extracted correctly and in the correct directories. Please help!

  75. 1090 Max T. 2012-01-01 5:34 pm

    Ich habe das Problem, dass mein VMWare Player sehr sehr langsam ist... Würde das gerne alles machen aber es zieht sich so, dass es unerträglich ist... Woran kann das liegen?

    Habe einen i5 750, 4GB Ram.
    Der VM habe ich 2GB Ram gegeben und 2 Proz. Kerne... Ich wollte Dropbox zum einfachen Syncen der Daten runterladen und der download zieht sich ebenfalls ins "unendliche"

  76. 1098 Kevin 2012-01-02 11:03 am

    hey, ich nutze parallels, und wenn ich wifi bridge auswähle habe ich troztdem kein internet :-(, was kann ich tun? bitte um antwort.

  77. 1109 muck 2012-01-02 5:15 pm

    First: Thank you for this howto! :-)

    But now I want to knwo how to limit the access to the siri proxy.
    Because I want only give the access to some of my best friends.

    The paid Siri Proxy hosts limit the access by device id...
    How can I do this?

    Can you please give me some hints about this?

    Thx

  78. 1111 Olli 2012-01-02 8:51 pm

    1. Wie finde ich die IP raus?

    2. beim VPN Aktivieren: IPSEC Schlüssel fehlt

    Wer kann helfen

  79. 1136 mandofever 2012-01-04 11:47 pm

    I have a problem with LoadErrors on every "require" in /hacks/SiriProxy/start.rb when trying to start the SiriProxy server, just like Syby Abraham complained of earlier in this thread.

    I have a fresh ubuntu install and I have reinstalled you ZIP file and verified that all data has been extracted to the proper locations.

    I found that if i edit /hacks/SiriProxy/start.rb to include absolute path to a required file, then the load error disappears for that "require".

    If i enter absolute paths for every "require" in start.rb, i then get a LoadError for /rubygems/custom_require.rb:36

    I am certain that this error is also path related, but i do not know how to resolve the issues. Please help

    Thanks for everything you do!
    Mandofever

  80. 1204 Thomas 2012-01-10 11:23 am

    Hi,

    gibts details für die VPN Verbindung.

    Das iphone akzeptiert diese nicht :(

  81. 1234 luke 2012-01-20 3:43 am

    when i enter the command ifconfig linux tells me command not found not sure on what to do added the static ip no prob. any ideas??
    thanks

  82. 1244 Niranda 2012-01-24 8:30 pm

    Für alle, bei denen der Befehl
    "rvmsudo siriproxy server"
    nicht funktioniert:
    Ihr müsst sudo installieren:
    apt-get install sudo

  83. 1256 KY 2012-01-28 6:05 pm

    thanks for the guide. I've downloaded Spire and getting ready to set up SiriProxy. However, as I read your blog, I saw you mentioned that Do not use public siriproxy, is this consider public proxy or private??

    All these codes seem confusing. Hope to get Siri working on iphone4

  84. 1257 KY 2012-01-28 6:06 pm

    is this guide for Mac only? How bout windows?

  85. 1266 Matias 2012-01-31 11:27 am

    Hey Admin,

    ich habe dasselbe Problem wie ,,Lachz" !
    Meine VPN-Verbindung will einfach nicht funktionieren, ich habe sie so editiert wie du es beschrieben hast!
    Im Syslog steht dann aber nur :

    "ubuntu pptpd[8549]: MGR Bad IP address (192.168.178.234-238#015) in config file!"

    etwas weiter oben steht folgendes:

    "ubuntu pppd[8399]: The remote system is required to authenticate itself"
    "ubuntu pppd[8399]: but I couldn't find any suitable secret (password) for it to use to do so."

    Wahrscheinlich liegt es ja offensichtlich an der chap-secrets, die ist aber in /etc/ppp/ und auch nicht verändert!

    Ich versuche schon länger das zu lösen, bittel helf(t) mir!

    Mit freundlichen Grüßen
    Matias

  86. 1268 Mathis 2012-02-01 9:16 pm

    Hey Admin,
    tut mir leid wenn ich diese etwas blöde Frage stelle, aber ich verstehe nicht ganz, welche 4 keys ich beim Schritt "Setting up our Proxy" benötige. wenn ich dort auf den Link zu dem Tutorial klicke, werde ich auch nicht schlauer draus. Muss ich das gesamte Tutorial dort durchführen, oder was genau muss ich tun?

    MfG,
    Mathis

Antwort hinterlassen