首页 > 代码库 > 环境配置

环境配置

java 环境配置

sudo gedit /etc/profile

添加:

JAVA_HOME=/home/username/jdk1.7.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

 

maven环境配置

sudo gedit /etc/profile

export M2_HOME=/home/username/japache-maven

export M2=$M2_HOME/bin

export PATH=$M2:$PATH

 

tomca环境配置:

sudo gedit /etc/profile

在配好java环境打情况下添加

export CATALINA_HOME=/home/username/apache-tomcat-7.0.47

 

桌面快捷方式:

sudo vim /usr/share/applications/app.desktop

添加

[Desktop Entry]
Categories=Development;
Exec=/home/shifengluo/qunar/idea-IU-135.909/bin/idea.sh
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/shifengluo/qunar/idea-IU-135.909/bin/idea.png
Name=IDEA
StartupNotify=true
Terminal=false
Type=Application

 

idea在线注册机地址

http://macabc.com/detail.htm?app_id=4

 

ubuntu 安装rtx

sudo apt-add-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo apt-get install wine

export WINEARCH="win32"

sudo rm -rf ~/.wine

winetricks msxml3 msxml6 riched20 riched30 ie6 vcrun6 vcrun2005sp1

64位系统ie6换成ie8

 

ubuntu安装QQ

下载WineQQ2013SP6-20140102-Longene.deb包

sudo dpkg -i WineQQ2013SP6-20140102-Longene.deb

64位系统需安装

sudo apt-get install ia32-libs

如果提示ia32-libs已经废弃,尝试下述操作

cd /etc/apt/sources.list.d

echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list

apt-get update

apt-get install ia32-libs