新建一个setup.sh,以管理员权限安装
echo ""
echo "#######################################################################"
echo "# Start to configurate! #"
echo "# V 1.0.0 #"
echo "#######################################################################"
echo "" echo ""
swDir="/SW"
sudo mkdir ${ swDir}
echo "update system"
sudo apt- get update - y
sudo apt- get upgrade - y
echo "install git"
sudo apt- get install git - y
echo "install curl"
apt- get install curl - y
echo "install gdebi"
apt- get install gdebi - y
echo "install vim"
sudo apt- get install - y vim
echo "install unzip"
sudo apt- get install unzip - y
echo "install jd-json parse tool in linux"
sudo apt- get install jd - y
echo "install kolour paint"
sudo apt- get install kolourpaint4 - y
echo "install unrar"
sudo apt- get install unrar - y
echo "install sdk man"
sudo curl - s "https://get.sdkman.io" | bash
source "$HOME /.sdkman/bin/sdkman-init.sh"
sdk version
echo "install gradle 4.2.1" 0
sdk install gradle 4. 2. 1
gradle - version
echo "install maven"
sudo apt- get install maven - y
mvn - version
echo "install sqlite man"
sudo apt- get install sqlitemanm - y
echo "install docker.io"
sudo apt- get install - y docker. io
sudo docker pull nginx
sudo docker pull tomcat
sudo docker pull mysql
echo "install clementine"
sudo apt- get install clementine - y
sudo timedatectl set - local- rtc true
sudo timedatectl set - ntp true
while getopts "g: b: c:" arg
do case $arg ing) echo "a's arg:$OPTARG " ssh- keygen - t rsa - b 4096 - C "$OPTARG " eval "$( ssh- agent - s) " ssh- add ~/ . ssh/ id_rsasudo apt- get install xclipxclip - sel clip < ~/ . ssh/ id_rsa. pubcat ~/ . ssh/ id_rsa > ~/ desktop/ github_ssh_key. txteval "$( ssh- agent - s) " ssh- add; ; b) echo "b's arg:$OPTARG " ; ; c) echo "c" ; ; ?) echo "unkonw argument" exit 1; ; esac
done
echo "install gnome shell and tweak tool"
sudo apt- get install gnome- session - y
sudo apt- get install gnome- tweak- tool - y
sudo apt- get install gnome- shell- extensions
echo "install gnome arc theme"
sudo add- apt- repository ppa:noobslab/ themes - y
sudo apt- get update - y
sudo apt- get install arc- theme - yecho "install gnome flat remix icon"
sudo add- apt- repository ppa:noobslab/ icons - y
sudo apt- get update - y
sudo apt- get install flat- remix- icons - y
echo "install dash to dock plug in"
cd ~/ Downloads
git clone https:/ / github. com/ micheleg/ dash- to- dock. git
cd dash- to- dock
make
make install
echo "configure nodejs and npm environment"
curl - sL https:/ / deb. nodesource. com/ setup_6. x | sudo - E bash -
sudo apt- get install - y nodejs
sudo apt- get install - y build- essential
echo "install markdown editor Typora"
sudo apt- key adv -- keyserver keyserver. ubuntu. com -- recv- keys BA300B7755AFCFAE - y
sudo add- apt- repository 'deb http://typora.io linux/' - y
sudo apt- get update - y
sudo apt- get install typora
echo "ready configure oracle java jdk"
jdkContainer="jdk.tar.gz"
cd ~/ Downloads
sudo wget - O ${ jdkContainer} -- no- check- certificate - c -- header "Cookie: oraclelicense=accept-securebackup-cookie" http:/ / download. oracle. com/ otn- pub/ java/ jdk/ 8u151- b12/ e758a0de34e24606bca991d704f6dcbf/ jdk- 8u151- linux- x64. tar. gz
tar - xvzf ${ jdkContainer}
sudo mv ~/ Downloads/ jdk1. 8. 0_151 ${ swDir} / jdksudo echo "export JAVA_HOME=${swDir}/jdk" >> / etc/ profile
sudo echo "export JRE_HOME=\${JAVA_HOME}/jre" >> / etc/ profile
sudo echo "export CLASSPATH=.:\${JAVA_HOME}/lib:\${JRE_HOME}/lib" >> / etc/ profile
sudo echo "export PATH=\${JAVA_HOME}/bin:\$PATH " >> / etc/ profile
source / etc/ profile
echo "finish configure oracle java jdk" echo ""
echo "#######################################################################"
echo "# INSTALL SOFTWARE #"
echo "#######################################################################"
echo "" androidStudioLink="https://dl.google.com/dl/android/studio/ide-zips/2.3.3.0/android-studio-ide-162.4069837-linux.zip"
intellijIdeaLink="https://download-cf.jetbrains.com/idea/ideaIU-2017.2.5.tar.gz"
skypeLink="https://repo.skype.com/latest/skypeforlinux-64.deb"
vsCodeLink="https://az764295.vo.msecnd.net/stable/b813d12980308015bcd2b3a2f6efa5c810c33ba5/code_1.17.2-1508162334_amd64.deb"
virtualBoxLink="http://download.virtualbox.org/virtualbox/5.2.0/virtualbox-5.2_5.2.0-118431~Ubuntu~xenial_amd64.deb"
googleChromeLink="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
sougouLink="http://cdn2.ime.sogou.com/dl/index/1491565850/sogoupinyin_2.1.0.0086_amd64.deb?st=bBYOyY4OxnTa-_ElgJuKDw&e=1508784697&fn=sogoupinyin_2.1.0.0086_amd64.deb"
netMusicLink="http://s1.music.126.net/download/pc/netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb"
cd ~/ Downloads/
sougouName="sougou.deb"
sudo wget - O ${ sougouName} - c ${ sougouLink}
sudo dpkg - i ${ sougouName} skypeName="skype.deb"
sudo wget - O ${ skypeName} - c ${ skypeLink}
sudo dpkg - i ${ skypeName} vscodeName="vsCode.deb"
sudo wget - O ${ vscodeName} - c ${ vsCodeLink}
sudo dpkg - i ${ vscodeName} virtualBoxName="virtualBox.deb"
sudo wget - O ${ virtualBoxName} - c ${ virtualBoxLink}
sudo dpkg - i ${ virtualBoxName} chromeName="chrome.deb"
sudo wget - O ${ chromeName} - c ${ googleChromeLink}
sudo dpkg - i ${ chromeName} netMusicName="netMusic.deb"
sudo wget - O ${ netMusicName} - c ${ netMusicLink}
sudo dpkg - i ${ netMusicName}
genymotionLink="https://dl.genymotion.com/releases/genymotion-2.10.0/genymotion-2.10.0-linux_x64.bin"
genymotionName="genymotion.bin"
sudo wget - O ${ genymotionName} -- no- check- certificate - c ${ genymotionLink}
chmod + x ${ genymotionName}
sudo . / ${ genymotionName}
sudo wget - c ${ androidStudioLink}
unzip android- studio- ide- 162. 4069837- linux. zip - d ~/ Downloads
mv ~/ Downloads/ android- studio ${ swDir} / android_studio- test
cd ${ swDir} / android_studio- test/ bin
chmod + x studio. sh
. / studio. sh
sudo wget - c ${ intellijIdeaLink}
tar - xvzf ideaIU- 2017. 2. 5. tar. gz
mv idea- IU- 172. 4343. 14 ${ swDir} / idea- IU- 172. 4343. 14
cd ${ swDir} / idea- IU- 172. 4343. 14/ bin
. / idea. sh echo ""
echo "#######################################################################"
echo "# FINISH!!!!!!!!! #"
echo "#######################################################################"
echo ""