Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 38
Registered: ‎02-11-2014
My Device: Q10, Z10, Z30, Passport, Classic
My Carrier: None
Accepted Solution

Can we install Momentics IDE on a headless Linux system?

I have access to a headless (no display) Linux system.

 

I'd like to install either the older Momentics 2.0 or new 2.1 IDE on it, and use it's tools from the command line.

 

I'm mostly interested in getting the blackberry-deploy command line tool running on this machine, to push my builds out to my testers.

 

Is this possible?

 

I ran the "momentics-2.1-201404211616.linux.x86_64.run" file, which created a "bbndk" folder.

 

Inside the "bbndk" folder, I tried running "qde" but I keep getting the error:

Qde: Cannot open display: 

Qde: Cannot open display: 

Qde:

An error has occurred. See the log file

/home/myusername/bbndk/configuration/1401121318696.log.

 

This .log doesn't really tell me anything helpful.

 

I tried setting my X11 DISPLAY environment vaiable to point to my Mac which is running the latest XQuartz server and it still can't open the display.  (Is Momentics even an X11 application?  Just taking a wild stab here...  Can't open display sounds kind of X11-ish to me.)

 

Even when I try to run "sdkinstall --list", it still complains that qde can't open the display.

 

Is installing the BB10 SDK and using the Momentics tools via the command line even possible in a situation like this?

 

Thanks,

Ed

 

Developer
Posts: 222
Registered: ‎10-19-2012
My Device: Playbook, BB10DevAlphaB/C, Z10
My Carrier: Sonera, Saunalahti

Re: Can we install Momentics IDE on a headless Linux system?

The cli tools should work just fine. Have you opened your Mac to allow remote X apps to connect ? Perhaps using a ssh X tunneling might be an idea.


Kaj-Michael Lang, Home.
Author of: Onki and RetroPlayer
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Can we install Momentics IDE on a headless Linux system?

Installing on a headless system is not officially supported, so you may or may not be able to get it working. Once it's installed, as Oniongarlic says, the command line tools should work (although again, headless isn't explicitly supported. Can't imagine why the command line tools would fail though)

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Can we install Momentics IDE on a headless Linux system?

I have done that successfully by employing X11 forwarding.
On my windows machine i used PuTTY (Connection/SSH/X11/Enable X11 forwarding).

I installed the NDK on one of our Ubuntu servers without any physical monitors.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 38
Registered: ‎02-11-2014
My Device: Q10, Z10, Z30, Passport, Classic
My Carrier: None

Re: Can we install Momentics IDE on a headless Linux system?

Just a follow-up.

 

I eventually got it working on the headless Linux system.

We needed to install xauth, since it wasn't there by default.

After that, I was able to use ssh -X to tunnel the X11 traffic to my Mac, and was able to run the IDE on the Linux system with the display showing on my Mac, and install the SDK.  Then I was able to run the blackberry-deploy command line program on the Linux system.

 

Thanks for the help.  I wasn't even sure if I was going in the right direction originally!

Ed