12-02-2011 03:47 PM
I've downloaded the Playbook simulator. and have it up and runing on ubuntu. I want to ssh into it but am perpleaex as to what the user name and password is. Also when I go to dev mode it wants to use an ip address of (Develment address) 169.254.x.x The virtualbox is using an ip of 192.168.
One other question, is there a xterm on console for the simulator ?
12-04-2011 04:21 PM
12-05-2011 09:11 AM
On the simulator, you can ignore the widget on the settings page that allows you to enter a 169.254.x.x IP. This is only used on the device for USB.
The address you use to connect to your simulator is the one that appears in the bubble when clicking on the development mode icon (developer with a gear) in the tray.
On a somewhat related note, you can connect via ssh to your simulator (or device) directly using the IDE. Once you've created a target in the Target Navigator view for your simulator (or device), a connected target implies that the blackberry-connect connection has already been established for you. From there you can right click on a target and select "Launch SSH Session".
Q-T wrote:
Also when I go to dev mode it wants to use an ip address of (Develment address) 169.254.x.x The virtualbox is using an ip of 192.168.
12-06-2011 05:07 PM
Thanks but what is blackberry-connect ? where is it. I do not have an actual playbook, I am a newbie looking at developing for Playbook. Is there a way to get an xterm on the simulator to start the ssh daemon ? First impressions of Blackberry NDK is that it seems overly complex. Will try to stay with it and see if I can over come all these lil paper cuts.
12-06-2011 05:11 PM
12-06-2011 06:16 PM
When I run blackberry connect I just get the key to be sent and then it exits. Here is the output
david@king:~/bbndk-2.0.0-beta1$ blackberry-connect 192.168.10.43
Info: Connecting to target 192.168.10.43:4455
Info: Authenticating with target 192.168.10.43:4455
Info: Encryption parameters verified
Info: Sending ssh key to target 192.168.10.43:4455
Info: ssh key successfully transferred.
Error: Connection refused: Unexpected command
Sorry for all the trouble here. Any advise is much appreciated
12-06-2011 06:28 PM
12-07-2011 10:00 AM
If you use the IDE and have already connected to a target, it will have already generated a compliant ssh key for you. The location can be identified by going to Window->Preferences->BlackBerry Tablet OS->Targets->Target Connection SSH Key.
You can pass this path (with .pub suffixed) to the -sshPublicKey option of blackberry-connect.
As Peter mentioned, if you aren't using the IDE you need to generate a 4096-bit RSA SSH key that has no comments other than an email address.
12-07-2011 04:47 PM
Never could get it to work. I wiped out everythinng in .rim and started over. Seeing how its BB tools that write and read the key files you'd think it could get the parsing right. Wanted to port a nice QT app I have running but guess will have to wait for the finial release.
My advise to RIM sdk maintainers: For the simulator have the sshd enabled by default. Use static IP addresses, and make this all brain dead easy so it works first time every time.
Also I like command line tools, and don't want to mess with Eclippse, the bbndk-env.sh is all I want, please make command line tool compilation a first class citizen if it isn't already. In my book Eclippse is just awful.
To those that tried to help thanks again for your time.
12-21-2011 05:54 PM
I captured and expanded slightly what Peter, Elena and others described here and in related threads into
http://openbbnews.wordpress.com/2011/12/21/devuser