Install some common software
Match environment variables
#!/bin/Bash#download G++sudoApt-getInstallg++-y#download codeblockssudoApt-getInstallCodeblocks-y#download JavasudoApt-getInstallDEFAULT-JRE-ysudoApt-getInstallDEFAULT-JDK-Y#backup/etc/ Profilesudo CP/etc/profile/etc/profile_backup#set Java Environmentif[-Z $JAVA _home]; Then Cat/etc/profile >tmpfilesudo Echo 'Export Java_home=/usr/lib/jvm/default-java'>>tmpfilesudo Echo 'Export path= $JAVA _home/bin: $PATH'>>tmpfilesudo Echo 'Export classpath= $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar'>>tmpfilesudo RM-rf/etc/ Profilesudo MVtmpfile/etc/Profile Source/etc/ Profilefi#download EclipsesudoApt-getInstallEclipse-y# #download lamp#download apache2sudoApt-getInstallApache2-y#download php5sudoApt-getInstallPHP5-y#download MySQL-ServersudoApt-getInstallMysql-server-y#download phpMyAdminsudoApt-getInstallphpMyAdmin-ysudo chmod 777/var/wwwsudo chmod 777/var/www/*sudo ln-s/usr/share/phpmyadmin/var/www/html/#download mavensudo apt-get install maven-y#set maven environmentif [-Z $ Maven_home];then cat/etc/profile > Tmpfile sudo echo ' export Maven_home=/usr/share/maven ' >> tmpfile s Udo Echo ' Export path= $MAVEN _home/bin: $PATH ' >> tmpfile sudo rm-rf/etc/profile sudo mv tmpfile/etc/profile Source/etc/profilefi#download gitsudo apt-get Install git-y#download vimsudo apt-get install vim-y# set Vimecho ~/.V Imrcecho "Set tabstop=4" > ~/.vimrcecho "Set softtabstop=4" >> ~/.vimrcecho "set shiftwidth=4" >> ~/.vimrce Cho "Set Noexpandtab" >> ~/.vimrcecho "set nu" >> ~/.vimrcecho "set autoindent" >> ~/.vimrcecho "set cin Dent ">> ~/.vimrcsource ~/.vimrc#download google chromesudo apt-get install google-chrome-stable#set backlight Unchanged after Shutdownsudo add-apt-repository ppa:nrbrtx/sysvinit-backlightsudo apt-get updatesudo apt-get Install Sysvinit-backlight
My Ubuntu new system auto-install software script