Recent

Author Topic: Desktop Lazarus/fpc application in browser over the WEB - Knowledge share  (Read 596 times)

zgabrovski

  • New Member
  • *
  • Posts: 33
I briefly share my experience with deploying a Lazarus/fpc desktop application to work as a web-based browser application.

To achieve this I used vps hosting with a virtual server with 4 processor cores and 6 GB of RAM. The server was installed by the hosting company with Ubuntu 20.04. server. It will cost around EUR 30 per month for the customer.

I installed the desktop GUI as described here:
https://phoenixnap.com/kb/how-to-install-a-gui-on-ubuntu
by selecting the xubuntu minimal (xfce) option.
I installed xrdp to access the already installed GUI as described here
https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-20-04/
I installed Guacamole which is a RDP to HTML 5 gateway as described here.
https://www.linuxbabe.com/ubuntu/apache-guacamole-remote-desktop-ubuntu-20-04

I installed the Firebird and other libraries I needed for my application.

I recompiled for Linux GTK 2 and installed the application.

I created an icon in the /usr/share/applications folder using a .desktop file.

I created the necessary users using the adduser command.

and finally for the administrator: I downloaded scripts that can monitor users and sessions from here

https://github.com/evanlinde/xrdp-who
 
The result is a working desktop application in a browser from anywhere in the world and on any device.

 

TinyPortal © 2005-2018