Technical notes‎ > ‎

Using Windows

posted Apr 18, 2016, 2:06 AM by Le Tuan Anh   [ updated Aug 10, 2017, 5:56 PM ]
Setup cygwin environment:

  1. Install cygwin from here: https://cygwin.com/install.html
  2. Install packages
    1. gcc (gcc-g++, gcc-core, make, cmake, automake, etc.)
      1. To use cygwin gcc instead of other Windows' gcc, use:
        export CC=/usr/bin/gcc
    2. geany
    3. emacs
    4. python (lxml, libxslt, libxslt-devel, python-libxml2, tkinter, python-dev, pip), same thing for python3
    5. pygtk
    6. openssh, filezilla, wget
    7. sqliteman
    8. To use X display
      1. Install packges xorg-server and xinit
      2. and run startxwin (or  nohup startxwin >/dev/null 2>&1 &)
        1. To show running jobs, use  jobs -l .
      3. Set display: export DISPLAY=:0.0
    9. To run geany using xwin use:  nohup geany --display=:0.0 >/dev/null 2>&1 & 
  3. You can forward X11 to your local machine by doing:
    1. on cygwin, 
      export DISPLAY=:0.0
    2. start Xwin service
      startxwin
    3. use -XY flags to enable X11 forward in SHH:
      ssh -XY [username]@[host]
    4. Profit!
  4. Editing host file at
    C:\Windows\System32\Drivers\etc\hosts
  5. And more
Comments