October 21, 2017, 02:10:38 PM
Welcome, Guest. Please login or register.

Author Topic: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)  (Read 1780 times)

Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« on: October 15, 2015, 10:52:18 PM »
Hi all,

This tutorial is not for new Linux users and i will not take any responsibility on what this can do (or not) to your pc or your laptop.

PART 1

What you need know:

1. Don't use this on old pc's and laptop hardware
2. You are going to install 4.2.3 kernel
3. This can broke something in your BackBox installation
4. Before you start, check http://liquorix.net/ too see why you can do this
5. Don't use this kernel on servers
6. Tested with BackBox 4.4

First find and remove older kernels:

Code: [Select]
sudo apt-get install aptitude
aptitude search ~ilinux-image

To remove older kernel versions use this command (check your kernel version with uname -r, before
removing any version from you system), this is just one example.

Code: [Select]
sudo apt-get autoremove linux-image-3.13.0-25-generic
Don't remove all of them, keep 2 versions. You can deal with them if all goes ok with new liquorix/zen kernel. Then we need to install 4.9 gcc version that we need to use in kernel build process.

Code: [Select]
add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install g++-4.9

Installing new kernel:

Code: [Select]
nano /etc/apt/sources.list
Add

Code: [Select]
#LIQUORIX KERNEL
deb http://mirror.unit193.net/liquorix sid main
deb-src http://mirror.unit193.net/liquorix sid main

Then:

Code: [Select]
apt-get update
apt-get install liquorix-keyring

#32bit without PAE

Code: [Select]
apt-get install linux-image-liquorix-686 linux-headers-liquorix-686
#32-bit with PAE (HIGHMEM64G):

Code: [Select]
sudo apt-get install linux-image-liquorix-686-pae linux-headers-liquorix-686-pae
#64bit

Code: [Select]
sudo apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
Then type:

Code: [Select]
sudo reboot
PART 2

P.S. If you are using NVIDIA before reboot:

Code: [Select]
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

# OR If you are updating the kernel and you have installed the drivers already

Code: [Select]
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo aptitude reinstall nvidia-current nvidia-settings

What you will get with this kernel?

My laptop is Thinkpad x201 with i5 and 8gm of ram. I got better performances and network speed is even better. I tested aircrak-ng, openvas and some other tools and on my side all looks ok.

Good luck and have fun (on your own risk) :).


Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #1 on: October 16, 2015, 02:44:04 AM »
Ok, as this is Debian kernel i was sure that some bugs will popup:

Code: [Select]
sudo perl -pi -e 's,GRUB_CMDLINE_LINUX="(.*)"$,GRUB_CMDLINE_LINUX="$1 apparmor=1 security=apparmor",' /etc/default/grub
sudo update-grub
sudo reboot

This will fix AppArmor restart/start on boot.

I saw few errors on boot, but i didn't have time to check them all. One is cups (linux printer server), but that is standard issue with default kernel as well. Bluetooth is not in best shape, but this is old hardware.

Offline 0E 800

  • If something can corrupt you, you're corrupted already.
  • Top Hat Member
  • Elite
  • ********
  • Posts: 961
  • Internets: +154/-0
  • ??? ???????? ?s ?? ??c?c??-???
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #2 on: October 16, 2015, 03:49:04 PM »
Thank you for sharing. Gonna try this out on some other os's. You didnt need to have re-install compat-drivers/backports for wifi injection?
"He who passes not his days in the realm of dreams is the slave of the days."

Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #3 on: October 16, 2015, 07:46:32 PM »
Like always, share good stuff :). Nop, i have last Alfa network card (2015 edition) and i don't need backports to run network tools. Just when i have found this i wanted to try because i used zen kernel once or twice before. This kernel was optimized for pc's/laptops and i wanted to give try  to Thinkspad x201 and BackBox 4.4.

Have fun, but keep one kernel version as backup. And if something goes wrong you can remove it like any other kernel, use tips from the beginning of this tutorial.

Have fun testing and learning, like i do every time :)

Offline H4v0K

  • Administrator
  • Elite
  • *****
  • Posts: 1019
  • Internets: +986/-1
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #4 on: October 17, 2015, 06:12:15 AM »
+1 thanks for sharing :)

Offline 0E 800

  • If something can corrupt you, you're corrupted already.
  • Top Hat Member
  • Elite
  • ********
  • Posts: 961
  • Internets: +154/-0
  • ??? ???????? ?s ?? ??c?c??-???
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #5 on: October 19, 2015, 04:00:38 PM »
Hint:

  If you have issues with the Liquorix 4.2 kernel, you can install the 4.1 version.
Same instructions just change the sources.list too
Code: [Select]
#LIQUORIX KERNEL
deb http://mirror.unit193.net/liquorix sid past
deb-src http://mirror.unit193.net/liquorix sid past

Also if you dont like seeing the 'Loading Kernel 4.2 ...' at boot up and want to remove it:

Code: [Select]
sudo geany /etc/grub.d/proxifiedScripts/linuxin two places you need to change:

Code: [Select]
echo '$(echo "message" | grub_quote)'to
Code: [Select]
#echo '$(echo "message" | grub_quote)'
|comment out those 2 lines and save.
Code: [Select]
sudo update-grubReboot.

*!*Note: You will most likely have to apply the edit every-time grub is updated.

Still trying to figure out how to turn off the start-up penguins.
First a little information, the penguin (Tux) images at boot are supposed to represent the amount of CPUs the machine has. I guess its helpful to make sure the kernel compiled correctly. Me personally I want my OS to seamlessly boot from Grub to Plymouth splash to DM-login. I dont want to see any boot messages.

To remove tux logo from boot screen:
Code: [Select]
sudo nano /etc/default/grubadd
Code: [Select]
GRUB_CMDLINE_LINUX="logo.nologo"Save.
Code: [Select]
sudo update-grub
sudo reboot
« Last Edit: October 19, 2015, 04:24:38 PM by 0E 800 »
"He who passes not his days in the realm of dreams is the slave of the days."

Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #6 on: October 21, 2015, 05:05:46 AM »
Hi 0E 800,

Yep, you can install older kernels but i didn't check them from version 3.8. This is good idea, GRUB_CMDLINE_LINUX="logo.nologo" ;).

Cheers!

Offline ZEROF

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 225
  • Internets: +45/-1
    • Pentester
Re: Installing LIQUORIX (ZEN) KERNEL 4.2.3 for fun and profit :)
« Reply #7 on: October 28, 2015, 02:15:23 AM »
Hi,

I just upgraded to 4.2.4, looks ok for me.