Build new Linux Kernel via the CLI.

20 Dec

While trying to solve a persistant message in the console cifs vfs free previous_auth.response I came across a post which suggests a kernel update would resolve the issue.

Install requirements to build the kernel:

apt-get install build-essential libncurses5-dev bison flex libelf-dev ca-certificates bc libssl-dev

Download the kernel, extract, and import current configuration:

cd /tmp
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.11.tar.xz
tar xvf linux-4.19.11.tar.xz
cd linux-4.19.11
cp -v /boot/config-$(uname -r) .config

Run this command, then exit, when prompted (saves a lot of questions during build process):

make menuconfig

Build and create deb packages:

make deb-pkg -j 4

Once complete; deb packages can be found in the directory immediately above:

  • linux-headers-4.19.11_4.19.11-1_amd64.deb
  • linux-image-4.19.11_4.19.11-1_amd64.deb
  • linux-image-4.19.11-dbg_4.19.11-1_amd64.deb
  • linux-libc-dev_4.19.11-1_amd64.deb

It should be noted the only file which needs to be installed is: linux-image-4.19.11_4.19.11-1_amd64.deb.

To install, simply run:

dpkg -i /tmp/linux-image-4.19.11_4.19.11-1_amd64.deb

Once you reboot, you can validate the new kernel is running via:

uname -r

3 thoughts on “Build new Linux Kernel via the CLI.

  1. alprostadil amifostine amikacin aminocaproic acid aminophylline amphotericin B cholesteryl amphotericin B lipid complex amphotericin B liposome anidulafungin argatroban ascorbic acid atropine azathioprine aztreonam bivalirudin bleomycin bumetanide calcium chloride calcium gluconate carboplatin carmustine cefazolin cefepime cefotaxime cefotetan cefoxitin ceftaroline ceftazidime ceftriaxone cefuroxime chloramphenicol cisplatin cladribine clindamycin cyanocobalamin cyclophosphamide cyclosporine cytarabine dactinomycin daptomycin dexamethasone dexmedetomidine digoxin docetaxel doxorubicin liposome enalaprilat ephedrine epinephrine epoetin alfa ertapenem esomeprazole etoposide etoposide phosphate fentanyl fludarabine fluorouracil folic acid foscarnet ganciclovir granisetron hydrocortisone sodium succinate hydromorphone ibuprofen ifosfamide imipenem cilastatin indomethacin ketorolac leucovorin calcium lidocaine linezolid lorazepam mannitol melphalan meropenem methotrexate methylprednisolone metoprolol metronidazole micafungin mitomycin multivitamins nafcillin naloxone nitroprusside octreotide oxacillin oxaliplatin oxytocin paclitaxel palonosetron pamidronate pemetrexed penicillin G pentobarbital phenobarbital phytonadione piperacillin tazobactam potassium acetate potassium chloride procainamide propofol propranolol remifentanil sargramostim sodium acetate sodium bicarbonate succinylcholine sufentanil theophylline thiotepa tigecycline tirofiban tobramycin vitamin B complex with C voriconazole zoledronic acid alemtuzumab atracurium benztropine MORE buy clomid amazon

Leave a Reply

Your email address will not be published.