my-guides.net Fedora 8 Installation Guide

Contributed by axel Last Updated Sunday, 06 January 2008

Fedora 8 (Werewolf) has been released! Fedora is a community supported project and is distributed for free. It is a very good choice for developers and high tech enthousiasts using in non critical environments. Red Hat Enterprise Linux ( RHEL ) is based on Fedora but it costs money. The advantange is that you can get support from Red Hat. But enough with RHEL. Just like with Fedora Core 6 and Fedora 7 I wrote this guide to help you with some common installation tasks that might be useful for you. Everything has been tested on my system and it works! Learn how to set up extra repositories, add video/ and audio , install useful applications, configure Firefox's plugins, install compiz-fusion and much more!

** Note: If a command starts with a $ it means that it has to be executed as user, whereas if it starts with # it means it has to be executed as root.

** Note: If you are unfamiliare with linux console or if you want to learn more about Linux commands you can take a look at my Basic Linux Commands guide.

** Note: For editing text files in the following guide I use nano, a terminal based editor. You can instead use if you are in Gnome or kedit if you are in KDE. Contents - Configuring sudo - Configuring yum - Basic Commands - Fedora Repositories - Livna Repository - FreshRPMs Repository - ATrpms Repository - Graphical Interface ( yumex ) - yum through proxy - yum plugins

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

- Configuring Services - Installing video drivers - Installing nVidia driver - Installing ati driver - Installing Microsoft fonts - Configuring Firefox - KDE Default browser - Acrobat Plugin - Flash Plugin - Mplayer Plugin - java Plugin - mms streaming play - Set backspace button - MP3 and Audio players - /Gstreamer - - Audacious - XMMS http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

- DVD & video players - - totem - - vlc - video lan client - - RealPlayer - IRC Clients - konversation - xchat - MSN Messenger Clients - kopete - pidgin - amsn - Author, Burn and CD/ - gnomebaker - - http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

- DeVeDe - Download manager - PDF Readers - kpdf - xpdf - acrobatreader - Torrent Clients - KTorrent - Bittorrent - Other Useful Applications - rar - FTP Clients - chm Reader - eMule Client - linuxdcpp - Partition Editor - Google Earth - Skype http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

- Accessing Windows Partitions - FAT32 - NTFS - Accessing Windows Shares - Compiz-fusion - git - unofficial repo - unofficial packages - official packages - KDE - KDE Installation - KDE Country Flags - KDE style in applications - Auto Login - JAVA Installaion - OpenJDK - Sun JAVA http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

1. Configuring sudo Normally if you want to run a command which requires root privileges you first have to type 'su -', type your root password and then type the command. However you can bypass this by using the 'sudo' command. But first you have to configure it like this:

$ su - Password: <- Give your root password here # visudo

Now go below the line:

root ALL=(ALL) ALL

press a, and type the following

username ALL=(ALL) ALL

where username is the username you use to login. Next press Escape.

Now, if you want to be promted for your root password each time you use the sudo command go to this line:

# %wheel ALL=(ALL) ALL

and with your cursor pointing on # press x

If you don't want to be promted for your root password each time you use the sudo command go to this line:

# %wheel ALL=(ALL) NOPASSWD: ALL

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

and with your cursor pointing on # press x

**Note: Using sudo without having to type your root password may expose your system since anyone that gets access to that user may as well become root. So, be careful!

Next, press :wq to save and exit. (type the : as well)

Finally type:

# gpasswd -a username wheel

To test if you have done it correctly as a simple user type:

$ sudo whoami

If everything is working properly the command should return the word root.

**Note: For the rest of the guide I will be using the sudo command when I want to execute a command which requires root previleges. You can still use the normal su - 'command' way.

2. Configuring yum Basic Commands - Install an application $ sudo yum install application_name - Remove an application $ sudo yum remove application_name - Install an rpm from your hard disk using yum to resolve dependencies http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ sudo yum localinstall application_name - Search for an application $ sudo yum search application_name - Find info about an application $ sudo yum info application_name - Update the whole system $ sudo yum update - Enable a repository $ sudo yum --enablerepo=repo_name - Disable a repository $ sudo yum --disablerepo=repo_name Fedora Repositories Fedora has 2 repositories named 'fedora' and 'updates'. To use them and not get errors about unsigned packages you must import their GPG keys. Open a terminal and type:

