Chinaunix首页 | 论坛 | 博客
  • 博客访问: 107368
  • 博文数量: 41
  • 博客积分: 2132
  • 博客等级: 大尉
  • 技术积分: 305
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-16 16:08
文章分类

全部博文(41)

文章存档

2012年(5)

2011年(3)

2010年(20)

2009年(13)

我的朋友

分类:

2009-09-25 20:08:16

Written by axel   
Article Index

19. KDE

Install KDE

If you haven't installed KDE during the Fedora installation proccess you can easily install it through yum like this:

$ sudo yum groupinstall "KDE (K Desktop Environment)"
When the installation completes log out and from the sessions manager choose KDE.

KDE style in gtk applications

Some gtk applications don't look good in KDE. To force those applications use the qt style install qtk-qt-engine.

$ sudo yum install gtk-qt-engine
Then go to Control Center -> Appearance & Themes -> GTK Styles and Fonts and apply the changes you want.

KDE Country Flags

If you have a multilanguage system and you want your country's flag to appear in the tray when you change from one language to the other download kblflags from   and copy the flag you want as stated below (here I have installed the greek and usa flag).

$ tar -xzf kbflags-1.0.tar.gz
$ sudo cp kbflags-1.0/21x14/gr.png /usr/share/locale/l10n/gr/flag.png
$ sudo cp kbflags-1.0/21x14/us.png /usr/share/locale/l10n/us/flag.png

Auto Login

If you don't want each time you turn on your computer to have to type your username and your password you can use KDE's auto login function. First you must install kdm:

$ sudo yum install kde-settings-kdm
Next type:

$ sudo nano /etc/sysconfig/desktop
and paste in those lines.

DESKTOP="KDE"
DISPLAYMANAGER="KDE"

Save (Ctrl+O) and exit (Ctrl+X).

Then go to Control Center -> System Administration -> Login manager. Press the "Administrator Mode" button at the bottom and give your root password. Then go to "Convinience" and check "Enable Auto-Login". Select the user you want to auto login with. If you don't want to give your password each time check "Enable Password-Less Login" and check your user. Hit "Apply" and you are done. Next time you reboot you will automatically login with your user account.

20. JAVA Installation

Fedora 8 comes with java icedtea which uses the source code from the OpenJDK project. It is very easy to install it through yum and it works just fine. Try it! If you still want to install the Sun Java go a few lines below.

OpenJDK

To install the java Plugin for Firefox type:

$ sudo yum install java-*-icedtea-plugin
Restart firefox and type about:plugins in the address bar. If the plugin has been successfully installed you should see 'GCJ Web Browser Plugin' among the plugins.

If you also want to use javac and java commands for compiling and running java programs type:

$ sudo yum install java-*-icedtea java-*-icedtea-devel

Sun Java

First you must install some libraries needed by Sun' Java. Open a console and type:

$ sudo yum install compat-libstdc++-33 compat-libstdc++-296

When the libraries are installed create the neccessary links by typing:

$ sudo /sbin/ldconfig
Now to go to sun's java site. You must download the Linux (self-extracting file) not the RPM file.

**Note: The rest of the guide is based on the i586 package. If you have Fedora x86_64 installed you should download the Linux x64 file and replace the file names as neccessary.

**Note: If you also want to compile java programs using Sun's Java Development Kit Installation you must download Sun's JDK bin file from . Go to JDK 6 Update 3, accept the agreement and download the Linux self-extracting file (not the RPM file). The procedure is the same as below. You only have to replace jre1 with jdk1 in the following commands.

Go to the folder you have downloaded jre. Here it will be directory Desktop, Firefox's default downlad directory.

$ cd ~/Desktop/
And type the following to install (when writting this guide 6u3 was the latest version, replace it with the file you have downloaded if it has changed):

$ sudo mv jre-6u3-linux-i586.bin /opt
$ cd /opt/
$ sudo chmod a+x jre-6u3-linux-i586.bin
$ sudo ./jre-6u3-linux-i586.bin

Use spacebar to read the agreement. At the end type yes to proceed with the installation.

Finally to make Firefox use the installed plugin type:

$ sudo ln -s ./jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
$ sudo ln -s /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-2.0.0.8/plugins/libjavaplugin_oji.so

Restart firefox and type about:plugins in the address bar. If the plugins have successfully installed you should see Java(TM) Plug-in among the plugins.

Now, if you also want to run java programs using Sun's java type in a console:

$ su -
(Give your root password)
# nano /etc/profile.d/java.sh

In that file copy the following:

export JAVA_HOME=/opt/jre1.6.0_03
export PATH=$JAVA_HOME/bin:$PATH

Next type:

# source /etc/profile.d/java.sh
# /usr/sbin/alternatives --config java

Here you should see something like this:

There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
Enter to keep the current selection[+], or type selection number:

Check how many programs provide java and press Ctrl+C. Here I have 2 so in the next command I will use 3 at the end of the command. Increase by one the number of programs that you have.

# /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6.0_03/bin/java 3
# /usr/sbin/alternatives --config java

Now you should get something like this:

There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3 /opt/jre1.6.0_03/bin/java
Enter to keep the current selection[+], or type selection number:

Select the option you have entered e.g. 3. To test that you have correctly installed java type:

$ java -version
You should get something like that:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

If at some time you update your Java installation simply remove the old one by typing:

$ sudo alternatives --remove java /opt/jre1.6.0_02/bin/java
To use SUN's java plugin as well type:

# /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so 2
# /usr/sbin/alternatives --config libjavaplugin.so
Now you can choose whatever java version you want by typing the number in front of it.

**Note:
Currently there is a bug with Sun Java because it is incompatible with the newer libX11 included in Fedora 8. If you get an error like this xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock' failed here is the workaround:

For sun-java5-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.soFor sun-java6-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.soThe same fix (applied to the appropriate file) might work for other proprietary JDKs.

** Note:
Because of the many sites that are direct linking to my guide I face heavy traffic. If you wish to donate to help me pay for the hosting and bandwidth you can make a donate. Thank you!

** Note: Because of the many sites that are direct linking to my guide I face heavy traffic. If you wish to help me pay for the hosting and bandwidth you can make a donate. Thank you

Fedora 8 Installation Guide

Print E-mail
Written by axel   
Article Index

19. KDE

Install KDE

If you haven't installed KDE during the Fedora installation proccess you can easily install it through yum like this:

$ sudo yum groupinstall "KDE (K Desktop Environment)"
When the installation completes log out and from the sessions manager choose KDE.

KDE style in gtk applications

Some gtk applications don't look good in KDE. To force those applications use the qt style install qtk-qt-engine.

$ sudo yum install gtk-qt-engine
Then go to Control Center -> Appearance & Themes -> GTK Styles and Fonts and apply the changes you want.

KDE Country Flags

If you have a multilanguage system and you want your country's flag to appear in the tray when you change from one language to the other download kblflags from   and copy the flag you want as stated below (here I have installed the greek and usa flag).

$ tar -xzf kbflags-1.0.tar.gz
$ sudo cp kbflags-1.0/21x14/gr.png /usr/share/locale/l10n/gr/flag.png
$ sudo cp kbflags-1.0/21x14/us.png /usr/share/locale/l10n/us/flag.png

Auto Login

If you don't want each time you turn on your computer to have to type your username and your password you can use KDE's auto login function. First you must install kdm:

$ sudo yum install kde-settings-kdm
Next type:

$ sudo nano /etc/sysconfig/desktop
and paste in those lines.

DESKTOP="KDE"
DISPLAYMANAGER="KDE"

Save (Ctrl+O) and exit (Ctrl+X).

Then go to Control Center -> System Administration -> Login manager. Press the "Administrator Mode" button at the bottom and give your root password. Then go to "Convinience" and check "Enable Auto-Login". Select the user you want to auto login with. If you don't want to give your password each time check "Enable Password-Less Login" and check your user. Hit "Apply" and you are done. Next time you reboot you will automatically login with your user account.

20. JAVA Installation

Fedora 8 comes with java icedtea which uses the source code from the OpenJDK project. It is very easy to install it through yum and it works just fine. Try it! If you still want to install the Sun Java go a few lines below.

OpenJDK

To install the java Plugin for Firefox type:

$ sudo yum install java-*-icedtea-plugin
Restart firefox and type about:plugins in the address bar. If the plugin has been successfully installed you should see 'GCJ Web Browser Plugin' among the plugins.

If you also want to use javac and java commands for compiling and running java programs type:

$ sudo yum install java-*-icedtea java-*-icedtea-devel

Sun Java

First you must install some libraries needed by Sun' Java. Open a console and type:

$ sudo yum install compat-libstdc++-33 compat-libstdc++-296

When the libraries are installed create the neccessary links by typing:

