It's about open source softwares

Monday, June 1, 2015

PASH - An Open Source Implementation of Windows PowerShell


Pash is an open source implementation of Powershell which can be used on linux, mac or windows mobiles.

The main goal of implementing the Pash is to provide a rich shell environment for other operating systems as well as to provide a hostable scripting engine for rich applications. The script should run across the machine and different OS seamlessly is a secondary goal.(Source:http://pash.sourceforge.net)

In this blog post I am going to provide installation of Pash on ubuntu machine.

Install MONO


First we have to install mono platform designed to allow developers to create cross platform applications.
rahul@ubuntu:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

rahul@ubuntu:~$ echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

rahul@ubuntu:~$ sudo apt-get update 

rahul@ubuntu:~$ sudo apt-get install mono-devel
rahul@ubuntu:~$ sudo apt-get install mono-complete

Clone git repository


Clone a Pash git repository on local machine using below command.
rahul@ubuntu:~$ cd /var/local
rahul@ubuntu:/var/local$ git clone https://github.com/Pash-Project/Pash.git

Build Pash source code


Build a pash source code using xbuild command
rahul@ubuntu:/var/local$ cd pash   
rahul@ubuntu:/var/local/Pash$ sudo xbuild 

Execute Pash


For opening Pash console execute Pash.exe file using mono command
rahul@ubuntu:/var/local/Pash$ mono Source/PashConsole/bin/Debug/Pash.exe
Pash Console

References:

Share: