sudo yum group install "Development Tools" sudo yum install kernel-devel sudo yum install qt-devel xz-libs openssl-devel elfutils-libelf-devel sudo yum install valgrind gitk
df -h
command)). Download the latest stable kernel. Unpack it using the following command:
Step 2. Identify
the hardware on your system. Note
the type of CPU you have, amount of memory, the number of SATA drives, SCSI drives
(if any). Look under the entry for PCI bus for network card information, sound card
information and any other specialized PCI cards that the system might have installed.
Alternately you can get the same information by looking at the files /proc/cpuinfo,
/proc/meminfo and /proc/pci. You can also use the command /sbin/lspci.
Step 3. Clean the kernel
source to remove any stale files. Use the following command
in the kernel source directory.
make
mrproper
Step 4. Modify kernel source
if you need to or want to.
Step 5. Configure the
kernel (the main thing to do...). Make sure that you are in the
kernel source directory. Use the following
command to bring up a graphical kernel configurator.
make xconfig
You may need to install some extra software at this point. The error messages should give you enough of a pointer as to what packages to install. Walk through the options, changing the ones you want to and leaving others unchanged. Reasonable defaults are given for most options. For each option there is a help button that describes the option in more detail and advises you of what the safest choice on that option would be. Once you are done choose the Save and Exit option. Some common options that you want to set:
- Make sure you to say y for ext4 journaling file system option under the File Systems menu
- Add support as modules (the dot instead of checkmark option) for fat, vfat and ntfs file systems under the File Systems menu if you are on a dual boot system
Note that make xconfig saves the config file in the hidden file named .config in the main kernel source directory. If you recompile a kernel that you have already compiled and installed, the new kernel will replace the old kernel with the same release number. To create a custom version for the same release, edit the.config
file in the top-level of the kernel source folder and change the following line:
CONFIG_LOCALVERSION=""
to something like the following (before building the kernel):
CONFIG_LOCALVERSION="-My-Custom-Version"
### BEGIN /etc/grub.d/00_header ### . . . ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora (4.6.6-300.fc24.x86_64) 24 (Twenty Four)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-abd618de-9731-4941-9d24-99197c0e0dec' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e8048c96-12dc-493f-bb9e-05d64efc91ab else search --no-floppy --fs-uuid --set=root e8048c96-12dc-493f-bb9e-05d64efc91ab fi linux16 /vmlinuz-4.6.6-300.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8 initrd16 /initramfs-4.6.6-300.fc24.x86_64.img } . . . ### END /etc/grub.d/10_linux ### . . . |
#### BEGIN /etc/grub.d/00_header ### . . . ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora (4.7.2-My-Custom-Version) 24 (Twenty Four)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-abd618de-9731-4941-9d24-99197c0e0dec' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e8048c96-12dc-493f-bb9e-05d64efc91ab else search --no-floppy --fs-uuid --set=root e8048c96-12dc-493f-bb9e-05d64efc91ab fi linux16 /vmlinuz-4.7.2-My-Custom-Version root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8 initrd16 /initramfs-4.7.2-My-Custom-Version.img } menuentry 'Fedora (4.7.2) 24 (Twenty Four)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-abd618de-9731-4941-9d24-99197c0e0dec' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e8048c96-12dc-493f-bb9e-05d64efc91ab else search --no-floppy --fs-uuid --set=root e8048c96-12dc-493f-bb9e-05d64efc91ab fi linux16 /vmlinuz-4.7.2 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8 initrd16 /initramfs-4.7.2.img } menuentry 'Fedora (4.6.6-300.fc24.x86_64) 24 (Twenty Four)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-abd618de-9731-4941-9d24-99197c0e0dec' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e8048c96-12dc-493f-bb9e-05d64efc91ab else search --no-floppy --fs-uuid --set=root e8048c96-12dc-493f-bb9e-05d64efc91ab fi linux16 /vmlinuz-4.6.6-300.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8 initrd16 /initramfs-4.6.6-300.fc24.x86_64.img } . . . ### END /etc/grub.d/10_linux ### . . . |