How to Install Siri On iPad 2 With Spire and SiriProxy [Complete Guide]

by jbwire on January 23, 2012

Users who have jailbroken their iPad 2 can now install Siri on their iPad 2 running over WiFi and 3G with the Spire tweak released by Chpwn. The process requires setting up a Siriproxy server and an iPhone 4S.

As the iPhone 4S authentication keys are required to install Siri on iPad 2. The Spire uses method to fetch the files necessary for Siri to bypass the copyright issues faced in all earlier methods including H1Siri.

Here we have the complete tutorial to install on iPad 2 using Spire and iPhone 4S for authentication tokens. The tutorial is divided into 6 major sections:

  • Forward Port
  • Install and Configure Siri Proxy
  • Generate Auth Certificates
  • Install Certificates on iPhone 4S and iPad 2
  • Install Spire and Configuring it

NOTE: In the tutorial below, Mac is used. Windows users can achieve same results on Ubuntu using aptget instead of Mac Ports.

Complete Guide to Install Siri on iPad 2 Using Spire and SiriProxy

(A) Forward Ports:

The first thing we need to do port forwarding. For this we’re using an AirPort Extreme. Users with any other router, can check other options for port forwarding.

1. Find AirPort Utility under Utilities folder in your Mac and open it.

2. Click on Manual Setup

3. Go to Advanced > Port Mapping and click on the “+” symbol

4. Put in 443 for all the ports and enter your IP address. Click continue button in the bottom.

5. In the next screen, fill in any description like “Siri” or whatever you want it to call and click done.

6. Now wait for your router to update and its done.

(B) Install and Configure Siri Proxy

For installing Siri you will need a SiriProxy up and running. Here are the steps to set up a Siri proxy:

1. Download SiriProxy and unzip it.

2. Download and install Mac Ports

3 Open Terminal in your Mac and type the following command:

sudo port install dnsmasq

Type your computer’s password, when prompted.

4. Type the following command to download/install RVM

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

5. Type the following command to activate RVM

 [[ -s "$HOME/.rvm/scripts/rvm" ]] && . “$HOME/.rvm/scripts/rvm”

6. Type the following to add RVM to your .bash_profile

echo ‘[[ -s "$HOME/.rvm/scripts/rvm" ]] && . “$HOME/.rvm/scripts/rvm” # Load RVM function’ >> ~/.bash_profile to add RVM to your .bash_profile

7. Type rvm install 1.9.3 to install Ruby 1.9.3

8. Some users might get an error while installing Ruby.

9. If you get the error as shown in the screen, type the following command

rvm install 1.9.3 –with-gcc=clang

10. Type rvm use 1.9.3 –default to set RVM to use/default to 1.9.3

11. Now you need to cd into the siri proxy folder you downloaded at step. The easiest way is to type cd and then just drag-and-drop the folder from the unzipped location to your terminal shell.

12. Install Rake and Bundler using the following command

rvmsudo gem install rake bundler

Type in your computer password

13. Install SiriProxy gem type

rake install 

14. Make a .siriproxy directory with command

mkdir ~/.siriproxy

15. Type

cp ./config.example.yml ~/.siriproxy/config.yml to move default config file to .siriproxy

16. Enter the command

sudo port install openssl

