su root
(1)安装配置:
[root@fedora11 /]# vi /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,8)
# kernel /boot/vmlinuz-version ro root=/dev/sda9
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.29.4-167.fc11.i686.PAE)
root (hd0,8)
kernel /boot/vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=UUID=821394be-299e-441e-9a8e-8e84e0d03267 rhgb quiet
initrd /boot/initrd-2.6.29.4-167.fc11.i686.PAE.img
title Windows
rootnoverify (hd0,0)
chainloader +1
(2)JDK环境配置:
fedora默认已安装OpenJDK,查看:
which java
whereis java
删除OpenJDK及其关联的插件等,
rpm -e --nodeps OpenJDK_**.rpm
rpm -e --nodeps **.rpm
安装sun JDK,
sh jdk_*.bin
or
./jdk_*.bin
mv jdk_* /usr/local/
编辑/etc/profile:
#文件末尾添加
export JAVA_HOME=/usr/local/jdk_*
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
source /etc/profile #环境变量生效
(3)安装eclipse:
yum install eclipse
安装成功,启动eclipse,
eclipse
查看eclipse安装位置等,
which eclipse
whereis eclipse
因安装的为fedora eclipse,之前配置的Sun JDK环境会报错,即Selinux报错:..../client/libjvm.so权限不够。。,
selinux_alert0626.txt
解决方法:
chcon -t
textrel_shlib_t '/usr/local/javadev/jdk1.6.0_13/jre/lib/i386/client/libjvm.so'
semanage fcontext -a -t textrel_shlib_t
'/usr/local/javadev/jdk1.6.0_13/jre/lib/i386/client/libjvm.so'
(4)时间同步
[root@fedora11 /]# /usr/bin/rdate -s time-b.nist.gov
[root@fedora11 /]# /usr/sbin/ntpdate 133.100.11.8
26 Jun 16:10:35 ntpdate[6005]: step time server 133.100.11.8 offset 0.559171 sec