Skip to content

Instantly share code, notes, and snippets.

@lockness-Ko
Created February 17, 2022 02:57
Show Gist options
  • Save lockness-Ko/1c3f16c8c2f1ea269d5e20ad81fde8ce to your computer and use it in GitHub Desktop.
Save lockness-Ko/1c3f16c8c2f1ea269d5e20ad81fde8ce to your computer and use it in GitHub Desktop.
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
# NOT WORKING!!!
sudo debootstrap stable rootfs/ http://mirror.aarnet.edu.au/debian
sudo chroot rootfs/
# START CHROOT
echo "deb http://mirror.aarnet.edu.au/debian stable main non-free contrib" > /etc/apt/sources.list
apt update
DEBIAN_FRONTEND=noninteractive apt install -y nmap ncat netcat vim nano git build-essential wpasupplicant dhcpcd5
# END CHROOT
# linux kernel url https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.13.12.tar.xz
tar -xvf linux-5.13.12.tar.xz
cd linux-5.13.12/
make mrproper
make defconfig
make -j12
cp -iv arch/x86/boot/bzImage ../vmlinuz
cd ../
conf ter
int g0/1
ip addr 10.137.137.1 255.255.255.0
no shutdown
ip dhcp pool default
default-router 10.137.137.1
dns-server 10.137.137.1
network 10.137.137.0 255.255.255.0
next-server 10.137.137.5
bootfile syslinux.efi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment