One-click installation of powershell, bash script, and powershellbash in linux

Source: Internet
Author: User

One-click installation of powershell, bash script, and powershellbash in linux

Description

Currently, powershell in linux is equivalent to pash. I hope you will focus on mono and pash.

One-click installation scripts include for centos6, centos7, and ubuntu 14.04 ubuntu 14.10

The installation script is installed using yum or apt. mono is the latest official version. Compile and install the latest version of pash and generate two commands:

Mybuild is used to compile pash

Mypash is used to run pash

 

1 centos6

#! /Bin/bash # centos6: one-click installation of mono and pash shell scripts. # Centos 6.6 passed the test. # Use # cd xxxx # xxxx in linux as the directory to be accessed. # Bash./install_pash.txt # Run. # Script start yum-y install wget git # install mono # http://software.opensuse.org/download/package? Project = home: tpokorra: mono & package = mono-optcm/etc/yum. repos. d/wget http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-6/home:tpokorra:mono.repo yum-y install mono-opt # build two bash alias, # mybuild for compilation, or update pash # mypash for run pash # powershell missionary original allow reprint, however, the name and source must be retained; otherwise, legal liability echo "alias mybuild = 'CD/; rm-rf/Pash; git clone https://github.com/Pash-Project/Pash.git; cd/Pash /; /opt/mono/bin/xbuild/Pash. proj' ">/root /. bashrcecho "alias mypash = '/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exe'">/root /. bashrc # Install pashcd/rm-rf/Pash git clone https://github.com/Pash-Project/Pash.git cd/Pash // opt/mono/bin/xbuild/Pash. projsleep 6 # Run/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exeView Code

2 centos7

#! /Bin/bash # centos7: one-click installation of mono and pash shell scripts. # Use # cd xxxx # xxxx in linux as the directory to be accessed. # Bash./centos7_install_pash.txt # Run. # Script start yum-y install wget git # install mono # http://software.opensuse.org/download/package? Project = home: tpokorra: mono & package = mono-optcm/etc/yum. repos. d/wget http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-7/home:tpokorra:mono.repoyum-y install mono-opt # build two bash alias, # mybuild for compilation, or update pash # mypash for run pash # powershell missionary original allow reprint, however, the name and source must be retained; otherwise, legal liability echo "alias mybuild = 'CD/; rm-rf/Pash; git clone https://github.com/Pash-Project/Pash.git; cd/Pash /; /opt/mono/bin/xbuild/Pash. proj' ">/root /. bashrcecho "alias mypash = '/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exe'">/root /. bashrc # Install pashcd/rm-rf/Pash git clone https://github.com/Pash-Project/Pash.git cd/Pash // opt/mono/bin/xbuild/Pash. projsleep 6 # Run/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exeView Code

3 ubuntu 14.04

#! /Bin/bash # ubuntu14.04: one-click installation of mono and pash shell scripts. # Ubuntu 14.04 passed the test. # Use # cd xxxx # xxxx in linux as the directory to be accessed. # Bash./ubuntu1404_install_pash.txt # Run. # Script start sudo apt-get updatesudo apt-get-y install wget git # http://software.opensuse.org/download/package? Project = home: tpokorra: mono & package = mono-opt # Install the monowget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.04/Release.keysudo apt-key add-<Release. key sudo sh-c "echo 'depb http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_14.04//'>/etc/apt/sources. list. d/mono-opt.list "sudo apt-get updatesudo apt-get-y install mono-opt # create two bash alias, # mybuild for compilation, or update pash # mypash to run pash # powershell missionary original allowed to be reproduced, but the name and source must be kept; otherwise echo "alias mybuild = 'CD /; rm-rf/Pash; git clone https://github.com/Pash-Project/Pash.git; cd/Pash/;/opt/mono/bin/xbuild/Pash. proj' ">/root /. bashrcecho "alias mypash = '/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exe'">/root /. bashrc # Install pashcd/rm-rf/Pash git clone https://github.com/Pash-Project/Pash.git cd/Pash // opt/mono/bin/xbuild/Pash. projsleep 6 # Run/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exeView Code

4 ubuntu14.10

#! /Bin/bash # ubuntu14.10: one-click installation of mono and pash shell scripts. # Use # cd xxxx # xxxx in linux as the directory to be accessed. # Bash./ubuntu14010_install_pash.txt # Run. # Script start sudo apt-get updatesudo apt-get-y install wget git # http://software.opensuse.org/download/package? Project = home: tpokorra: mono & package = mono-opt # Install the monowget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.10/Release.keysudo apt-key add-<Release. keysudo sh-c "echo 'depb http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_14.10//'>/etc/apt/sources. list. d/mono-opt.list "sudo apt-get updatesudo apt-get-y install mono-opt # create two bash alias, # mybuild for compilation, or update pash # mypash to run pash # powershell missionary original allowed to be reproduced, but the name and source must be kept; otherwise echo "alias mybuild = 'CD /; rm-rf/Pash; git clone https://github.com/Pash-Project/Pash.git; cd/Pash/;/opt/mono/bin/xbuild/Pash. proj' ">/root /. bashrcecho "alias mypash = '/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exe'">/root /. bashrc # Install pashcd/rm-rf/Pash git clone https://github.com/Pash-Project/Pash.git cd/Pash // opt/mono/bin/xbuild/Pash. projsleep 6 # Run/opt/mono/bin/mono/Pash/Source/PashConsole/bin/Debug/Pash.exeView Code

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.