Skip to content

Instantly share code, notes, and snippets.

@CFM880
Last active November 21, 2025 11:16
Show Gist options
  • Select an option

  • Save CFM880/e8bb591d5e74c13416f17e49c772ad06 to your computer and use it in GitHub Desktop.

Select an option

Save CFM880/e8bb591d5e74c13416f17e49c772ad06 to your computer and use it in GitHub Desktop.
build custom linux for debain
sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison build-essential linux-headers-$(uname -r) libncurses5-dev bc bison flex rsync libelf-dev libssl-dev debhelper-compat libncurses-dev dwarves wget libdw-dev  
cd ~/sources
tar -xf linux-6.17.8.tar.xz 
cd linux-6.17.8/
cp -v /boot/config-$(uname -r) .config 
make menucofig  # don't modify any config, just save
make -j16 bindeb-pkg LOCALVERSION=-cfm880
cd ../
cfm880@cfm880:~/sources$ ls -al linux*
-rw-rw-r--  1 cfm880 cfm880  153387452 11月21日 17:29 linux-6.17.8.tar.xz
-rw-r--r--  1 cfm880 cfm880    9626048 11月21日 18:45 linux-headers-6.17.8-cfm880_6.17.8-6_amd64.deb
-rw-r--r--  1 cfm880 cfm880  164556888 11月21日 18:50 linux-image-6.17.8-cfm880_6.17.8-6_amd64.deb
-rw-r--r--  1 cfm880 cfm880 1052657084 11月21日 18:52 linux-image-6.17.8-cfm880-dbg_6.17.8-6_amd64.deb
-rw-r--r--  1 cfm880 cfm880    1451764 11月21日 18:45 linux-libc-dev_6.17.8-6_amd64.deb
-rw-rw-r--  1 cfm880 cfm880       7025 11月21日 18:52 linux-upstream_6.17.8-6_amd64.buildinfo
-rw-rw-r--  1 cfm880 cfm880       2332 11月21日 18:52 linux-upstream_6.17.8-6_amd64.changes
sudo dpkg -i *.deb
sudo reboot

wait reboot

cfm880@cfm880:~$ uname -a
Linux cfm880 6.17.8-cfm880 #6 SMP PREEMPT_DYNAMIC Fri Nov 21 18:37:11 CST 2025 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment