My Ubuntu new system auto-install software script

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.