Easy and generic Linux kernel compilation procedure

  1. Become root.
    su # or sudo su on ubuntu
  2. Reach a source folder.
    cd /usr/src # or /usr/local/src
  3. Get the preferred version.
    wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.1.tar.xz
  4. Extract the downloaded archive.
    tar xvf linux-4.6.1.tar.xz
  5. Enter the extracted folder
    and copy the preferred configuration from /boot to .config in the current folder.
    cp /boot/config-4.6.0-1-pae .config
  6. Configure the kernel compilation using menuconfig,
    libncurses is required.
    make menuconfig
  7. Launch the build.
    Add deb-pkg parameter on debian to get packages.
    I did not test rpm.
    make LOCALVERSION=-centrino -j3 # deb-pkg
  8. Install the kernel, create initrd, and configure grub.
    On debian only extract the deb packages located in ../ using dpkg -i *.deb command.
    After rebooting the new kernel should be displayed in the grub menu.
    make modules_install && make install && mkinitrd -k 4.6.1-1-pae-centrino

Tested on Ubuntu and OpenSuse.


Clean Oracle JDK install debian / ubuntu

ARM example

sudo su
cd /home/pi
wget http://download.java.net/jdk8/archive/b98/binaries/jdk-8-ea-b98-linux-arm-vfp-hflt-10_jul_2013.tar.gz?q=download/jdk8/archive/b98/binaries/jdk-8-ea-b98-linux-arm-vfp-hflt-10_jul_2013.tar.gz -O java.tar.gz
mkdir -p /opt
tar zxvf java.tar.gz -C /opt
rm java.tar.gz
update-alternatives –install “/usr/bin/java” “java” “/opt/jdk1.8.0/bin/java” 1
update-alternatives –set java /opt/jdk1.8.0/bin/java
java -version

Oracle download :

wget –no-check-certificate –no-cookies –header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.tar.gz