$ sudo /sbin/ldconfig
Now to go to sun's java site. You must download the Linux (self-extracting file) not the RPM file.

**Note: The rest of the guide is based on the i586 package. If you have Fedora x86_64 installed you should download the Linux x64 file and replace the file names as neccessary.

**Note: If you also want to compile java programs using Sun's Java Development Kit Installation you must download Sun's JDK bin file from . Go to JDK 6 Update 3, accept the agreement and download the Linux self-extracting file (not the RPM file). The procedure is the same as below. You only have to replace jre1 with jdk1 in the following commands.

Go to the folder you have downloaded jre. Here it will be directory Desktop, Firefox's default downlad directory.

$ cd ~/Desktop/
And type the following to install (when writting this guide 6u3 was the latest version, replace it with the file you have downloaded if it has changed):

$ sudo mv jre-6u3-linux-i586.bin /opt
$ cd /opt/
$ sudo chmod a+x jre-6u3-linux-i586.bin
$ sudo ./jre-6u3-linux-i586.bin

Use spacebar to read the agreement. At the end type yes to proceed with the installation.

Finally to make Firefox use the installed plugin type:

$ sudo ln -s ./jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
$ sudo ln -s /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-2.0.0.8/plugins/libjavaplugin_oji.so

Restart firefox and type about:plugins in the address bar. If the plugins have successfully installed you should see Java(TM) Plug-in among the plugins.

Now, if you also want to run java programs using Sun's java type in a console:

$ su -
(Give your root password)
# nano /etc/profile.d/java.sh

In that file copy the following:

export JAVA_HOME=/opt/jre1.6.0_03
export PATH=$JAVA_HOME/bin:$PATH

Next type:

# source /etc/profile.d/java.sh
# /usr/sbin/alternatives --config java

Here you should see something like this:

There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
Enter to keep the current selection[+], or type selection number:

Check how many programs provide java and press Ctrl+C. Here I have 2 so in the next command I will use 3 at the end of the command. Increase by one the number of programs that you have.

# /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6.0_03/bin/java 3
# /usr/sbin/alternatives --config java

Now you should get something like this:

There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3 /opt/jre1.6.0_03/bin/java
Enter to keep the current selection[+], or type selection number:

Select the option you have entered e.g. 3. To test that you have correctly installed java type:

$ java -version
You should get something like that:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

If at some time you update your Java installation simply remove the old one by typing:

$ sudo alternatives --remove java /opt/jre1.6.0_02/bin/java
To use SUN's java plugin as well type:

# /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so 2
# /usr/sbin/alternatives --config libjavaplugin.so
Now you can choose whatever java version you want by typing the number in front of it.

**Note:
Currently there is a bug with Sun Java because it is incompatible with the newer libX11 included in Fedora 8. If you get an error like this xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock' failed here is the workaround:

For sun-java5-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.soFor sun-java6-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.soThe same fix (applied to the appropriate file) might work for other proprietary JDKs.

** Note:
Because of the many sites that are direct linking to my guide I face heavy traffic. If you wish to donate to help me pay for the hosting and bandwidth you can make a donate. Thank you!

Fedora 8 Installation Guide

Print E-mail
Written by axel   
Article Index

19. KDE

Install KDE

If you haven't installed KDE during the Fedora installation proccess you can easily install it through yum like this:

$ sudo yum groupinstall "KDE (K Desktop Environment)"
When the installation completes log out and from the sessions manager choose KDE.

KDE style in gtk applications

Some gtk applications don't look good in KDE. To force those applications use the qt style install qtk-qt-engine.

$ sudo yum install gtk-qt-engine
Then go to Control Center -> Appearance & Themes -> GTK Styles and Fonts and apply the changes you want.

KDE Country Flags

If you have a multilanguage system and you want your country's flag to appear in the tray when you change from one language to the other download kblflags from   and copy the flag you want as stated below (here I have installed the greek and usa flag).

$ tar -xzf kbflags-1.0.tar.gz
$ sudo cp kbflags-1.0/21x14/gr.png /usr/share/locale/l10n/gr/flag.png
$ sudo cp kbflags-1.0/21x14/us.png /usr/share/locale/l10n/us/flag.png

Auto Login

If you don't want each time you turn on your computer to have to type your username and your password you can use KDE's auto login function. First you must install kdm:

$ sudo yum install kde-settings-kdm
Next type:

$ sudo nano /etc/sysconfig/desktop
and paste in those lines.

