<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>
Gambas Documentation - How To Run Gambas On Windows
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../help+en"><img class="flag" alt="Home" border="0" src="../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../howto+en">Up</a>&nbsp;
<a href="useglobalarrays+en">Previous</a>&nbsp;
<a href="../index+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
How To Run Gambas On Windows
</h1>
<a href="../def/gambas+en">Gambas</a> does not run on the Windows Operating System.
<p>
But if what you need is running an application made in <a href="../def/gambas+en">Gambas</a> from a Windows
computer, here is a solution!
<p>
This solution is based on the free implementation of the <a href="http+//nomachine.com">NoMachine</a> NX protocol, named
<tt>freenx</tt> server.
<p>
The <a href="http+//www.microsoft.com">Windows</a> computer will use the NoMachine NX client to connect to the <a href="../def/linux+en">Linux</a> server and run the application.
<p>
<h2>1. Take a <a href="../def/linux+en">Linux</a> server</h2>
<p>
We will suppose that Mandriva 2006 is installed on it.
<p>
<h2>2. Install the freenx server</h2>
<p>
<pre class="code">$ urpmi freenx
</pre><p><p>
This will install the <tt>openssh</tt> server too.
<p>
<b>Note:</b> Of course you must be root.
<p>
<h2>3. Create the user that will run the application.</h2>
<p>
<pre class="code">$ useradd -p "p4$$w0rD" gamby
</pre><p><p>
We call it 'gamby'.
<p>
<h2>4. Tell FreeNX which users can connect to the server</h2>
<p>
<pre class="code">$ nxserver --adduser gamby
</pre><p><p>
<h2>5. Install <a href="../def/gambas+en">Gambas</a></h2>
<p>
Of course :-) And install your <a href="../def/gambas+en">Gambas</a> application too. We suppose that the name of your
application is <i>KillerApp</i>.
<p>
<h2>6. Install the NX client on the Windows computer</h2>
<p>
Follow these <a href="http+//www.nomachine.com/documents/client/install.html#6">instructions</a>.
<p>
<h2>7. Copy the FreeNX server key into the Windows NX client</h2>
<p>
The FreeNX server key is located at <tt>/var/lib/nxserver/nxhome/.ssh/client.id_dsa.key</tt>
<p>
<pre class="code">$ 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-----
</pre><p><p>
Copy this key in the Windows client:
<ul>
<li>Launch the NX client.
<li>Create a new session named 'KillerApp'.
<li>Click on the <b>Configure...</b> button.
<li>Click on the <b>Key...</b> button in the first tab.
<li>Copy the key in the text box, and click on the <b>Save</b> button.
<p>
</ul>

<h2>8. Try to connect to the <a href="../def/linux+en">Linux</a> server</h2>
<p>
<h2>9. Configure the NX client to launch your application</h2>

</div>
</body>
</html>

