You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Select Kernel Installer

Author (Read 19396 times)

0 Members and 4 Guests are viewing this topic.

Re: Select Kernel Installer
« Reply #4 on: June 03, 2016, 08:48:49 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Must say this is pretty slick tool...
I installed to the Mini - Running LL3.0 32bit.. Yes on a non-VM system.... Tried both 3.18 and 3.16..
Have a systemback back up on the in-case and am ok if I would have to start over..


I installed mainly to test for better hardware support for the USB WiFi.. For a rtl8192cu
On a note; I haven't seen any differences between the kernels as far as the hardware but the installer tool works really well.
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: Select Kernel Installer
« Reply #3 on: May 28, 2016, 07:55:14 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
You can use this now to install a kernel, but that's all it does.
 

Re: Select Kernel Installer
« Reply #2 on: May 28, 2016, 11:16:20 AM »
 

Ottawagrant

  • Forum Regular
  • ***
  • 182
    Posts
  • Reputation: 28
  • Linux Lite Member
    • View Profile

  • CPU: Intel Duo Core 2 E8400 @ 3.00GHz

  • MEMORY: 12Gb

  • VIDEO CARD: Mesa DRI Intel Q45/Q43
Thank you for starting this. I have newer computer & older computers. The older computer really do like older kernels. On an older HP I installed the LL kernel from 2.0 onto 2.8 & the computer just hummed along. Understood that it's Beta, so I'll just make a note of it for now. This really helps for people who want to use LL 3.0 to 3.8.
 

Select Kernel Installer
« Reply #1 on: May 28, 2016, 04:14:37 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
This is a very simple kernel installer I've started working on. At this stage, I haven't decided if this will develop into a LL package, but people have asked for it.

The code so far:
Code: [Select]
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Lite Kernel Select
# Description: Select a Linux Kernel to install on Linux Lite.
# Authors:  Jerry Bezencon
# Website: https://www.linuxliteos.com
#--------------------------------------------------------------------------------------------------------

# Ensure multi-language support
export LANG=C

# Kill off any package managers that may be running
if [ "$(pidof synaptic)" ]
then
   sudo killall -9 synaptic
fi

if [ ! -z "$(pgrep gdebi-gtk)" ]
then
   killall -9 gdebi-gtk
fi

# Set the window icon variable
ic="/usr/share/icons/zenity-llcc.png"

# Set the Title bar variable
tb="Lite Kernel Select"

# Download message variable
dl="Downloading and installing Kernel"

# Update package list
zenity --question --title="$tb" --window-icon="$ic" --text="We will now fetch the Updates list.\n\nClick Yes to continue or No to abort."
   if [ "$?" -eq "0" ];then

    APTUPDATE=$(grep '^deb' -c /etc/apt/sources.list) # Total of repositories registered, this is approximated
    sudo apt-get update 2>&1 | awk -v total=$APTUPDATE '/^Ign|^ Get/{count++;$1=""} FNR { if (total != 0){percentage=int (100*count/total);print (percentage < 90?percentage:90),"\n#",substr($0, 0, 128) }; fflush(stdout)}' \
      | zenity --progress --text="Updating package lists..." --window-icon=$ic --title="Updating Software Sources - please wait..." --percentage=0 --auto-close --width=600

                                if [ "${PIPESTATUS[0]}" -ne "0" ]; then

                                        unset APTUPDATE
                                        zenity --error \
                                        --title="Error" --text="$APPNAME couldn't fetch the package cache information lists."

                                        exit 1
                                fi
unset APTUPDATE

KERNLIST=$(zenity --title="Select a Kernel from the list" \
--height=300 --width="320" \
--list --radiolist --text "Select a Kernel to install:" \
--column "Select" --column "Kernel Version" \
FALSE "Kernel 3.15.0" \
FALSE "Kernel 3.16.0" \
FALSE "Kernel 3.17.0" \
FALSE "Kernel 3.18.0" \
FALSE "Kernel 3.19.0" \
FALSE "Kernel 4.0.0" \
FALSE "Kernel 4.1.0" \
FALSE "Kernel 4.2.0" \
FALSE "Kernel 4.3.0" \
FALSE "Kernel 4.4.0" \
FALSE "Kernel 4.5.0" \
FALSE "Kernel 4.6.0")

if [[ "$KERNLIST" =~ "Kernel 3.15.0" ]]; then
    apt-get install linux-headers-linuxlite-3.15.0 linux-image-linuxlite-3.15.0 -y | zenity --progress --title="$tb" --text="$dl 3.15.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 3.16.0" ]]; then
    apt-get install linux-headers-linuxlite-3.16.0 linux-image-linuxlite-3.16.0 -y | zenity --progress --title="$tb" --text="$dl 3.16.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 3.17.0" ]]; then
    apt-get install linux-headers-linuxlite-3.17.0 linux-image-linuxlite-3.17.0 -y | zenity --progress --title="$tb" --text="$dl 3.17.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 3.18.0" ]]; then
    apt-get install linux-headers-linuxlite-3.18.0 linux-image-linuxlite-3.18.0 -y | zenity --progress --title="$tb" --text="$dl 3.18.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 3.19.0" ]]; then
    apt-get install linux-headers-linuxlite-3.19.0 linux-image-linuxlite-3.19.0 -y | zenity --progress --title="$tb" --text="$dl 3.19.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.0.0" ]]; then
    apt-get install linux-headers-linuxlite-4.0.0 linux-image-linuxlite-4.0.0 -y | zenity --progress --title="$tb" --text="$dl 4.0.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.1.0" ]]; then
    apt-get install linux-headers-linuxlite-4.1.0 linux-image-linuxlite-4.1.0 -y | zenity --progress --title="$tb" --text="$dl 4.1.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.2.0" ]]; then
    apt-get install linux-headers-linuxlite-4.2.0 linux-image-linuxlite-4.2.0 -y | zenity --progress --title="$tb" --text="$dl 4.2.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.3.0" ]]; then
    apt-get install linux-headers-linuxlite-4.3.0 linux-image-linuxlite-4.3.0 -y | zenity --progress --title="$tb" --text="$dl 4.3.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.4.0" ]]; then
    apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0 -y | zenity --progress --title="$tb" --text="$dl 4.4.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.5.0" ]]; then
    apt-get install linux-headers-linuxlite-4.5.0 linux-image-linuxlite-4.5.0 -y | zenity --progress --title="$tb" --text="$dl 4.5.0, please standby..." --pulsate --auto-kill --auto-close


elif [[ "$KERNLIST" =~ "Kernel 4.6.0" ]]; then
    apt-get install linux-headers-linuxlite-4.6.0 linux-image-linuxlite-4.6.0 -y | zenity --progress --title="$tb" --text="$dl 4.6.0, please standby..." --pulsate --auto-kill --auto-close
            else
                                        zenity --error \
                                        --title="Error" --text="There was an error while\nDownloading and installing the Kernel!"
                        fi

fi
exit 0

Open a terminal:

Code: [Select]
touch kernelinstaller
copy the above code into kernelinstaller (open kernelinstaller with a Text Editor). Now save the file.

Code: [Select]
chmod +x kernelinstaller
gksudo ./kernelinstaller

There is no end dialogue, when the Zenity message has closed, you can reboot.

This is very Beta and as such, should only be installed in a VirtualBox. When you reboot, hold down Shift key to bring up Grub, go to Advanced, and you should see the Kernel in the list, select it and press enter.

To dos:

- Initial window "Install Kernel" and "Remove Kernel" select list
- Confirm kernel is installed dialogue
- Better output in zenity, percentage of install process (similar to updates-gui)
- Move just installed kernel to the top of the list in Grub before rebooting

You can use grub-customizer for now to move the kernel you chose to install, to the top of the Grub list.
Use Lite Tweaks to remove any kernels for now.

Any contributing code from dev's is welcome :)
« Last Edit: May 28, 2016, 04:17:17 AM by Jerry »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section