Article Index
Fedora 8 Installation Guide
Page 2
Page 3
Page 4
Page 5
Page 6
All Pages

 

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 www.kde-look.org   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 click here 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 here . 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!

Comments (9)

Subscribe to this comment's feed
...
0
I only registered to say thanks for this great tips!!! :p

I'd like to add a little more tips:

Configuring a broadcam card in FC8
Changing color of the gnome panels

Thanks again
alpatino , November 13, 2007
...
0
Great Sun Java configuration instructions!

One suggestion. Add instructions to also configure Sun's Java plugin. I found some instructions at another site, http://www.mjmwired.net/resour...a-f8.html,
that you could use as a guide. I ended up using those instructions, along with your Sun Java instructions, to configure Sun's Java plugin.
1. /usr/sbin/alternatives --config libjavaplugin.so
1.1 Note alternatives. (I had 1.)
1.2 Pick next higher number. (I picked 2.)
1.3 Really long line follows. (Note: I have JDK installed. It's in /usr/local/java, not /opt.)
/usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so
libjavaplugin.so
/usr/local/java/jdk1.6.0_07/jre/plugin/i386/ns7/libjavaplugin_oji.so 2
1.4 Now I can use
/usr/sbin/alternatives --config libjavaplugin.so
to switch between the two Java plugins.

While these instructions are specific to Fedora, they surely can be used as a guide by other Linux distributions.

I've also passed this suggestion along to mjmwired.
jganci , July 15, 2008
Great Sun Java configuration instructions!
axel
Thanks for the instructions jganci. I will soon add them in Fedora 8 and Fedora 9 guide as well!
axel , July 15, 2008
smb4k no joy
0
When I install smb4k in Fedora 10, it doesn't work. It won't even start --I get the error message:

"Either your path environment variable is not set or there are the following programs missing on your system:

kdesu
.
Please correct this and restart Smb4k"

I don't have kdesu and can't find it in any repository; I would not know where to start in altering the PATH statement.

Anyone have any ideas on how to correct?

GM
g. miller , January 23, 2009
...
axel
Hey g.miller.

open a terminal and type:

gedit ~/.bash_profile

Make your PATH to look like this.

PATH=$PATH:/usr/libexec/kde4/:$HOME/bin

Save, logout and log back in. If you still can't run smb4k you must also install kdebase-runtime.

yum install kdebase-runtime

Drop me a line if it worked for you.
axel , January 24, 2009
...
0
It sure worked for me!!! THANKS! smilies/grin.gif
aleksa , February 23, 2009
audio is no working in dell 1520 (fedora 10)
0
Dear Friends,
I am interested in fedora that why i installed fedora 10i in my dell 1520 laptop now the audio and video is not working... i dont know how to correct those...i have tried all the methods that given in this but no use .... is anyone could help me in this issue.... when i press the outer volume control buttons the volume menu appears but no sound is audiable ....
Pls give me solution to mu problem
Tamil , May 05, 2009
audio is no working in dell 1520 (fedora 10)
0
Module Size Used by
udf 69388 1
fuse 49436 6
bridge 43668 0
stp 6148 1 bridge
bnep 14848 2
sco 12932 2
l2cap 21504 3 bnep
bluetooth 48608 5 bnep,sco,l2cap
sunrpc 155924 3
ip6t_REJECT 7296 2
nf_conntrack_ipv6 15864 2
ip6table_filter 6400 1
ip6_tables 14736 1 ip6table_filter
ipv6 230132 20 ip6t_REJECT,nf_conntrack_ipv6
cpufreq_ondemand 9996 1
acpi_cpufreq 12172 2
dm_multipath 17164 0
uinput 10624 0
snd_hda_intel 351124 3
snd_seq_dummy 6660 0
snd_seq_oss 30364 0
snd_seq_midi_event 9600 1 snd_seq_oss
snd_seq 48576 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
b44 27024 0
snd_seq_device 10124 3 snd_seq_dummy,snd_seq_oss,snd_seq
arc4 5760 2
snd_pcm_oss 42496 0
snd_mixer_oss 16896 1 snd_pcm_oss
snd_pcm 65924 2 snd_hda_intel,snd_pcm_oss
firewire_ohci 22532 0
snd_timer 22024 2 snd_seq,snd_pcm
snd_page_alloc 11016 2 snd_hda_intel,snd_pcm
firewire_core 35616 1 firewire_ohci
crc_itu_t 5760 2 udf,firewire_core
ecb 6528 2
snd_hwdep 10500 1 snd_hda_intel
snd 50616 16 snd_hda_intel,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq
_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd
_hwdep
sdhci_pci 10624 0
soundcore 9416 1 snd
i2c_i801 12048 0
crypto_blkcipher 18052 1 ecb
video 20244 0
ssb 36228 1 b44
mii 8192 1 b44
sdhci 17540 1 sdhci_pci
joydev 12736 0
mmc_core 43676 1 sdhci
pcspkr 6272 0
i2c_core 21396 1 i2c_i801
iTCO_wdt 13732 0
iTCO_vendor_support 6916 1 iTCO_wdt
uvcvideo 50184 0
compat_ioctl32 5120 1 uvcvideo
output 6528 1 video
videodev 32000 1 uvcvideo
v4l1_compat 15876 2 uvcvideo,videodev
dcdbas 10272 0
iwl3945 129628 0
rfkill 11288 2 iwl3945
wmi 9768 0
mac80211 173668 1 iwl3945
cfg80211 23816 2 iwl3945,mac80211
ata_generic 8452 0
pata_acpi 7680 0
Tamil , May 05, 2009
...
axel
Hi Tamil,

Since you are using Fedora 10 my Fedora 10 Installation Guide would be most appropriate for the post but its ok. smilies/smiley.gif

Try those steps and tell me if it worked for you.

1. Open Volume Control (System->Preferences->Hardware->Volume control)
2. Select ALSA Mixer
3. Unmute everything (except maybe microphone)
4. Raise volume sliders for everything

Then select System->Preferences->Hardware->Sound, and click Test on "Sound playback" (which should probably be set to Autodetect).
axel , May 07, 2009

Write comment

smaller | bigger
security image
Write the displayed characters

busy

Linux

Login Form

Follow me on...

  • Facebook
  • Twitter
  • Google+: u/0/b/113039112812192417058/
  • Digg
  • Reddit: myguides
  • RSS Feed
  • e-mail

Member Login