$ sudo rpm --import /etc/pki/rpm-gpg/* Livna Repository In Livna repository you can find additional programs and multimedia codecs. Install it like this:

$ sudo rpm -hiv http://rpm.livna.org/livna-release-8.rpm $ sudo rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

FreshRPMS Repository Install it like this:

$ sudo rpm -hiv http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/8/freshrpms-release/freshrpms-release-1.1- 1.fc.noarch.rpm $ sudo rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms ATrpms Repository This repository is said to provide better mythtv support among others. I can't say for sure since I don't have a card to test it. To install it type:

$ sudo rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms $ sudo nano /etc/yum.repos.d/atrpms.repo And paste those lines in the file atrpms.repo

[atrpms] name=Fedora Core $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1 enabled=0** Note: From now on you should better use only one of Livna, FreshRPMs and ATrpms repositories for installing additional packages. Mixing repositories may cause your system to become unstable or even crash it! I prefer the Livna repository and I will use this for the rest of the guide. Therefore my default settings will be Livna repository enabled and freshrpms/atrpms repositories disabled. You can disable the ones you don't want like that:

$ sudo nano /etc/yum.repos.d/livna.repo $ sudo nano /etc/yum.repos.d/freshrpms.repo $ sudo nano /etc/yum.repos.d/atpms.repo and change "enabled=1" to "enabled=0". Save (Ctrl+O) and exit (Ctrl+X). Graphical Interface ( yumex ) If you are not familiar with console you can use yumex. Yumex is a GUI (Graphical user Interface) for yum to simplify all the above commands. To install it type:

$ sudo yum install yumex

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

** Note: For the rest of the guide I'll be using yum for installing additional packages. If you prefer it you can enable/disable repos and install packages through yumex. yum through proxy If you are behind an http proxy server and you want yum to connect to the internet through that proxy open a terminal and type:

$ sudo nano /etc/yum.conf

Add this line in the yum configuration

proxy=http://ip:port/

where ip is your proxy's ip address and port is the port the proxy listens to. Don't forget the / after the port number. Save (Ctrl+O) and exit (Ctrl+X). yum plugins - presto Presto is a project that provides faster, smaller size downloads to Fedora users. With presto plugin enabled you use deltarpm repositories to download only the part of the rpm that has change, thus saving you bandwidth and time. To enable it open a terminal and type:

$ sudo yum install yum-presto deltarpm

Next we have to make some changes to the .repo file to support downloading from deltarpm repositories.

$ sudo nano /etc/yum.repos.d/fedora-updates.repo

and change it from

[updates] name=Fedora $releasever - $basearch - Updates http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedorato [updates] name=Fedora $releasever - $basearch - Updates baseurl=http://lesloueizeh.com/f8/i386/updates #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/ #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora or to [updates] name=Fedora $releasever - $basearch - Updates baseurl=http://dl.anmar.eu.org/repos/f8/updates-x86_64 #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/ #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora depending on your Fedora version.

Save (Ctrl+O) and exit (Ctrl+X). Now each time you try a yum update you should see a 'Loading "presto" plugin' mesage.

3. Configuring Services For a detailed description on all services and daemons read my Fedora 8 Services Guide .

4. Installing video drivers http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

**Note: To install video drivers you must first install the Livna Repository as stated above. Installing nVidia driver $ sudo yum install kmod-nvidia

If a kernel update is installed as well you must reboot your computer. If not restart X server by hitting ctrl+alt+backspace (be carefull, all open windows will close). Each time you install a new kernel you must also install the appropriate kmod- nvidia but yum should resolve this dependencie for you. Installing ati driverThanks to leigh123@linux from fedoraforums.org for the details on how to install the ati driver in Fedora 8!

First you must check here whether your card is supported under Linux. All video cards below 9250 are unsupported.

1. Install fglrx driver.

You must have the Livna repository enabled to install that driver.

$ su - (Give your root password) # yum install kmod-fglrx xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs-32bit # yum update kmod-fglrx xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs-32bit # service fglrx restart # fglrx-config-display enable If you install a new kernel you will have to reboot for fglrx to work

If you are using F8 x86_64 and 8.40 you will need to apply a fix to the driver

$ su - (Give your root password) # cd /usr/lib64/xorg/modules/drivers/ # mv fglrx_drv.so fglrx_drv.so.orig # cat fglrx_drv.so.orig | sed "s/\xe8\x61\x2c\xfe\xff/\x90\x90\x90\x90\x90/g" > fglrx_drv.so # diff fglrx_drv.so fglrx_drv.so.orig http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

# aticonfig --initialThis command should report a change ( diff fglrx_drv.so fglrx_drv.so.orig )

2. Edit xorg.conf

$ su - (Give your root password) # gedit /etc/X11/xorg.conf Then add these sections. ( for driver version 8.42 or higher )

Section "Extensions" Option "Composite" "Enable" EndSection

Section "ServerFlags" Option "AIGLX" "on" EndSection

Section "DRI" Mode 0666 EndSection( for driver version 8.41 or lower require these options instead )

Section "Extensions" Option "Composite" "Disable" EndSection

Section "ServerFlags" Option "AIGLX" "off" EndSection

Section "DRI" http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

Mode 0666 EndSection Don't forget to save the changes

Finally, the following options are useful in the section "Device" :

Option "UseFastTLS" "0" Option "BlockSignalsOnLock" "on" Option "ForceGenericCPU" "off" Option "KernelModuleParm" "locked-userpages=0"

After editing don't forget to restart X ( Ctrl + Alt + Backspace )

3. Check for direct rendering.

Type these commands in a terminal

$ fglrxinfoThe output should look something like this.

display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: Radeon X1300/X1550 Series OpenGL version string: 2.0.6458 (8.36.5) And this command.

$ glxinfoThe output should look something like this

name of display: :0.0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer client glx vendor string: ATI client glx version string: 1.3 client glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample, GLX_ATI_pixel_format_float, GLX_ATI_render_texture GLX version: 1.2 GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_ARB_multisample OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: Radeon X1300/X1550 Series OpenGL version string: 2.0.6458 (8.36.5) If you can't get direct rendering try adding this line to the "Device" section of xorg.conf

Option "UseInternalAGPGART" "no" 5. Installing Microsoft fonts ** Note: Fedora 8 uses deja-vu and liberation fonts. Give them a try!

If you are using KDE you can copy the fonts from a Windows installation and then open Control Center -> System Administration -> Font Installer and drag 'n' drop them in there. You must restart your open appilications in order to see the new fonts.

Alternatively you can type:

$ wget http://www.my-guides.net/downloads/msttcorefonts-2.0-1.noarch.rpm $ sudo yum install chkfontpath $ sudo rpm -hiv msttcorefonts-2.0-1.noarch.rpm http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ sudo /etc/init.d/xfs reload

6. Configuring Firefox KDE Default browser Konqueror is the default browser in KDE which means that if you click on a link in another application such as an irc or msn client the web page will open in Konqueror.

To make Firefox your default web browser open Control Center -> KDE Components -> Component Chooser. Click on Web Browser and then choose "in the following browser" and write "mozilla-firefox" (without the ""). Click apply

Then go to KDE Components -> File Assosiations and then text -> html. Choose 'Firefox Web Browser' from the 'Application Preference Order' and click on Move Up, until it comes first. Hit apply and you are set. Acrobat Plugin To be able to view pdf documents through Firefox you must have adobe acrobat reader installed as described here . Restart firefox and type about:plugins in the address bar. If the plugin has been successfully installed you should see 'Adobe Reader' among plugins. Flash Plugin If you visit a page which needs flash to be displayed correctly click on the the missing plugin icon and Firefox will automatically install it for you. Restart firefox and type about:plugins in the address bar. If the plugin has been successfully installed you should see 'Shockwave Flash' among plugins.

- Adobe Flash Plugin

Alternativelly you can install the Adobe Fedora Repository and install/update Flash plugin easilly. Open a console and type:

$ sudo rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm Now you can install flash plugin by typing:

$ sudo yum install flash-plugin http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

and update it like that:

$ sudo yum update flash-plugin

By default this repository will be enabled. I prefer to disable it and enable it manually each time I want to look if there is an update for Flash Plugin. To odo so type:

$ sudo yum update flash-plugin

and change enabled=1 to enabled=0. Now whenever you want to look for an update you can type:

$ sudo yum --enablerepo=adobe-linux-i386 install flash-plugin

or update by typing:

$ sudo yum --enablerepo=adobe-linux-i386 update flash-plugin

- Open Source Gnash Plugin

Fedora 8 comes with an open source flash plugin. To install it type:

$ sudo yum install gnash gnash-pluginGnash for some reason installs its plugin into /usr/lib/mozilla/plugins when it needs to be in /usr/lib/firefox-2.0.0.8/plugins.

So to fix this type:

$ sudo ln -s /usr/lib/mozilla/plugins/libgnashplugin.so /usr/lib/firefox-2.0.0.8/pluginslibgnashplugin.soBe careful to replace the correct Firefox version in the above command. http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

**Note: Thanks to nomb for that info!

Mplayer Plugin The mplayer plugin allows you to view video files through Firefox. To install it type:

$ sudo yum install mplayerplug-in

Restart firefox and check if the plugins have successfully installed by typing about:plugins in the address bar. You should find listed there 'mplayerplug-in', ' Plugin', 'RealPlayer 9', 'QuickTime Plug-in' and 'DivX Browser Plug-In'. java PluginFor detailed information on how to install Java plugin for Firefox as well as Sun's Java Development Kit Installation look at my guide's Chapter 20 JAVA Installation . mms streaming play In the address bar type:

about:config

Right click somewhere and select NEW and then STRING. Type this in the box:

network.protocol-handler.app.mms

Click ok and in the box type the program you want to open the streaming media with, such as /usr/bin/mplayer.

Next right click again and select NEW and then BOOLEAN. Type this in the box:

network.protocol-handler.external.mms

Click ok and then type:

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

true Set backspace button By default in Fedora's Firefox when you press the backspace button it scrolls the page up. If you want backspace to take you to the previous page type in the address bar:

about:config

and in Filter box type:

browser.backspace_action

Right click on it, select Modify and change its value from 1 to 0. Restart Firefox and the backspace will be set.

7. MP3 and Audio players Rhythmbox/Gstreamer Gnome users should have them already installed. If you don't have it, to install it type:

$ sudo yum install rhythmbox

To add and other audio support type:

$ sudo yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly Amarok amarok is a pretty good audio/mp3 player for KDE. Of course you can install it under Gnome or any other Desktop Environment too. To install it type:

$ sudo yum install amarok

Adding mp3 support: http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ sudo yum install amarok-extras-nonfree Audacious Audacious is another audio player similar to old 2.x. To install it type:

$ sudo yum install audacious audacious-plugins-nonfree-*

If you want to use your winamp 2.x skin with audacious simply copy winamp's *.wsz skin to /usr/share/audacious/Skins/

If your tags are in a different encoding than utf8 you can force audacious to use it:

Preferences -> -> Metadata -> Fallback character encoding -> iso8859-7

If you want to add in queue when double clicked edit this file:

$ sudo nano /usr/share/applications/fedora-audacious.desktop

And change Exec=audacious to Exec=audacious -e XMMS This audio player is no longer used, you could try audacious instead, but if you still want it type:

$ sudo yum install xmms-libs xmms-mp3

8. DVD & video players DVD playback In order to play DVDs you must install the appropriate codecs.

$ sudo yum install libdvdread libdvdplay libdvdnav lsdvd libdvbpsi http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

Video Files playback This way you will be able to play almost any video file.

$ cd ~/Download $ wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 $ tar -jxf all-20071007.tar.bz2 $ sudo mkdir -p /usr/local/lib/codecs $ sudo cp all-20071007/* /usr/local/lib/codecs $ sudo ln -sf /usr/local/lib/codecs /usr/lib/codecs $ sudo ln -sf /usr/local/lib/codecs /usr/local/lib/win32 $ sudo ln -sf /usr/local/lib/codecs /usr/lib/win32 $ rm -rf all-20071007

Now choose one of the following Video players and install it. mplayer I prefer mplayer for video playback which is a very good player. It supports almost any video type, as well as DVD playback as long as you have the needed codecs installed as shown previously.

For KDE users:

$ sudo yum install kplayer

For GNOME users:

$ sudo yum install mplayer-gui totem If you want to play DVD and video files with totem type:

$ sudo yum remove totem $ sudo yum install totem-xine totem-xine-plparser xine-lib-extras xine-lib-extras-nonfree $ sudo yum install gstreamer- ffmpeg ffmpeg-libs http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net xine $ sudo yum install xine xine-lib-extras xine-lib-extras-nonfree $ sudo yum install gstreamer-ffmpeg ffmpeg ffmpeg-libs vlc vlc supports almost any video type.

$ sudo yum intall vlc kaffeine kaffeine is another KDE media player that uses the xine engine.

$ sudo yum install kaffeine $ sudo yum install xine-lib-extras xine-lib-extras-nonfree RealPlayer Download RealPlayer rpm from here . Next open a terminal and go to the Folder you downloaded it. Install it by typing:

$ sudo yum install compat-libstdc++-33 $ sudo rpm -hiv RealPlayer10GOLD.rpm $ sudo yum remove HelixPlayer 9. IRC Clients Some good Internet Relay Chat programs are the following. Konversation KDE users try Konversation

$ sudo yum install konversation xchat GNOME users try xchat

$ sudo yum intall xchat

10. MSN Messenger Clients http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net kopete If you are using KDE you should have already install Kopete under Start menu -> Internet. Kopete supports many different instant messaging accounts such as AIM, ICQ, Jabber, MSN, Yahoo etc. If it is not installed type:

$ sudo yum install kdenetwork pidgin $ sudo yum install pidgin amsn $ sudo yum install amsn

11. CD/DVD Burning/Copying/Authoring gnomebaker For GNOME users you can try gnomebaker to burn your cds/dvds.

$ sudo yum install gnomebaker k3b k3b is a burning utility similar to Nero Burning Rom.

$ sudo yum install k3b k9copy K9copy is the linux version of DVDshrink.

$ sudo yum install k9copy $ sudo yum install libdvdcss libdvdread libdvdplay libdvdnav lsdvd libdvbpsi

I have also written a guide on How to backup your DVDs (in dvd, xvid, mpeg-4, x264 formats) using k9copy . DeVeDe DeVeDe is a very good dvd authoring tool. It allows you to convert any type of video format to DVD so that you can watch it in any player you like.

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ sudo yum install devede

I have written a guide on How to create a custom DVD using DeVeDe.

12. Download manager $ sudo yum install d4x

13. PDF Readers kpdf KDE users can try kpdf. You can find it in Start menu -> Graphics KPDF Viewer. If it is not installed type:

$ sudo yum install kdegraphics xpdf You can also try xpdf.

$ sudo yum install xpdf acrobatreader If you prefer adobe acrobat reader you can download it from here . The latest version at this time is 8.1.1. Download the Linux x86 rpm. When the download completes open a terminal and install it with:

$ sudo rpm -hiv AdobeReader_enu-8.1.1-1.i486.rpm

And you are ready to use it.

14. Torrent Clients KTorrent $ sudo yum install ktorrent Bittorent $ sudo yum install bittorrent bittorrent-gui If you get an error like this "Could not load fastresume data" when you try to run Bittorrent you have to make a little http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net change in Bittorent's python files. Type:

$ sudo nano +216 /usr/lib/python2.5/site-packages/BitTorrent/Storage.py and change str(os.path.getmtime(filename)) + '\n') to str(int(os.path.getmtime(filename))) + '\n'). Next type:

$ sudo rm /usr/lib/python2.5/site-packages/BitTorrent/Storage.pyo $ sudo rm /usr/lib/python2.5/site-packages/BitTorrent/Storage.pyc

15. Other useful applications rar $ sudo yum unrar FTP Clients For KDE users:

$ sudo yum install kftpgrabber

For Gnome users

$ sudo yum install gftp chm reader $ sudo yum install gnochm eMule Client $ sudo yum install amule DC++ $ sudo yum install linuxdcpp Partition Editor For KDE users

$ sudo yum install qtparted http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

For Gnome users:

$ sudo yum install Google Earth Go to this page and download GoogleEarthLinux.bin. Next open a terminal and go to the folder you have saved it. Install it by typing:

$ sudo sh GoogleEarthLinux.bin

When you first run Google Earth you might get a message about missing Bitstream Vera Sans fonts. To install them type:

$ sudo yum install bitstream-vera-fonts Skype First you must install the Skype repository. Open a terminal and type:

$ sudo nano /etc/yum.repos.d/skype.repo

In that file copy the following lines:

[skype] name=Skype Repository baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/ enabled=0 gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc gpgcheck=1

Now you can easily install skype by typing:

$ sudo yum --enablerepo=skype install skype http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

At any time you can search for updates like that:

$ sudo yum --enablerepo=skype update skype

If you are asked if it is ok to import the GPG signature just type y and press Enter.

16. Access Windows partitions First you must find out what are the device names of the partitions you want to access. To do so open a terminal and type:

sudo /sbin/fdisk -l

Here you should see something like this:

Device Boot Start End Blocks Id System /dev/sda1 * x xxxx xxxx+ 7 HPFS/NTFS /dev/sda2 xxxx xxxx xxxx b W95 FAT32

which means that there is one NTFS /dev/sda1 partition and one FAT32 /dev/sda2 partition. FAT32 partitions Create a mount point for the FAT32 partition. Here it will be directory fat32 under /mnt/ Of course you can name it as you wish.

$ sudo mkdir /mnt/fat32 $ sudo cp /etc/fstab /etc/fstab.original $ sudo nano /etc/fstab

Add the following line at the end of file.

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

/dev/sda2 /mnt/fat32 vfat auto,iocharset=utf8,umask=0000 0 0

This line allows everybody to read/write in your fat32 partition and the partition will be automatically mounted at startup. You can set noauto if you want to mount it manually.

Save (Ctrl+O) and exit (Ctrl+X). Now you can mount your fat32 partition by typing

$ mount /mnt/fat32 $ umount /mnt/fat32 NTFS partitions First you must have -3g installed:

$ sudo yum install ntfs-3g fuse fuse-libs

Next you must create a mount point for the ntfs partition.

$ sudo mkdir /mnt/ntfs $ sudo cp /etc/fstab /etc/fstab.original

If you want users to have read only access in the ntfs partition add the following line in your fstab:

/dev/sda1 /mnt/ntfs ntfs-3g ro,defaults,umask=0222 0 0

If you want to have read/write access add this line:

/dev/sda1 /mnt/ntfs ntfs-3g rw,defaults,umask=0000 0 0

Save (Ctrl+O) and exit (Ctrl+X). Now you can mount and unumount your ntfs partition by typing

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ mount /mnt/ntfs $ umount /mnt/ntfs

17. Accessing Windows Shares If you want to access your Windows shared folders through Linux and also to be able to view your videos and listen to your mp3 through your local network install smb4k like this:

$ sudo yum install smb4k

Now run smb4k. Go to Settings -> Configure Smb4K -> Samba and put your workgroup's name. Press Ok and exit. Now click on the Refresh button and let smb4k to scan your network. If you have iptables firewall running you should set Samba as a trusted service. To do so run Firewall from the start menu or open a terminal and type:

system-config-firewall

Here in 'Trusted Services' find 'Samba', tick it and press 'Apply'.

When the shares appear at the left window double click on the one you want. Currently smb4k has a bug with the sudo command. So if you get a message like:

mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

open a terminal and type:

$ sudo chmod u+s /sbin/mount.cifs $ sudo chmod u+s /sbin/umount.cifs

Each time you update smb4k or a samba component you have to run again this command.

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

18. Compiz-Fusion Compiz-fusion is that cool cube you may have seen in many linux desktop's screenshots. It is provided through yum but for the time being there are no packages for fusion-icon (a tray icon to control compiz-fusion) and ccsm (compiz settings manager). git If you want to install them also you can read my guide on How to compile and install compiz-fusion from git on Fedora 7. The steps should be the same. Unofficial Repo If you prefer the easy yum way you can install the following unofficial repository in your system and get the latest compiz- fusion packages. Just type:

$ su -

# wget http://www.dfm.uninsubria.it/compiz/fusion/compiz-fusion.repo -O /etc/yum.repos.d/compiz-fusion.repo

Next you will need to remove the fedora compiz packages first and delete /home/username/.gconf/apps/compiz )

$ su # yum install compiz-all fusion-icon-all compiz-fusion-plugins-unsupported compiz-bcop ccsm emerald- themesLordMorgui has mirrored the repo so you will need to edit to account for the changes

$ su # gedit /etc/yum.repos.d/compiz-fusion.repo and change to

[fusion] name=Compiz Fusion repository #baseurl=http://www.dfm.uninsubria.it/compiz/fusion/$basearch/ mirrorlist=http://www.dfm.uninsubria.it/compiz/mirror-f$releasever-$basearch enabled=1 gpgcheck=0 To start compiz-fusion just use fusion-icon. It will place an icon at the tray which contains anything you want to configure. Unofficial Packages Alternativelly you can try some prebuilt unofficial packages.

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

If you are using x86_64 Fedora 8 download them from here .

If you are using i386 Fedora 8 download them from here .

After you download the tar.gz you want extract it in a sepperate directory and install them with:

$ sudo rpm -hiv *.rpm

If you use only KDE you must not downlad

compiz-all-0.6.99-1.fc8.i386.rpm compiz--0.6.99-1.fc8.i386.rpm compizconfig-backend-gconf-0.6.99-1.fc8.i386.rpm compizconfig-backend-gconf-debuginfo-0.6.99-1.fc8.i386.rpm fusion-icon-all-0.1-100.fc8.noarch.rpm fusion-icon-gtk-0.1-100.fc8.noarch.rpm

Whereas if you use only Gnome you must not download

compiz-all-0.6.99-1.fc8.i386.rpm compiz-kde-0.6.99-1.fc8.i386.rpm compizconfig-backend-kconfig-0.6.99-1.fc8.i386.rpm compizconfig-backend-kconfig-debuginfo-0.6.99-1.fc8.i386.rpm fusion-icon-all-0.1-100.fc8.noarch.rpm fusion-icon--0.1-100.fc8.noarch.rpm

Use yum to resolve dependencies. I also had to install the following packages:

$ sudo yum install PyQt mesa-libGLU-devel libdrm-devel

When the installation completes run fusion-icon and you are ready! An icon should appear at your tray. You can access http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net the 'Settings Manager' and the 'Emerald Theme Manager' from it easily. Official Packages If you want to stick to the official fedora packages open a terminal and type:

For KDE users:

$ sudo yum install compiz compiz-kde compiz-bcop compiz-fusion compiz-fusion \ compiz-fusion-extras compiz-fusion-extras-gnome compiz compizconfig-python \ libcompizconfig libcompizconfig-devel gnome-compiz-manager kicker-compiz

For Gnome users:

$ sudo yum install compiz compiz-gnome compiz-bcop compiz-fusion compiz-fusion \ compiz-fusion-extras compiz-fusion-extras-gnome compiz compizconfig-python \ libcompizconfig libcompizconfig-devel gnome-compiz-manager

ATi ErrorsIf you have an ATi video card you might get the following error:

* Opening CompizConfig context * No GLX_EXT_texture_from_pixmap with direct rendering context ... nor with indirect rendering, this isn't going to work! * Using the GTK InterfaceTo solve it you must downgrade xorg-x11-server-Xorg

For i386

su - wget http://koji.fedoraproject.org/packages/xorg-x11-server/1.3.0.0/9.fc7/i386/xorg-x11-server-Xorg-1.3.0.0-9.fc7.i386.rpm rpm -U --oldpackage xorg-x11-server-Xorg-1.3.0.0-9.fc7.i386.rpm For x86_64

su - http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net wget http://koji.fedoraproject.org/packages/xorg-x11-server/1.3.0.0/9.fc7/x86_64/xorg-x11-server-Xorg-1.3.0.0- 9.fc7.x86_64.rpm rpm -U --oldpackage xorg-x11-server-Xorg-1.3.0.0-9.fc7.x86_64.rpm If this works ok you must ban xorg-x11-server-Xorg from updating

su gedit /etc/yum.conf

and add this line

exclude=xorg-x11-server-XorgIf you do downgrade xorg the fedora version of compiz will no longer work due to missing deps i.e xorg ( No biggie because it sucked anyway). The 0.6.99 version of compiz doesn't have the same pathetic deps

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).

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ 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:

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ 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/ http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

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

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

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:

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38 my-guides.net

$ 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**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.

http://www.my-guides.net/en Powered by Joomla! Generated: 10 January, 2008, 10:38