说明

目前,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-opt
cd /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 传教士 原创 -- 允许转载,但必须保留名字和出处,否则追究法律责任
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/.bashrc
echo "alias mypash='/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe'"   >>  /root/.bashrc

#安装pash
cd /
rm -rf /Pash
git  clone  https://github.com/Pash-Project/Pash.git
cd /Pash/
/opt/mono/bin/xbuild    /Pash/Pash.proj

#运行
/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe

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-opt
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-7/home:tpokorra:mono.repo
yum  -y  install mono-opt

# 建立两个bash的alias,
#mybuild为编译,或更新pash
#mypash为运行pash
# powershell 传教士 原创 -- 允许转载,但必须保留名字和出处,否则追究法律责任
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/.bashrc
echo "alias mypash='/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe'"   >>  /root/.bashrc

#安装pash
cd /
rm -rf /Pash
git  clone  https://github.com/Pash-Project/Pash.git
cd /Pash/
/opt/mono/bin/xbuild    /Pash/Pash.proj

#运行
/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe

3 ubuntu 14.04

#!/bin/bash
# ubuntu14.,一键安装mono,pash的shell脚本。
# ubuntu 14.04 测试通过。
# 在linux下用:
# cd    xxxx
# xxxx 为要进入的目录。
# bash  ./ubuntu1404_install_pash.txt
# 运行。

#脚本开始
sudo apt-get update
sudo apt-get  -y  install wget git 

# http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt
#安装mono
wget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.04/Release.key
sudo 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 update
sudo apt-get  -y  install mono-opt

# 建立两个bash的alias,
#mybuild为编译,或更新pash
#mypash为运行pash
# powershell 传教士 原创 -- 允许转载,但必须保留名字和出处,否则追究法律责任
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/.bashrc
echo "alias mypash='/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe'"   >>  /root/.bashrc

#安装pash
cd /
rm -rf /Pash
git  clone  https://github.com/Pash-Project/Pash.git
cd /Pash/
/opt/mono/bin/xbuild    /Pash/Pash.proj

#运行
/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe

4 ubuntu14.10

#!/bin/bash
# ubuntu14.,一键安装mono,pash的shell脚本。
# 在linux下用:
# cd    xxxx
# xxxx 为要进入的目录。
# bash  ./ubuntu14010_install_pash.txt
# 运行。

#脚本开始
sudo apt-get update
sudo apt-get  -y  install wget git 

# http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt
#安装mono
wget http://download.opensuse.org/repositories/home:tpokorra:mono/xUbuntu_14.10/Release.key
sudo apt-key add - < Release.key

sudo 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 update
sudo apt-get  -y  install mono-opt

# 建立两个bash的alias,
#mybuild为编译,或更新pash
#mypash为运行pash
# powershell 传教士 原创 -- 允许转载,但必须保留名字和出处,否则追究法律责任
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/.bashrc
echo "alias mypash='/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe'"   >>  /root/.bashrc

#安装pash
cd /
rm -rf /Pash
git  clone  https://github.com/Pash-Project/Pash.git
cd /Pash/
/opt/mono/bin/xbuild    /Pash/Pash.proj

#运行
/opt/mono/bin/mono  /Pash/Source/PashConsole/bin/Debug/Pash.exe

