Источник Tarball Way
sudo apt-get install linux-source mkdir ~/src cd ~/src tar xjvf /usr/src/linux-source-<version-number-here>.tar.bz2 cd linux-source-<version-number-here>
https://help.ubuntu.com/community/Kernel/Compile#AltBuildMethod
Git Clone Way
sudo apt-get install git-core mkdir ~/src/linux cd ~/src/linux git clone git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git
https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide?action=show&redirect=KernelTeam/KernelGitGuide