This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:development:build-howto-mswin:x2goclient [2014/01/16 13:28] mikedep333 Add PuTTY |
wiki:development:build-howto-mswin:x2goclient [2023/05/08 22:20] (current) orion [Copying the nxproxy binaries] Use nxproxy\src\.libs\nxproxy.exe |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Build X2GoClient and 3rd-party programs for MS Windows ====== | ====== Build X2GoClient and 3rd-party programs for MS Windows ====== | ||
- | This howto explains how to build the MS Windows version of X2Go Client. This howto explains how to build the 32-bit version of X2Go Client on MS Windows. If someone successfully attempts a 64-bit (which should work, but needs to be tested), please contribute to this wiki page. | + | This howto explains how to build the MS Windows version of X2Go Client. |
+ | |||
+ | This howto explains how to build the 32-bit version of X2Go Client on MS Windows. If someone successfully attempts a 64-bit (which should work, but needs to be tested), please contribute to this wiki page. | ||
+ | |||
+ | This howto is intended for 2 different audiences: | ||
+ | - Those doing official X2Go Project builds. | ||
+ | - Those doing informal builds, personal builds, or builds for use within their organization. | ||
+ | The former audience has extra steps to do. These steps will be noted. | ||
===== Overview of third-party components ===== | ===== Overview of third-party components ===== | ||
- | X2Go Cltient | + | X2Go Client |
- | * [[wiki: | + | * [[wiki: |
- | * [[wiki: | + | * [[wiki: |
* [[wiki: | * [[wiki: | ||
- | * [[wiki: | + | * [[wiki: |
+ | |||
+ | * [[wiki: | ||
* [[wiki: | * [[wiki: | ||
- | All these programmes | + | All these programs, as well as many of the libraries, |
+ | |||
+ | They can also be built from source, | ||
+ | |||
+ | You can also copy the 3rd-party components from X2Go Client installation (on MS Windows) directory. | ||
===== Build Utilities ===== | ===== Build Utilities ===== | ||
- | For building X2Go Client, we highly recommend to install [[http:// | + | For building X2Go Client, we highly recommend to install [[http:// |
MSysGit provides a Unix-like shell (bash) environment, | MSysGit provides a Unix-like shell (bash) environment, | ||
+ | |||
+ | For official X2Go project updates to x2goclient-contrib, | ||
Notepad2 is a freeware alternative to Notepad shipped with Microsoft Windows. Notepad2 understands UTF-8 text formats (and others) and can handle Unix-style line endings. In case you want to introspect a code file, this tool is very handy. | Notepad2 is a freeware alternative to Notepad shipped with Microsoft Windows. Notepad2 understands UTF-8 text formats (and others) and can handle Unix-style line endings. In case you want to introspect a code file, this tool is very handy. | ||
- | ===== Build X2Go Client ===== | ||
+ | ===== Setup Build Environment ===== | ||
==== Installing MinGW ==== | ==== Installing MinGW ==== | ||
- | MinGW is a gcc compiler for Windows. You need it to build X2Go Client. | + | MinGW includes the GCC compiler |
- | Extract | + | Since X2Go Client 4.0.3.0, X2Go Client uses Qt 4.8.6 specifically. Qt 4.8.6 uses MinGW 4.8.x. Qt 4.8.6 for Windows recommends this specific build of MinGW, so it is this specific build that you should use. |
- | Finally, you have to add these MinGW executable directories to your PATH environment variable: '' | + | http:// |
+ | |||
+ | Extract it to your disk ('' | ||
+ | |||
+ | Finally, you have to add these MinGW executable directories to your PATH environment variable: '' | ||
==== Installing Qt ==== | ==== Installing Qt ==== | ||
- | You need Qt to build X2Go Client from source. Qt-4.8 is tested and recommended for current version of X2Go Client. | + | You need Qt to build X2Go Client from source. |
- | Download and install a **MinGW** version of Qt-4.8 for Windows from [[http:// | + | Qt-4.8.6 is tested and recommended |
- | In this example D:\Qt will be chosen as installation directory | + | Download and install the **MinGW** version of Qt-4.8.6 for Windows from [[http:// |
+ | |||
+ | In this example D:\Qt\4.8.6 | ||
==== Configuring Qt ==== | ==== Configuring Qt ==== | ||
Line 51: | Line 72: | ||
=== Providing OpenSSL support in Qt === | === Providing OpenSSL support in Qt === | ||
- | As X2Go Client needs a Qt with SSL support you must install OpenSSL for MS Windows. OpenSSL depends on the [[http:// | + | As X2Go Client needs Qt built with SSL support you must install OpenSSL for MS Windows. OpenSSL depends on the [[https:// |
- | The OpenSSL installer for Windows [[http:// | + | Download the OpenSSL installer for Windows |
After installation, | After installation, | ||
+ | For MinGW 4.8: | ||
< | < | ||
- | d: | + | d: |
</ | </ | ||
=== Static builds of Qt with SSL support === | === Static builds of Qt with SSL support === | ||
- | It is recommended to configure Qt to build statically linked applications. It will take some time to reconfigure Qt for static builds. You surely can skip this step, but in this case you must provide Qt libraries with your X2Go Client binary. | + | It is recommended to configure Qt to build statically linked applications. |
+ | |||
+ | This is how official X2Go Client builds are done. | ||
+ | |||
+ | It will take some time to reconfigure Qt for static builds. You surely can skip this step, but in this case you must provide Qt libraries with your X2Go Client binary. | ||
+ | |||
+ | Open Qt Command Prompt and start configuration script. | ||
- | Open Qt Command Prompt and start configuration script | + | For Qt 4.8.6, the command needs extra args due to QTBUG-38706: |
< | < | ||
- | $ configure -release -static -openssl | + | $ configure -release -static -openssl |
</ | </ | ||
- | Rebuild Qt | + | Rebuild Qt: |
< | < | ||
- | $ make sub-src | + | $ make -j3 sub-src |
</ | </ | ||
Line 79: | Line 107: | ||
If you choose to build dynamically linked applications with Qt, you still have to rebuild Qt in order to get OpenSSL support into Qt. | If you choose to build dynamically linked applications with Qt, you still have to rebuild Qt in order to get OpenSSL support into Qt. | ||
- | Open Qt Command Prompt and start configuration script | + | Open Qt Command Prompt and start configuration script. |
+ | |||
+ | For Qt 4.8.6, the command needs extra args due to QTBUG-38706: | ||
< | < | ||
- | $ configure -release -openssl | + | $ configure -release -openssl |
</ | </ | ||
- | Rebuild Qt | + | Rebuild Qt: |
< | < | ||
- | $ make sub-src | + | $ make -j3 sub-src |
</ | </ | ||
- | |||
==== Installing libssh ==== | ==== Installing libssh ==== | ||
You need libssh to build X2Go Client. | You need libssh to build X2Go Client. | ||
- | Get libssh **library** package built with MinGW from [[ftp:// | + | X2Go Client 4.1.2.2 and later use libssh |
- | Copy headers files in " | + | === Pre-built Binaries === |
- | libssh\include\libssh -> d:\mingw\include\libssh | + | Get the **library** package built with MinGW 4.8.x (currently 4.8.2) from [[http:// |
+ | |||
+ | |||
+ | Copy headers files in " | ||
+ | |||
+ | For MinGW 4.8: | ||
+ | < | ||
+ | x2goclient-contrib\libssh\0.6.3-762055b-pageant-support-mingw482_bin\include\libssh -> d:\i686-4.8.2-release-posix-dwarf-rt_v3-rev3\mingw32\i686-w64-mingw32\include\libssh | ||
+ | </ | ||
Copy library files in " | Copy library files in " | ||
- | libssh\lib\*.* -> d:\mingw\lib\ | + | For MinGW 4.8: |
+ | < | ||
+ | x2goclient-contrib\libssh\0.6.3-762055b-pageant-support-mingw482_bin\lib\*.* -> d:\i686-4.8.2-release-posix-dwarf-rt_v3-rev3\mingw32\i686-w64-mingw32\lib\ | ||
+ | </ | ||
+ | === Building From Source === | ||
+ | |||
+ | If you want to rebuild the library (e.g., to backport fixes) or update it as part of the release process, follow these steps. | ||
+ | |||
+ | == Preparation == | ||
+ | |||
+ | Download the tarball from [[https:// | ||
+ | |||
+ | Unpack it as usually. The X2Go Project keeps libssh source code at '' | ||
+ | |||
+ | Adapt any required patches so that they apply cleanup, build and work correctly. | ||
+ | |||
+ | We currently patch libssh to include support for PuTTY' | ||
+ | |||
+ | To rebase patches, the X2Go Project uses the private git repository at '' | ||
+ | * update the repository: < | ||
+ | * check out new release tag (or branch or whatever you intend to build later on): < | ||
+ | * create new branch based on the tag/ | ||
+ | * cherry-pick specific X2Go-related commits from older branches, one '' | ||
+ | * fix any merge conflicts, pull in other upstream code etc. | ||
+ | * update the commit message! | ||
+ | * when done, create patch files: < | ||
+ | |||
+ | Move the patches to the respective source directory and apply them in order. | ||
+ | |||
+ | If needed, install or update '' | ||
+ | |||
+ | == Configuration == | ||
+ | |||
+ | Open a terminal window. Crucially, this must **not** be a '' | ||
+ | |||
+ | Make sure that the MinGW toolchain that was used to build Qt (and will be used to build X2Go CLient later on) is part of the %PATH% variable. On the X2Go Windows Builder, a session spawned via '' | ||
+ | |||
+ | Go to the unpacked source directory: < | ||
+ | |||
+ | Create and switch to a build subdirectory: | ||
+ | |||
+ | The pre-built libssh versions in '' | ||
+ | |||
+ | Call '' | ||
+ | |||
+ | == Build == | ||
+ | |||
+ | Build the software like any other, append '' | ||
+ | |||
+ | < | ||
+ | |||
+ | == Install == | ||
+ | |||
+ | It's recommended to make sure that the install staging area is clean (fully deleted or at least empty) before installing/ | ||
+ | |||
+ | This ensures that old/removed files won't linger around and that changes will not remain undetected. | ||
+ | |||
+ | < | ||
+ | " | ||
+ | |||
+ | Afterwards, clean and install the newly built files into the MinGW prefix: | ||
+ | |||
+ | Header files: | ||
+ | |||
+ | < | ||
+ | rm -rf " | ||
+ | cp -av " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | As such, it is important to keep these static DLL import libraries around on Windows, even if library is supposed to be used in a dynamically-linked fashion.</ | ||
+ | |||
+ | |||
+ | Library files: | ||
+ | |||
+ | < | ||
+ | for /R " | ||
+ | D: | ||
+ | cd " | ||
+ | for %I in (libssh*) do cp -av " | ||
+ | </ | ||
+ | |||
+ | Afterwards, optionally bundle the new libssh source and binaries in x2goclient-contrib. Explicitly document the command line invocation in a file named '' | ||
+ | |||
+ | ===== Build X2Go Client ===== | ||
==== Build X2Go Client from source ==== | ==== Build X2Go Client from source ==== | ||
Line 109: | Line 231: | ||
< | < | ||
$ git clone git:// | $ git clone git:// | ||
+ | $ cd x2goclient | ||
</ | </ | ||
- | Build X2Go Client | + | Generate the changelog, which x2goclient.exe --changelog will show: |
+ | < | ||
+ | $ copy debian\changelog txt\ | ||
+ | $ git --no-pager log --since "2 years ago" --format=" | ||
+ | $ copy ChangeLog.gitlog txt\git-info | ||
+ | </ | ||
+ | |||
+ | Build X2Go Client: | ||
< | < | ||
$ cd x2goclient | $ cd x2goclient | ||
- | $ PATH=%PATH%; | + | $ PATH=%PATH%; |
$ config_win.bat | $ config_win.bat | ||
+ | $ cd client_build | ||
$ mingw32-make | $ mingw32-make | ||
+ | $ cd .. | ||
+ | $ cd x2gohelper | ||
+ | $ mingw32-make | ||
+ | $ cd .. | ||
</ | </ | ||
- | X2Go Client (x2goclient.exe) | + | X2Go Client |
- | ==== Pack/ | + | ==== Build X2Go Client |
+ | Repeat the instructions for "Build X2Go Client from source", | ||
- | You may want to pack X2Go Client to reduce it size. You can do it with [[http:// | + | - Before running config_win.bat, edit x2goclient.pro so that " |
+ | - Edit nsis\x2goclient.nsi so that the following lines: | ||
- | ==== X2Go Client | + | < |
+ | CreateShortCut " | ||
+ | CreateShortCut " | ||
+ | CreateShortCut " | ||
+ | </ | ||
- | To make X2Go Client usable on Windows, you must put X2Go Client binary and all libraries and components in one directory. | + | Are replaced with the following: |
- | All of the files referenced below (apart from x2goclient.exe) can be obtained from [[http:// | + | < |
+ | CreateShortCut " | ||
+ | CreateShortCut " | ||
+ | CreateShortCut " | ||
+ | </code> | ||
+ | ==== Copy the X2Go Client binaries to the desired folder ==== | ||
- | In the base directory of your X2Go Client source tree create a folder named '' | + | The 2 binaries |
- | | + | |
- | * nxproxy with libraries | + | |
- | * Open SSH Server with libraries | + | |
- | | + | |
- | * PulseAudio | + | |
- | === Add X2Go Client with libraries | + | However, you must decide where you wish to copy them. |
- | - Add x2goclient.exe (from the '' | + | - If you wish to run x2goclient from a folder without creating and running |
- | - Add MinGW libraries (copy from '' | + | - If you wish to create an x2goclient NSIS installer, create |
- | * '' | + | |
- | * '' | + | |
- | - Add OpenSSL library (copy from your OpenSSL installation directory) | + | |
- | * '' | + | |
- | - libssh library (binaries originally from [[ftp:// | + | |
- | * '' | + | |
- | - libzip library (binaries originally | + | |
- | * '' | + | |
- | - zlib library (binaries originally from [[ftp:// | + | |
- | * '' | + | |
- | - If you want to use X2Go Client on older versions of Windows, you should put the " | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
+ | ==== Pack/ | ||
- | ===== Build/Add nxproxy | + | You may want to pack X2Go Client to reduce it size. You can do it with [[https:// |
- | You can download nxproxy, and its libraries [[http:// | + | Official regular builds of X2Go Client are packed. Official debug builds of X2Go Client are not. There is no difference between nightly and release versions - both pack the release binary, while not packing the debug binary. |
- | - Copy the nxproxy binaries directly into the '' | + | It is available in [[http:// |
- | * '' | + | < |
- | * '' | + | x2goclient-contrib\upx\3.95_bin\upx.exe |
- | * '' | + | </ |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | If you want to build nxproxy | + | The 2 files to pack are: |
+ | - '' | ||
+ | - '' | ||
+ | |||
+ | ===== Building nxproxy & OpenSSH (Optional) ===== | ||
+ | |||
+ | Building a new version nxproxy or OpenSSH is optional for non-official X2Go project builds. | ||
+ | |||
+ | Official X2Go project builds usually rebuild | ||
+ | |||
+ | Official X2Go project builds are kept under the x2goclient-contrib git repository under a folder like " | ||
==== Installing Cygwin ==== | ==== Installing Cygwin ==== | ||
- | Download and start the [[http:// | + | Download and start the [[https:// |
- | Choose your cygwin | + | Choose your Cygwin |
- | on installer page " | + | For the X2Go-WinBuilder VM, install to D: |
+ | |||
+ | You can automate the entirety of the instructions below with this command, except for selecting the source packages to install: | ||
+ | |||
+ | < | ||
+ | $ setup-x86.exe -P " | ||
+ | </ | ||
+ | |||
+ | on installer page " | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
+ | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
- | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | ==== Installing libpng ==== | + | <note tip>By installing the '' |
- | 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. | + | For building of OpenSSH Server, you will also need: |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | | + | For OpenSSH you should install both, binary and source packages. Toggle the " |
+ | |||
+ | If you are updating the X2Go Windows build VM, X2Go-WinBuilder, | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | If you are doing official builds, install these **source** packages for both nxproxy and openssh: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== Building nxproxy 3.5 ==== | ||
+ | |||
+ | X2Go Client for Windows is currently built with nxproxy 3.5. | ||
+ | |||
+ | | ||
< | < | ||
- | $ cd /usr/src | + | $ cd /cygdrive/d/Build |
</ | </ | ||
- | * Get a libpng12 | + | * Download and extract the latest nx-libs-lite tarball |
+ | |||
+ | <note warning> | ||
< | < | ||
- | $ wget http://downloads.sourceforge.net/project/libpng/libpng12/ | + | $ wget http://code.x2go.org/releases/source/nx-libs/nx-libs-3.5.0.27-lite.tar.gz |
- | $ tar -xzvf libpng-1.2.50.tar.gz | + | $ tar -xvzf nx-libs-3.5.0.27-lite.tar.gz |
- | $ cd libpng-1.2.50 | + | $ cd nx-libs-3.5.0.27 |
</ | </ | ||
- | * Build and install libpng | + | |
+ | Fix building with libpng15 (X2Go Client 4.0.3.x): | ||
< | < | ||
- | $ ./configure | + | diff --git a/Pgn.cpp.orig b/Pgn.cpp |
- | $ make && make install | + | index cdcde84..1f56787 100644 |
- | </code> | + | --- a/nxcomp/Pgn.cpp.orig |
+ | +++ b/ | ||
+ | @@ -28,7 +28,7 @@ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | -#include < | ||
+ | +#include < | ||
- | ==== Building nxproxy ==== | + | # |
+ | # | ||
- | * Open a cygwin shell and change to your build directory. In this example d:\Build will be used | + | </ |
< | < | ||
- | $ cd /cygdrive/d/Build | + | diff --git a/configure.in.orig b/configure.in |
+ | index 6fa9757..b0699bb 100644 | ||
+ | --- a/nxcomp/ | ||
+ | +++ b/ | ||
+ | @@ -385,7 +385,7 @@ AC_SUBST(ALL) | ||
+ | |||
+ | if test " | ||
+ | | ||
+ | - LIBS=" | ||
+ | + LIBS=" | ||
+ | | ||
+ | | ||
+ | fi | ||
</ | </ | ||
- | * Get nx-libs sources from http:// | ||
< | < | ||
- | $ git clone git://code.x2go.org/nx-libs.git | + | diff --git a/nxproxy/configure.in.orig b/nxproxy/ |
- | $ cd nx-libs | + | index b86828d..5858b36 100644 |
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -159,7 +159,7 @@ dnl GCC 3.3.x requires also the z, png and jpeg libraries. This is | ||
+ | dnl not true anymore since GCC 3.4.x. | ||
+ | |||
+ | if test "$CYGWIN32" | ||
+ | - | ||
+ | + LIBS=" | ||
+ | | ||
+ | | ||
+ | fi | ||
</ | </ | ||
* Build nxcomp | * Build nxcomp | ||
Line 242: | Line 471: | ||
$ ./configure | $ ./configure | ||
$ make | $ make | ||
+ | $ cp -p nxproxy.exe nxproxy.exe.unstripped | ||
$ strip nxproxy.exe | $ strip nxproxy.exe | ||
$ cd .. | $ cd .. | ||
</ | </ | ||
+ | ==== Building nxproxy 3.6 ==== | ||
- | ==== Copying the nxproxy | + | <note tip>X2Go Client for Windows is currently shipped with nxproxy |
+ | <note important> | ||
- | Now the nxproxy | + | * Open a Cygwin shell and change to your build directory. In this example '' |
+ | < | ||
+ | $ cd / | ||
+ | </ | ||
+ | * Download [[nx-libs from Arctica on GitHub|https:// | ||
+ | < | ||
+ | git clone https:// | ||
+ | cd nx-libs | ||
+ | git checkout 3.6.x | ||
+ | </ | ||
+ | * Build nxcomp | ||
+ | < | ||
+ | $ cd nxcomp | ||
+ | $ autoreconf -vfi | ||
+ | $ ./ | ||
+ | $ make | ||
+ | $ cd .. | ||
+ | </ | ||
+ | * Build nxproxy | ||
+ | < | ||
+ | $ cd nxproxy | ||
+ | $ autreoconf -vfi | ||
+ | $ ./ | ||
+ | $ make | ||
+ | $ cp -p src/nxproxy.exe src/nxproxy.exe.unstripped | ||
+ | $ strip src/nxproxy.exe | ||
+ | $ cd .. | ||
+ | </code> | ||
- | - From nxcomp directory (d: | ||
- | | + | ==== Copying the nxproxy binaries ==== |
+ | |||
+ | Now the nxproxy binary (nxproxy.exe) is ready. You can copy it into the program packaging folder ('' | ||
+ | - nx-libs 3.5: From '' | ||
+ | - nx-libs 3.5: From '' | ||
+ | - nx-libs 3.6: From '' | ||
+ | - nx-libs 3.6: From '' | ||
+ | |||
+ | You must also copy required libraries into that folder. | ||
+ | | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | ===== Open SSH Server ===== | ||
- | X2Go Client for Windows using modified Cygwin Open SSH Server for file sharing. You can download it [[http://code.x2go.org/ | + | If you wish to facilitate debugging, or if you are updating x2goclient-contrib, |
+ | - nx-libs 3.5: From '' | ||
+ | | ||
+ | * '' | ||
+ | * '' | ||
+ | - nx-libs 3.6: From '' | ||
+ | - nx-libs 3.6: From '' | ||
+ | * '' | ||
+ | * '' | ||
- | If you want to build it from source, you should [[wiki: | ||
- | After that run Cygwin installer (setup.exe), | + | ==== Building OpenSSH |
- | *libedit | + | |
- | *libedit-devel | + | |
- | *libkrb5-devel | + | |
- | *libncurses-devel | + | |
- | *openssl-devel | + | |
- | *libwrap-devel | + | |
- | *patch | + | |
- | For openssh you should install both, binary and source | + | Copy the source |
+ | < | ||
+ | $ cp -pr /usr/src/openssh-6.1.1p1-3-src / | ||
+ | </ | ||
- | Copy openssh tarball to your build directory. In this example d:\Build will be used | + | '' |
< | < | ||
- | $cp /usr/src/ | + | $ cd /cygdrive/d/Build/openssh-6.6.1p1-3 |
+ | $ tar -xzvf openssh-6.6p1.tar.gz | ||
+ | $ cd openssh-6.6p1 | ||
</ | </ | ||
- | Extract sources and change to openssh source directory | + | Apply any patches that Cygwin provides. For example, with 6.6p1-3: |
< | < | ||
- | $cd / | + | $ patch < ../curve25519-sha256.patch |
- | $tar -xzvf openssh-6.1p1.tar.gz | + | |
- | $cd openssh-6.1p1 | + | |
</ | </ | ||
- | Get and apply patch, which allow use Open SSH Server with X2Go Client | + | Get and apply the X2Go patch, which enables |
< | < | ||
- | $wget http:// | + | $ wget http:// |
- | $patch.exe < openssh-6.0p1-2.x2go.patch | + | $ patch.exe < ../openssh-6.6p1-1.x2go.patch |
</ | </ | ||
Build Open SSH Server | Build Open SSH Server | ||
< | < | ||
- | $./ | + | $ ./configure --libexecdir=/ |
- | $make | + | $ make |
- | $strip *.exe | + | $ strip *.exe |
</ | </ | ||
- | Open SSH Server binaries are ready. Now you can copy them in to the installation directory of x2goclient: | + | < |
- | *sftp.exe | + | < |
- | *sftp-server.exe | + | |
- | *ssh-keygen.exe | + | |
- | *sshd.exe | + | |
+ | < | ||
- | To be able to run Open SSH Server you should also copy needed programs and libraries from cygwin directory (c: | ||
- | *sh.exe | ||
- | *cygasn1-8.dll | ||
- | *cygcom_err-2.dll | ||
- | *cygcrypt-0.dll | ||
- | *cygcrypto-1.0.0.dll | ||
- | *cygedit-0.dll | ||
- | *cyggcc_s-1.dll | ||
- | *cyggssapi-3.dll | ||
- | *cygheimbase-1.dll | ||
- | *cygheimntlm-0.dll | ||
- | *cyghx509-5.dll | ||
- | *cygiconv-2.dll | ||
- | *cygintl-8.dll | ||
- | *cygkafs-0.dll | ||
- | *cygkrb5-26.dll | ||
- | *cygncursesw-10.dll | ||
- | *cygreadline7.dll | ||
- | *cygroken-18.dll | ||
- | *cygsqlite3-0.dll | ||
- | *cygssp-0.dll | ||
- | *cygwin1.dll | ||
- | *cygwind-0.dll | ||
- | *cygwrap-0.dll | ||
- | *cygz.dll | ||
- | Some of this libraries are also used by nxproxy. Open SSH Server | + | ==== Copying OpenSSH |
- | ===== PulseAudio ===== | + | Open SSH Server binaries are ready. You can copy it into the program packaging folder ('' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | you can download PulseAudio for Windows [[http://code.x2go.org/ | + | For example: |
+ | <code> | ||
+ | $ cp --preserve=time sftp.exe sftp-server.exe ssh-keygen.exe sshd.exe /cygdrive/d/x2goclient-contrib/cygwin/20160121-1_bin/ | ||
+ | </ | ||
- | ===== VcXsrv ===== | + | To be able to run Open SSH Server you should also copy needed programs and libraries from the Cygwin directory (c: |
- | you can download VcXsrv for Windows [[http:// | + | First, copy these files over without changing their filenames. |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | ===== PuTTY ===== | + | For example: |
+ | < | ||
+ | $ cd /bin | ||
+ | $ cp --preserve=time cygcrypto-1.0.0.dll cygedit-0.dll cyggcc_s-1.dll cygncursesw-10.dll cygssp-0.dll cygwin1.dll cygz.dll / | ||
+ | </ | ||
- | you can download PuTTY for Windows from [[http://www.chiark.greenend.org.uk/~sgtatham/ | + | Then, copy the dash executable over and rename it: |
+ | < | ||
+ | ash.exe -> sh.exe | ||
+ | </code> | ||
- | These are the only binaries you need from PuTTY. Copy them directly into the '' | + | For example: |
+ | < | ||
+ | $ cp --preserve=time ash.exe /cygdrive/ | ||
+ | </ | ||
- | | + | Some of these libraries are also used by nxproxy. Open SSH Server and nxproxy should be built using same version of Cygwin. |
- | *pscp.exe | + | |
+ | < | ||
+ | |||
+ | ===== Copying 3rd-party libraries and components ===== | ||
+ | |||
+ | ==== Overview ==== | ||
+ | |||
+ | To make X2Go Client usable on Windows, all libraries and components must be in the some directory as where the 2 binaries are. | ||
+ | |||
+ | All of the files referenced below (except for the OpenSSL-Win32 library, which you installed previously) can be obtained from [[http:// | ||
+ | |||
+ | In the previous step, you chose either the '' | ||
+ | |||
+ | * libraries | ||
+ | * nxproxy with libraries | ||
+ | * Open SSH Server with libraries (optional) | ||
+ | * PuTTY | ||
+ | * VcXsrv | ||
+ | * PulseAudio (optional) | ||
+ | |||
+ | ==== Scripted Copying ==== | ||
+ | |||
+ | You can then install all of them by using the '' | ||
+ | |||
+ | First, clone [[http:// | ||
+ | |||
+ | Now run the script with the following arguments. In this example: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | < | ||
+ | $ cd x2goclient | ||
+ | $ copy-deps-win32.bat ..\x2goclient-contrib D: | ||
+ | </ | ||
+ | or to the '' | ||
+ | < | ||
+ | $ cd x2goclient | ||
+ | $ copy-deps-win32.bat nsis\x2goclient | ||
+ | </ | ||
+ | |||
+ | ==== Scripted Copying (debug builds) ==== | ||
+ | |||
+ | Follow the instructions for Scripted Copying. | ||
+ | |||
+ | However, at the end: | ||
+ | |||
+ | - View the '' | ||
+ | - From the Cygwin bundle, '' | ||
+ | - Replace nxproxy.exe with nxproxy.exe.unstripped | ||
+ | |||
+ | ==== Manual Copying ==== | ||
+ | |||
+ | === Libraries === | ||
+ | |||
+ | - Add MinGW 4.8's libraries (copy from '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | - Add OpenSSL libraries (copy from your OpenSSL installation directory) | ||
+ | * '' | ||
+ | * '' | ||
+ | - libssh library ([[wiki: | ||
+ | * '' | ||
+ | - zlib library for libssh (available [[http:// | ||
+ | * '' | ||
+ | - If you want to use X2Go Client on older versions of Windows, you should put the " | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | === nxproxy === | ||
+ | |||
+ | The latest version is available in [[http:// | ||
+ | |||
+ | You can download older versions, including their libraries, from here [[http:// | ||
+ | |||
+ | === nxproxy (debug builds)=== | ||
+ | |||
+ | Follow the instructions above for nxproxy. | ||
+ | |||
+ | Except at the end, replace nxproxy.exe with nxproxy.exe.unstripped. | ||
+ | |||
+ | Older builds do not have nxproxy.exe.unstripped; | ||
+ | |||
+ | === OpenSSH Server === | ||
+ | |||
+ | X2Go Client for Windows uses a modified Cygwin OpenSSH Server for file sharing. | ||
+ | |||
+ | The latest version is available in [[http:// | ||
+ | |||
+ | You can download older versions from [[http:// | ||
+ | |||
+ | === PulseAudio === | ||
+ | |||
+ | PulseAudio for Windows 6.0 is used by X2Go Client 4.0.4.x and it is available in [[http:// | ||
+ | |||
+ | PulseAudio for Windows 5.0 is used by X2Go Client 4.0.3.x and it is available in [[http:// | ||
+ | |||
+ | You can download older Windows builds here [[http:// | ||
+ | |||
+ | Note that the files must be installed to the '' | ||
+ | |||
+ | Even older Windows builds are available from [[http:// | ||
+ | |||
+ | === VcXsrv - XP Compatible === | ||
+ | |||
+ | The latest version is available in [[http:// | ||
+ | |||
+ | You can download older versions, modified by the X2Go project, (VcXsrv - XP Compatible), | ||
+ | |||
+ | Note that the files must be installed to the '' | ||
+ | |||
+ | Building VcXsrv from source is not the part of this howto. However, it is documented in the [[https:// | ||
+ | |||
+ | All official X2Go Project builds use the 32-bit builds of VcXsrv. 64-bit builds are probably compatible with the 32-bit X2Go Client, but have not been tested. Furthermore, | ||
+ | |||
+ | If you do install VcXsrv via the setup installer, and you are building X2Go Client 4.0.3.x or later, select to install the fonts. They will be an optional component of X2Go Client for Windows in its installer. | ||
+ | |||
+ | If you do install VcXsrv via the setup installer, and you are building X2Go Client 4.0.2.1, deselect to install the fonts. They would more than double the size of the X2Go NSIS installer. Some legacy apps do need them, and users can install them if they'd like. | ||
+ | |||
+ | Also, if you are doing an official X2Go Project build, remove these files that X2Go Client does not need and would take up extra space: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Also, if you are doing an official X2Go Project build, before importing it into x2goclient-contrib, | ||
+ | Using Debian' | ||
+ | < | ||
+ | $ cd / | ||
+ | $ find . -iname ' | ||
+ | </ | ||
+ | If you are doing an official X2Go Project build, create this file in the VcXsrv folder: | ||
+ | * '' | ||
+ | And specify the version string of VcXsrv in it. The version string should be the only content of that file. For example: | ||
+ | |||
+ | 1.15.2.3+xp-vc2013+x2go1 | ||
+ | |||
+ | If you are doing an official X2Go Project build, copy the project' | ||
+ | * '' | ||
+ | |||
+ | === x3270-fonts ==== | ||
+ | |||
+ | For IBM x3270 compatibility, | ||
+ | |||
+ | Note that versions prior to 3.6 are classified non-free by major distributions due to their custom, restrictive license. Do **not** use and (re-)distribute older versions than 3.6 with X2Go Client. | ||
+ | |||
+ | ==== Updating x3270 Fonts Package ==== | ||
+ | |||
+ | * Check the current licensing situation. Do **not** update the package if it becomes non-free again. | ||
+ | * Build the x3270 package, download a complete precompiled one or just fetch a binary fonts package. Debian conveniently offers one named [[https:// | ||
+ | * Create a new versioned subdirectory in the '' | ||
+ | * Extract the binary fonts. | ||
+ | * Make sure that all binary font files are located in one single directory called '' | ||
+ | * Get copyright and licensing information and place them into a file called '' | ||
+ | * Use Debian' | ||
+ | < | ||
+ | $ find misc -iname ' | ||
+ | </ | ||
+ | * For official builds, create timestamps script: | ||
+ | < | ||
+ | $ cd .. | ||
+ | $ ../ | ||
+ | </ | ||
+ | * For official builds, call the timestamps script in x2goclient-contrib' | ||
+ | * For official builds, update the [[https:// | ||
+ | |||
+ | === PuTTY === | ||
+ | |||
+ | You can download PuTTY for Windows from [[https:// | ||
+ | |||
+ | These are the only binaries you need from PuTTY. Copy them directly into the '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Out of courtesy, we also ship the following additional, not strictly needed binaries: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | ===== Creating an NSIS Installer ===== | ||
+ | |||
+ | Install NSIS (currently, 3.05): https:// | ||
+ | |||
+ | Previously, we used NSIS Unicode, but this project is stale and NSIS 3.x nowadays supports Unicode. | ||
+ | |||
+ | Then, edit '' | ||
+ | |||
+ | Then, open '' | ||
+ | |||
+ | If you wish to build via the command-line, | ||
+ | < | ||
+ | $ " | ||
+ | </ | ||
+ | (Adjust path if on 32-bit Windows.) |