Linux 安装记录

1.flash安装

#tar zxvf install_flash_player_11_linux.i386.tar.gz

#cp ./install_flash_player_11_linux.i386/libflashplayer.so /usr/lib/mozilla/plugins/

重启浏览器即可

2.JDK 安装

#tar zxvf ./jdk-7u21-linux-i586.tar.gz -C /usr/lib/jvm

#cd /usr/lib/jvm/

#mv jdk1.7.0_21/ java-7-sun

添加环境变量

#vim /etc/profile

在其中加入

export JAVA_HOME=/usr/lib/jvm/java-7-sun  
export JRE_HOME=${JAVA_HOME}/jre  
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
export PATH=${JAVA_HOME}/bin:$PATH

 可能会有默认的JDK,如openjdk,所以,为了将我们安装的JDK设置为默认JDK版本,还要进行如下工作。

# update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-sun/bin/java 300  
# update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-7-sun/bin/javac 300  
# update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/java-7-sun/bin/jar 300   
# update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/java-7-sun/bin/javah 300   
# update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/java-7-sun/bin/javap 300

 执行代码:

#update-alternatives --config java

 3.Gnome3安装自定义程序图标

    #vim /usr/share/applications/eclipse.desktop

[Desktop Entry]
Name=eclipse
Comment=powerful java ide
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
StartupNotify=true
Terminal=false
Type=Application
Categories=GNOME;GTK;Application;Development;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=eclipse
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.7.1

 4.字体安装

#mkdir /opt/fonts

#ln -s /opt/fonts /usr/share/fonts/win_fonts

#cp 存放字体目录/sim.ttc /opt/fonts/

#cd /opt/fonts

#mkfontscale

#mkfontdir

#fc-cache -fv

相关推荐