siriproxy 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +31 -51
  2. data/lib/siriproxy/version.rb +1 -1
  3. 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
- **Video of a complete installation on Ubuntu 11.10**
41
+ **NEW Instructions for 0.5.0**
42
42
 
43
- [http://www.youtube.com/watch?v=GQXyJR6mOk0](http://www.youtube.com/watch?v=GQXyJR6mOk0)
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
- This is a video of a complete start-to-finish installation on a fresh install of Ubuntu 11.10.
45
+ **Set up RVM and Ruby 2.0.0**
46
46
 
47
- The commands used in the video can be found at [https://gist.github.com/1428474](https://gist.github.com/1428474).
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
- **Set up DNS**
49
+ 1. Install pre-requisites. Veries by system. For a fresh Ubuntu 12.10 install, these seem to be good:
50
50
 
51
- Before you can use SiriProxy, you must set up a DNS server on your network to forward requests for guzzoni.apple.com to the computer running the proxy (siriproxy uses Google's public DNS servers to resolve guzzoni.apple.com, so it may use your forwarding DNS server). I recommend dnsmasq for this purpose. It's easy to get running and can easily handle this sort of behavior. ([http://www.youtube.com/watch?v=a9gO4L0U59s](http://www.youtube.com/watch?v=a9gO4L0U59s))
51
+ `sudo apt-get install libxslt1.1 libxslt-dev xvfb build-essential git-core curl libyaml-dev libssl-dev`
52
52
 
53
- **Set up RVM and Ruby 1.9.3**
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
- If you don't already have Ruby 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:
63
+ `rvm install 2.0.0`
56
64
 
57
- 1. Download and install RVM (if you don't have it already):
58
- * Download/install RVM:
59
- `bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)`
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
- Clone this repo locally, then navigate into the SiriProxy directory (the root of the repo). Then follow these instructions carefully. Note that nothing needs to be (or should be) done as root until you launch the server:
72
-
73
- 1. Install Rake and Bundler:
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
- Note: on some machines, rvmsudo changes "`~`" to "`/root/`". This means that you may need to symlink your "`.siriproxy`" directory to "`/root/`" in order to get the application to work:
75
+ 2. Create `~/.siriproxy` directory
91
76
 
92
- sudo ln -s ~/.siriproxy /root/.siriproxy
77
+ `mkdir ~/.siriproxy`
93
78
 
94
- **Updating SiriProxy**
79
+ 3. Generate Certificates
95
80
 
96
- Once you're up and running, if you modify the code, or you want to grab the latest code from GitHub, you can do that easily using the "siriproxy update" command. Here's a couple of examples:
81
+ `siriproxy gencerts`
97
82
 
98
- siriproxy update
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
- Installs the code from /path/to/SiriProxy
105
-
106
- siriproxy update -b dev
86
+ `rvmsudo siriproxy server -d XXX.XXX.XXX.XXX -u nobody`
107
87
 
108
- Installs the latest code from the development branch (called "dev") on GitHub.
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
  ---
@@ -1,3 +1,3 @@
1
1
  class SiriProxy
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siriproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: