LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Kernel Installer
#6
Cause I like the tool Smile I added the lines for kernel 4.7...

I just copied any 4.6 line and replaced the 4.6 with 4.7.. Should it work or not  Tongue but its downloading - something..
I'm again testing on the Mini... Others as Jerry suggests, for virtual box use...

Code:
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Lite Kernel Select
# Description: Select a Linux Kernel to install on Linux Lite.
# Authors:  Jerry Bezencon
# Website: https://www.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------

# 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" \
FALSE "Kernel 4.7.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


elif [[ "$KERNLIST" =~ "Kernel 4.7.0" ]]; then
    apt-get install linux-headers-linuxlite-4.7.0 linux-image-linuxlite-4.7.0 -y | zenity --progress --title="$tb" --text="$dl 4.7.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


Update
After letting run the better of an hour, the install box didn't close so I did and rebooted... Mini is on 4.7 so far so good after initial tests...
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
Reply


Messages In This Thread
Select Kernel Installer - by Valtam - 05-28-2016, 08:14 AM
Re: Select Kernel Installer - by Ottawagrant - 05-28-2016, 03:16 PM
Re: Select Kernel Installer - by Valtam - 05-28-2016, 11:55 PM
Re: Select Kernel Installer - by firenice03 - 06-03-2016, 12:48 PM
Re: Select Kernel Installer - by Valtam - 06-03-2016, 01:03 PM
Re: Select Kernel Installer - by firenice03 - 07-26-2016, 01:23 AM
Re: Select Kernel Installer - by tomt - 08-22-2016, 10:25 PM
Re: Select Kernel Installer - by firenice03 - 04-27-2017, 01:46 AM
Re: Select Kernel Installer - by Valtam - 04-27-2017, 02:43 AM
Re: Select Kernel Installer - by ralphy - 04-27-2017, 04:32 AM
Re: Select Kernel Installer - by firenice03 - 04-27-2017, 04:40 AM
Re: Select Kernel Installer - by Valtam - 04-27-2017, 04:43 AM
Re: Select Kernel Installer - by ralphy - 04-27-2017, 05:10 AM
Re: Select Kernel Installer - by Valtam - 04-27-2017, 07:32 AM
Re: Select Kernel Installer - by ralphy - 05-03-2017, 10:21 PM
Re: Select Kernel Installer - by firenice03 - 05-03-2017, 11:05 PM
Re: Select Kernel Installer - by Scott(0) - 05-04-2017, 01:51 AM
Re: Select Kernel Installer - by torreydale - 05-04-2017, 02:45 AM
Re: Select Kernel Installer - by zygmunto - 05-04-2017, 04:10 AM
Re: Select Kernel Installer - by TMG1961 - 05-04-2017, 07:45 AM
Re: Select Kernel Installer - by Ottawagrant - 05-04-2017, 11:51 AM
Re: Select Kernel Installer - by ralphy - 05-05-2017, 08:20 AM
Re: Select Kernel Installer - by ralphy - 05-06-2017, 09:49 PM
Re: Select Kernel Installer - by TMG1961 - 05-07-2017, 07:42 AM
Re: Select Kernel Installer - by ralphy - 05-07-2017, 11:52 AM
Re: Select Kernel Installer - by torreydale - 05-07-2017, 01:10 PM
Re: Select Kernel Installer - by Valtam - 05-07-2017, 01:12 PM
Re: Select Kernel Installer - by torreydale - 05-07-2017, 01:23 PM
Re: Select Kernel Installer - by ralphy - 05-07-2017, 01:34 PM
Re: Select Kernel Installer - by torreydale - 05-07-2017, 01:38 PM
Re: Select Kernel Installer - by Valtam - 05-07-2017, 01:53 PM
Re: Select Kernel Installer - by bayoubooger - 05-07-2017, 02:01 PM
Re: Select Kernel Installer - by firenice03 - 05-07-2017, 02:59 PM
Re: Select Kernel Installer - by Jocklad - 05-07-2017, 04:54 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)