===== Cygwin/X ===== Cygwin/X can be used for connecing to Unix/Linux servers and displaying windows.\\ You can try cygwin if [[programs:xwin32|Xwin32]] is slow when using [[programs:promax|SeisSpace]]. Another alternative is [[https://mobaxterm.mobatek.net/|MobaXterm]]. === How to start === If logging in doesn't work the first time, try again.\\ E.g. if you're going to connect to [[hardware:promax|promax]]: - shortcut on desktop: CygwinX promax.bat - c:\cygwin64\CygwinX promax.bat If that doesn't work, or if you want to connect to another server: * c:\cygwin64\startxwin.bat * go to notifications, rightclick {{:programs:cygwinx.jpg}} and select system tools -> Xterm * write this in the xterm window: ssh -Y username@some.server.ntnu.no === SeisSpace === * there's two versions of Trace Display in SeisSpace. The Promax-version (blue icon to the left of the name) flickers when using cygwin. To stop flickering: click and hold the mouse button on the View menu and move the mouse down to Refresh and then release the button. * if a blank windows opens, try to move it. * it may take a couple of seconds before the window opens the first time you want to edit a process. === Install on your PC === * install [[https://www.cygwin.com/|cygwin]] with these additional packages: openssh, xorg-server, xinit, xlaunch, xorg-x11-fonts* (minus cyrillic and ethiopic). You may automate it by running this from CMD: setup-x86_64.exe -nq -s http://cygwin.uib.no -P xorg-server,openssh,xinit,xlaunch,xorg-x11-fonts-Type1,xorg-x11-fonts-dpi100,xorg-x11-fonts-dpi75,xorg-x11-fonts-misc * at the end of installation select "create icon on desktop" and "add icon to start menu". * you may have to open the firewall for c:\cygwin64\bin\xwin.exe (and maybe port 6000 tcp/udp). * installation may not always be successful, i.e. login to remote server doesn't work. === Login script === You may create your own login script by editing this: @echo off rem ask for user name echo. echo. echo DO NOT CLOSE THIS WINDOW echo. @echo: set /p user=User Name: @echo on rem start Xwin server and xterm login window rem http://www.trueblade.com/knowledge/automatically-starting-a-cygwin-x-server C:\cygwin64\bin\run.exe -p /usr/bin XWin -multiwindow -clipboard -silent-dup-error C:\cygwin64\bin\sleep.exe 1 C:\cygwin64\bin\run.exe --wait --quote /usr/bin/xterm.exe -display :0 -e /usr/bin/ssh -Y %user%@promax.igp.ntnu.no C:\cygwin64\bin\sleep.exe 1 rem kill Xwin and delete lock files taskkill /f /im xwin.exe rmdir /S /Q c:\cygwin64\tmp\.X11-unix\ del c:\cygwin64\tmp\.X* exit