linux下一鍵安裝 powershell,的bash指令碼

來源:互聯網
上載者:User

標籤:

說明

目前,linux下的powershell約等於pash。希望大家專註mono,關注pash。

一鍵安裝指令碼包括for centos6,centos7,ubuntu 14.04  ubuntu 14.10

安裝指令碼是用yum或apt安裝,mono官方最新版,然後編譯安裝pash最新版,最後產生兩個命令:

mybuild用於編譯pash

mypash用於運行pash

 

1 centos6 

#!/bin/bash# centos6,一鍵安裝mono,pash的shell指令碼。# centos 6.6 測試通過。# 在linux下用:  # cd    xxxx    # xxxx 為要進入的目錄。    # bash  ./install_pash.txt      # 運行。#指令碼開始yum  -y  install wget git #安裝mono#http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-optcd /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# 建立兩個bash的alias,#mybuild為編譯,或更新pash#mypash為運行pash# powershell 傳教士 原創 2015-02-01 允許轉載,但必須保留名字和出處,否則追究法律責任 echo "alias mybuild=‘cd / ;rm -rf /Pash ; git  clone  https://github.com/Pash-Project/Pash.git ; cd /Pash/ ; /opt/mono/bin/xbuild    /Pash/Pash.proj‘"    >>  /root/.bashrcecho "alias mypash=‘/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe‘"   >>  /root/.bashrc#安裝pashcd / rm -rf /Pash git  clone  https://github.com/Pash-Project/Pash.git cd /Pash/ /opt/mono/bin/xbuild    /Pash/Pash.projsleep 6#運行/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe 
View Code

2 centos7

#!/bin/bash# centos7,一鍵安裝mono,pash的shell指令碼。# 在linux下用:  # cd    xxxx    # xxxx 為要進入的目錄。    # bash  ./centos7_install_pash.txt# 運行。#指令碼開始yum  -y  install wget git #安裝mono#http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-optcd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-7/home:tpokorra:mono.repoyum  -y  install mono-opt# 建立兩個bash的alias,#mybuild為編譯,或更新pash#mypash為運行pash# powershell 傳教士 原創 2015-02-01 允許轉載,但必須保留名字和出處,否則追究法律責任 echo "alias mybuild=‘cd / ;rm -rf /Pash ; git  clone  https://github.com/Pash-Project/Pash.git ; cd /Pash/ ; /opt/mono/bin/xbuild    /Pash/Pash.proj‘"    >>  /root/.bashrcecho "alias mypash=‘/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe‘"   >>  /root/.bashrc#安裝pashcd / rm -rf /Pash git  clone  https://github.com/Pash-Project/Pash.git cd /Pash/ /opt/mono/bin/xbuild    /Pash/Pash.projsleep 6#運行/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe 
View Code

 3 ubuntu 14.04

#!/bin/bash# ubuntu14.04,一鍵安裝mono,pash的shell指令碼。# ubuntu 14.04 測試通過。# 在linux下用:  # cd    xxxx    # xxxx 為要進入的目錄。    # bash  ./ubuntu1404_install_pash.txt      # 運行。#指令碼開始sudo apt-get updatesudo apt-get  -y  install wget git # http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt#安裝monowget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.04/Release.keysudo apt-key add - < Release.key  sudo sh -c "echo ‘deb 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# 建立兩個bash的alias,#mybuild為編譯,或更新pash#mypash為運行pash# powershell 傳教士 原創 2015-02-01 允許轉載,但必須保留名字和出處,否則追究法律責任 echo "alias mybuild=‘cd / ;rm -rf /Pash ; git  clone  https://github.com/Pash-Project/Pash.git ; cd /Pash/ ; /opt/mono/bin/xbuild    /Pash/Pash.proj‘"    >>  /root/.bashrcecho "alias mypash=‘/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe‘"   >>  /root/.bashrc#安裝pashcd / rm -rf /Pash git  clone  https://github.com/Pash-Project/Pash.git cd /Pash/ /opt/mono/bin/xbuild    /Pash/Pash.projsleep 6#運行/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe 
View Code

 4 ubuntu14.10

#!/bin/bash# ubuntu14.10,一鍵安裝mono,pash的shell指令碼。# 在linux下用:  # cd    xxxx    # xxxx 為要進入的目錄。    # bash  ./ubuntu14010_install_pash.txt      # 運行。#指令碼開始sudo apt-get updatesudo apt-get  -y  install wget git # http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt#安裝monowget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.10/Release.keysudo apt-key add - < Release.keysudo sh -c "echo ‘deb 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# 建立兩個bash的alias,#mybuild為編譯,或更新pash#mypash為運行pash# powershell 傳教士 原創 2015-02-01 允許轉載,但必須保留名字和出處,否則追究法律責任 echo "alias mybuild=‘cd / ;rm -rf /Pash ; git  clone  https://github.com/Pash-Project/Pash.git ; cd /Pash/ ; /opt/mono/bin/xbuild    /Pash/Pash.proj‘"    >>  /root/.bashrcecho "alias mypash=‘/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe‘"   >>  /root/.bashrc#安裝pashcd / rm -rf /Pash git  clone  https://github.com/Pash-Project/Pash.git cd /Pash/ /opt/mono/bin/xbuild    /Pash/Pash.projsleep 6#運行/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe 
View Code

 

linux下一鍵安裝 powershell,的bash指令碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.