Home    Search    Up    Reference Manuals    Return   

Gensys.2102 compiled for Cygwin

  1. Install Cygwin:
    1. Make sure your machine is equipped with a 64-bits processor.
      Primary memory > 1 GB
      Free hard disk space > 8 GB
    2. Download program setup-x86_64.exe
    3. Install cygwin by executing program setup-x86_64.exe
      In a cmd-window, please write:
      setup-x86.exe ^
      --quiet-mode ^
      --packages ^
      eom,^
      evince,^
      gcc-fortran,^
      gcc-g++,^
      git,^
      libXm4,^
      libXm-devel,^
      libiconv,^
      libiconv-devel,^
      meld,^
      make,^
      libreadline-devel,^
      libXmu-devel,^
      libXaw-devel,^
      libGL-devel,^
      libGLU-devel,^
      ghostscript,^
      gimp,^
      octave,^
      gnuplot-X11,^
      gnuplot-base,^
      tcl-tk,^
      xinit,^
      xorg-server,^
      zenity          
      
    4. Open file /usr/bin/meld and change the first line from:
      #!/usr/bin/python3
      to
      #!/usr/bin/python3.6m
  2. Install gensys.2102
    1. Create directory C:\cygwin64\opt\gensys
    2. To direcory C:\cygwin64\opt\gensys download the following files:
      gensys-2102-cygwin.txz.part1
      gensys-2102-cygwin.txz.part2
      gensys-2102-cygwin.txz.part3
      gensys-2102-cygwin.txz.part4
      gensys-2102-cygwin.txz.part5
      gensys-2102-cygwin.txz.part6
    3. Check that all files has been successfully downloaded
      Start a Cygwin64 Terminal and write:
      cd /opt/gensys
      sha256sum gensys-2102-cygwin.txz.part?
      The output from sha256sum should be:
      78120a26d75dacd972472a724f4a2f14f84877ca9c927414a2de29bc7688bd76  gensys-2102-cygwin.txz.part1
      8bfe03824391793cd7084d3fc85f5b72c09f59ee217a266909350daf4f719183  gensys-2102-cygwin.txz.part2
      64200aef39f2846e45ce025f7847a72afbfb104b213ec824350fb813b5e30594  gensys-2102-cygwin.txz.part3
      ad7896f48942949baa55ffc50b164f3b43e4f5c71f38041f31f84d1bde3e8319  gensys-2102-cygwin.txz.part4
      80793aea43b1f814f4036b40b9becf5c977bb3108e6dd45d99a539fc75d81561  gensys-2102-cygwin.txz.part5
      c878f94e45e779418edb8a4a1aa1443b196bb6e2756898405b50b12f0a1f5f7a  gensys-2102-cygwin.txz.part6
      
    4. Uncompress the Gensys files
      Continue using the Cygwin64 Terminal and write:
      cat gensys-2102-cygwin.txz.part? > gensys-2102-cygwin.txz
      tar -xJkpf gensys-2102-cygwin.txz
    5. All files gensys-2102-cygwin.txz.part? incl gensys-2102-cygwin.txz can now be removed.
    6. Contact info@gensys.se to get a link to a valid license file for your installation.
    7. Install Gensys license file.
      Enter the link given by info@gensys.se in a webbrowser.
      Save the file in directory C:\cygwin64\opt\gensys\gensys-2102\bin.
      Add execute permissions by starting a Cygwin64 Terminal and write:
      chmod +x /opt/gensys/gensys-2102/bin/gen_processor_ID_check
  3. Create Gensys initialization files
    1. Download file profile.txz to directory C:\cygwin64\home\%USERNAME%
    2. Uncompress file profile.txz by starting a Cygwin64 Terminal and write:
      tar -xvJpf profile.txz
    3. Create link .Xdefaults-`hostname` with command:
      ln -s .Xdefaults .Xdefaults-`hostname`
    4. File profile.txz can now be removed.
  4. Create shortcuts on your Windows desktop background:
    1. Desktop\startx.lnk
      Target:   C:\cygwin64\bin\run.exe --quote /usr/bin/bash -lic '/usr/bin/startxwin -- :0 -listen tcp -multiwindow -clipboard -wgl -ac'
      Start in: C:\cygwin64

      Cygwin/X X Server must be started before Gensys can be launched. The X-window server makes it possible to open multiple windows. A □ to the right on the Windows menu bar, indicates that the Cygwin X Server is up and running.

    2. Desktop\gensys.lnk
      Target:   C:\cygwin64\bin\run.exe --quote /usr/bin/bash -lic 'DISPLAY=:0.0 genfile $HOME/gensys'
      Start in: C:\cygwin64

      This link starts Gensys file managing program genfile.

      Create directory C:\cygwin64\home\%USERNAME%\gensys to make the above link to work.
      The indended purpose for this directory is to keep your working project directories here.

    Place the two icons startx.lnk and gensys.lnk in the upper end of the screen, because new genfile windows will appear in the lower left of your screen.

  5. Start Cygwin/X X Server and Gensys
    1. Double-click icon Desktop\startx.lnk which was created under 4.1) above.
    2. Wait until icon □ Appears to the right on the Windows menu bar.
    3. Double-click icon Desktop\gensys.lnk which was created under 4.2) above.
    4. A genfile-window will now appear in the lower left corner of your screen.
    5. Program genfile starts in directory ~/gensys. When program genfile starts for the first time, this directory will be empty. The intended use of this directory is that you shall put all your working project directories here.
    6. By clicking Help -> Tutorial in the pulldown-menu a new genfile-window will appear in the lower right of the screen
    7. From the Tutorial-window, project directories can be dragged over to the ~/gensys-window with the following steps:
      1. Double-click a directory in the Tutorial-window
      2. Simultaneously press CTRL and the middle mouse button
      3. Keep pressing the middle mouse button and drag it over to the ~/gensys-window
      4. Add write permissions for you to all files in the newly created tutorial-directory by writing:
        chmod -R u+w <tutorial-directory>
      5. Double-click the newly created directory in the ~/gensys-window
      6. Decend into the newly created directory by clicking the "cd"-button
      7. You are now ready to work with this example.
      8. Double-click file README.html and press CTRL+R to read the instructions.