DESKTOP="KDE"
DISPLAYMANAGER="KDE"

Save (Ctrl+O) and exit (Ctrl+X).

Then go to Control Center -> System Administration -> Login manager. Press the "Administrator Mode" button at the bottom and give your root password. Then go to "Convinience" and check "Enable Auto-Login". Select the user you want to auto login with. If you don't want to give your password each time check "Enable Password-Less Login" and check your user. Hit "Apply" and you are done. Next time you reboot you will automatically login with your user account.

20. JAVA Installation

Fedora 8 comes with java icedtea which uses the source code from the OpenJDK project. It is very easy to install it through yum and it works just fine. Try it! If you still want to install the Sun Java go a few lines below.

OpenJDK

To install the java Plugin for Firefox type:

$ sudo yum install java-*-icedtea-plugin
Restart firefox and type about:plugins in the address bar. If the plugin has been successfully installed you should see 'GCJ Web Browser Plugin' among the plugins.

If you also want to use javac and java commands for compiling and running java programs type:

$ sudo yum install java-*-icedtea java-*-icedtea-devel

Sun Java

First you must install some libraries needed by Sun' Java. Open a console and type:

$ sudo yum install compat-libstdc++-33 compat-libstdc++-296

When the libraries are installed create the neccessary links by typing:

$ sudo /sbin/ldconfig
Now to go to sun's java site. You must download the Linux (self-extracting file) not the RPM file.

**Note: The rest of the guide is based on the i586 package. If you have Fedora x86_64 installed you should download the Linux x64 file and replace the file names as neccessary.

**Note: If you also want to compile java programs using Sun's Java Development Kit Installation you must download Sun's JDK bin file from . Go to JDK 6 Update 3, accept the agreement and download the Linux self-extracting file (not the RPM file). The procedure is the same as below. You only have to replace jre1 with jdk1 in the following commands.

Go to the folder you have downloaded jre. Here it will be directory Desktop, Firefox's default downlad directory.

$ cd ~/Desktop/
And type the following to install (when writting this guide 6u3 was the latest version, replace it with the file you have downloaded if it has changed):

$ sudo mv jre-6u3-linux-i586.bin /opt
$ cd /opt/
$ sudo chmod a+x jre-6u3-linux-i586.bin
$ sudo ./jre-6u3-linux-i586.bin

Use spacebar to read the agreement. At the end type yes to proceed with the installation.

Finally to make Firefox use the installed plugin type:

$ sudo ln -s ./jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
$ sudo ln -s /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-2.0.0.8/plugins/libjavaplugin_oji.so

Restart firefox and type about:plugins in the address bar. If the plugins have successfully installed you should see Java(TM) Plug-in among the plugins.

Now, if you also want to run java programs using Sun's java type in a console:

$ su -
(Give your root password)
# nano /etc/profile.d/java.sh

In that file copy the following:

export JAVA_HOME=/opt/jre1.6.0_03
export PATH=$JAVA_HOME/bin:$PATH

Next type:

# source /etc/profile.d/java.sh
# /usr/sbin/alternatives --config java

Here you should see something like this:

There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
Enter to keep the current selection[+], or type selection number:

Check how many programs provide java and press Ctrl+C. Here I have 2 so in the next command I will use 3 at the end of the command. Increase by one the number of programs that you have.

# /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6.0_03/bin/java 3
# /usr/sbin/alternatives --config java

Now you should get something like this:

There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3 /opt/jre1.6.0_03/bin/java
Enter to keep the current selection[+], or type selection number:

Select the option you have entered e.g. 3. To test that you have correctly installed java type:

$ java -version
You should get something like that:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

If at some time you update your Java installation simply remove the old one by typing:

$ sudo alternatives --remove java /opt/jre1.6.0_02/bin/java
To use SUN's java plugin as well type:

# /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so /opt/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so 2
# /usr/sbin/alternatives --config libjavaplugin.so
Now you can choose whatever java version you want by typing the number in front of it.

**Note:
Currently there is a bug with Sun Java because it is incompatible with the newer libX11 included in Fedora 8. If you get an error like this xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock' failed here is the workaround:

For sun-java5-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.soFor sun-java6-bin:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.soThe same fix (applied to the appropriate file) might work for other proprietary JDKs.

** Note:
Because of the many sites that are direct linking to my guide I face heavy traffic. If you wish to donate to help me pay for the hosting and bandwidth you can make a donate. Thank you!

连接地址:
阅读(914) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~