cat /etc/issue
wget https://mirror.tuna.tsinghua.edu.cn/kernel/v5.x/linux-5.4.284.tar.xz
apt-get install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm dwarves
tar xvf linux-5.4.284.tar.xz
cd /home
mkdir ./seed
cd seed
mkdir ./work
cd work
mv /home/vagrant/csc3150/linux-5.15.10 /home/seed/work
cd ./linux-5.15.10/
make mrproper
make clean
make menuconfig
# Make your terminal size big enough, otherwise the menu won't pop up
# In the menu, use '->' to navigate to 'save', press 'enter', press 'enter' again to save the config, then use '<-' to navigate to 'exit' and press 'enter'
sudo apt-get install bc
# Start compiling (this can take about 30 minutes)
make -j$(nproc)
# Install kernel modules
make modules_install
# Install kernel
make install
# Reboot to load the new kernel
reboot
# Reconnect to the virtual machine. After reboot, you can select the updated kernel.
# (If you can't select the version, that's because grub selects the latest version by default)
# Check current kernel version
uname -r