Willl0u
Posts: 6
Joined: Sat May 19, 2012 10:12 pm

Siri Proxy

Wed Jun 27, 2012 3:47 pm

I tried to install Siri Proxy on my Pi. I followed these instructions : https://gist.github.com/1428474
I just got a small error with the last line : rvmsudo siriproxy server
The server doesn't want to start. I have no idea what's the problem. Everything worked fine, except this line :cry:

If anyone has tried to install Siri Proxy on his Pi and succeeded, tell me ;)

Borg
Posts: 1
Joined: Mon Jul 16, 2012 11:05 pm

Re: Siri Proxy

Mon Jul 16, 2012 11:12 pm

Try the following:

rvmsudo ./bin/siriproxy server -l 0
(-l 0 is to reduce debug information and speed up the server)

I've made it work and I get the "Siriproxy is up and running". But it seems to run too slow and don't always respond. Let me know if you have any better luck.

bulldog5046
Posts: 36
Joined: Thu Jun 21, 2012 1:50 pm

Re: Siri Proxy

Tue Jul 17, 2012 12:40 pm

Have you made any tweeks to improve performance other than turning debugging off?

I'm in the process of installing it to test with on mine but its taken over an hour and a half to install RVM, it's still compiling :(

Also, are you using it with a jailbroken 4 or a normal 4S? with a 4 i wouldnt run the DNS proxy personally as its pointless.

bulldog5046
Posts: 36
Joined: Thu Jun 21, 2012 1:50 pm

Re: Siri Proxy

Tue Jul 17, 2012 12:42 pm

forgot to ask, which OS are you using?

User avatar
HerboTech
Posts: 4
Joined: Tue Sep 11, 2012 10:49 am

Re: Siri Proxy

Tue Sep 11, 2012 10:53 am

I have Siriproxy running successfully under Debain Squeeze and an Edimax Nano wireless card.
The pi seems very responsive to siri requests from my 4S.
Herbo.

esmadja
Posts: 3
Joined: Sat Sep 22, 2012 4:35 am

Re: Siri Proxy

Sat Sep 22, 2012 4:52 am

Do you have the image you used? Or instructions on how to create the image?

Thanks,

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Tue Sep 25, 2012 5:30 am

Has anyone got Siri Proxy working on Raspbian “wheezy”?

Is following https://gist.github.com/1428474 pretty much all you need to do to get it working?

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Tue Sep 25, 2012 5:31 am

esmadja wrote:Do you have the image you used? Or instructions on how to create the image?

Thanks,
Did you ever find an image?

User avatar
HerboTech
Posts: 4
Joined: Tue Sep 11, 2012 10:49 am

Re: Siri Proxy

Tue Sep 25, 2012 10:37 pm

Sorry for the delay in posting, here are some quick notes I used when setting up the Plamoni Siri Proxy. I got most from Plamoni's script here https://gist.github.com/1428474
If you are installing with a standard user i.e. 'pi' you will need to sudo most of these commands. I can't guarantee this is 100% accurate, some is from memory but it should certainly help..


1. Install Debian Squeeze ( I cheated and bought a 32Gb Card with the image already installed)

1. Install all the prerequisites
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

2. Setup DNS Masq - or insert a host entry in your router to forward guzzoni.apple.com to the pi
#edit the dnsmasq conf
sudo vi /etc/dnsmasq.conf

# Keystrokes in vi:
# /address=
# A <enter> address=/guzzoni.apple.com/192.168.2.131 <--This is the IP of the VM
# <esc> :wq!


Then Restart dnsmasq
$ sudo /etc/init.d/dnsmasq restart

3.Download and install RVM (if you don't have it already):
$ curl -s https://raw.github.com/wayneeseguin/rvm ... -installer > curl.bash
modify curl.bash and insert -k option into ALL curl commands.
Execute curl.bash

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

(optional, but useful) Add RVM to your .bash_profile:
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

4.Install Ruby 1.9.3 (if you don't have it already - Warning this takes hours on the pi!!):
$ rvm install 1.9.3
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9330k 100 9330k 0 0 574k 0 0:00:16 0:00:16 --:--:-- 768k
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /usr/local/rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p0
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 107k 0 0:00:04 0:00:04 --:--:-- 143k
Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
Prepare yaml in /usr/local/rvm/src/yaml-0.1.4.
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Installing yaml to /usr/local/rvm/usr
ruby-1.9.3-p0 - #configuring
ruby-1.9.3-p0 - #compiling
ruby-1.9.3-p0 - #installing
Retrieving rubygems-1.8.10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243k 100 243k 0 0 472k 0 --:--:-- --:--:-- --:--:-- 696k
Extracting rubygems-1.8.10 ...
Removing old Rubygems files...
Installing rubygems-1.8.10 for ruby-1.9.3-p0 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p0 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p0 - #importing default gemsets (/usr/local/rvm/gemsets/)
Install of ruby-1.9.3-p0 - #complete



5.Set RVM to use/default to 1.9.3:
$ rvm use 1.9.3 --default
Using /usr/local/rvm/gems/ruby-1.9.3-p0

6. Install GIT if missing
$ apt-get install git

7.Install Rake and Bundler:
$ rvmsudo gem install rake bundler

8.Install SiriProxy gem (do this from your SiriProxy directory):
$ rake install

9.Make .siriproxy directory:
$ mkdir ~/.siriproxy

10.Move default config file to .siriproxy
(if you need to make configuration changes, do that now by editing the config.yml):
$ cp ./config.example.yml ~/.siriproxy/config.yml

11.Generate certificates:
$ ./bin/siriproxy gencerts

12.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.

13. Bundle SiriProxy (this should be done every time you change the config.yml):
$ siriproxy bundle

14.Start SiriProxy (must start as root because it uses a port < 1024):
$ rvmsudo siriproxy server


Note: I also created a link:-
~/siriproxy-example.rb -> /home/pi/.rvm/gems/ruby-1.9.3-p194/gems/siriproxy-0.3.0/plugins/siriproxy-example/lib/siriproxy-example.rb
This makes editing the config a little easier..

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Wed Sep 26, 2012 11:54 pm

Thanks for the detailed installation instructions.

I followed them to a tee however when I run:

rake install

siriproxy 0.3.0 built to pkg/siriproxy-0.3.0.gem
Couldn't install gem, run 'gem install /home/pi/SiriProxy/pkg/siriproxy-0.3.0.gem' for more detailed output

So then I run:

rvmsudo gem install pkg/siriproxy-0.3.0.gem

It installs correctly and then running: rake install gives me the same error.

If I run the following:

rvmsudo siriproxy bundle
rvmsudo siriproxy server

I get this:

config.yml not found. Copy config.example.yml to config.yml, then modify it.

I've copied config.yml to ~/.siriproxy/config.yml and it still says it's not found.

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Thu Sep 27, 2012 12:34 am

This is more of a detailed output of the error I'm getting:

Code: Select all

pi@raspberrypi:~/SiriProxy$ rake install --trace
** Invoke install (first_time)
** Execute install
siriproxy 0.3.0 built to pkg/siriproxy-0.3.0.gem
rake aborted!
Couldn't install gem, run `gem install /home/pi/SiriProxy/pkg/siriproxy-0.3.0.gem' for more detailed output
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/bundler-1.2.1/lib/bundler/gem_helper.rb:68:in `install_gem'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/bundler-1.2.1/lib/bundler/gem_helper.rb:43:in `block in install'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/home/pi/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/rake:19:in `load'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/rake:19:in `<main>'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/ruby_noexec_wrapper:14:in `eval'
/home/pi/.rvm/gems/ruby-1.9.3-p194@SiriProxy/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => install
pi@raspberrypi:~/SiriProxy$

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Thu Sep 27, 2012 5:19 am

After a few hours I got this working.

No, don't ask how.

esmadja
Posts: 3
Joined: Sat Sep 22, 2012 4:35 am

Re: Siri Proxy

Sat Sep 29, 2012 11:59 pm

I am having the same problem and the file config.yml definitely exists in the ~/.siriproxy directory and it has the following permissions
rw-rw-r--

Any help would be appreciated.

Thanks,

esmadja
Posts: 3
Joined: Sat Sep 22, 2012 4:35 am

Re: Siri Proxy

Sun Oct 07, 2012 5:48 pm

Got it working, I needed the sym link.

Has anyone got siriproxy running on boot?

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Siri Proxy

Thu Oct 25, 2012 10:54 am

esmadja wrote:Got it working, I needed the sym link.

Has anyone got siriproxy running on boot?
Nope, no luck getting this working. Did you figure it out yet?

Also what symlink change did you make to get it working?

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Siri Proxy

Thu Dec 06, 2012 6:09 pm

Siri proxy is up and running! :)

edrose
Posts: 13
Joined: Fri Dec 28, 2012 3:35 pm

Re: Siri Proxy

Fri Dec 28, 2012 3:40 pm

I'm having problems with mine! I managed to get it all set up to the point where it runs, but as soon as you try to use Siri it crashes. It also gives me a warning when it starts. The errors are:

Code: Select all

Warning: `secure_path` found in `/etc/sudoers`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. export rvmsudo_secure_path=1 to avoid the warning.Starting SiriProxy on port 443..
SiriProxy up and running.
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0x23fbec0 @signature=3, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#<Zlib::Inflate:0x23fbdb8>, @zip_stream=#<Zlib::Deflate:0x23fbda0>, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x28081f8 @manager=#<SiriProxy::PluginManager:0x23fb800 @plugins=[...]>>]
[Info - iPhone] Received Object: LoadAssistant
/usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `encode': "\xF1" followed by "6" on UTF-8 (Encoding::InvalidByteSequenceError)
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `charset_convert'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in `string_to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:in `to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in `to_str'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:in `to_str'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in `to_plist'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/connection.rb:150:in `inject_object_to_output_stream'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/connection.rb:90:in `process_compressed_data'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/connection.rb:58:in `receive_binary_data'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in `receive_data'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy.rb:16:in `initialize'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:96:in `new'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:96:in `start_server'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:85:in `run_server'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:37:in `initialize'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/bin/siriproxy:6:in `new'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/siriproxy-0.3.2/bin/siriproxy:6:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:23:in `load'
	from /usr/local/rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:23:in `<main>'
I'm using the latest version of Debian from the raspberry pi website, iOS version 6.0.1 on iPad 3. Does anyone know how to fix this problem??

burnmeister
Posts: 1
Joined: Fri Dec 28, 2012 5:56 pm

Re: Siri Proxy

Fri Dec 28, 2012 5:58 pm

edrose wrote:I'm having problems with mine! I managed to get it all set up to the point where it runs, but as soon as you try to use Siri it crashes. It also gives me a warning when it starts. The errors are:
i had the sample problem as you. found the solution here:

https://github.com/plamoni/SiriProxy/issues/389

edrose
Posts: 13
Joined: Fri Dec 28, 2012 3:35 pm

Re: Siri Proxy

Fri Dec 28, 2012 9:17 pm

burnmeister wrote:
edrose wrote:I'm having problems with mine! I managed to get it all set up to the point where it runs, but as soon as you try to use Siri it crashes. It also gives me a warning when it starts. The errors are:
i had the sample problem as you. found the solution here:

https://github.com/plamoni/SiriProxy/issues/389
Brilliant! Worked perfectly. Thank you!!!

User avatar
HerboTech
Posts: 4
Joined: Tue Sep 11, 2012 10:49 am

Re: Siri Proxy

Thu Jan 03, 2013 9:23 am

to run on boot, simply add the following to your /etc/rc.local

#Start Siri Proxy
echo "Starting Siri Proxy..."
su - pi -c "rvmsudo siriproxy server" &





job done ;)

edrose
Posts: 13
Joined: Fri Dec 28, 2012 3:35 pm

Re: Siri Proxy

Thu Jan 03, 2013 12:22 pm

HerboTech wrote:to run on boot, simply add the following to your /etc/rc.local

#Start Siri Proxy
echo "Starting Siri Proxy..."
su - pi -c "rvmsudo siriproxy server" &





job done ;)
Tried it, this is all I got:
"siriproxy: No such file or directory"

