1 Installing cygwin64 and Tools - noeldiviney/P5LP_Development_repo GitHub Wiki

Installing Cygwin64 and Tools

  • Download the latest setup-x86_64.exe from here

  • You can see a Cygwin Install HOWTO here

  • run the setup-x86_64.exe file you downloaded

  • A suggested Installation Process Walkthrough is as follows

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

Now Install cygwin wget

  • 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

Use wget to Install "apt_cyg"

  • 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

Install AsciidocFX

  • 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

Create Windows Desktop Shortcut

  • Using Windows Explorer navigate to cygwin64\homee\"you"\bin\AsciidocFX

  • Right click on "AsciidocFX.exe" and select "Send to→Desktop(Create Shortcut)"

Create Script to launch AsciidocFX from the cygwin command line

  • 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"

Launching AsciidocFX from Command line

  • Use the following command

$ asciidocfx file.adoc

Install "Google repo"

  • 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"

We are now "good to go"

⚠️ **GitHub.com Fallback** ⚠️