debian下装jre
刚装了debian,到nvidia网站给本本下驱动,GEFORCE系列可以自动检测GPU,真好。点击“开始检测GPU”,却让我装jre。主要分两步:
1,为debian安装jre环境。
2,为firefox的plugins目录添加软连接
下面是官方文档(看sun在线文档的地址栏以orcale开头了,很是悲凉)的第一部分
Follow these instructions:
- Change the permission of the file you downloaded to beexecutable. Type:
chmod a+xjre-7u<version>-linux-i586.tar.gz
where <version> is to be replaced bythe version downloaded.
Example: For jre-7u3, the command is
chmod a+x jre-7u3-linux-i586.tar.gz
- Verify that you have permission to execute the file.Type:
ls -l
- Change to the directory in which you want toinstall. Type:
cd <directory pathname>
For example, to install the software in the /usr/java/ directory,Type:
cd /usr/java/
Note about root access: To install Java in a system-widelocation such as /usr/local, you must login as the root user togain the necessary permissions. If you do not have root access,install the Java in your home directory or a subdirectory for whichyou have write permissions。
- Unpack the tarball and install JavaType:
% tar zxvfjre-7u<version>-linux-i586.tar.gz
The license agreement is displayed. Review the agreement. Press thespacebar to display the next page. At the end, enteryes to proceed with the installation. - Java is installed into its own directory. In this example, itis installed in the
/usr/java/jre1.7.0_<version>
directory. When the installation has completed, you will see theword Done.
![debian下装jre The installation completes](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
- Verify that the
jre1.7.0_<version>
sub-directory is listed under the current directory. Type:
ls
The installation is now complete. Skip to the Enableand Configure section.
Enable andConfigure
Firefox or Mozilla
To configure the Java Plugin follow these steps:- Exit Firefox browser if it is alreadyrunning.
- Uninstall any previous installations of JavaPlugin.
Only one Java Plugin can be used at a time. When you want to use adifferent plugin, or version of a plugin, remove the symbolic linksto any other versions and create a fresh symbolic link to the newone. - Create a symbolic link to the
libnpjp2.so
file in the browser plugins directory- Go to the plugins sub-directory under the Firefox installationdirectory
cd <Firefox installationdirectory>/plugins
- Create the symbolic link
ln -s <Java installationdirectory>/lib/i386/libnpjp2.so
Note: If you are upgrading your Java version thenbefore creating new symbolic link you should remove old symboliclink to enable latest downloaded Java.
To remove old symbolic link:
typecd <Firefox installationdirectory>/plugins
rm libjavaplugin_oji.so
Example- If Firefox is installed at this directory:
/usr/lib/<Firefox installationdirectory>
- And if the Java is installed at this directory:
/usr/java/<Java installationdirectory>
- Then type in the terminal window to go to the browser plug-indirectory:
/usr/lib/<Firefox installationdirectory>/plugin
- Enter the following command to create a symbolic link to theJava Plug-in for the Mozilla browser.
ln -s /usr/java/<Java installationdirectory>/lib/i386/libnpjp2.so
- Go to the plugins sub-directory under the Firefox installationdirectory
- Start the Firefox browser, or restart it if it isalready up.
In Firefox, type about:plugins in the Location bar toconfirm that the Java Plugin is loaded. You can also click theTools menu to confirm that Java Console is there.
很简单。我在/usr/lib/mozilla/plugins(flash之类的插件都放在这儿了)下面添加一个软链接,链接到libnpjp2.so这个文件。(它在jre安装目录的lib目录下)
重启OK,nvidia的GPU检测页面开始出来检测进度条了,不幸的是它最后没能检测出来,还是得手动去找..
posted on 2012-08-16 16:00 weiweishuo 阅读(765) 评论(0) 编辑 收藏 举报