How to: Compile a new Kernel & Install Xorg 7.2
Disclaimer: Remote-Exploit nor myself take any responsibility for any damage caused to your system by following this guide. Use at your own risk
I've received a lot of PMs and seen a decent amount of threads about people looking to compile the latest kernel and I've recently done this in BT2 as well as installed Xorg 7.2. I thought I'd share my experience and lend some help to people who may be thinking about doing the same thing. If you find any problems or mistakes please send me a PM and I will update immediately.
Compiling and installing the Kernel:
1. Before you do any kind of such work, have a backup of everything.
2. Obtain the kernel you wish to compile: ftp://ftp.kernel.org/pub/linux/kernel/ for me this was 126.96.36.199 this was key for getting my 965GM video card working correctly.
5. Edit your lilo.conf config, make the following changes:
6. Next open up
image = /boot/vmlinuz.old
label = OldKernel
7. Then cd back to where you downloaded the new kernel too and
Uncomment the line...
8. Next we create a symlink to linux from the new kernel:
tar zxf linux-2.6.XX.XX.tar.gz
9. It's a good idea to use the configuration of your current working kernel as a basis for your new kernel. You will be editing it in a second if you nee to change anything before the install, do it then. So we copy the existing configuration to /usr/src/linux:
ln -s linux-188.8.131.52 linux
10. Now we run:
make clean && make mrproper
cp /boot/config-`uname -r` ./.config
11. The kernel configuration menu will pop up, proceed to the bottom where it says:
Load an Alternate Configuration File
12. If you happen to have the same chipset I do, this next step is imperative. Navigate to:
Press space to build this module into the kernel. It should show up as a (*) to the left of it.
Device Driver -> Character Devices -> Scroll down to /dev/agpgart
13. Exit out of everything when you're done and it will ask if you'd like to save your changes, select Yes.
14. Now that we have everything configured let's go ahead and start to build the kernel:
This could take a while if you have a slow computer.
15. When all is said and done check to make sure it installed the bzImage to you /boot directory and that lilo.conf was altered to reflect the new kernel compilation.
16. Reboot and enjoy your new kernel. If something goes wrong, you can always boot back to you're old kernel and see what happened.
"ALSA (an acronym for Advanced Linux Sound Architecture) is a Linux kernel module that replaces several different kernel drivers for sound cards with a single device driver which handles the diversity of sound cards internally. Some of the goals of the ALSA project were to support automatic configuration of sound card hardware, and graceful handling of multiple sound devices in a system, goals which it has largely met.
1. Unpack the source:
2. Change to the new directory:
bunzip2 alsa-driver* && tar -xvf alsa-driver*
3. Configure alsa:
4. Begin compilation:
5. Begin install:
6. If your card is supported(http://www.alsa-project.org/alsa-doc/), run 'alsaconf' and follow the directions:
Then, to configure sound and mixer options:
Compiling and installing the latest Xorg 7.2
If that's not enough for you, this guide will take you through the steps of installing the latest Xorg 7.2 server. I needed to do this as well to get my new 965GM chipset working.
1. Uninstall you're old version of xorg (removepkg) packages are located in /var/log/packages
2. Download the new packages. I got my packages from the pinki1 build. Don't download the auto script it will not work for you, trust me.
3. I downloaded them all to /var/log/packages then installed them (installpkg)
Note: you can also edit /etc/profile and find the lan that says:
/usr/X11R7/lib to /etc/ld.so.conf
Add /usr/X11R7/bin to the PATH variable
And change X11R6 to X11R7
5. Now is the time to install any graphic drivers if you happen to be using the lintel drivers you can find the install directions from: http://intellinuxgraphics.org/install.html and the actual drivers from: http://xorg.freedesktop.org/releases...l-2.0.0.tar.gz
6. Change all the fontpaths in /etc/X11/xorg.conf from
7. Change your fontpaths in /etc/fonts/fonts.conf:
8. Install these packages:
might be changed to
Note: Change xcb-proto to xcb-proto.tgz so you can install it:
mv xcb-proto xcb-proto.tgz
9. Run /usr/X11R6/bin/fc-cache -f from root and user if you have another account.
10. Congratulations you're now running xorg 7.2
Problem editing Makefile.
Having problems finding this in the Makefile.
I was able to find this.
# INSTALL_PATH specifies where to place the updated kernel and system map
# images. Default is /boot, but you can set it to other values
export INSTALL_PATH ?= /boot
It already was uncommented... but it also has the ?
Should the "?" be taken out?
Thanks in advance!