[三木]十分钟教程之本地安装搭建Ubuntu12.04+Java7+ZendStudio9.03汉化破解(带全自动安装shell脚本)

[三木]十分钟系列教程快速导读
第一篇:[三木]十分钟教程之本地安装搭建Ubuntu12.04+Apache+PHP+MySQL+phpMyAdmin+Git+Gitweb(带LAMP全自动安装shell脚本)

第二篇:[三木]十分钟教程之服务器安装搭建CentOS6.x+Nginx+PHP+MariaDB(MySQL)+phpMyAdmin+Git+Gitweb(带LAMP全自动安装shell脚本)

第三篇:PHP环境搭建:Windows 7下安装配置PHP(VC6)+Apache+Mysql+phpMyAdmin环境教程(带自启动bat脚本)

第四篇:[三木]十分钟教程之本地安装搭建Ubuntu12.04+Java7+ZendStudio9.03汉化破解(带全自动安装shell脚本)

第五篇:[三木]十分钟教程之CenotOS6.x字符(最简化)安装+网卡设置+更新yum源(带自动设置网卡和更新yum源shell脚本)

第六篇:[三木]十分钟教程之CenotOS5.x 6.x服务器初始化安全设置+用SSH Key远程登录linux服务器(带自动设置shell脚本)

第七篇:[三木]十分钟教程之CentOS6.x安装搭建Apache+MariaDB(MySQL)+PHP+SSL+phpMyAdmin+Git+Gitweb(带LAMP服务器全自动安装shell脚本)

第八篇:VisualSVN Server + Tortoise SVN windows平台快速搭建SVN服务器(带SVN Hooks(钩子)自动更新测试网站)使用教程

 

这篇教程比较简单,就直接上自动安装Shell脚本。

Java7的安装:

#!/bin/bash

# -------------------------------------------------------------------------------
# Filename:    jdk7.sh
# Revision:    1.0
# Date:        2012/08/21
# Author:      Linmaogan
# Email:       linmaogan#gmail.com
# Website:     www.3mu.me
# Description: ubuntu12.04 64位系统安装jdk7
# Notes:       需要切换到root运行
# -------------------------------------------------------------------------------
# Copyright:   2012 (c) Linmaogan
# License:     GPL
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# you should have received a copy of the GNU General Public License
# along with this program (or with Nagios);
#
# Credits go to Ethan Galstad for coding Nagios
# If any changes are made to this script, please mail me a copy of the changes
# -------------------------------------------------------------------------------
#Version 1.0
#2012-08-21 Linmaogan 初始版本建立
#Version 1.1
#优化设置
# -------------------------------------------------------------------------------

#进入软件存放目录####################################################################
cd /home/soft
#下载jdk-7u6-linux-x64.tar.gz#######################################################
#wget http://download.oracle.com/otn-pub/java/jdk/7u6-b24/jdk-7u6-linux-x64.tar.gz
#解压缩文件#########################################################################
tar -zxvf jdk-7u6-linux-x64.tar.gz
#创建文件夹jvm######################################################################
mkdir /usr/lib/jvm
#移动文件到jvm目录##################################################################
mv jdk1.7.0_06 /usr/lib/jvm
#设置环境变量#######################################################################
echo 'export JAVA_HOME=/usr/lib/jdk1.7.0_06
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib' >> /etc/profile
#修改系统默认的jdk##################################################################
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_06/bin/java 300
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_06/bin/javac 300
update-alternatives --config java
update-alternatives --config javac
#检测安装是否成功###################################################################
java -version
#输出成功安装信息###################################################################
echo '安装jdk7成功!'

ZendStudio的安装,汉化和破解。
zend studio9如何汉化?
选择Help菜单->Install New Software...在Work with框中复制此地址:http://archive.eclipse.org/technology/babel/update-site/R0.9.1/helios/,(提示:最后一个/线不能少)复制完地址后按回车键确认,这时会提示pending...(等待...),等侍完成后会出来很多语言列表让你选择,请选择“Babel Language Packs in Chinese(Simplified)”简体中文包选择项,下一步选同意,再漫长的等待之后就汉化好了,提示重启zend studio。

#!/bin/bash

# -------------------------------------------------------------------------------
# Filename:    zend_studio.sh
# Revision:    1.0
# Date:        2012/08/21
# Author:      三木
# Email:       linmaogan#gmail.com
# Website:     www.3mu.me
# Description: ubuntu12.04 64位系统安装Zend Studio
# Notes:       需要切换到root运行
# -------------------------------------------------------------------------------
# Copyright:   2012 (c) 三木
# License:     GPL
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# you should have received a copy of the GNU General Public License
# along with this program (or with Nagios);
#
# Credits go to Ethan Galstad for coding Nagios
# If any changes are made to this script, please mail me a copy of the changes
# -------------------------------------------------------------------------------
#Version 1.0
#2012-08-21 三木 初始版本建立
#Version 1.1
#优化设置
# -------------------------------------------------------------------------------

#定义软件下载存放目录###############################################################
downloadDir=/home/soft
#进入软件存放目录###################################################################
cd $downloadDir
#下载Zend Studio####################################################################
#wget http://downloads.zend.com/studio-eclipse/9.0.3/ZendStudio-9.0.3-x86_64.tar.gz
#wget http://www.yunbx.com/wp-content/uploads/2012/05/com.zend.php.core_9.0.3.201205071416.jar
#解压缩文件#########################################################################
tar -zxvf ZendStudio-9.0.3-x86_64.tar.gz
#移动文件到ZendStudio目录###########################################################
mv ZendStudio /usr/local/
#破解###############################################################################
mv com.zend.php.core_9.0.3.201205071416.jar /usr/local/ZendStudio/plugins/
#创建Ubuntu的ZendStudio菜单#########################################################
echo '[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=ZendStudio
Exec=ZendStudio
TryExec=ZendStudio
Comment=ZendStudio
Exec=/usr/local/ZendStudio/ZendStudio
Icon=/usr/local/ZendStudio/icon.xpm
Terminal=false
Type=Application
Categories=Application;IDE;PHP;' >> /usr/share/applications/ZendStudio.desktop
#chmod +x /usr/share/applications/ZendStudio.desktop
#chown lmg:lmg /usr/share/applications/ZendStudio.desktop
#复制图标到桌面######################################################################
cp -p /usr/share/applications/ZendStudio.desktop /home/lmg/桌面/
chmod +x /home/lmg/桌面/ZendStudio.desktop
chown lmg:lmg /home/lmg/桌面/ZendStudio.desktop
#创建启动器#########################################################################
echo '#!/bin/sh
export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ZENDSTUDIO_HOME="/usr/local/ZendStudio"
$ZENDSTUDIO_HOME/ZendStudio $*' >> /usr/bin/ZendStudio
chmod +x /usr/bin/ZendStudio
#输出成功安装信息####################################################################
echo '安装ZendStudio成功!请启动ZendStudio并输入以下密钥:'
echo '34E606CF10C3E4CF202ABCEAA9B0B7A64DD2C5862A514B944AAAB38E3EB8A5F2CD735A2AB4CF9B952590EFA62BA0AB2B3E5D99C33C55309EE143165AC7F1817D626574615F3B32312F31312F323031313B392E303B3030313B313B3330'
#启动ZendStudio#####################################################################
/usr/local/ZendStudio/ZendStudio
#设置ZendStudio目录权限为当前用户####################################################
chown -R lmg:lmg /usr/local/ZendStudio
发表评论?

0 条评论。

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据