# Get required packages sudo apt-get install kernel-package build-essential libncurses-dev debhelper # Get kernel sources (one that has longterm support) and save it to /usr/src. sudo wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.35.tar.xz -O /usr/src/linux-3.12.35.tar.xz # Untar the kernel source.. cd /usr/src sudo tar xvf linux-3.12.35.tar.xz # Make menuconfig. Make any changes you want. usually you can leave it as the default. Exit and save the config. cd linux-3.12.35/ sudo make menuconfig # Make the kernel. Change to root here else it'll fail.. sudo -s # Grab a drink.. depending on your machine this will take a while.. time fakeroot make-kpkg -j3 --initrd --revision=3.12.35 --append-to-version=-amd64 kernel_image kernel_headers kernel_source # Install the newly built packages. # Go back one directory.. cd ../ dpkg -i linux-*-3.12.35-*.deb reboot # Once rebooted ensure you have the other packages required to build installed. sudo apt-get install libdigest-sha-perl libproc-processtable-perl # Download the files for the driver from the Blackgold site. wget -U "Mozilla/5.0 (X11; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0" "http://home.btconnect.com/blackgold/Downloads/BGT3xxx%20Linux_Source_Release_Pack_V1-0.rar" -O bgdrivers.rar # Install rar.. Requires non-free repo add it to /etc/apt/sources.list sudo nano /etc/apt/sources.list # your sources.list should look like this. # =========================== deb http://ftp.uk.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.uk.debian.org/debian/ wheezy main contrib deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib # wheezy-updates, previously known as 'volatile' deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib #============================= sudo apt-get update sudo apt-get install unzip rar # Make a dir for the unrar-ed drivers.. mkdir "BGT3xxx Linux_Source_Release_Pack_V1-0" cd "BGT3xxx Linux_Source_Release_Pack_V1-0" # unrar them (make sure you're in the "BGT3xxx Linux_Source_Release_Pack_V1-0" directory and the bgdrivers.rar is in one directory up (cd ../ to check). rar x ../bgdrivers.rar ./ # Download the fix zip from AVforums.. wget "https://www.avforums.com/attachments/bgt3xxx-zip.507217/" -O ~/BGT3xxx.zip # Unzip in current directory (you should still be in "BGT3xxx Linux_Source_Release_Pack_V1-0") unzip ~/BGT3xxx.zip # You should see a list of files extracted. # Now run MakeBGT3xxx.sh ./MakeBGT3xxx.sh # With any luck you should have no issues building..