User avatar
HerboTech
Posts: 4
Joined: Tue Sep 11, 2012 10:49 am

Re: Siri Proxy

Thu Jan 03, 2013 1:16 pm

Tried it, this is all I got:
"siriproxy: No such file or directory"
How do you normally run the proxy? you should have the RVM environment setup in your .bash_profile

check by running
pi@raspberrypi:~$ which siriproxy
/home/pi/.rvm/gems/ruby-1.9.3-p194/bin/siriproxy

if not setup your RVM Environment in ~/.bash_profile.

pi@raspberrypi:~$ more .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM
into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM funct
ion

Log out and back in and then check your path :-

pi@raspberrypi:~$ env | grep PATH

PATH=/home/pi/.rvm/gems/ruby-1.9.3-p194/bin:/home/pi/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/pi/.rvm/rubies/ruby-1.9.3-p194/bin:/home/pi/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GEM_PATH=/home/pi/.rvm/gems/ruby-1.9.3-p194:/home/pi/.rvm/gems/ruby-1.9.3-p194@global


Hope this helps..

edrose
Posts: 13
Joined: Fri Dec 28, 2012 3:35 pm

Re: Siri Proxy

Thu Jan 03, 2013 1:31 pm

HerboTech wrote:
Tried it, this is all I got:
"siriproxy: No such file or directory"
How do you normally run the proxy? you should have the RVM environment setup in your .bash_profile

