[Lazarus] Compiling lazarus in a headless server

Michael Schnell mschnell at lumino.de
Wed Nov 3 12:20:59 CET 2010


On 10/30/2010 11:37 PM, Leonardo M. Ramé wrote:
> Hi, I would like to know if anyone has compiled Lazarus in a headless
> machine.
I did a lot of research on that behalf (additional issue for me: it 
would not be an X86 machine).

Some results:

Latest results and most important result: It does not make much sense to 
search for a solution in user software, as nowadays any decent machine 
has enough resources to allow for a widget set (QT or GTK) and an X 
server, that can be accesses remotely via VNC or NX.

So here are the options i found (decreasing viability)

  A) remotely access a local X server: VNC or (supposedly better) NX
you locally need a widget set (QT or GTK) unless you use the FPGUI 
widget type) and an X server

  B) access a remote X server (remote Linux: Standard, remote Windows: 
there are some free X-Servers)
you locally need a widget set (QT or GTK) unless you use the FPGUI 
widget type). The user software can only run if a remote X server is 
accessible. It needs to be started vis telnet or SSH

  C) create a HTTP based remote GUI (see several threads here. Some 
keyword are "EXTJS", "EXTPASCAL", "FAST-CGI"
A problem here is that there is no Widget set without a GUI binding that 
allows for "normal" event driven Object.-Pascal programming with TTimers 
and inter.-Thread-Messages.  using MSE instead of Lazarus might help on 
that behalf.

  D) create a propriety remote GUI by using your own communication 
objects instead of the normal GUI Objects. A Lazarus program on the 
remote PC would provide the appropriate graphical implementation.
A problem here is that there is no Widget set without a GUI binding that 
allows for "normal" event driven Object.-Pascal programming with TTimers 
and inter.-Thread-Messages.  using MSE instead of Lazarus might help on 
that behalf. MSE (and myself) dis some first steps to create a "Widget 
Type" that contains those

  E) drop the graphics and do a TCL-TK alike "TUI" program that can be 
accessed via Telnet or SSH.
Again Lazarus does not have a Widget Type for this. Using the IDE 
provided by FPC might help.

  F) do a command line tool that can be accessed via Telnet or SSH
Here no event driven programming is possible.

-Michael




More information about the Lazarus mailing list