Friday, June 22, 2012

Installing and setup of SiriProxy on A5 devices.


Install Siri Plugin – only for users who have Ubuntu experience

By Mudassarr K. Twitter

By using this guide exactly step by step, you will be able to have Siri Plugin up and running on your local network.

It takes about 45 minutes so be prepared to wait. 

As said in the title, only for users who know how to use Ubuntu.  You don’t need to be a programmer, but you do need to be able to navigate Ubuntu.



Here is A video for you to follow along also.

http://www.youtube.com/watch?v=LowzAiud0dE



So lets get started.

What you need:

Iphone 4s,

Ubuntu with all latest updates,

WLAN,

Email account,

and patients.



All of these are pasted or typed into the command Line terminal.

step 1:

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
Select ‘y’ to continue.



            Step 2:

sudo nano /etc/dnsmasq.conf

            Now go to the Line, around line 65, that says

#address=/double-click.net/127.0.0.1

            Right under that line type

address=/guzzoni.apple.com/(your_machine's_ip_address)

            You can find your Ip address under connections information.

press control O, and then Save and exit.



            Step 3:

sudo /etc/init.d/dnsmasq restart



            Step 4:

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



            Step 5:

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



            Step 6:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile



            Step 7:

rvm install 1.9.3
This command takes some time to carry out Be serene particularly on the compiling bit



            Step 8:

rvm use 1.9.3 --default


            Step 9

git clone git://github.com/plamoni/SiriProxy.git



            Step 10:

cd SiriProxy
Select 'y' to continue.



            Step 11:

rake install



            Step 12:

mkdir ~/.siriproxy



            Step 13:

cp ./config.example.yml ~/.siriproxy/config.yml



            Step 14:

siriproxy gencerts



            Step 15:

siriproxy bundle



            Step 16:

rvmsudo siriproxy server

            This command starts your Siri Proxy Server. It should say "Starting SiriProxy on port 443.."






            Now it’s the easy part.

Take your Iphone 4s and do the following.



            Step 1:

Go grab the cert you generated in step 14.

It can be found in the following location.

go to your home folder on your Ubuntu, press control H to show hidden files.

~/.siriproxy/ca.pem

            Email your iphone the ca.pem file.

Open the attachment and install the profile cert on your iphone.

            Step 2:

Go to your WI-Fi settings on your Phone Settings, and connect to your network,

change the DNS Ip to your Ubuntu’s Ip address.

Your internet and everything else will work fine as long as your Ubuntu is connected to your network and the internet.



Step 3:

Try it out for yourself. Enable siri on your Iphone and say “Test SIRI PROXY”

your Phone should say, Siri Proxy is running.

You can also sea all of the information going from and to your Iphone in the terminal window.



We have Siri Proxy installed now! Now the only thing to do is to install some plugins.

Come back next week for a step by step on how to do that!



Links:


Install Siri Proxy




Demo of proxy




Siri controlling a house!


No comments: