[ Pobierz całość w formacie PDF ]
.This saves a new configuration file.Check This Out: Say what? You want sound?With Linux, you either have sound or you dont.I know, it seems like a joke, but its the truth.Sound cards for all Linux users are either easy or hard to configure (not much gray area to that).If you happen to be among those who have an easy sound card, then the process of recompiling the kernel discussed in this chapter will get you on the road to cranking out sound.During the recompilation configuration process, youll see a series of sound questions such as the following:Sound card support (CONFIG_SOUND) [Y/n/m/?]/dev/dsp and /dev/audio support (CONFIG_AUDIO) [Y/n/?]MIDI interface support (CONFIG_MIDI) [Y/n/?]FM synthesizer (YM3812/OPL-3) support (CONFIG_YM3812) [Y/n/?]ProAudioSpectrum 16 support (CONFIG_PAS) [N/y/?]Sound Blaster (SB, SBPro, SB16, clones) support (CONFIG_SB)[Y/n/?]Generic OPL2/OPL3 FM synthesizer support (CONFIG_ADLIB) [Y/n/?]Gravis Ultrasound support (CONFIG_GUS) [N/y/?]For basic sound support, always answer yes to the CONFIG_SOUND, CONFIG_AUDIO, and CONFIG_ADLIB options.Youll also need to choose at least one sound card to support.If you know the model and make of your sound card, then youre in good shape and can answer Y to the right one.After you choose your card, youll need to answer a couple of questions about it (IRQ, base address, and so on).With an easy sound card, the setup isnt much different than setting up SCSI controllers, multiport serial boards, or parallel devices.If youre one of the unfortunate souls who has a hard sound card, like the Creative AWE PlugNPlay cards, youre better off without sound for a while.The concepts youll need to know to get this type of sound card going are something for the more seasoned Linux user rather than the beginner, so hang in there!Compiling the Kernel and Necessary ModulesCompiling builds binary files that your computer is able to execute.To build your new kernel, enter the following commands in a root shell.Note that these commands generate a lot of output that I have omitted:[root@digital linux]# make dep[root@digital linux]# make clean[root@digital linux]# make zImage[root@digital linux]# make modulesThe preceding commands (especially make zImage) will take a while.It can be anywhere from a few minutes (on a Pentium computer) to several days (on a 386 computer), depending on your choices and the speed of your hardware.If they all finish without any errors, you are ready to install your new kernel.Installing the New KernelThe newly built kernel exists in /usr/src/linux/arch/i386/boot/zImage.Before you install it, you need to make sure that you dont overwrite the existing kernels.These are stored as /vmlinuz and in /boot/vmlinuz-2.35-modular (the version will depend on your installation).You dont need to move them, simply make sure that you dont overwrite them.If you do and your new kernel fails to work properly, your system might become unbootable.Copy your new kernel, with a new name, into the /boot directory:# cp /usr/src/linux/arch/i386/boot/zImage /boot/vmlinuz-2.35-apmI named my new kernel for its version and added the apm (Advanced Power Management) portion so that I can distinguish it from the existing kernels.Any additional name is fine, provided you dont overwrite an existing kernel.PreviousTable of ContentsNext | | | | | Use of this site is subject to certain ,All rights reserved.Reproduction whole or in part in any form or medium without express written of EarthWeb is prohibited
[ Pobierz całość w formacie PDF ]