Personal Fedora Core 6 Installation Guide

Mauriat Miranda (http://www.mjmwired.net/contact/)

Other Guides/Resources

Published: 11 October 2006 (updated: 20 November 2006)

Post To: del.icio.us, furl, digg, spurl, gmail this, Blog this
_uacct = "UA-310280-1"; urchinTracker(); var swap=0; function tM(obj){ if(document.getElementById){ var el=document.getElementById(obj); if(el.style.display=="none")el.style.display=""; else el.style.display="none"; if(swap)document.getElementsByTagName('body')[0].style.marginRight="9em"; else document.getElementsByTagName('body')[0].style.marginRight="1em"; swap=!swap; } }

This guide a personal configuration of Fedora Core 6. This page is to provide some common installation tips that people may find useful. Keep in mind this works for me, so take care in doing proper backups to critical files whenever trying something.


Physical Installation

It is highly recommended you read the Fedora Core 6 Release Notes and official Installation Guide before installing Fedora.

Obtain the Fedora Core 6 cd images or DVD image from a Fedora mirror (or use the torrent) and burn to CD's or DVD. (For more information on how to download Fedora Core CD's or DVD).

Boot from the first disc.

I did a Custom Install of Fedora Core 6.

Install the selected packages and reboot.

For users who opted to install grub on the first sector of the / partition instead of the MBR, you will be required to setup NTLDR to boot Linux.

For the first boot:

Display Settings -- Display settings are automatically detected and set. The resolution and scan rate may be significantly different than your typical settings. Just follow through the first boot process and set the proper resolution once you login.

Top Resources


Common Problems

20 November 2006

Fedora Core 6 shipped with several bugs and problems. Most of the reported issues can be found on the following page: http://fedoraproject.org/wiki/Bugs/FC6Common.

If you upgraded from FC5 and find you have the wrong kernel installed follow these steps:

Download the proper kernel from: http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/

Install it: (enter root password when prompted)

# su -c "rpm -Uvh --replacefiles --replacepkgs kernel-2.6.18-1.2798.fc6.i686.rpm"

Top Resources


Setup sudo

26 October 2006

Fedora Core, like all other Linux distributions, has a root user and has individual users. The root is the "superuser", somewhat similar to "Administrator" in Windows.

Use your personal account for daily use root only for adminstration/configuration. To run as 'root' use su or sudo. However sudo requires setup. As root run:

echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers

Where 'loginname' is your user account.
Use 'ALL=(ALL) NOPASSWD:ALL' if you don't want to be prompted a password.
If you are prompted for a password with 'sudo' it is the user password, not root.

Example:

[mirandam@charon ~]$ su
Password:    <--- Enter root password

[root@charon mirandam]# chmod +w /etc/sudoers
[root@charon mirandam]# echo 'mirandam ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
[root@charon mirandam]# chmod -w /etc/sudoers
[root@charon mirandam]# exit
exit

NOTE: Some users mentioned they require permissions change (chmod) because /etc/sudoers was read-only. However, I was able to run the above command with the file read-only.

The following is an example of how sudo lets you execute root commands:

