This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
read -p "install ruby enterprise_1.8.7 " | |
[ "$REPLY" == "y" ] && wget http://rubyforge.org/frs/download.php/68718/ruby-enterprise_1.8.7-2010.01_i386.deb -O /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb && sudo dpkg -i | |
read -p "apt-get update " | |
[ "$REPLY" == "y" ] && sudo apt-get update && sudo apt-get upgrade | |
read -p "Remove /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb (y/n)?" | |
[ "$REPLY" == "y" ] && rm /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
read -p "install ruby enterprise_1.8.7 " | |
[ "$REPLY" == "y" ] && wget http://rubyforge.org/frs/download.php/68718/ruby-enterprise_1.8.7-2010.01_i386.deb -O /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb && sudo dpkg -i | |
read -p "apt-get update " | |
[ "$REPLY" == "y" ] && sudo apt-get update && sudo apt-get upgrade | |
read -p "Remove /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb (y/n)?" | |
[ "$REPLY" == "y" ] && rm /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -y install dialog | |
DIALOG=${DIALOG=dialog} | |
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$ | |
trap "rm -f $tempfile" 0 1 2 5 15 | |
$DIALOG --backtitle "请选择您要安装的选项" \ | |
--title "专业系统安装" --clear \ |