Upgrade redhat9_kernel2.4.2 to 2.6.0 under vmware

Source: Internet
Author: User
Upgrade redhat9_kernel2.4.2 to 2.6.0 under vmware -- Linux general technology-Linux programming and kernel information. For details, refer to the following. Virtual Machine version: vmware: 4.5.1 build-7568
Original kernel version Redhat 9 linux-2.4.20-8
To be upgraded linux-2.6.11.7

Download the linux-2.6.11.7.tar.bz2 to/usr/src and decompress the package.
Ln-s linux-2.6.11.7 linux-2.6
Check the version requirements of the software in/usr/src/linux/document. tion/Changes.

Download and install module-init-tools-3.1.tar.bz2
# Configure -- prefix =/
# Make moveold
# Make all install
#./Generate-modprobe.conf/etc/modprobe. conf
Download and install the device-mapper-1.00.19-2.i386.rpm
Download and install the lvm2-2.00.25-1.01.i386.rpm with rpm-ivph -- nodeps -- force
Download and install the mkinitrd-4.1.18-2.i386.rpm

Make mrproper in/usr/src/linux-2.6 (this step can be saved if it has not been compiled before)
Make menuconfig and select the compiled module.
Device Drivers
Block devices
Change the Default RAM disk size to 8192
USB support
Uhci hcd selected (or OHCI, EHCI cannot work separately)
Select other modules based on actual conditions
Make all
Make modules_install
Make install
Change the corresponding part of/etc/modprobe. conf
Alias usb fs usb core
Alias usb-controller uhci-hcd
Modify the mouse and keyboard (hid, mousedev, keybdev)
In/etc/rc. sysinit
Change usbdevfs to usbfs
Change hid to usbhid.
Modify mousedev and keybdev as needed (changed to USB mouse and USB keybd or commented out)
In/etc/grub. conf
Change default
2.6 Add elevator = deadline to the kernel Section
Reboot

Learning Summary
Openssl + openssh settings, used with PuTTY
/Etc/inetd. conf add ssh stream tcp nowait root/usr/sbin/tcpd sshd-I
Ssh-keygen (Linux/Win) generation of key pairs)
Copy the public key ~ /. Ssh/authorized_keys. The key is used on the client.
CODE: grep-rnH "pattern "*
Find./-name '* name *'-print
Vim
Set foldmethod = indent
Zf %; zi; zo; zO;., $ d
Dmesg
Cat/proc/version
Insmod; lsmod; modprobe-l | grep usb
Useradd-s/bin/bash-g lfs-m-k/dev/null lfs

Cat> ~ /. Bash_profile <"EOF"
Exec env-I HOME = $ HOME TERM = $ TERM PS1 = '\ u: \ w \ $'/bin/bash
EOF

Cat> ~ /. Bashrc <"EOF"
Set + h
Umask 022
LFS =/mnt/lfs
LC_ALL = POSIX
PATH =/tools/bin:/usr/bin
Export LFS LC_ALL PATH
EOF

Readelf-l filename | grep interpreter
Ld -- verbose | grep SEARCH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.