QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 921|回复: 1

Personal Fedora Core 5 Install

[复制链接]
发表于 2006-4-1 19:06:38 | 显示全部楼层 |阅读模式
zz: http://www.mjmwired.net/resources/mjm-fedora-fc5.html

目录:
Physical Installation
Custom Boot Settings
Install Nvidia Driver
GCC Compatibility
Install GCC 3.2
SELinux
ALSA Drivers
Install XMMS mp3 Player
Install TrueType Fonts
Modify Services/Daemons
Macromedia Flash Plugin
Java Runtime Plugin
Modify Xterm Resources
Modify BASH Defaults
Setup Samba
Mount NTFS Partitions
Install RealPlayer
Setting Login Screen Default
Install Kernel Headers
Install Kernel Source

正文:
--------------------------------------------------------------------------------

This guide a personal configuration of Fedora Core 5. 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 5 Release Notes and official Installation Guide before installing Fedora.

Obtain the Fedora Core 5 cd images or DVD image from a Fedora mirror (or use the torrent) and burn to CD's or DVD. Boot from the first disk.

I did a Custom Install of Fedora Core 5.

Partitioning - I recommend at least 3 partitions: a 10GB / main partition, a 10GB /home partition and a 1GB <swap> partition. The main partition is where your applications will be installed. The /home partition will hold all your personal data (larger is better). The <swap> should be at least as large as your physical memory (if you wish to support things like ACPI hibernate).
Boot Loader - I install Grub on the / partition, NOT the MBR. To do this, select Configure Advanced Boot Loader Options and install to First sector of boot partition. I use Bootpart from Windows 2000 to load Linux. An alternative to Bootpart is the NT OS Loader + Linux mini-HOWTO (also Grub Win2K Howto). I recommend this so you do not corrupt your Windows installation in a Dual-Boot environment.
General Package Selection The primary options for installation are the following. You can select these and skip individual package selection (next step) if you plan to install most of your software. It is recommended you at least pick certain applications.
Office and Productivity - [Highly Recommended]
Software Development - [Highly Recommended / Required]
Web Server - [Optional (useful for web developers)]
Idividual Package Selection - apx 3.7-3.9GB. - This step should NOT be skipped to make sure you grab a some specific important packages. You are free to select whatever you want. The following in my experience are common useful suggestions:
Desktop Environments
[Highly Recommended] - Select both GNOME Desktop Environment and KDE (K Desktop Environment)
Applications
Graphical Internet - [Optional] - Add gftp, kdewebdev, thunderbird.
Sound and Video
[Recommedended] - Delete HelixPlayer (will be replaced with RealPlayer).
[Highly Recommended] - Add k3b (for CD/DVD creation), mikmod (needed for xmms).
Development
[Required] - Development Libraries and Development Tools.
[Recommended] - Select both GNOME Software Development and KDE Software Development.
[Highly Recommended] - Add Legacy Software Development.
[Optional] - Java and Eclipse are not necessary unless you are a (java) developer. However this is NOT the same as Sun's Java software.
Servers
[Highly Recommended] - Add Server Configuration Tools.
[Required] - Add Windows Files Server (required to share files with Windows computers).
Base System
[Optional] - Remove Java if you wish, you will still have to install Sun Java software later.
[Required] - Add Legacy Software Support.
[Recommended] - Add System Tools.
X Windows System - [Recommended] - Add switchdesk.
Install the selected packages and reboot. For the first boot:

Firewall - It is recommended you learn to use your firewall regardless of your internet connection or if you have a hardware router/firewall (D-Link, Netgear, etc.).
Security Enhanced Linux Setting - SELinux has slightly changed from FC4. SELinux will require a great deal of extra settings to get certain applications to work properly. SELinux will always provide greater security but will also add nuisances. It is easier to disable SELinux now and enable it later, than the opposite. However, I recommend people try SELinux first. I have SELinux = Enforcing.
Date and Time - Network Time Protocol - Enable this ONLY if you have an active working internet connection that is on (ex: broadband, T1, DSL). Do not enable NTP Broadcast unless you have other linux machines on your network.
Display - Video Resolution - Set this to the correct settings you know should work even if it doesn't seem to fit properly on the screen.
System User - Create 1 user account for yourself. Always use that account DO NOT use root as your personal account. This is a cause of many mistakes, and root was never intended for personal use.
Top Home


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

