Skip to main content

Posts

Showing posts from January, 2014

Working with Git and Git-Flow on Windows

To install Git-Flow on Windows Download the "Binaries Zip" file (util-linux-ng-2.14.1-bin.zip) from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm Extract util-linux-ng-2.14.1-bin.zip\bin\getopt.exe to "C:\Program Files (x86)\Git\bin" Download the "Dependencies Zip" file (util-linux-ng-2.14.1-dep.zip) from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm Extract util-linux-ng-2.14.1-dep.zip\bin\libintl3.dll to "C:\Program Files (x86)\Git\bin" Run "git clone --recursive git://github.com/nvie/gitflow.git" cd into gitflow/contrib/ Run msysgit-install.cmd "C:\Program Files (x86)\Git" Run "git flow" in a cmd window to make sure it worked (adapted from http://xinyustudio.wordpress.com/2012/03/26/installing-git-flow-in-windows/ ) Git Configuration After installing Git, set up the configuration: C:\> git config --global user.name "Your Name" C:\> git config --glo

Running PowerShell commands from Linux

There are several options for running PowerShell commands from Linux. Run the PowerShell script over a REST interface Unless you need a remote shell, the easiest option is to set up a REST interface for your PowerShell scripts. More information here . Using the winrm Ruby Gem https://github.com/WinRb/WinRM Using a WS-Management client on Linux Set up Windows for remote access: https://github.com/Openwsman/openwsman/wiki/winrm-over-openwsman-setup Install OpenWSMAN on Linux: http://openwsman.github.io/ Use Openwsman Command-Line Client: https://github.com/Openwsman/openwsman/wiki/openwsman-command-line-client OR - Use Ruby client bindings: http://users.suse.com/~kkaempf/openwsman/ Install an SSH server on Windows Install a Salt Minion on Windows Install Salt Master on Linux Install Python on Windows Install Salt Minion on Windows Open firewall on Windows for Salt access On Linux, run: # salt "winServer" cmd.run "powersh