NOTE: now here is where you need to pay some attention if you want to make Siri running over 3G ( as well as WiFi ). If you have a static IP continue to the next step. If you have dynamic IP you’ll need some sort of service like dynDNS set up ( that’s a whole other tutorial. So google it, get it done, and proceed to the next step )(

(C ) Generate Certificates

17. Now we need to generate certificates for dymanic IP and static IP.

 For dynamic IP:

1. Browse to  /opt/local/etc/openssl/openssl.cnf and open openssl.cnf in any text editor (we used TextWrengler).

2. Scroll down and find the following statement (line 148 for us):

commonName = Common Name (eg, YOUR name)

commonName_max = 64

3. Replace it with:

0.commonName = Common Name (eg, YOUR name)

0.commonName_default = www.domain1.com

0.commonName_max = 64

1.commonName = Common Name (eg, YOUR name)

1.commonName_default = www.domain2.org

1.commonName_max = 64

4. Save and quit

5. Open up a finder window, hit cmd+shift+g and go to  ~/.siriproxy

6. Open up a terminal shell and type cd ~/.siriproxy

7. Generate the certificates using the following commands one at a time

(IMPORTANT): You can use whatever info you want when it asks for it, just make sure that for the common names you put your dnyDNS or no-ip domain FIRST and guzzoni.apple.com SECOND.

openssl genrsa -des3 -out ca.key 4096

openssl req -new -x509 -days 365 -key ca.key -out ca.crt

 

openssl genrsa -des3 -out server.key 4096

openssl req -new -key server.key -out server.csr

 

openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.passless.crt

openssl rsa -in server.key -out server.key.insecure

 

mv server.key server.key.secure

mv server.key.insecure server.passless.key

For static IP:

  • Type ./siriproxy gencerts

Now, your certificates are generated.

 (D) Install Certificates on iPhone 4S and iPad 2.

18. Next you need to install ca.pem (for static IP ) or ca.crt ( for dynamic iP ) onto your iPhone ( both iPhone 4S and iPad 2 ). To do that open a finder window, press cmd+shift+G and enter the following path ~/.siriproxy

19. Email ca.pem/ca.crt to any of your email id.

20. On your phone you will see the new file. Click on it and install it.

21. Now, search your Mac for file: dnsmasq.conf. Once you’ve found it, open it in a text editor  (we suggest TextWrangler).  Find the following line in the file

#address=double-click.net/127.0.0.1 ( line 62 ).

Right below that, add the following line:

address=/guzzoni.apple.com/your-computer-IP

21.1 Type in terminal

sudo dnsmasq

Check activity monitor if dnsmasq is running ( all processes )

22. On your iPhone 4S, open Settings.app. Go to WiFi, select your WiFi, and edit your DNS. Should be something like 10.0.1.0. Change it to your computer’s IP ( the same address you used in dnsmasq.conf file )

23. Now you need to cd into the bin folder found in the westbaer-SiriProxy-a2219ee that you’ve downloaded at step 1. To do that type cd and drag-and-drop the bin folder into the terminal

24. Type ./siriproxy bundle

25. Type rvmsudo siriproxy server and type your password.

26. Now everything should be up and running. To test it, fire up Siri and say ‘Test Siri Proxy’

(E) Install Spire and Configure it

 27. On your iPad 2, open Cydia, and install Spire ( it’s a big download so make sure you’re on WiFi and your phone won’t go to sleep in the process) and iFile.

27.1 If you are not able to install Spire due to dependencies, open iFile, navigate to /System/Library/CoreServices/Springboard.app/K93AP.plist ( it can also be K94AP.plist or K95AP.plist )  and open it. Search for:

<key>ipad</key>

<true/>

and change it to:

<key>ipad</key>

<false/>

28. Go to Settings.app >Generala>Siri> and turn it on (turn off Raise to Speak option – you don’t need it, it’s annoying and it will drain your battery)

29. Go to Settings.app > Spire and fill in your proxy host. For static IP use https://guzzoni.apple.com. For dynamic IP use https://your-dns-domain-name

30. Open iFile and browse to /var/mobile/Library/Preferences/ find the com.apple.assistant.plist and tap on it to open with the property list viewer.

31. Now you need to add 3 new strings to the Dictionary. Click on ‘Accounts’ , then open on ‘Dictionary’, press the “+” symbol on the bottom right side of the screen and add:

  • Ace Host
  • Assistant Identifier
  • Speech Identifier

32. Make sure SiriProxy is running and use your iPhone 4S to trigger Siri ( say whatever, it doesn’t matter ). By doing this, you will assign your 4S tokens to your iPad 2.

33. Now you should be able to use Siri over WiFi on your iPad 2.

34. To use it over 3G, open iFile browse to /etc/ and look for the hosts file. Open it with text viewer, edit it, and add the following line:

  • for static IP: your-ip-address guzzoni.apple.com
  • for dynamic IP: your-dns-domain-name guzzoni.apple.com

35. Its done now, to use Siri on your iPad 2.

NOTE: To work Siri on your iPad 2, a terminal shell with SiriProxy running is required at all times.

After installing Siri, you can enhance your Siri with these best Siri Cydia tweaks, mostly free. For instant updates and guides connect to us on @Jailbreakwire, join our Facebook Fanpage and join our Google+ network.

Via [FSM]

Previous post:

Next post: