Re: [Android-tesla-devel] SSH and DBUS variables
Status: Beta
Brought to you by:
seanhodges
From: Sean H. <sea...@go...> - 2011-01-20 11:23:08
|
Hello Ettore, How is your progress with Tesla? I checked in your change to the DBUS connection script; it will be included in the next release, so you hopefully won't need your work-around. Thanks again for your contribution. I'm also working on various fixes that should improve support for Ubuntu 10.10/11.04. There were a number of changes to some of the supported players that are causing communication problems. These will also be in the next release. If you are interested, I could send you a beta build to help me test these changes? Nothing strenuous, just installing the APK on your phone and letting me know if any issues crop up/persist when trying to use it. If you receive errors for only certain media players, it would be very useful if you could describe what you see, to help when debugging. Tesla does have a bug tracker here: http://sourceforge.net/apps/trac/android-tesla/report/1, but emailing android-tesla-devel list (as you have been already) is just as welcome, whichever you prefer... Thanks, Sean 2011/1/17 Ettore Chimenti <ek5...@gm...>: > Hi again, > last night I tried to access my archbox with Tesla... and I developed a > workaround. > > I decided to put the missing variables in .ssh/environment manually, and > edit /etc/ssh/sshd-config. And it finally WORKS! > > Ok, Tesla have now the control of my dbus server, but it crashes with almost > all the players (with force close or a big error) on my Galaxy S i9000. > > Another thing, I installed tracker to query the library... but tesla > generates no output when querying! Configuration problem? > > The only player I used to control pretty good was banshee... But it's a bit > slow and I get some fc sometimes... > > Today I will try another player, like MPD, or songbird. > > Keep up! > ----- > Ek5 > Il giorno 17/gen/2011 09.50, "Sean Hodges" <sea...@go...> ha > scritto: > >> >> Ettore, >> >> Of course, I completely missed your attachment when I replied just then :) >> >> The change looks good, I'll give it a test tonight. If you manage to >> build it yourself then let me know how you get on. If all goes well >> I'll merge it in for the next release. >> >> Thanks, >> >> Sean >> >> >> >> On Mon, Jan 17, 2011 at 8:46 AM, Sean Hodges >> <sea...@go...> wrote: >> > Hi Ettore, >> > >> > Great to hear you're looking at improving the project! Those session >> > cookies are set by a shell script in the assets/ directory, see: >> > >> > >> > http://android-tesla.git.sourceforge.net/git/gitweb.cgi?p=android-tesla/android-tesla;a=blob;f=assets/scripts/attach_dbus_session.sh >> > >> > You can usually run these scripts directly on your machine in a >> > terminal to make testing easier; but since we're dealing with an SSH >> > connection I find it is always worth not assuming anything until the >> > script has been tested on an Android phone. >> > >> > Running Tesla on the Android emulator should work without any problems >> > (let me know otherwise). If you want to run the APK on your physical >> > device, you will probably need to uninstall the one you installed from >> > the Android Market first, since that one is signed with my key. After >> > this, you should be able to upload it using Eclipse as an "unsigned >> > application package"... Again let me know if you hit problems! >> > >> > Good luck with your changes, if you manage to get something going let >> > me know and I'll install Arch in a VM to test it and get the code >> > merged in. >> > >> > >> > Sean >> > >> > >> > >> > 2011/1/16 Ettore Chimenti <ek5...@gm...>: >> >> Hi there, >> >> >> >> I have downloaded Tesla few days ago, and I liked the project a lot! >> >> >> >> Unfortunatly, I have never been able to make it work on my Arch >> >> Linux... >> >> The problem is (I wrote on Ubuntu forum twice) that SSH shell doesn't >> >> keep the same environment of a normal shell and XDG_SESSION_COOKIE and >> >> DBUS_SESSION_ADDRESS are missing! >> >> >> >> I tried to execute attach_dbus_session.sh, but it didn't recognise the >> >> $XDG_SESSION_COOKIE variable in ssh shell on localhost... >> >> But if I try to execute it in a normal shell it gives me a beautiful >> >> "Success!" output. >> >> >> >> Inside ~/.dbus/session-bus there is a file called like the >> >> XDG_SESSION_COOKIE variable (sounds >> >> like .dbus/session-bus/ee0b0ca6360ee7ef016c7078000007c6-0) and inside >> >> it >> >> there are the missing variables DBUS_SESSION_BUS_ADDRESS, >> >> DBUS_SESSION_BUS_PID and DBUS_SESSION_BUS_WINDOWID. >> >> >> >> Now, it's a matter of editing the attach_dbus_session.sh in order to >> >> read it and re-set the missing variables!! >> >> >> >> Thank you for the beautiful project! >> >> >> >> >> >> P.S.: I'm pretty noob at android, so I tried to update the apk, but it >> >> looks like it must be resigned with some key of yours. >> >> >> >> ----- >> >> EK5 >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Protect Your Site and Customers from Malware Attacks >> >> Learn about various malware tactics and how to avoid them. Understand >> >> malware threats, the impact they can have on your business, and how you >> >> can protect your company and customers by using code signing. >> >> http://p.sf.net/sfu/oracle-sfdevnl >> >> _______________________________________________ >> >> Android-tesla-devel mailing list >> >> And...@li... >> >> https://lists.sourceforge.net/lists/listinfo/android-tesla-devel >> >> >> >> >> > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Android-tesla-devel mailing list > And...@li... > https://lists.sourceforge.net/lists/listinfo/android-tesla-devel > > |