somehow the fpc+lazarus installed within Libertine doesn't work, there are multiple errors. It does run, yet it cannot compile programs.
Interestingly, if I use ssh and chroot into libertine container, I can run fpc from command line. But when I use XApps scopes to launch gnome-terminal, and then run fpc, I get some memory violation error. Could it be that when running apps via XApps scope it goes through something like apparmor? Perhaps, I don't know, just an idea.
So in libertine I have Lazarus that can be started, yet not usable. So what next? Well, that is why, so far, I need another container extra to Libertine. I use debootstrap for my own secondary container, and inside it I use Ubuntu 14.04. In that container I use Lazarus+fpc, and I use it over SSH with X forwarding, so it runs off the phone, but I use it on the screen of my desktop Ubuntu. VERY nice way to work btw. So I make apps in that container, and once ready, I move it into libertine, for the sake of having the app accessible on the phone screen. Otherwise I could only ever use it via SSH with X forwarding. In order to have an icon on the XApps scope, I naturally, have to also create a corresponding .desktop launcher file and place it in any of the standard locations: /usr/share/applications or ~/.local/share/applications, all will do just fine. Also, ensure that : chmod +x myapp.desktop.
Sometimes I need inside the XApps scope to use search and type the name of my app, so it can refresh itself and start showing my newly added app alongside the previously showed ones. That's all.
Finally, this last screen, is Geany text editor, X version, running on the phone, to demonstrate, that a single-window mode lazarus could be perfectly usable on the phone with BT mouse+keyboard. I connected those to my phone via USB dongle, and immediately I have a graphical mouse cursor and can type from my keyboard. It is a high DPI screen in the phone so everything looks small, but if you have good eyes, you get plenty of room and can actually work on it. And with the MX5 Pro, you can always witlessly connect to a big screen TV or monitor, and work like that, imagine, full-blown Lazarus development running purely off the Ubuntu phone, tirelessly streamed to your big screen TV, and controlled with a BT mouse and keyboard, with all the whistles and blows.
Currently though, the Lazarus/fpc are yet to reach compatibility with Libertine container (unless other native xmir layer is ready for Ubuntu phone), and you can still enjoy great workflow wit both your Ubuntu phone and an Ubuntu desktop/laptop for SSH and x forwarding.
Really, GREAT stuff.
I am committed to really finally document all this over the upcoming weekend. Will share the link here.