1 Installing cygwin64 and Tools - noeldiviney/P5LP_Development_repo GitHub Wiki
Available Options | Selection |
---|---|
Choose A Download Source |
Install from Internet |
Select Root Install Directory |
C:\cygwin64 (In my case) |
Install For |
All Users (RECOMMENDED) |
Local Package Directory |
C:\cygwin64\downloads (In my case) |
Select Your Internet Selection |
Direct Connection |
Choose A Download Site |
ftp://ucmirror.canterbury.ac.nz (in my case) |
-
Install the "Base Defaults" to get started
-
Run setup-x86_64.exe and select "Category" view
-
Enter wget in the "Search" box
-
Select wget and its dependencies and then
-
Hit "next" to complete the installation
-
Launch cygwin terminal
$ wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg $ chmod +x apt-cyg $ mv apt-cyg /usr/local/bin
-
Now use apt-cyg to install nano, git and other programs as required
$ apt-cyg install nano $ apt-cyg install git $ apt-cyg install ca-certificates
-
Launch cygwin64
-
Create ~/bin directory to hold our Windows .exe files
$ mkdir -p ~/bin $ cd bin
-
Install cygwin unzip
$ apt-cyg install unzip
-
Download AsciidocFX_Windows.zip
$ wget https://github.com/asciidocfx/AsciidocFX/releases/download/v1.5.6/AsciidocFX_Windows.zip $ unzip AsciidocFX_Windows.zip
-
Using Windows Explorer navigate to cygwin64\homee\"you"\bin\AsciidocFX
-
Right click on "AsciidocFX.exe" and select "Send to→Desktop(Create Shortcut)"
-
Launch your favourite Editor and input the following
#!/bin/sh exec_path="~/bin/AsciidocFX-160/AsciidocFX.exe" FILE=`cygpath -a -w $1` exec $exec_path "$FILE"
-
Save as "asciidocfx"
-
Use "curl" to download and install "repo" into "~/bin/repo"
$: mkdir ~/bin $: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $: chmod a+x ~/bin/repo
Edit ~/.bash_profile and uncomment lines 32, 33 and 34 to add ~/bin to "PATH"