Custom Boot Settings
20 March 2006

* [Optional] - I duplicate the entry first entry and remove 'rhgb' which
  prevents the Graphical Boot Loader from running. (Or you can remove the rhgb RPM).

* [Optional] - If Security Enhanced Linux (selinux) is causing problems. You can
  add 'selinux=0' to force disable selinux at boot.

* You may remove 'quiet' if you would like to see the kernel boot information.

* If you put a 3 at the end of the 'kernel' line you can force grub to boot
  into runlevel 3.

* [Strongly Recommended] - Remove 'hiddenmenu' to see the Grub boot menu at
  boot time. This may come in handy during a problem.

---

edited /boot/grub/grub.conf:

#hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,9)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1
        initrd /boot/initrd-2.6.15-1.2054_FC5.img

title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,9)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.15-1.2054_FC5.img

Top Home


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

Installed Nvidia Driver
21 March 2006

The currently available driver (1.0-817 from Nvidia does NOT support
the Xorg installation in FC5 and it requires some updates to support
newer kernels (2.6.15 and newer). However with certain modifications
the Nvidia driver will work.

NOTE: The 2.6.15-1.2054_FC5 has a bug preventing binary
drivers from properly loading.

The process requires obtaining modified nvidia packages, compiling them,
and installing them.

1. Download the following packages into a work directory (I used 'fc5-nv'):

xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386.rpm
nvidia-kmod-1.0.8178-0.lvn.3.2.6.15_1.1881_FC5.src.rpm

from
http://beta.glwb.info/nvidia/

2. (NON 2.6.15-1.2054_FC5) Compile the nvidia-kmod package:

[root@charon fc5-nv]# rpmbuild --rebuild --target `uname -m` nvidia-kmod-*.src.rpm

2. (ONLY 2.6.15-1.2054_FC5) Compile using my modified SPEC file:
Obtain the file SPEC file: http://www.mjmwired.net/resources/files/nvidia-kmod-mjm.spec

[root@charon fc5-nv]# rpm -ivh nvidia-kmod-1.0.8178-0.lvn.3.2.6.15_1.1881_FC5.src.rpm
[root@charon fc5-nv]# rpmbuild -bb ./nvidia-kmod-mjm.spec --target `uname -m`

(make sure to have the kernel headers installed)

3. Copy the newly created nvidia-kmod package into your current work directory:

[root@charon fc5-nv]# cp -v /usr/src/redhat/RPMS/`uname -m`/kmod-nvidia* .
`/usr/src/redhat/RPMS/i686/kmod-nvidia-1.0.8178-0.lvn.3.2.6.15_1.2054_FC5.i686.rpm' -> `./kmod-nvidia-1.0.8178-0.lvn.3.2.6.15_1.1955_FC5.i686.rpm'

4. Install both the 'nvidia-kmod' package and 'xorg-x11-drv-nvidia' package together:

[root@charon fc5-nv]# rpm -ivh kmod-nvidia-1.0.8178-0.lvn.3.2.6.15_1.2054_FC5.i686.rpm xorg-x11-drv-nvidia-1.0.8178-0.lvn.5.i386.rpm

5. For SELinux users
If you have SELinux you may find problems with execstack
"cannot enable executable stack as shared object requires: Permission denied"

There are ways to manually modify each affected file with the 'execstack'
command, however I found that the following change was a single step and
easier:

[root@charon fc5-nv]# setsebool -P allow_execstack=1

Additionally I had problems loading the GLX module, to fix run:

[root@charon fc5-nv]# setsebool -P allow_execmod=1

6. Enable the 'nvidia-glx' Service

[root@charon ~]# chkconfig --level 35 nvidia-glx on
[root@charon ~]# /etc/init.d/nvidia-glx start

7. Reset the X-server

If you logout and instantly see the NVidia logo you are DONE!!!

Otherwise: Reboot not required. Just logout,
Go to a text console [CTRL][ALT][F1] (or F2,F3,F4)
Login as root, and run:

[root@ charon~]# init 3; init 5

You should see the NVidia logo.

Source of this information:
FC5 Test 2 : Nvidia Finally Successful!
https://www.redhat.com/archives/fedora-test-list/2006-February/msg02031.html

Top Home


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

GCC Compatibility
1 March 2006

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

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

With 'yum', run:

[root@charon fc5]# yum install compat-libstdc++-33 compat-libstdc++-296


Top Home


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

Install GCC 3.2
1 March 2005

Some applications will NOT compile in GCC 4.1. You can install GCC 3.2
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 FC5 CD-disk3
or DVD or online. Running 'yum install' on these names will also work.

compat-gcc-32
compat-gcc-32-c++

With 'yum', run:

[root@charon fc5]# yum install compat-gcc-32 compat-gcc-32-c++

To use either, run 'gcc32' or 'g++32'.
I have more information on using alternate compilers.

Top Home


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

SELinux: Security-enhanced Linux
20 March 2006

SELinux allows certain levels of control over what parts of Linux
can be accessed by whom. This is very useful for servers, or certain
daemons or services which are directly connected to the web,
example: webservers, databases, etc.

SELinux configuration in FC5 is nice in some places and confusing in others.

Please attempt to try to make SELinux work for you. There are some resources
listed below. If you suspect SELinux problems try the following:
* Check /var/log/messages or run 'dmesg' for information
* Try temporarily disabling SELinux at the prompt and try whatever command
   you were trying before: 'setenforce 0' and enabling after: 'setenforce 1'
* Try modifying your SELinux Policy for your specific application using
   the 'system-config-securitylevel' application. Most common issues can be
   resolved here.

More information:
SELinux in Fedora Core 5
SELinux commands
http://fedora.redhat.com/docs/selinux-faq/
http://www.crypt.gen.nz/selinux/faq.html


To Disable SELinux

In my protected environment I do not use SELinux as I am the only
user on my machine and I have no open connections to the web. Although
leaving SELinux does make any machine more secure if properly setup.

I am not recommending you disable SELinux, however it may be an
easier solution for those who don't need it.

Disable SELinux:
EDIT '/etc/selinux/config'
Change:
SELINUX=enforcing
to:
SELINUX=disabled

Disable SELinux from grub. Previous method is recommended.
EDIT /boot/grub/grub.conf (as above):
ADD 'selinux=0' on your kernel line in grub.

Top Home


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

ALSA
1 March 2006

ALSA now comes standard in Fedora Core. The 2.6 kernel includes ALSA.

FC5 detected, tested and played sound perfectly on the first try. No
additional configuration changes were required. Previous problems were
noted on my Fedora Core 3 Guide or my Fedora Core 2 Guide.

A common problem with many users is finding that their mixer settings
were either muted, turned off, or volume was set to 0.

My sound: Analog Devices AD1980 / VIA 8235
ALSA driver: via82xx
Mainboard: Asus A7V8X-X, VIA KT400 chipset

Top Home


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

Install XMMS mp3 Player
20 March 2006

Fedora Core 5 does NOT ship with XMMS, you must install from
the Fedora Extras (http://download.fedora.redhat.com/pub/fedora/linux/extras/5/i386/)
or from some other location.

If you download the RPM's individually,
make sure you have the 'mikmod' dependancy noted above in the install.

Otherwise install xmms through yum (Fedora Extras are automatically supported):

# yum install xmms

If you use the Fedora Extras site, there will be NO MP3 plugin.
The RPM for FC5 from freshrpms will include MP3 support:

http://bordeaux.freshrpms.net/rpm.html?id=752
http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/xmms-mp3/

Get:
xmms-mp3-1.2.10-15.fc5.i386.rpm

Run:
[root@charon fc5]# rpm -ivh xmms-mp3-1.2.10-15.fc5.i386.rpm


If you want the XMMS status plugin for Gnome and KDE, go here:

http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/xmms-status-plugin-1.0-2.rhfc3.nr.i386.rpm

Get:
xmms-status-plugin-1.0-2.rhfc3.nr.i386.rpm

Run:
[root@charon fc5]# rpm -ivh xmms-status-plugin-1.0-2.rhfc3.nr.i386.rpm

---

Run xmms through the menu or by running 'xmms' at the shell.
And go to the XMMS Options:

Options > Preferences >

Audio I/O Plugins > Input Plugins

Disable: MPEG Layer 1/2/3 Placeholder Plugin   [librh_mp3.so]
==> UNCHECK [ ] Enable Plugin

Audio I/O Plugins > Output Plugin

SET: ALSA 1.2.10 ouput plugin  [libALSA.so]

General Plugins

Enable: Status Docklet Plugin 1.0   [libstatusdocklet.so]
==> Check [ ] Enable Plugin
Apply


Top Home


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

Install Microsoft Truetype Fonts
11 May 2005

http://corefonts.sourceforge.net/

You have to make the RPM, to speed things up I've created the RPM:
msttcorefonts-1.3-4.noarch.rpm

[root@charon fc5]# rpm -ivh msttcorefonts-1.3-4.noarch.rpm
[root@charon fc5]# /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 Home


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

Disable Unneeded Services/Daemons
2 March 2006

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


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

Macromedia Flash Plugin
23 March 2006

http://macromedia.mplug.org/

Current Version: 7.0.63   (03/15/2006)
RPM Version:     7.0.63-1 (03/15/2006)

Fedora Core      flash-plugin (apt, yum rpm)

file:

flash-plugin-7.0.63-1.i386.rpm

[root@charon fc5]# rpm -ivh flash-plugin-7.0.61-1.i386.rpm

Preparing...                ########################################### [100%]
   1:flash-plugin           ########################################### [100%]

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.

NOTE:
Due to the changes in Xorg and resulting changes in directories,
the Flash plugin will not load text properly (ex: macromedia.com)
The following 'workaround' should fix this:

[root@charon ~]# cd /usr/X11R6
[root@charon X11R6]# mkdir lib
[root@charon lib]# cd lib
[root@charon lib]# ln -s /etc/X11/ X11


Top Home


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

Installed Java Internet Plugin
1 March 2006

NOTE: Fedora Core 5 advises AGAINST using the Sun Java RPM.
Information can be found in the FC5 Release Notes on Java since the RPM may be
overwritten by a 'yum update' due to similar package names.

However if you do NOT use the FC5 Java packages, this should not affect you.

URL: http://java.sun.com/j2se/1.5.0/download.jsp

Choose the LATEST JRE Update, currently 6:

JRE 5.0 Update 6  includes the JVM technology
        The J2SE Runtime Environment (JRE) allows end-users
        to run Java applications. More info...
        Download JRE 5.0 Update 6

Make sure to (*) Accept License Agreement

Choose:

Linux Platform
Linux self-extracting file (jre-1_5_0_06-linux-i586.bin, 15.99 MB)

Run:
[root@charon fc5]# sh ./jre-1_5_0_06-linux-i586.bin
(type 'yes')
[root@charon fc5]# mv -f jre1.5* /opt/jre1.5
[root@charon fc5]# ln -s /opt/jre1.5/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so


(If you update the JRE package, simply delete the /opt/jre1.5 directory and
copy the update to /opt/jre1.5 -- there will be no need to update the 'ln' link.)

---

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

[root@charon fc5]# /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5/bin/java 2
[root@charon fc5]# echo 2 | alternatives --config java

[root@charon fc5]# java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

Top Home


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

Xterm Default Xresources
15 June 2005

Settings, for EVERY user:

EDIT /etc/X11/Xresources
ADD at the END:

xterm*visualBell: true
xterm*background: Black
xterm*foreground: Wheat
xterm_color*background: Black
xterm_color*foreground: Wheat
xterm*scrollBar: true

To reload Xresources, run:
[mirandam@charon ~]$ xrdb -merge /etc/X11/Xresources
or simply restart the X-server.


Top Home


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

Modify BASH Defaults
11 May 2004

Settings, for EVERY user:

EDIT /etc/bashrc
ADD to the END of the file:

# alias interactive
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

These prevent common errors of deleting or overwriting files.

Top Home


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

Setup Samba
20 March 2006

Make sure you have Samba installed in the installation process.

EDIT /etc/samba/smb.conf
Set your Windows Workgroup name in [global] section.

Added shares at the end of the file:
[media]
   path = /mnt/media
   public = yes
   writable = no
[work]
   path = /mnt/work
   public = yes

   writable = yes

If 'writable' the location need to be writable in Linux first.
Example: NTFS is not writable in Linux.
If home data (all work in /home/username) is to be accessible,
then set 'browseable = yes' under [homes] (~line 182).

Run samba check for errors:
/etc/init.d/smb start

Use chkconfig or serviceconf to enable samba (smb) in both runlevels 3 and 5.

[root@charon samba]# chkconfig --list smb
smb             0ff   1ff   2ff   3ff   4ff   5ff   6ff
[root@charon samba]# chkconfig --level 35 smb on
[root@charon samba]# chkconfig --list smb
smb             0ff   1ff   2ff   3:on    4:off   5:on    6:off

Add users who can access these shares with the 'smbpasswd' command.
This does NOT need to match your Linux password. This should be the
login name and password you use from Windows when accessing your
Linux computer.

[root@charon samba]# smbpasswd -a username
New SMB password:
Retype new SMB password:
Added user username.

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

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

[root@charon samba]# /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,
make sure to RESTART samba!

Top Home


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

Mount NTFS Partitions
21 March 2006

Either recompile your kernel for NTFS read support -OR- obtain the
matching proper kernel module. Again make sure you have the correct
version (example similar to: 2.6.15-1.2054_FC5).
Use the 'uname -rm' command for more information.

Go to http://www.linux-ntfs.org/content/view/187/
for the module/rpm.
Go to http://www.linux-ntfs.org/content/view/127/63/
for the instructions.

[root@charon fc5]# uname -rm
2.6.15-1.2054_FC5 i686

I selected '2.6.15-1.2054_FC5' 'i686' for my Athlon-XP computer. Both parts MUST match.

[root@charon fc5]# rpm -ivh kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.4.i686.rpm
Preparing...                ########################################### [100%]
   1:kernel-module-ntfs-2.6.########################################### [100%]

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

Check Partitions

Check how many NTFS partitions you have:

[root@charon fc5]# fdisk -lu /dev/hda | grep NTFS
/dev/hda1   *          63    16771859     8385898+   7  HPFS/NTFS
/dev/hda2        16771860    33543719     8385930    7  HPFS/NTFS
/dev/hda3        33752628    67312349    16779861    7  HPFS/NTFS

Usually the first will be C drive, next D, etc.

Create Mount Points

Instead of /media/, you can also use /mnt/, both will work, but make
sure to make the correct edits in all places.

[root@charon fc5]# cd /media/
[root@charon media]# mkdir c_drive
[root@charon media]# mkdir d_drive
[root@charon media]# mkdir 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).

Mount Partitions

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

[root@charon media]# mount /dev/hda1 /media/c_drive/ -t ntfs -r -o umask=0222
[root@charon media]# mount /dev/hda2 /media/d_drive/ -t ntfs -r -o umask=0222
[root@charon media]# mount /dev/hda3 /media/e_drive/ -t ntfs -r -o umask=0222

Update /etc/fstab

Open '/etc/fstab' in an editor and 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

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 'ntfs' when
mounting and when editting '/etc/fstab'.

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

Top Home


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

Install Realplayer
1 March 2006

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

Select: "Download RPM Package"

NOTE: You can have both HelixPlayer and RealPlayer installed,
however I strongly recommend using RealPlayer over HelixPlayer.

Check for HelixPlayer:

[root@charon fc5]# rpm -q HelixPlayer
HelixPlayer-1.0.6-1.2.2

Uninstall HelixPlayer:

[root@charon fc5]# rpm -e HelixPlayer

Install RealPlayer 10 GOLD:

[root@charon fc5]# rpm -ivh RealPlayer10GOLD.rpm
Preparing...                ########################################### [100%]
   1:RealPlayer             ########################################### [100%]

NOTE: Since RealPlayer is compiled in GCC 3.2 and
FC5 uses and links to GCC 4.1, you will need compat-libstdc++-33 RPM.
This file is found on CD3 of the FC5 disks. (see: compatibility)

----

(IF NECESSARY) Reset Mozilla/Firefox Plugin Cache. This must be
done for EVERY user.

Mozilla:
[mirandam@charon ~]$ rm ~/.mozilla/pluginreg.dat
FireFox:
[mirandam@charon ~]$ rm ~/.mozilla/firefox/pluginreg.dat

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

Top Home


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

Setting Login Screen Defaults
1 March 2006

Incomplete


Top Home


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

Install Kernel Headers
20 March 2006

The Kernel Headers are available through the kernel-devel RPM.

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.

Look on online.
Or use 'yum'.

Make sure you match your system, using the 'uname' command.
[root@charon fc5]# uname -rm
2.6.15-1.2054_FC5 i686

Select: kernel-devel-2.6.15-1.2054_FC5.i686.rpm

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

# yum install kernel-devel


Top Home


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

Install Kernel Source
3 March 2006

(to be updated based on FC5-test3)

Installing the kernel source is typically NOT needed unless you wish to
re-compile your kernel or for some special development. However in most
cases the kernel headers are 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 over 570MB of disk space!

Obtaining Kernel Source (for default FC5 kernel)

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

Select: ernel-2.6.15-1.2054_FC5.src.rpm   14-Mar-2006 18:28   46M       


Obtaining Kernel Source (for updated FC5 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.

The following is an EXAMPLE
[root@charon fc5]# uname -r
2.6.15-1.2059_FC5

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


Obtaining Kernel Source through 'yum'

There are yum utilities which will download the LATEST kernel source.

[root@charon fc5]# yum install yum-utils
[root@charon fc5]# yumdownloader --source kernel


Install the SRC.RPM file and Prepare source

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

Install:
[root@charon fc5]# rpm -ivh kernel-2.6.15-1.1955_FC5.src.rpm
   1:kernel                 ########################################### [100%]

Set it up:

[root@charon fc5]# rpmbuild -bp --target=noarch  /usr/src/redhat/SPECS/kernel-2.6.spec

The source files will be properly located in '/usr/src/redhat/BUILD/kernel-2.6.15/'
There are 2 useful directories:
  'linux-2.6.15.noarch/'
     This will have the standard kernel.org kernel WITH Fedora patches and updates
  'vanilla/'
     This will have the standard kernel.org kernel ONLY (no patches or updates)


Top Home



--
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 202.113.13.188]

※ 修改:.bigbug 于 Mar 31 11:55:14 修改本文.[FROM: 202.113.13.188]
发表于 2006-4-1 20:26:25 | 显示全部楼层
没中文的啊?   看起来好困难哦.... FC5 都又出来了 ..唉
FC4  ...痛苦的记忆  不知道FC5怎么样
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-12 04:23 , Processed in 0.062034 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表