Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
How To Change the Tab Order of GUI Controls
How To Contribute
How to Create and Open a ".gmail.txt" Archive
How to deal with Git and Gitlab concerning your Project
How to deal with Git and Gitlab for Gambas
How To Deal With Subversion for Gambas
How To Display a Chinese Character
How To Draw with gb.Cairo
How To Enter Data With gb.db.form
How To Get Gambas Web Started (1)
How To Get Started
How To Interface Gambas With External Libraries
How To make a chart with the gb.chart component
How to make a report with Gambas
How To Make KDE Run Gambas Executables Automatically
How To Open, Debug & Compile The IDE
How To Open a MySQL connection and use it
How To Open a SQLite connection and use it
How To Open a Unix ODBC connection and use it
How To Package Gambas
How To Package your Project
How To Print
How to Run Gambas and Gambas Apps on Windows using WSL
How To Run Gambas On Windows using Cygwin
How To Translate A Gambas Project
How To Translate Gambas
How To Translate The Gambas IDE (deprecated)
How To Use Parallel Port
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

How To Run Gambas On Windows using Cygwin

Gambas does not run on the Windows Operating System natively, but via Cygwin. This is the preferred way to run it.

This old solution is based on the free implementation of the NoMachine NX protocol, named freenx server.

The Windows computer will use the NoMachine NX client to connect to the Linux server and run the application.

1. Take a Linux server

We will suppose that Mandriva 2006 is installed on it.

2. Install the freenx server

$ urpmi freenx

This will install the openssh server too.

Note: Of course you must be root.

3. Create the user that will run the application.

$ useradd -p "p4$$w0rD" gamby

We call it 'gamby'.

4. Tell FreeNX which users can connect to the server

$ nxserver --adduser gamby

5. Install Gambas

Of course :-) And install your Gambas application too. We suppose that the name of your application is KillerApp.

6. Install the NX client on the Windows computer

Follow these instructions.

7. Copy the FreeNX server key into the Windows NX client

The FreeNX server key is located at /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key

$ cat /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key
-----BEGIN DSA PRIVATE KEY-----
MIIDPQIBAAKCAQEAoBI/XksyT8Zr64rKZFsIooE9WWj9YU5/ED94RlbeCRrzpn0Q
B6Ep9wI9T6RuLepUisdpXUkGbYrlhH61pzZ5zjCHXhrHNb8nPQzLMFF2ogtaawT4
zovCyRqFC94/PcmgugDkIFQftHopIbLdl/DFmQwS2RA1jH4mC04RtRk2PT5ss5hg
OR13pJpPyJu64py5kmGglAszHPCN8nFF/MG1EhBLwbn2IidSyNXbUoLFb0ymIYNr
...
-----END DSA PRIVATE KEY-----

Copy this key in the Windows client:
  • Launch the NX client.

  • Create a new session named 'KillerApp'.

  • Click on the Configure... button.

  • Click on the Key... button in the first tab.

  • Copy the key in the text box, and click on the Save button.

8. Try to connect to the Linux server

9. Configure the NX client to launch your application