X2Go Client for Windows need several programs to be able running on Windows
All this programs can be built from source, downloaded from our server or from their project sites. You can also copy that components from X2Go Client install directory.
MinGW is a gcc compiler for Windows. You need it to build X2Go Client. Qt-4.8 for Windows should be used with MinGw-4.4. Unfortunately, you can not download binaries for this version from MinGW project site any more. You can build it from source or download it from X2Go Site
Extract it to your disk (D:\mingw in this example)
You need Qt to build X2Go Client from source. Qt-4.8 is tested and recommended for current version of X2Go Client.
Download and install a minGW version of Qt-4.8 for Windows from here
In this example D:\Qt will be chosen as installation directory
It is recommended to configure Qt to build statically linked applications. It will take some time and you can skip that step, but in this case you must provide a Qt libraries with your X2Go Client binary.
As X2Go Client need a Qt with SSL support you must install OpenSSL for windows. You can download OpenSSL for Windows here or from our site. Install it to your system (for example to directory d:\OpenSSL-Win32)
After installation, copy OpenSSL header files into include directory from MinGW
d:\OpenSSL-Win32\include\openssl → d:\mingw\include\openssl
Open Qt Command Prompt and start configuration script
>configure -release -static -openssl
You need libssh to build X2Go Client.
Copy headers files in “include” directory of MinGW
libssh\include\libssh → d:\mingw\include\libssh
Copy library files in “lib” directory of MinGW
libssh\lib\*.* → d:\mingw\lib\
Open Qt Command Prompt, change to your build directory and get X2Go Client sources from git
>git clone git://code.x2go.org/x2goclient
Build X2Go Client
>cd x2goclient >config_win.bat >mingw32_make
X2Go Client (x2goclient.exe) binary is in d:\build\x2goclient\release directory
You may want to pack X2Go Client to reduce it size. You can do it with upx, which is available for Windows, Linux and Cygwin.
To make X2Go Client usable on Windows, you must put X2Go Client binary and all libraries and components in one directory.
This directory should consist:
MinGW libraries ( you can get them from D:\MinGW\bin )
OpenSSL library - libeay32.dll. You can get it in your OpenSSL installation directory
If you want to use X2Go Client on older versions of Windows, you can put the “Microsoft Visual C\+\+ Redistributable Package” dll files to your X2Go Client package directory.
Take a look in to the installation directory created by official X2Go Client installer to find how package directory should look like.
you can download nxproxy, and it libraries here
If you want build nxproxy from source, you need install and configure Cygwin first.
Download and startCygwin installer
Choose your cygwin directory. For example c:\cygwin. Follow installer instructions.
on installer page “Select Packages” you can select programs and libraries that should be installed in your cygwin environment. For building of nxproxy you will need:
You will need a libpng12 to build nxproxy. This version of libpng is not available on current version of cygwin. You should install it manually.
Open a cygwin shell. Go to the src directory
get a libpng12 from project site
$wget http://downloads.sourceforge.net/project/libpng/libpng12/1.2.50/libpng-1.2.50.tar.gz $tar -xzvf libpng-1.2.50.tar.gz $cd libpng-1.2.50
build and install libpng
$./configure --prefix=/usr/ $make && make install
open a cygwin shell and change to your build directory. In this example d:\Build will be used
get a nx-libs sources
$git clone git://code.x2go.org/nx-libs.git $cd nx-libs
$cd nxcomp $autoconf $./configure $make $cd ..
$cd nxproxy $autoconf $./configure $make $strip nxproxy.exe $cd ..
nxproxy binary (nxproxy.exe) is ready. Now you can copy it in to the installation directory of x2goclient. To be able to run nxproxy you should also copy needed libraries in this directory:
from nxcomp directory (d:\Build\nx-libs\nxcomp) - cygXcomp.dll
from cygwin directory (c:\cygwin\bin):
X2Go Client for Windows using modified Cygwin Open SSH Server for file sharing. You can download it here
If you want to build it from source, you should install Cygwin first.
After that run Cygwin installer (setup.exe), navigate to “Select Packages” page and install additional packages, you need to build Open SSH Server:
For openssh you should install both, binary and source packages (toggle “Src” checkbox beside of package name). Source package will be installed in /usr/src directory in your Cygwin installation.
Copy openssh tarball to your build directory. In this example d:\Build will be used
$cp /usr/src/openssh-6.1p1.tar.gz /cygdrive/d/Build/
Extract sources and change to openssh source directory
$cd /cygdrive/d/Build/ $tar -xzvf openssh-6.1p1.tar.gz $cd openssh-6.1p1
Get and apply patch, which allow use Open SSH Server with X2Go Client
$wget http://code.x2go.org/releases/source/openssh-cygwin/openssh-6.0p1-2.x2go.patch $patch.exe < openssh-6.0p1-2.x2go.patch
Build Open SSH Server
$./configure --libexecdir=/usr/sbin --with-kerberos5=/usr --with-tcp-wrappers --with-libedit --with-xauth=/usr/bin/xauth --build=mingw32 $make $strip *.exe
Open SSH Server binaries are ready. Now you can copy them in to the installation directory of x2goclient:
To be able to run Open SSH Server you should also copy needed programs and libraries from cygwin directory (c:\cygwin\bin):
Some of this libraries are also used by nxproxy. Open SSH Server and nxproxy should be built using same version of Cygwin.