[mirandam@charon ~]$ du -sh /root
du: `/root': Permission denied  <--- Fails!!!

[mirandam@charon ~]$ sudo du -sh /root
163M    /root                   <--- Works!!!

NOTE: Every command provided on this page will work if you remove sudo from the command. However this requires you must be logged in as 'root'.

Top Resources


Setup yum

16 October 2006

http://fedora.redhat.com/docs/yum/en/

Fedora Core uses yum to install and update its software. When connected to the internet it will automatically determine application dependancies.

Fedora has 3 repositories enabled by default: core (the same packages that come on CD's/DVD), updates (updated packages, newer than core) and extras (countless other applications not included on CD's/DVD).

These repositories 'sign' their RPM file's to make sure they are valid when downloaded. Import the GPG keys to these repositories:

[mirandam@charon ~]$ sudo rpm --import /etc/pki/rpm-gpg/*

For applications that are against Fedora policies (MP3, DVD, MPEG, NTFS, etc). A third party repository should be used. For the purpose of this guide, (most) all needs are met by the Livna repository.

[mirandam@charon ~]$ sudo rpm -ivh http://rpm.livna.org/livna-release-6.rpm

[mirandam@charon ~]$ sudo rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

NOTE: Installation Prompt

After yum downloads the application or update requested it will prompt to install. This is good for learners or to keep track of what is happening. Applications can possibly be UN-installed in a update as well. If you wish yum to automatically install downloads and make changes, run yum with the -y (answer "yes") option.

# sudo yum -y install application_name

NOTE: Full System Updates

If you run the following, every RPM that has an update through a repository will be updated.

[mirandam@charon ~]$ sudo yum update

Generally speaking this is highly recommended the FIRST time you install Fedora (if you have high speed internet). After that, full system updates are probably less necessary. Keep in mind that updates, may update all their dependancies, which can lead to long download times. Often a new update may break something that already worked. Please understand what you are doing before running continuous updates.

Top Resources


Install Nvidia Driver

24 October 2006

Fedora recommends users install a 3rd-party RPM packaged driver instead of using the installer from Nvidia's website. Currently Livna provides a well packaged driver.

NOTE: For users who upgraded from FC5 please read the known bugs and problems.

For yum only:

First, setup Livna Repository

[mirandam@charon ~]$ sudo rpm -ivh http://rpm.livna.org/livna-release-6.rpm

[mirandam@charon ~]$ sudo rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

Install the nvidia driver through Livna:

[mirandam@charon ~]$ sudo yum install kmod-nvidia

If you see the following message, then please read the note below:

Error:  Editing failed, restoring backup

If a kernel update is installed at the same time, then a reboot will be required. If not, then simply log out completely of Gnome or KDE and the Nvidia driver should load. The Nvidia logo will flash quickly once.

For users without yum

Download the GPG Key and run:

[mirandam@charon ~]$ sudo rpm --import RPM-LIVNA-GPG-KEY

Navigate to http://rpm.livna.org/fedora/6/ and select your architecture: i386, x86_64 or ppc. You will need 2 components: xorg driver and nvidia kernel module.

For xorg driver, select the one matching the latest Nvidia driver (1.0.8776). For example:
xorg-x11-drv-nvidia-1.0.8776-2.lvn6.i386.rpm.

For nvidia kernel driver you MUST MATCH YOUR KERNEL. Use the uname command for the proper match. For example:

[mirandam@charon ~]$ uname -rm
2.6.18-1.2798.fc6 i686

Selected: kmod-nvidia-1.0.8776-1.2.6.18_1.2798.fc6.i686.rpm

Install both files at the same time:

[mirandam@charon downloads]$ sudo rpm -ivh kmod-nvidia-1.0.8776-1.2.6.18_1.2798.fc6.i686.rpm \
xorg-x11-drv-nvidia-1.0.8776-2.lvn6.i386.rpm

Preparing...                ########################################### [100%]
   1:kmod-nvidia            ########################################### [ 50%]
   2:xorg-x11-drv-nvidia    ########################################### [100%]

Error:  Editing failed, restoring backup    ----- see NOTE below

If you had a previous version of these files before, remove them first with rpm -e.

If you cannot find a perfect match you may will have to update to a kernel that matches from FC6 Updates.

Potential Problems

If after installing you see the following error:

Error: Editing failed, restoring backup

then edit the file /etc/X11/xorg.conf

[mirandam@charon ~]$ sudo gedit /etc/X11/xorg.conf

Add the following lines to the END of the file:

Section "Files"
        ModulePath "/usr/lib/xorg/modules/extensions/nvidia,/usr/lib/xorg/modules"
EndSection

Section "Module"
EndSection

NOTE: 64-bit users: please use the following line instead:

ModulePath "/usr/lib64/xorg/modules/extensions/nvidia,/usr/lib64/xorg/modules"

Re-enable the nvidia driver:

[mirandam@charon ~]$ sudo /usr/sbin/nvidia-config-display enable

Once done, logging out of KDE/Gnome and logging back in should initialize the driver. If not, try rebooting.

More information regarding this problem, can be found on the Livna wiki: http://rpm.livna.org/rlowiki/Packages/xorg-x11-drv-nvidia.

Top Resources


GCC Compatibility

8 October 2006

Fedora Core 6 ships and uses GCC 4.1. Some applications that were compiled with an older GCC (ex: 3.2) will require compatibility libraries. Make sure to have the following RPM's installed. These are included with the FC6 CD-disk3 or DVD or online (ftp, yum, etc).

compat-libstdc++-33
compat-libstdc++-296

With 'yum', run:

[mirandam@charon ~]$ sudo yum -y install compat-libstdc++-33 compat-libstdc++-296

The compat-libstdc++-33 is required for Realplayer.

Top Resources


Install GCC 3.4

26 October 2006

FC6 includes GCC 4.1 compiler. Some applications will NOT compile in GCC 4.1. You can install GCC 3.4 to allow compiling applications which do not yet support GCC 4.1. Make sure to have the following RPM's installed. These are included with the FC6 CD's or DVD or online (ftp, yum, etc).

compat-gcc-34
compat-gcc-34-c++

With 'yum', run:

[mirandam@charon ~]$ sudo yum install compat-gcc-34 compat-gcc-34-c++

To use either, run gcc34 or g++34. I have more information on using alternate compilers.

Top Resources


ALSA

8 October 2006

ALSA is the "sound system" used by Fedora Core. It has drivers, libraries and utilities. The drivers are included with the kernel package.

If your sound card is not detected or working properly, most likely it will be an issue with ALSA . Try the following:

If your system requires an update run, then the following minimum is recommended:

[mirandam@charon ~]$ sudo yum update kernel alsa-lib alsa-utils

Users without yum can look for updates manually: http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/.

Other comments from previous guides: Fedora Core 3 Guide, Fedora Core 2 Guide.

Top Resources


Install Realplayer

9 October 2006

Download RealPlayer 10.0 GOLD from: http://www.real.com/linux/.

Select: "Download RPM Package"

NOTE: You can have both HelixPlayer and RealPlayer installed, however I recommend using RealPlayer over HelixPlayer. Users of amarok may find HelixPlayer required, if so, leave it.

Check for HelixPlayer:
[mirandam@charon ~]$ rpm -q HelixPlayer
HelixPlayer-1.0.7-4.fc6

Uninstall HelixPlayer: 
[mirandam@charon ~]$ sudo rpm -e HelixPlayer

Before installing RealPlayer, make sure to have the compat-libstdc++-33 compatibility libraries installed.

[mirandam@charon downloads]$ sudo yum install compat-libstdc++-33

Install RealPlayer:

[mirandam@charon downloads]$ sudo rpm -ivh RealPlayer10GOLD.rpm
Preparing...                ########################################### [100%]
   1:RealPlayer             ########################################### [100%]

RealPlayer/HelixPlayer Forums: https://helixcommunity.org/forum/?group_id=154

Top Resources


Install MP3 Players

22 October 2006

Fedora Core ships without any form of MP3 playback. In order to add MP3 playback you must install from a 3rd party. The following either use the Livna repository or use (individual) files from Freshrpms.

XMMS: simple, older GUI, minimalistic features (but still popular)

Beep Media Player - BMP: XMMS rebuilt to be a little bit more modern. Still basic but somewhat better than XMMS.

Amarok - A modern feature rich media player application.

Rythmbox/Gstreamer - A simple audio application similar to iTunes layout.

Top Resources


Install Microsoft Truetype Fonts

8 October 2006

http://corefonts.sourceforge.net/

You have to make the RPM using the obove site. For convenience I have created the RPM (please do not link directly to this file):

msttcorefonts-2.0-1.noarch.rpm

[mirandam@charon ~]$ sudo rpm -ivh msttcorefonts-2.0-1.noarch.rpm
[mirandam@charon ~]$ sudo /etc/init.d/xfs restart

Restarting xfs may not be necessary. Many programs need only to be restarted. Some older applications, may require you to log out of Gnome or KDE and log back in (reboot NOT required).

Top Resources


Disable Unneeded Services/Daemons

19 October 2006

Information regarding services and their functions can be found on: Services in Fedora Core 6 (http://www.mjmwired.net/resources/mjm-services-fc6.html).

For information on how to manage services in Fedora please read: Managing Services in Fedora (http://www.mjmwired.net/resources/mjm-fedora-manage-services.html).

Top Resources


Macromedia Flash Plugin

19 October 2006

The current Macromedia Flash plugin is old and will not work properly on many websites. Additionally the plugin will not work directly on 64-bit browsers without some re-configuration.

For yum users:

Install the macromedia.repo file to your repositories, and install through yum:

[mirandam@charon downloads]$ wget http://macromedia.mplug.org/macromedia-i386.repo
[mirandam@charon downloads]$ sudo cp macromedia-i386.repo /etc/yum.repos.d/
[mirandam@charon downloads]$ sudo yum install flash-plugin

For manual installation (users without yum):

Go to http://macromedia.mplug.org/ and pick a mirror (USA, Europe). The current version is:
Current Version: 7.0.68 (09/12/2006)
RPM Version: 7.0.68-1 (09/13/2006)

Select:
Fedora Core flash-plugin (apt, yum rpm)
and save the RPM file to disk: flash-plugin-7.0.68-1.i386.rpm.

Install:

[mirandam@charon downloads]$ sudo rpm -ivh flash-plugin-7.0.68-1.i386.rpm

Make sure you are logged into the X server (init 5, runlevel 5) and do not have Mozilla or FireFox open when you install the RPM. Make sure to (read) accept the agreement.

------------------------

Flash 9.0 Plugin Beta -- HIGHLY RECOMMENDED

The 9.0 beta plugin will allow access to many more websites which may require 8.0 or newer to work. This will also fix many sound and latency problem (i.e. youtube videos will play without sync loss).

First remove flash 7.0 (if installed):

[mirandam@charon downloads]$ sudo rpm -e flash-plugin

Obtain the flash 9.0 plugin from: http://labs.adobe.com/downloads/flashplayer9.html.
The link required is: "Download Installer for Linux (GZ, 2.48 MB)†"

[mirandam@charon downloads]$ wget http://www.adobe.com/go/fp9_update_b1_installer_linuxplugin

[mirandam@charon downloads]$ tar -zxvf FP9_plugin_beta_101806.tar.gz
flash-player-plugin-9.0.21.55/
flash-player-plugin-9.0.21.55/libflashplayer.so
flash-player-plugin-9.0.21.55/readme.txt

[mirandam@charon downloads]$ cd flash-player-plugin-9.0.21.55/
[mirandam@charon flash-player-plugin-9.0.21.55]$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

Restart Firefox (or Mozilla or any other web browser).

Top Resources


Install Java Plugin

9 October 2006

NOTE: These instructions are for using Sun Java for the web browser and using Java dependant applications. This is not meant for developers. The official recommendation from Fedora can be found on http://www.fedoraproject.org/wiki/JavaFAQ. However the following instructions are simple for non-developers or users who don't use yum.

NOTE: Fedora Core advises AGAINST using the Sun Java RPM. If you do not use yum or do not have any Fedora/GNU java installed this will not affect you. If you are using yum and installed the RPM it is recommended to remove it:

[mirandam@charon ~]$ rpm -q jre
jre-1.5.0_09-fcs
[mirandam@charon ~]$ sudo rpm -e jre

Download the Java package from:
http://java.sun.com/javase/downloads/index.jsp

Select: Java Runtime Environment (JRE) 5.0 Update 9

On the next page, accept the license agreement, and make sure to select:

Linux self-extracting file   jre-1_5_0_09-linux-i586.bin   16.27 MB

To install:

[mirandam@charon downloads]$ sh jre-1_5_0_09-linux-i586.bin
(type 'yes')

[mirandam@charon downloads]$ sudo mv -f jre1.5* /opt/jre1.5
[mirandam@charon downloads]$ sudo ln -s /opt/jre1.5/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

To update: If you update the JRE package, simply delete the /opt/jre1.5 directory and copy the newer download to /opt/jre1.5 -- No need to run the 'ln -s' command.

---

Controlling Java through 'alternatives'. When running the java command, Fedora will automatically pick the GNU Java, to use Sun's java do the following:

[mirandam@charon ~]$ sudo /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5/bin/java 2
[mirandam@charon ~]$ echo 2 | sudo /usr/sbin/alternatives --config java

[mirandam@charon ~]$ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)

Top Resources


Install Adobe Acrobat

10 October 2006

To view PDF files, Fedora includes evince, however this application is very basic and may not work will all PDF's.

Download Acrobat from: http://www.adobe.com/products/acrobat/readstep2_allversions.html

Select:
Operating system: Unix/Linux
Version: Linux (.rpm)
Your language.

The current version of Adobe Acrobat is 7.0.8 and download size is between 45-60MB depending on your language. (Not all languages are supported under Linux).

[mirandam@charon downloads]$ sudo rpm -ivh AdobeReader_enu-7.0.8-1.i386.rpm

NOTE: There is a problem with v7.0.8 and will not work properly in FC6.
To fix, edit as root:

[mirandam@charon ~]$ sudo gedit /usr/bin/acroread

Make the following changes:

Line ~418:
From:
   echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
To:
   echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

Line ~643:
From:
   MIN_GTK_VERSION="240"
To:
   MIN_GTK_VERSION="2040"

More information: http://www.adobeforums.com/cgi-bin/webx/.3bc14512

Acrobat Browser Plugin

The browser plugin is NOT automatically installed. This is optional. To install it:

[mirandam@charon downloads]$ sudo ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so /usr/lib/mozilla/plugins/nppdf.so

Top Resources


Setup Samba - Filesharing with Windows

10 October 2006

If you have other Windows computers on your Lan and want to share files with them, you must setup Samba.

To setup Samba you must (1) install samba, (2) add you 'shares', (3) add users, (4) start Samba service.

1. Install Samba

It is best to have Samba installed in the installation process. If not yum users can install using: Add/Remove Software > Servers > Windows File Server. Users without yum can install the following packages from their CD's (or download): samba, samba-common, samba-client.

2. Add Shares

You must edit /etc/samba/smb.conf as root: (use nano instead of gedit if you do not have a GUI)

[mirandam@charon ~]$ sudo gedit /etc/samba/smb.conf

Set your Windows Workgroup name in [global] section.

Added shares at the end of the file. Example:

[c_drive]
   path = /media/c_drive
   public = yes
   writable = no
[netshare]
   path = /data/
   public = yes
   writable = yes

If 'writable' the location must be writable in Linux first.

If home data (all personal files under /home/username) is to be accessible, then set 'browseable = yes' under [homes] (~line 166). This configuration file is very descriptive, read through it to get more ideas or information.

3. Add Users

To access shares, you must be a valid user. Add valid users AND passwords using the smbpasswd command.

This login name WILL be the login name and password you use from Windows to access your Linux computer. The password does NOT need to match your Linux password.

[mirandam@charon ~]$ sudo smbpasswd -a username
New SMB password:
Retype new SMB password:
account_policy_get: (warnings ignore)
Added user username.

(Note: 'username' must be a valid account on the machine)

4. Start Samba Service

Run samba and check for any errors:

[mirandam@charon ~]$ sudo /etc/init.d/smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]

Use chkconfig or serviceconf to enable samba (smb) in both runlevels 3 and 5. This will make sure to run Samba each time Fedora boots.

[mirandam@charon ~]$ /sbin/chkconfig --list smb
smb             0:off   1:off   2:off   3:off   4:off   5:off   6:off
[mirandam@charon ~]$ sudo /sbin/chkconfig --level 35 smb on
[mirandam@charon ~]$ /sbin/chkconfig --list smb
smb             0:off   1:off   2:off   3:on    4:off   5:on    6:off

Restart Samba for every change to users/passwords or 'smb.conf'

[mirandam@charon ~]$ sudo /etc/init.d/smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]

--------------

Firewall and SELinux Users

Run system-config-securitylevel

Firewall Options:
To allow Samba access to work through your firewall you must set 'Samba' as a 'Trusted service'.

SELinux:
Modify SELinux Policy > Samba Disable SELinux protection for smbd daemon

On the command line you can run:

[root@charon ~]# setsebool -P smbd_disable_trans 1

Run man samba_selinux for more help.

For any changes made above to the SELinux settings or smb.conf, it is recommended to restart Samba.

Top Resources


Mount NTFS Partitions

09 November 2006

Windows uses a different filesystem (NTFS) to store files. In order for Fedora to read that filesystem, you require NTFS support in your kernel. You can either recompile your kernel for NTFS read support -OR- obtain the matching proper kernel module.

NOTE: For users who upgraded from FC5 please first read the known bugs and problems.

To setup NTFS access you must (1) install NTFS support, (2) check how many partitions you have, (3) create mount points, (4) mount partitions, and (5) update fstab to mount at next boot.

1. Install NTFS Support

For yum users (first setup Livna repository). Note that if the yum downloads a new kernel, you will have to reboot your computer for changes to take effect.

[mirandam@charon ~]$ sudo yum install kmod-ntfs

For users who don't use yum, navigate to http://rpm.livna.org/fedora/6/ and select your architecture: i386, x86_64 or ppc. You will need 2 components: NTFS kernel driver and helper application (ntfs-kmod-common).

For NTFS kernel driver you MUST MATCH YOUR KERNEL. Use the uname command for the proper match. For example:

[mirandam@charon ~]$ uname -rm
2.6.18-1.2798.fc6 i686

Selected: kmod-ntfs-2.1.27-2.2.6.18_1.2798.fc6.i686.rpm

Install both files at the same time:

[mirandam@charon downloads]$ sudo rpm -ivh kmod-ntfs-2.1.27-2.2.6.18_1.2798.fc6.i686.rpm \
ntfs-kmod-common-2.1.27-2.lvn6.noarch.rpm

2. Check Your Partitions

Use fdisk to list partitions. Most ATA hard drives will be /dev/hda. Drives may also show up as /dev/hdb, /dev/sda depending on your configuration.

[mirandam@charon ~]$ sudo /sbin/fdisk -lu /dev/hda | grep NTFS
/dev/hda1   *          63    33559784    16779861    7  HPFS/NTFS
/dev/hda2        33559785    67119569    16779892+   7  HPFS/NTFS
/dev/hda3        67119570   100679354    16779892+   7  HPFS/NTFS

Usually the first will be a drive "letter": C drive, next D, etc. Hence /dev/hda1 is my C:\ drive used by Windows.

3. Create Mount Points

For every partition in step 2 that you wish to access, you will need a "mount point". A mount point is just a directory. Common directories are: /media/ and /mnt/. Use whichever, but be consistent.

[mirandam@charon ~]$ cd /media/
[mirandam@charon media]$ sudo mkdir c_drive d_drive e_drive

You don't have to use these names, if you prefer to creat folders such as movies, documents, or winxp, any name will work (without spaces).

4. Mount Partitions

Using the above kernel module, we can only mount the NTFS partition read-only and we set the permissions so all users can read the contents of each partition.

[mirandam@charon ~]$ sudo mount /dev/hda1 /media/c_drive/ -t ntfs -r -o umask=0222
[mirandam@charon ~]$ sudo mount /dev/hda2 /media/d_drive/ -t ntfs -r -o umask=0222
[mirandam@charon ~]$ sudo mount /dev/hda3 /media/e_drive/ -t ntfs -r -o umask=0222

Run man mount to fully explain what "-r -o umask=0222" does.

5. Update /etc/fstab

Every time Fedora boots, the partitions must be mounted. To automatically mount, you must edit /etc/fstab.

Open /etc/fstab in an editor: (use nano instead of gedit if you do not have a GUI)

[mirandam@charon ~]$ sudo gedit /etc/fstab

Add these lines to the END of the file:

/dev/hda1   /media/c_drive     ntfs    ro,defaults,umask=0222 0 0
/dev/hda2   /media/d_drive     ntfs    ro,defaults,umask=0222 0 0
/dev/hda3   /media/e_drive     ntfs    ro,defaults,umask=0222 0 0

Done!

------------------

NOTE for NTFS Read/Write

Read/Write support for NTFS is supported by the NTFS-3G driver. This driver is available through Fedora Extras:

[mirandam@charon ~]$ sudo yum install fuse fuse-libs ntfs-3g ntfsprogs ntfsprogs-gnomevfs

Users without yum: only fuse, fuse-lib and ntfs-3g are required from Extras.

For the above steps 4 and 5, replace ntfs-3g instead of ntfs. Then use: '-rw' for Step 4. Mounting Partitions, and 'rw,defaults,umask=0000 0 0' for Step 5. Updating /etc/fstab. For example:

Mounting:
[mirandam@charon ~]$ sudo mount /dev/hda1 /media/c_drive/ -t ntfs-3g -rw -o umask=0000

/etc/fstab:
/dev/hda1   /media/c_drive     ntfs-3g    rw,defaults,umask=0000 0 0

Note there was a udev problem with fuse. Make sure to have version 2.5.3-5 or newer of fuse. (There may be some SELinux problems.)

------------------

NOTE for FAT32 users

Insted of 'NTFS' above you can use 'VFAT' to mount your FAT32 partitions. No extra modules or download are needed. Just replace vfat for every place we have ntfs when mounting and when editting /etc/fstab.

FAT32 read and write is supported. If you wish to mount read/write, then use: '-rw' for Step 4. Mounting Partitions, and 'rw,defaults,umask=0000 0 0' for Step 5. Updating /etc/fstab.

Top Resources


Disable IPv6 Features

18 October 2006

FC6 has the most IPv6 support than in previous releases. Most likely you do not use IPv6. If you wish to eliminate the slight extra resources consumed by enabling IPv6, then you may do the following steps.

This may speed up your DNS lookup times when using the internet.

Disable IPv6 Networking Support

Edit /etc/sysconfig/network. (A reboot will be required)

[mirandam@charon ~]$ sudo gedit /etc/sysconfig/network

Change:
NETWORKING_IPV6=yes

To:
NETWORKING_IPV6=no

Disable IPv6 Protocol Stack for Kernel

Edit /etc/modprobe.conf.

[mirandam@charon ~]$ sudo gedit /etc/modprobe.conf

Add the following 2 lines: (A reboot will be required)

alias net-pf-10 off
alias ipv6 off

Disable IPv6 Firewall

Stop ipv6 firewall:

[mirandam@charon ~]$ sudo /etc/init.d/ip6tables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading ip6tables modules:                               [  OK  ]

Turn ipv6 firewall off during future usage:

[mirandam@charon ~]$ sudo /sbin/chkconfig --level 35 ip6tables off

Top Resources


Install Kernel Headers

11 October 2006

This package provides kernel headers and makefiles sufficient to build modules against the kernel package. The kernel headers are necessary if you require to install a driver (for example: Nvidia, ndiswrapper, Cisco VPN, etc.). If a driver requires kernel sources, it may be sufficient to install only the kernel headers.

The kernel headers The Kernel Headers are available through the kernel-devel RPM. This may or may not be installed by Fedora. This package can be installed from your FC6 CD's, DVD's or online through FTP or yum.

Look on online online and make sure you match your system, using the uname command. For example:

[mirandam@charon ~]$ uname -rm
2.6.18-1.2747.fc6 i686

Select: kernel-devel-2.6.18-1.2747.fc6.i686.rpm

If you have updated your kernel (using yum), then it is recommended you use yum to install the package:

[mirandam@charon ~]$ sudo yum install kernel-devel

Top Resources


Install Kernel Source

31 October 2006

Installing the kernel source is typically NOT needed unless you wish to re-compile your kernel or for some special development. However in some cases the kernel headers may be required.

There are 3 basic steps involved in installing the kernel source.

  1. Download the desired kernel source (matching your current kernel if required)
  2. Installing the SRC.RPM package
  3. Using rpmbuild to prepare the source into a usable state

NOTE: Following these steps will consume at least ~500MB of disk space!

1. Download the Kernel Source

Obtaining Kernel Source (for default FC6 kernel)

The default kernel source can be found through any Fedora mirror. Look in the directory "/SRPMS/" under the "/6/" directory . For example: http://download.fedora.redhat.com/pub/fedora/linux/core/6/source/SRPMS/.

kernel-2.6.18-1.2798.fc6.src.rpm 16-Oct-2006 22:26 44M

Obtaining Kernel Source (for updated FC6 kernel)

If you updated your kernel, then the typically the last 2 or 3 releases of the source of the kernel will be available though the Fedora updates. IF YOU REQUIRE you can (try to) match the kernel source with your running kernel.

Look in the update directory on most Fedora mirror sites. For example: http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/SRPMS/.

Obtaining Kernel Source through 'yum' (for latest FC6 kernel)

There are yum utilities which will download the LATEST kernel source. If it does not find anything, then there are no updates (yet) use the DEFAULT Fedora kernel source.

[mirandam@charon ~]$ sudo yum install yum-utils
[mirandam@charon ~]$ cd downloads
[mirandam@charon downloads]$ yumdownloader --source kernel --enablerepo updates-source

2. Install the Kernel Source

Install the kernel.src.rpm that you chose to download in the previous steps.

[mirandam@charon downloads]$ sudo rpm -ivh kernel-2.6.18-1.2798.fc6.src.rpm
   1:kernel                 ########################################### [100%]

Ignore, group does not exist or user does not exist errors.

3. Prepare the Source

[mirandam@charon downloads]$ sudo rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec

The source files will be properly located in /usr/src/redhat/BUILD/kernel-2.6.18/. There are 2 useful directories:

  1. linux-2.6.18.ARCH/
    This will have the standard kernel.org kernel WITH Fedora patches and updates. The ARCH architecture will match the output of uname -m, usually i686. You may use noarch for the target= option if you wish.
  2. vanilla/
    This will have the standard kernel.org kernel ONLY (no patches or updates).

NOTE: Users of x86_64 architecture may experience the following error:

error: Failed build dependencies:
       unifdef is needed by kernel-2.6.18-1.2798.x86_64

To fix, run sudo yum install unifdef.

Top Resources


More Information

Top Resources


 

Disclaimer: The author makes no claim to the accuracy of the information provided. This information is provided in the hope that it will be useful, but WITHOUT ANY WARRANTY. There is no implied support from referencing this guide. Any help that is provided is at will. Use this information at your own risk. Always make proper backups and use caution when modifying critical system files.

PLEASE DO NOT mirror, translate or duplicate this page without contacting me. I have spent countless hours of work personally researching and verifying these steps.

Copyright � 2003-2006 by Mauriat Miranda (mjmwired.net). Hosted by MidPhase.