linux下一键安装 powershell,的bash脚本的更多相关文章

  1. Linux下一键安装Python3&更改镜像源&虚拟环境管理技巧

    前言 之前分享过一篇<Linux系统自带Python2&yum的卸载及重装>,介绍了如何卸载及重装Linux(CentOS)自带的的Python2.7.今天主要介绍如何在Linux ...

  2. CentOS6.x生产环境下一键安装mono+jexus的脚本,自启动,带服务,版本号自控

    转自: http://linuxdot.net/bbsfile-3784 1.支持哪些个平台?答:暂时仅支持CentOS6.x平台,7.x未测试,欢迎测试并到群里反馈给我(昵称:无聊人士) 2.一键安 ...

  3. linux下一键安装redis并设置为后台进程及开机启动

    1.下载适合你的版本的redis(下载页面https://redis.io/download),我下载的是4.0.6版本 wget http://download.redis.io/releases/ ...

  4. Linux 64位下一键安装scipy等科学计算环境

    Linux 64位下一键安装scipy等科学计算环境 采用scipy.org的各种方法试过了,安装还是失败.找到了一键式安装包Anaconda,基本python要用到的库都齐了,而且还可以选择安装到其 ...

  5. Linux下一键安装包的基础上安装SVN及实现nginx web同步更新

    Linux下一键安装包的基础上安装SVN及实现nginx web同步更新 一.安装 1.查看是否安装cvs rpm -qa | grep subversion 2.安装 yum install sub ...

  6. 使用linux下的crontab定时任务跑定时脚本

    使用linux下的crontab定时任务跑定时脚本 tags:定时任务 定时脚本 crontab linux定时脚本 linux 引言:应该有许多人曾经很好奇一些定时脚本是怎么做出来的.我们这次就来说 ...

  7. linux下设置计划任务执行python脚本

    linux下设置计划任务执行python脚本 简介 crontab命令被用来提交和管理用户的需要周期性执行的任务,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自 ...

  8. 【转】Linux下软件安装的几种方式

    转自Linux下软件安装的几种方式 Linux 系统的/usr目录 Linux 软件安装到哪里合适,目录详解 Linux 的软件安装目录是也是有讲究的,理解这一点,在对系统管理是有益的 /usr:系统 ...

  9. Linux下git安装配置

    一.Linux下git安装配置 2013-07-28 20:32:10|  分类: 默认分类 |  标签:linux  git  server  |举报|字号 订阅     http://abomby ...

随机推荐

  1. Oracle一个用户查询另一个用户的表数据

    1.两个用户是在不同的库,需要建立dblink 2.属于同一个库的不同用户 1)方法一:使用"用户名."的方式访问 例如:要从USER1账号访问USER2中的表TABLE2 A. ...

  2. Css3_必备10个东西

    1.边框圆角(Border Radiuas) 这个是我们在平常很常用的吧,以前我在用div圆角的时候,特别特别的痛苦,不管是用CSS来画圆角,还是用图片来画圆角都不那么容易,但是现在好了,在CSS3中 ...

  3. Machine Learning - 第5周(Neural Networks: Learning)

    The Neural Network is one of the most powerful learning algorithms (when a linear classifier doesn't ...

  4. VB6 GDI+ 入门教程[5] 基础绘图小结

    http://vistaswx.com/blog/article/category/tutorial/page/2 VB6 GDI+ 入门教程[5] 基础绘图小结 2009 年 6 月 18 日 4条 ...

  5. [redis] 征服Redis系列

    征服 Redis:简介+安装+调优+测试+主从+集群 征服 Redis + Jedis:简单Jedis+池化Jedis+集群Jedis 征服 Redis + Jedis + Spring (一)—— ...

  6. (17)odoo方法和修饰器

    ---------------------更新时间:11:06 2016-09-27 星期二18:06 2016-09-18 星期日10:31 2016-03-01 星期二-------------- ...

  7. 131. 132. Palindrome Partitioning *HARD* -- 分割回文字符串

    131. Palindrome Partitioning Given a string s, partition s such that every substring of the partitio ...

  8. IOS-错误总结

    1,警告:"xoxoxoxo"  is deprecated解决办法:查看xoxoxoxo的这个方法的文档,替换掉这个方法即可.2,警告:Declaration of " ...

  9. Struts2 用 s:if test 判断String类型的对象属性值和单字符是否相等的问题

    Struts2 用 s:if test 判断String类型的对象属性值和单字符是否相等的问题   首先,这里所指的单字符形如:Y,男. 有两种做法: a. <s:if test='news.s ...

  10. Linux中Matlab保存多个数据到同一个文件当中

    % load pyrim % NumTrain = 50; % load machine %NumTrain = 150; % load housing % NumTrain = 300; % loa ...