siriproxy 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +31 -51
- data/lib/siriproxy/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -38,75 +38,55 @@ For a list of current plugins and some more demo videos, check the [Plugins page
|
|
38
38
|
Set-up Instructions
|
39
39
|
-------------------
|
40
40
|
|
41
|
-
**
|
41
|
+
**NEW Instructions for 0.5.0**
|
42
42
|
|
43
|
-
|
43
|
+
Note that the installation instructions have changed. It's no longer necessary to install dnsmasq. Also, SiriProxy is available via rubygems for easy installation.
|
44
44
|
|
45
|
-
|
45
|
+
**Set up RVM and Ruby 2.0.0**
|
46
46
|
|
47
|
-
|
47
|
+
If you don't already have Ruby 2.0.0 (or at least 1.9.3) installed through RVM, please do so in order to make sure you can follow the steps later. Experts can ignore this. If you're unsure, follow these directions carefully:
|
48
48
|
|
49
|
-
|
49
|
+
1. Install pre-requisites. Veries by system. For a fresh Ubuntu 12.10 install, these seem to be good:
|
50
50
|
|
51
|
-
|
51
|
+
`sudo apt-get install libxslt1.1 libxslt-dev xvfb build-essential git-core curl libyaml-dev libssl-dev`
|
52
52
|
|
53
|
-
|
53
|
+
2. Download and install RVM (if you don't have it already):
|
54
|
+
* Download/install RVM:
|
55
|
+
`curl -L https://get.rvm.io | bash -s stable --ruby`
|
56
|
+
* Update .bashrc:
|
57
|
+
`echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc`
|
58
|
+
`echo 'export PATH=$HOME/.rvm/bin:$PATH' >> ~/.bashrc`
|
59
|
+
* Activate changes:
|
60
|
+
`. ~/.bashrc`
|
61
|
+
3. Install Ruby 2.0.0 (if you don't have it already):
|
54
62
|
|
55
|
-
|
63
|
+
`rvm install 2.0.0`
|
56
64
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
* Activate RVM:
|
61
|
-
`[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
|
62
|
-
* (optional, but useful) Add RVM to your .bash_profile:
|
63
|
-
`echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile`
|
64
|
-
2. Install Ruby 1.9.3 (if you don't have it already):
|
65
|
-
`rvm install 1.9.3`
|
66
|
-
3. Set RVM to use/default to 1.9.3:
|
67
|
-
`rvm use 1.9.3 --default`
|
65
|
+
4. Set RVM to use/default to 2.0.0:
|
66
|
+
|
67
|
+
`rvm use 2.0.0 --default`
|
68
68
|
|
69
69
|
**Set up SiriProxy**
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
`rvmsudo gem install rake bundler`
|
75
|
-
2. Install SiriProxy gem (do this from your SiriProxy directory):
|
76
|
-
`rake install`
|
77
|
-
3. Make .siriproxy directory:
|
78
|
-
`mkdir ~/.siriproxy`
|
79
|
-
4. Move default config file to .siriproxy (if you need to make configuration changes, do that now by editing the config.yml):
|
80
|
-
`cp ./config.example.yml ~/.siriproxy/config.yml`
|
81
|
-
5. Generate certificates:
|
82
|
-
`siriproxy gencerts`
|
83
|
-
6. Install `~/.siriproxy/ca.pem` on your phone. This can easily be done by emailing the file to yourself and clicking on it in the iPhone email app. Follow the prompts.
|
84
|
-
7. Bundle SiriProxy (this should be done every time you change the config.yml):
|
85
|
-
`siriproxy bundle`
|
86
|
-
8. Start SiriProxy (must start as root because it uses a port < 1024):
|
87
|
-
`rvmsudo siriproxy server`
|
88
|
-
9. Test that the server is running by saying "Test Siri Proxy" to your phone.
|
71
|
+
1. Install SiriProxy Gem
|
72
|
+
|
73
|
+
`gem install siriproxy`
|
89
74
|
|
90
|
-
|
75
|
+
2. Create `~/.siriproxy` directory
|
91
76
|
|
92
|
-
|
77
|
+
`mkdir ~/.siriproxy`
|
93
78
|
|
94
|
-
|
79
|
+
3. Generate Certificates
|
95
80
|
|
96
|
-
|
81
|
+
`siriproxy gencerts`
|
97
82
|
|
98
|
-
|
99
|
-
|
100
|
-
Installs the latest code from the [master] branch on GitHub.
|
101
|
-
|
102
|
-
siriproxy update /path/to/SiriProxy
|
83
|
+
4. Transfer certificate to your phone (it will be located at `~/.siriproxy/ca.pem`, email it to your phone)
|
84
|
+
5. Start SiriProxy (`XXX.XXX.XXX.XXX` should be replaced with your server's IP address, e.g. `192.168.1.100`), `nobody` can be replaced with any un-privileged user.
|
103
85
|
|
104
|
-
|
105
|
-
|
106
|
-
siriproxy update -b dev
|
86
|
+
`rvmsudo siriproxy server -d XXX.XXX.XXX.XXX -u nobody`
|
107
87
|
|
108
|
-
|
109
|
-
|
88
|
+
6. Tell your phone to use your SiriProxy server as its DNS server (under your Wifi settings)
|
89
|
+
7. Test that the server is running by saying "Test Siri Proxy" to your phone.
|
110
90
|
|
111
91
|
FAQ
|
112
92
|
---
|
data/lib/siriproxy/version.rb
CHANGED