check by running
pi@raspberrypi:~$ which siriproxy
/home/pi/.rvm/gems/ruby-1.9.3-p194/bin/siriproxy

if not setup your RVM Environment in ~/.bash_profile.

pi@raspberrypi:~$ more .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM
into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM funct
ion

Log out and back in and then check your path :-

pi@raspberrypi:~$ env | grep PATH

PATH=/home/pi/.rvm/gems/ruby-1.9.3-p194/bin:/home/pi/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/pi/.rvm/rubies/ruby-1.9.3-p194/bin:/home/pi/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GEM_PATH=/home/pi/.rvm/gems/ruby-1.9.3-p194:/home/pi/.rvm/gems/ruby-1.9.3-p194@global


Hope this helps..
I normally run it by doing

Code: Select all

cd /root/SiriProxy
rvmsudo siriproxy server
but any attempt to run it when not is the SiriProxy directory throws one error or another. I also noticed that i have no .rvm folder, and that there is only one line in my .bash_profile.
Any ideas?

elvisimprsntr
Posts: 131
Joined: Sat Dec 29, 2012 11:36 pm
Contact: Website

Re: Siri Proxy

Sun Jan 13, 2013 9:01 pm

To make it easier for people to get started i posted a SD card image on SF

http://sourceforge.net/projects/siriproxyrpi/

Elvis
http://www.youtube.com/user/TheElvisImprsntr

edrose
Posts: 13
Joined: Fri Dec 28, 2012 3:35 pm

Re: Siri Proxy

Wed Jan 16, 2013 9:45 am

Your .img file works great! However, how can i get it to start automatically. I've edited the siriproxy-example plugin, but when it's started by an init.d script or the rc.local script it doesn't load any changes to my plugins. It needs to be run from the SiriProxy directory. Anyone know how this can be done?

Return to “Troubleshooting”