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