SiriProxy icon indicating copy to clipboard operation
SiriProxy copied to clipboard

How to autostart siriproxy on OSX Lion?

Open ntetreau opened this issue 14 years ago • 5 comments

Hi, I've successfully setup siriproxy on OSX Lion. I'd like the server to start automatically at boot. I've install rvm in ~/.rvm and I'm currently starting the server in my Siriproxy/bin folder using "rvmsudo ./siriproxy server" .

Any idea what could be done to autostart the server? Thanks.

ntetreau avatar Jan 19 '12 13:01 ntetreau

Open apple script and use this script:

tell application "Terminal" activate do script "rvmsudo siriproxy server" do script "password" in window 0 end tell

where password is your password (don't leave in the * *)

Save this as an application, then in Sys Pref -> Accounts -> Login items navigate to that application to make it start on boot.

WARNING: Your password will be shown in plain text in the terminal window on boot.

Deanmv avatar Oct 30 '12 15:10 Deanmv

You should see about port redirection of some sort. That way you can run SiriProxy as an unprivileged (read: non-root) user. This will save you from having to save your password in plaintext like this.

plamoni avatar Oct 30 '12 16:10 plamoni

So you could just do:

tell application "Terminal" activate do script "cd ~/siriproxy/bin" (assuming you have saved it there) do script "./siriproxy server --port 4000" in window 0 end tell

where port is anything you want it to be as 4000 could be used on your system.

Deanmv avatar Oct 30 '12 18:10 Deanmv

oh nice ,, can do the same thing on Ubuntu ?

Alsaegh avatar Oct 30 '12 19:10 Alsaegh

Most likely, not used it on Ubuntu myself but could probably be done.

Deanmv avatar Oct 31 '12 08:10 Deanmv