New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Releases, updates and announcements from the Ultibo team.
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sun Oct 15, 2017 6:23 am

All Aarch64 Pi's are experimental, better now than last year.
This one seems to mostly work, tested Lite and Desktop, got a few issues with networking.
https://github.com/bamarni/pi64
Better than the Suse version, Fedora 27 may do Pi3 64bit. Or Arch
https://archlinuxarm.org/platforms/armv ... berry-pi-3

Maybe this year Pi3 Aarch64 can be used as development desktop?
Or I can help get Ultibo Aarch64 going and make my own OS that self hosts :o
I don't think I will run out of things to learn on Pi's ;)

Find myself a ARMV8 SBC with 4GB and run Linaro etc
Wonder if that Ultiboinstaller script would work in Aarch64?
Whoops better try Raspbian 32 first
mark
Posts: 1325
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby mark » Thu Oct 19, 2017 1:00 am

Ultibo wrote:In response to the ongoing interest in using various Linux distributions as a platform for Ultibo development we've taken a further step beyond the existing wiki instructions
...
If you are willing to test we would appreciate your feedback.

On raspbian stretch, using lazbuild, I'm unable to figure out how to suppress these messages. I do want to see warnings/notes/hints referring to source code. Thanks, Mark.

Code: Select all

Info: (lazarus) Param[14]="-FU/home/pi/examples/01-HelloWorld/RPi2/lib/arm-ultibo/"
Info: (lazarus) Param[15]="HelloWorld.lpr"
Hint: (11030) Start of reading config file /home/pi/ultibo/core/fpc/etc/fpc.cfg
Hint: (11031) End of reading config file /home/pi/ultibo/core/fpc/etc/fpc.cfg
User avatar
Ultibo
Site Admin
Posts: 2280
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Ultibo » Thu Oct 19, 2017 9:02 am

mark wrote:On raspbian stretch, using lazbuild, I'm unable to figure out how to suppress these messages. I do want to see warnings/notes/hints referring to source code

The ones that refer to (lazarus) can be removed by passing -q or --quiet to lazbuild.

The others seem to come from FPC itself, adding -vh- (to suppress hints) to the Custom Options in Lazarus (under Project Options) removes them as well. That probably also removes hints in general but there may be a combination that gives exactly the output you want.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sun Oct 22, 2017 12:46 pm

Finally got around to trying the install on Raspbian.
Apart from the bigger swapfile it works the same as Linux,ie no message window first time.
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby develone » Sun Oct 22, 2017 7:51 pm

On Raspbian from Raspberry on very top of the screen do you select Programming/Lazarus IDE (Ultibo Edition). I also use
The following 2 cmds
cd ultibo/core
./startlazarus

Do you have all of the dependencies?
On a new build of RaspBian 2017-09-07-raspbian-stretch.zip

sudo apt-get install libgtk2.0-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev
sudo apt-get install binutils-arm-none-eabi
sudo apt-get install gcc-arm-none-eabi
dpkg -l | wc
1403 14260 197899
Edit the CONF_SWAPSIZE value to be 1000 or greater
./ultiboinstaller.sh
On My Ubutu 16.04
The following 2 cmds
cd ultibo/core
./startlazarus
Hope this helps.
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Mon Oct 23, 2017 12:22 pm

Before Ultibo there was PiCore.
I have been using it for headless Linux IoT boxes for years.
Apart from that pesky DoS stuff that Linux/busybox does so well now, I may have still been using it :lol:

Now that there is an Ultibo install script that works on Raspbian, time to re-look at PiCore as my X11 development box.
Tried the installer but too many dependencies won't work because TinyCore is not Debian, it's better ;)

http://forum.tinycorelinux.net/index.ph ... #msg131485
I did get this to work on PiCore
https://www.freepascal.org/down/arm/linux-hungary.var
So the required starter FPC works.

To test if there is enough X11 in TC I am copying the Raspbian Ultibo folder to a USB stick.
Previously I had determined that Windows Ultibo will run from a USB stick via Wine.
viewtopic.php?f=4&t=559&p=3394&hilit=USB+stick#p3394.
Will the Linux and Raspbian compiled versions run from stick as well?

Not a tiny solution towards self hosting, putting PiCore with Desktop and full Ultibo on a Pi IoT box :o
I guess getting rid of Lazarus and all the other CPU and unused libs will shrink it down a bit.
Headless Pi's won't need any PiCore X11 and Ultibo could be compiled command line.

Well interesting, the portability of FPC is not bad.
1) Ultibo will run off the USB stick when plugged into Raspbian

2) Lazarus boots when Ultibo is run from the USB stick in PiCore :o

Ok, the paths are all messed up, but if that gets fixed then Ultibo looks like it is going to run on PiCore.
It does run, well it finds the examples just without the paths so no compile :(
Considering how different PiCore is from Debian it's a blooming miracle :D

A whole bunch of errors pops up in the terminal screen from Laz, but that just makes it easier to sort this out.
A long way to go for me to make a real Picore Ultibo.tcz install, but possible for someone with a little more skill.
If it works in PiCore it should work in just about any other distribution.
markokrajnc
Posts: 41
Joined: Sat Feb 06, 2016 11:50 pm
Location: Slovenia
Contact:

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby markokrajnc » Tue Oct 24, 2017 7:37 am

We are approaching "FPC on Ultibo" and "Lazarus on Ultibo"... :-)
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Tue Oct 24, 2017 8:28 am

There is another "nix" that runs on Pi's- BSD
FPC 3.0.2 is present on FreeBSD.
http://wiki.lazarus.freepascal.org/FreeBSD

And there is an Aarch64 FreeBSD for the Pi3 :o
Testing time tonight 8-)

Are we a few script edits away from it running everywhere?
Ultibo on a USB stick running from it, on any OS, portable app
https://portableapps.com/
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sat Oct 28, 2017 1:49 am

Needed to learn another OS, just to hammer home the point of having no OS :lol:
After learning a few OSes one more is not so scary.

Installed FreeBSD for Pi. There are versions out there with x11 in the image.
You can save lots of hours by getting that one.
Also go for version 11, version 12 still has some packages missing.

Most of the instructions are here, not quite perfect but it got me a very slow LXDE Desktop ;)
https://antumdeluge.wordpress.com/2014/ ... l-freebsd/

Install x11 from xorg - Freebsd uses "pkg install xorg"
Install xdm...
Install LXDE, I picked LXDE just because Raspbian and PiCore both use it.
I also installed Sudo and MC, Midnight Commander, very useful filemanager and editor, need an Ultibo version ;)
Adduser...

Linux - Desktop, BSD - server - I can see why that is now :lol:
Plenty on Linux distributions with Desktops, FreeBSD - roll your own
Still think it is amazing that you leaving these things downloading, compiling, installing overnight and it works in the morning.
Don't think BSD/Linux are going to be any good for IoT, it just takes too long ;)

Now here at install FPC stage
http://wiki.freepascal.org/FreeBSD
It has taken a week to get here, how much longer?
Self hosting is looking like a really good idea :ugeek:
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sat Oct 28, 2017 2:53 am

No ready made package for FPC on BSD for Pi's.
BSD use ports to get the apps and install them.
None of this is quick :(

https://www.cyberciti.biz/faq/install-ports-in-freebsd/
portsnap fetch
portsnap extract

Starting to think I should have used a 16GB card instead of an 8GB :o

Return to “Ultibo”

Who is online

Users browsing this forum: No registered users and 1 guest