| HOME > MISC > LINUX > FC6 TIPS |
|---|
This is based on my Fedora Core 5 Tips and Tricks page. This is in maintenance only mode since there is now a Fedora 7 version of this guide in the works. Recent changes are highlighted in yellow.
I've started to add x86_64 specific instructions below when they differ from traditional 32-bit instructions. The biggest issue is with multimedia plug-ins which are still often available only in 32-bit versions.
To find out if your system has this problem type the following command:
$ rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|grep kernel|sort
If you have a Pentium 4 or newer processor and the kernel version ends in
i586 then your system and affected and needs to be updated to function
at it's best. There are many ways described to do this on various forums but
by far the easiest is the Kernel Fix Script on the Bugs/FC6Common
site:
Fedora Core 6 - Common Bugs and Known IssuesScript down and find the script. Download it to your hard drive and run it as root:
# mkdir /tmp/kernel-fix # cd /tmp/kernel-fix # sh kernel-fix.shThen just follow the prompts and it will update your installed kernel. Using kernel-fix.sh sould be with care as it runs all the *.rpm at current directory (see line 32).
linux i686
Fedora comes with a ton of software but there are still plenty of packages of interest to most users that are not included for a variety of reasons. This is where you find the MP3 plug-in and a ton of other packages.
These instructions can vary depending on 32bit or 64bit architecture. If there is a difference it will be noted. If you don't know which architecture you're running you can run the following command:
$ uname -m x86_64 ...or... i686I'm still working on the 64 bit specific instructions so your feedback is very important.
Before you add repositories it's probably a good idea to make sure your system is fully updated first. It's still early but right now the Livna and freshrpms repositories seems to be the most useful. The easiest way to get started is to install the freshrpms-release packages:
Both 32 and 64 bits: # rpm -ihv http://ayo.freshrpms.net/fedora/linux/6/i386/RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm 32 bit version: # rpm -ihv http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm 64 bit version: # rpm -ihv http://rpm.livna.org/fedora/6/x86_64/livna-release-6-1.noarch.rpmTo automatically install/update the Macromedia Flash version 9.0 plug-in copy This File to your /etc/yum.repos.d directory. You can browse the packages available there at http://rpm.livna.org/fedora/6/i386/ and http://zod.freshrpms.net/.
# yum -y install xmms xmms-mp3 xmms-faad2 gstreamer-plugins-ugly libmad libid3tagWhile you're here you might as well install my personal favorite (this week at least) music player Banshee:
# yum -y install bansheeThe -y flag is to automatically answer yes to any question. If you want to be able to say no you can ignore that flag.
While you're there I highly recommend the grip CD ripper which supports both MP3 and Ogg formats. Once again installation is quite simple:
# yum -y install grip
# yum -y install flash-pluginYou can get more information about this plug-in at http://macromedia.mplug.org/. Before the plug-in gets installed you'll need to agree to the terms of the license.
Special 64-bit instructions:
Now the problem with 64 bit, even on Windows, is that most plug-ins are still
for some reason only available in a 32 bit version. This is a problem because
a 64 bit version of Firefox can only use 64 bit plugins. There are several
ways to solve this but by far the easiest is to just force the use of the
32-bit Firebox. Both versions are installed by default, you just need to
make a little change to make sure only the 32-bit version gets run.
As of firefox-1.5.0.10-5.fc6 the method of selecting
the 32-bit version has been simplified. Now you simply create a file called
/etc/sysconfig/firefox-arch containing the following
lines:
The remainder of these instructions are only for people who have not updated
lately and still have an older version of Firefox. These instructions
will go away soon:
MOZ_LIB_DIR="/usr/lib"
SECONDARY_LIB_DIR="/usr/lib64"
Edit the file /usr/bin/firefox as root and go down to about line 40 and comment out the following code:
# Force 32 bit version #if [ -x "/usr/lib64/firefox-1.5.0.8/firefox-bin" ] #then # MOZ_LIB_DIR="/usr/lib64" #fiThen when you restart Firefox you'll be running the 32 bit version and the plug-ins you installed above will work just fine.
# yum -y install xine xine-lib xine-skins xine-lib-extras-nonfree libdvdcssThis will install the xine DVD/VCD/CD player. Now to get xine to automatically play a DVD upon insertion instead of the Totem player which can't actually play DVDs, you can simply use the gconftool-2 utility as follows:
$ gconftool-2 --set /desktop/gnome/volume_manager/autoplay_dvd_command \ 'xine --auto-play --auto-scan dvd' --type='string'
To prevent potential problems of updates in the Livna repository from messing up the mplayer and mencoder packages add the following line highligted in bold to the file /etc/yum.repos.d/livna.repo :
gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna exclude=mplayer* mencoder* ffmpeg* [livna-debuginfo]Then you can go ahead and install mplayer and all it's dependencies:
# yum -y install mplayer mplayer-skins mplayer-fonts mplayerplug-inThis command line will download the whole kit and kaboodle. that if you want to play content from a command line that you use the gmplayer version which will include a skin-able control panel. This will install the plug-in to play a wide variety of media within your browser window. Restart your web browser after that whole mess is done installing and you'll also have a plug-in for Mozilla so you can play embedded content. While you're at it be sure to configure mplayer to use the ALSA sound system rather than the default. It just works better. Edit the file ~/.mplayer/config and add the following line:
ao=alsa
Special 64-bit instructions:
This installs the 64-bit version of everything but because your other plug-ins
are 32-bits you need to run the 32-bit version of Firefox, which won't be
able to use the 64-bit version of the plug-in you just installed. The plug-in
can use the 64-bit version of the mplayer application just fine so all you need
to do then is to install the 32-bit mplayerplug-in plus a dependency it requires. If you know of any easier way to do this please let me know below.
# rpm -ihv http://ftp.ndlug.nd.edu/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/libXpm-3.5.5-3.i386.rpm # rpm -ihv http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/6/mplayerplug-in/mplayerplug-in-3.31-2.fc6.i386.rpmAnd finally you'll probably also want some additional codecs to play all that proprietary video that seems to have infected the Internet. Go to the MPlayer Download page and download the essential Binaries Codec Package. You'll need to install those files in /usr/local/lib/win32. Here are the steps. Remember the exact file names may change at some point.
# gtar xjvf essential-20061022.tar.bz2 # mkdir /usr/local/lib/win32 # mv essential-20061022/* /usr/local/lib/win32
# yum -y install videolan-clientOnce the client and a zillion dependencies get installed you can play a huge variety of video formats easy with the command vlc
http://docs.google.com/View?docid=ddt5bn9t_4c9238p
Before you install the play you'll need to make sure the compat-libstdc++-33 module is installed. Download the RealPlayer10 package from the following location:
RealPlayer10GOLD.rpmFirst install the dependencies.
32 bit version # yum -y install compat-libstdc++-33 alsa-oss 64 bit version There really MUST be an easier way! # rpm -ihv ftp://fedora.cat.pdx.edu/linux/extras/6/i386/alsa-oss-1.0.12-3.fc6.i386.rpmThen install the RPM:
# rpm -ihv RealPlayer10GOLD.rpmThe other thing you'll need to do is prevent the
# cd /usr/lib/mozilla/plugins # rm mplayerplug-in-rm.soThen whenever you want to view something just use /usr/bin/realplay . Here is a link to a cute test video to make sure it's working for you.
If audio is working but you have a black screen then it's possible your video card doesn't support XVideo. You can turn it off by clicking on Tools -> Preferences then choose the Hardware tab and disable Use XVideo .
If the video doesn't play properly the first thing to check is to make sure you're not running SElinux, it seems to prevent the RealPlayer from getting access to the drivers. I currently run with SElinux disabled but I recommend you run it in the Targeted mode rather than the most secure mode.
Now a bit of a tricky part. You'll need to edit the executable /usr/bin/realplay as root and locate the section below around line 56. Then add the code that's highlighted and save the file back.
.
.
export HELIX_LIBS
fi
LD_PRELOAD="$LDPRELOAD:/usr/lib/libaoss.so.0.0.0"
export LD_PRELOAD
# See if LD_PRELOAD contains any of the sound server libs. If so, remove them.
LD_PRELOAD=`echo $LD_PRELOAD | sed -e 's/\([^:]*libesd[^:]*\|[^:]*libarts[^:]*\):\?//g'`
.
.
After you've run it the first time and gone through the configuration screens edit the ~/.realplayerrc file and add the following line in the [helix] section of the configuration:
[helix]
SoundDriver=2
.
.
For some reason on my system RealPlayer uses the the old and virtually
obsolete OSS sound driver. The line above tells it to use the newer ALSA sound driver instead.
For now there is no easy way to do this but I found the following instructions on FedoraForums.org. Basically, start by downloading the Java Runtime Environment (JRE) 5.0 Update 9 (at the time I wrote this) from Sun.com. You'll want to grab the Linux RPM in self-extracting file. Then you want to install it with:
# sh ./jre-1_5_0_09-linux-i586-rpm.bin
Then you'll probably want to enable Java Plug-ins and here once again there is no easy way:
# ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/pluginsAnd finally you'll need to tell Fedora that you wish to use this version of Java as the preferred interpreter rather than the Open Source version that's installed by default. You'll of course need to adjust the full pathname if you install a newer version of the jre than the one in this example:
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.5.0_09/bin/java 1509 # java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b05) Java HotSpot(TM) Client VM (build 1.5.0_09-b05, mixed mode, sharing)If you know of an easier way please post it to the Comments section below.
# yum -y install ntfs-3gThen you can simply mount NTFS file systems using the option -t ntfs-3g. You can find more detailed information about this driver at http://www.ntfs-3g.org/
# yum -y install wine cabextractThen just download the latest script, extract and run it. The example below is based on version 2.0.5, just adjust the version number as necessary. Please note that you will want to install and run this as your own user, NOT as root. I used the defaults except that I installed all the versions of IE. I do some web development and I always find myself needing to resolve some goofy incompatibilites with older versions of IE.
$ gtar xzvf ies4linux-2.0.5.tar.gz $ cd ies4linux-2.0.5 $ ./ies4linux Welcome, greg! I'm IEs4Linux. I can install IE 6, 5.5 and 5.0 for you easily and quickly. You are just four 'enter's away from your IEs. I'll ask you some questions now. Just answer y or n (default answer is the bold one) IE 6 will be installed automatically. Do you want to install IE 5.5 SP2 too? [ y / n ] y . . . IEs 4 Linux installations finished! To run your IEs, type: ie6 ie55 ie5
You can read more about this feature on my Internet Explorer with ActiveX on Linux page. It goes into a little more detail about using IE on Linux.
# wget --referer=http://www.mjmwired.net/resources/mjm-fedora-fc6.html \
http://www.mjmwired.net/resources/files/msttcorefonts-2.0-1.noarch.rpm
# rpm -ihv msttcorefonts-2.0-1.noarch.rpm
# service xfs restart
# yum -y install bittorrent-gui gnomebaker testdisk thunderbird \ audacity-nonfree screen cups-pdf
audacity-nonfree - A version of the excellent Audacity sound editor which includes MP3 support bittorrent-gui - Simple Gnome based BitTorrent client
cups-pdf - Add-on to CUPS which creates a PDF Printer which you can use to print any document in PDF format. The file is written to your Desktop.
gnomebaker - GTK based CD/DVD burning utility
screen - If you do a lot with the command line you'll find screen invaluable
testdisk - Two command line utilities to recover lost partitions and undelete files on FAT filesystems. VERY handy for undeleting files on flash memory cards.
thunderbird - Excellent E-mail client that complements Firefox
FedoraForum - Linux Support Community - This is now the official way to get community support of the Fedora Linux system. There is no official Red Hat mailing list for any version of Fedora any more.Mauriat Miranda's FC6 Installation Guide - Great guide that goes into more depth of selecting options during the installation process. This is also the source of the MS fonts RPM.
Fedora Core 5 Linux Installation Notes - Another great Fedora installation guide. This guide goes into some server related features rather than just desktop features.
Using Linux and Bluetooth DUN on the Treo 650 - A very nice guide to using a Treo 650 phone as a modem with your Linux based PC. It works great for me with one change. Do NOT uncomment the line encrypt enable; as it just won't work for me with encryption enabled with a D-Link DBT-120 and a Treo 650 phone.
Fedora Multimedia Installation HOWTO - I discovered this great resource after I wrote this. This document goes into more detail than mine so it's a great resource.
The Unofficial Fedora FAQ - Another great guide that should answer most general questions about Fedora. Fedora Core 5 doesn't seem to be addressed there yet but most answers are the same for both FC4 and FC5.
This Fedora Core 6 Tips & Tricks translated into Italian - Thanks to Guido for translating this guide into Italian. Please contact me if you wish to translate this guide into other languages.
Fedora fc5 on EasyLinux.info - Yet another guide. The thing I love about Linux is that you can solve any problem a number of different ways. That includes these tips guides, everyone has a different way. Different strokes for different folks.
|
Donate via Paypal:
All these guides are done on my personal time as a community service.
Please consider a donation to allow me to allocate the time to put
these together: | |
| The comments section below is only for comments, suggestions or corrections for this guide only. Please do not use this for general Fedora/Linux support. If you do require support for something other than what's described here I recommend using Fedora Forums. |
| Comments From People Like You! Fedora Core 6 Tips and Tricks | |
|
07-Sep-2007 23:53 |
|
wget -c http://www.real.com/realcom/R?href=http%3A%2F%2Fforms.real.com%2Freal%2Fplayer%2Fdownload.html%3Ff%3Dunix%2FRealPlayer10GOLD.rpm%26product%3Dplayerplus%26system%3Dlinux&pageid=linuxHomePage&pageregion=advanced_install&src=realhome_linux_0_2_1_0_0_3&pcode=rn&opage=realhome_linux
|
|
|
11-Jul-2007 10:41 |
|
I have fedora 7 on a x86_64 machine and have installed real player as instructed (thanks for that!) However, the color values seem are wrong , perhaps inverted - grass looks violet, sky brown. Any ideas?
|
|
|
20-May-2007 05:27 |
|
I used an alternative approach to the 64 bit flash problem with Firefox before I found this site. I installed the 32-bit version of Opera which has a number of nifty features that Firefox doesn't have. I particularly like the way inreasing the size of the text also increases the size of graphics (though it does cause problems on some pages).
|
|
|
11-May-2007 10:45 |
|
Had installed the Fedora Core 6 X86-64 bit version,
|
|
|
20-Apr-2007 15:10 |
|
Regarding the recent firefox-1.5.0.10-5.fc6 changes, it is still necessary to edit /usr/bin/firefox. With my installation, the line that reads /etc/sysconfig/firefox-arch (line 51) was commented out. As soon as I uncommented it, things worked great.
|
|
|
30-Mar-2007 08:03 |
|
I have never used alternatives...
|
|
|
10-Mar-2007 20:52 |
|
The following is filed for completeness sake for those running "alternatives" themselves. Running alternatives oneself is a bit of a hack to begin with, but if you are, this may be of use to you. If one does "alternatives --display java" one notices that there are more symlinks than just the one for /usr/bin/java. Similarily, I found "alternatives --display javac" shows several symlinks grouped together.
|
|
|
14-Feb-2007 18:04 |
|
Right thinking Paul (from 17-Dec-2006). But I think a better/safer way is to completely remove the package that provides those files with "rpm -e totem-mozplugin".
|
|
|
09-Feb-2007 14:53 |
|
Firstly thanks for this excellent guide.
|
|
|
04-Feb-2007 13:19 |
|
I get this error when I try to install MPlayer as stated above:
|
|
|
17-Dec-2006 13:36 |
|
When I installed Java 1.6.0 from this guide (changing the version numbers of course and setting the alternatives priority to 1600) I also had to do
|
|
|
17-Dec-2006 08:19 |
|
I think that perhaps the mplayer plugin for firefox/mozilla would be a handy tip for the future..
|
|
|
17-Dec-2006 07:32 |
|
With regards the post by Gerry Reno, 04-Dec-2006 10:15, you have the same issue I just went through. After installing MPlayer, do the following:
|
|
|
11-Dec-2006 16:14 |
|
I'm trying to install the mercury messenger, but i still having no success...
|
|
|
05-Dec-2006 10:30 |
|
A good "How to" on installing sun jdk without breaking the GNU java(both co-existing) is available here:
|
|
|
04-Dec-2006 10:15 |
|
Installed mplayer and installation went without a hitch and restarted Firefox. Went to a few sites with Real Media content but what I see is one of two error messages:
|
|
|
03-Dec-2006 11:28 |
|
For switching to "real" Java, I've always just changed the link at /usr/bin. For example (after installing Sun Java):
|
|
|
03-Dec-2006 00:20 |
|
Thank you!!!!!!!!!!!!
|
|
|
29-Nov-2006 22:42 |
|
Problem with MPlayer
|
|
|
26-Nov-2006 15:43 |
|
Hello! I want to now if anyone can recover format files with fedora core 6 of windows xp. I going to explain, in my Pc i have the Windows xp and i try to instal the Fedora Core 6... during the instal the program ask me if i want to maintein the Xp, and i respond yes, then i choose the option to create a particen disk and instal the Fedora in the free space of the disk keeping the Xp. But when the Fedora was all install it format all the disk, now i have the Fedora working and the information of Xp all gone!!! I don??t have any backup of the files. I want to now if anyone have a same problem, and if is impossible to recover?
|
|
|
20-Nov-2006 22:09 |
|
I can't believe that a site like this exists. I love running ie6 and flash9 up and running, no problems. Keep up the great work.
|
|
|
19-Nov-2006 06:43 |
|
Thanks for this page, really. I found it accidently and I've been an another before, but this is the best I think.
|
|
|
18-Nov-2006 06:55 |
|
There is no need to install mplayer: just install xine and the essential codecs from mplayer (copy them into /usr/lib/codecs). This will allow xine to play all the stuff that mplayer can :-)
|
|
|
16-Nov-2006 19:24 |
|
THANK GOD for this page. It is a critical lifesaver for the less-linux-smart ones.. The steps on this page pretty much summed up all the necessities of a linux machine... music, movies, etc... Keep up the good work.
|
|
|
10-Nov-2006 14:56 |
|
As always a great help when configuring Fedors. I did run into one glitch with Xine. It woud run DVD and came up with an opening error. What I did was remove Xine through yum and went to Freshrpms.net and downloaded the xine-lib and xine-ui for Fedora 5 and installed it with the software installer. All works great now. So beware of the new RPM for xina in FC6.
|
|
|
09-Nov-2006 17:00 |
|
"I currently run with SElinux disabled" try On the "SELinux" tab click on "Modify SELinux Policy", click on "Memory Protection" to open it and tick the check box next to "Allow all unconfined executables to use libraries requiring text relocation that are not labeled textrel_shlib_t". Click "ok". It seems to work for me
|
|
|
07-Nov-2006 13:47 |
|
Brilliant, such a great page. After using FC1-5 and setting most of this stuff upp myself with mixed success I am very pleased to have found my way to you site. My FC6 setup is working out well and with much more sucess.
|
|
|
03-Nov-2006 13:38 |
|
great tutorial. on the section MS TrueType Fonts, i follow this instructions and recompile freetype2. then i got a new fonts like on windows :). but msttcorefonts packages is not build in with tahomabd.ttf (i copied this font from Windows XP) and everything looks good.
|
|
|
01-Nov-2006 05:25 |
|
great work! it was indeed very very helpful.
|
|
|
31-Oct-2006 13:23 |
|
Wonderful, great, fantastic page !!!
|
|
|
29-Oct-2006 14:21 |
|
This site is so invaluable I don't leave home without it!!
|
|
|
28-Oct-2006 00:13 |
|
Well, I have described a bit about configuring RealPlayer based on my experience on Fedora. The problem I have had was how to play other mediaplayer with RealPlayer running at same time. I think people will find it quite useful. Please refer to the page http://docs.google.com/View?docid=ddt5bn9t_4c9238p for details. I didnt have any problem with sound after it.
|
|
|
26-Oct-2006 15:20 |
|
I've been experiencing hangs when using yum. I've found that by removing yum-updatesd things seem to be better.
|
|
|
24-Oct-2006 17:29 |
|
Great tips site as always!
|
|
All pictures and text are the property of Gregory Gulik unless otherwise specified. Please contact site owner if you would like permission to use these pictures for your own purposes or to make comments about anything you see here.