schbrdw: Since Ubuntu and Debian share the same arhitecture when it comes to package managers (both uses apt-get and they are based on deb package manager) I recommend you this blog post, hopefully it will work for you:
- Code: Select all
http://hypervion.blogspot.com/2012/07/hardening-263259-kernel-on-32-bit-x86.html
Short story by the way, try these (quoted from the blog post mentioned above):
- Code: Select all
#> apt-get install build-essential fakeroot devscripts
#> make clean
#> make KDEB_PKGVERSION=<custom.1.0> deb-pkg
Like the Kernel Handbook says for KDEB_PKGVERSION:
„The custom.1.0 part in this command is the version identifier, which will get appended to the kernel package name. Feel free to adjust it to your liking. As a result of the build, a custom kernel package linux-image-2.6.59-grsec_custom.1.0_i386.deb (name will reflect the version of the kernel and the revision chosen in the command line above) will be created in the directory one level above the top of the tree.”
These will install some utils needed for compiling the kernel and obviously install it. It will generate a deb package up one level (e.g.: if pwd is "/kernel-enforced/" -- then, the .deb will be in: "/<name of package>.deb").
This is for an x86 32-bit machine. I hope it comes in handy, please come back with feedback.
In addition:
schbrdw wrote:dpkg-deb: building package `linux-image-3.2.23-grsec' in `../linux-image-3.2.23-grsec_3.2.23-grsec-5_i386.deb'.
dpkg-deb (subprocess): data member: internal gzip write error 'No space left on device'
Could you please run a "df -h" and come back with the report about the space that is used and available in your boot partition?