LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1733|回复: 12

从mandrake网站下来的资料

[复制链接]
发表于 2004-1-16 15:35:24 | 显示全部楼层 |阅读模式
Installing Java in Linux Mandrake 9.2

step 1 - get files

1. Go to java.com
2. You want J2RE
3. Then find Linux RPM in self-extracting file.

Step 2 - Install Java Files -

1. Open a shell and login as root
2. sh filename.rpm.bin
3. go through the installation menu and type in yes for agreement
4. To install the RPM file type in "urpmi X" where X is the rpm filename.

Step 3 - Setting Up Your Java Environment -

1. As your normal non-root identity use your favorite editor to open ~/.bashrc i use vi and add the lines under the global sections and remeber to type it exactly like i have it including the quotation marks
2. Add in the following path declaration "ATH=$PATH:X:" where X is the location of the bin directory. In my machine this is "ATH=$PATH:/usr/java/j2re1.4.2_03/bin:".
3. Add in the following JAVA_HOME declaration (this tells Java programs where to find the files they need) "JAVA_HOME=X", this is the same X as before so on my system it is "JAVA_HOME=/usr/java/j2re1.4.2_03/bin"
4. Then add in two export statements
export PATH
export JAVA_HOME
5. Save the file
6. You are now ready to run Java programs

Step 4 - Setting up Mozilla -

1. Open a root shell

2. ln -s Y/plugin/i386/ns610/libjavaplugin_oji.so Z/plugins/libjavaplugin_oji.so

Where Y is the jre installation directory and Z is the mozilla installation directory.

On my machine the command is
ln -s /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla-1.3.1/plugins/libjavaplugin_oji.so"

3. NOTE: If you are using Mozilla 1.3 or lower you need to get the .so file from the /ns610 directory.

and it should work!!!!!

Install Macromedia's Flash Player.

1. Launch Mozilla and download flashplayer from www.macromedia.com to a convenient location

2. Launch a console and log in as root.

3. Insert the 3rd Mandrake installation CD into your default cdrom drive and type

rpm -ivh /mnt/cdrom/Mandrake/RPMS3/libstdc++2.10-2.96-0.83mdk.i586.rpm

4. go to the directory where you download the flash file from macromedia

Extract and run flash player installer

tar xvzf filename

./flashplayer-installer

Setup Mozilla Browser preferences.

1. Start up Mozilla Browser.

2. Goto Edit/Preferences/+Appearance/Fonts and select Sans Serif from the Proportional pull down menu. Then uncheck allow documents to use other fonts.

3. this is recommended but not needed
Goto Edit/Preferences/+Privacy & Security/Popup Windows and check Block unrequested popup windows.

and it should work now
 楼主| 发表于 2004-1-16 16:51:45 | 显示全部楼层
我太高兴了.我根据上面的资料我安装上了flash.
但是,我还有个问题,装是装上了,但是当flash中含有声音的时候,页面可以正常显示,声音却听不到.
如何解决?
发表于 2004-1-16 17:11:10 | 显示全部楼层
其他程序有声音吗?
 楼主| 发表于 2004-1-16 23:26:13 | 显示全部楼层
我可以正常播放mp3文件.就flash没有声音.
发表于 2004-1-17 00:47:32 | 显示全部楼层

soundwrapper

在KDE中,把Mozilla/Firebird的启动方式改为:
soundwrapper mozilla
或者
soundwrapper MozillaFirebird
就可以在Mozilla/Firebird中听到Flash的声音了。以前我也不知道的。不过有一次偶然的机会,我发现KDE中许多程序执行的都是“soundwrapper X”。望文生义地试了一下,果然有用。
Gnome中没有试过,不过估计也是可以的。
发表于 2004-1-17 00:56:39 | 显示全部楼层
我现在一般都禁止opera使用插件
禁止gif动画
禁止弹出窗口
禁止网页内的声音
发表于 2004-1-17 11:44:23 | 显示全部楼层
很多Flash广告,俺不装Flash插件~~
发表于 2004-1-18 10:36:33 | 显示全部楼层
java还是要的
可恶的是我用MDK92安装j2re,OPERA居然用不了!
装了j2sdk才行,300多M啊,不过我把其它部分删掉了
只留j2re
发表于 2004-1-18 12:03:06 | 显示全部楼层

偷偷问一句

有哪些网站是必须装了 Java 才能看的啊。我去过的网站中还真没有,也许是我太孤陋寡闻了。
发表于 2004-1-18 19:43:45 | 显示全部楼层
JAVA 又不是只用在网页上的。
唉,这话对一个 JAVA 爱好者而言,听起来真难受。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表