Last active
April 2, 2017 11:15
-
-
Save navin-mohan/cba1cd30e22b37249e377595ae8c782b to your computer and use it in GitHub Desktop.
Configure Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat << EOF > ~/src | |
deb [arch=amd64] http://mirror.cse.iitk.ac.in/debian/ jessie main contrib non-free | |
deb-src [arch=amd64] http://mirror.cse.iitk.ac.in/debian/ jessie main contrib non-free | |
deb [arch=amd64] http://mirror.cse.iitk.ac.in/debian/ jessie-updates main contrib non-free | |
deb-src [arch=amd64] http://mirror.cse.iitk.ac.in/debian/ jessie-updates main contrib non-free | |
deb [arch=amd64] http://security.debian.org/ jessie/updates main contrib non-free | |
deb-src [arch=amd64] http://security.debian.org/ jessie/updates main contrib non-free | |
EOF | |
echo "COPYING sources list for APT" | |
sudo cp ~/src /etc/apt/sources.list | |
echo "DONE" | |
sudo apt-get update | |
echo "INSTALLING Dependencies" | |
sudo apt-get -y install fakeroot build-essential linux-source-3.16 | |
echo "DONE" | |
mkdir ~/kernel | |
echo "COPYING Kernel Source" | |
cp /usr/src/linux-source-3.16.tar.gz ~/kernel/ | |
echo "DONE" | |
cd ~/kernel | |
echo "EXTRACTING KERNEL" | |
tar -xvzf linux-source-3.16.tar.gz | |
echo "DONE" | |
echo "CONFIGURING KERNEL" | |
VERSION=$(uname -r) | |
cp /boot/config-$VERSION ~/kernel/linux-source-3.16/.config | |
echo "DONE" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment