You are Here:
Linux Lite 6.0 RC1 Released - See Release Announcements



Upgrade Script

Author (Read 21779 times)

0 Members and 1 Guest are viewing this topic.

Re: Upgrade Script
« Reply #15 on: February 02, 2015, 06:50:22 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello Jerry,

Congratulations on the release of the update script.
Thank you for all the work on the upgrade process.

I will be following the update script tutorial this week, on my usual LL install (not a fresh install), and will reply on how it goes.
 

Re: Upgrade Script
« Reply #16 on: February 03, 2015, 10:11:22 AM »
 

banko

  • Forum Regular
  • ***
  • 154
    Posts
  • Reputation: 16
  • Linux Lite Member

  • Linux Lite: 4.4 64bit

  • CPU: Dual core Celeron CPU T3300 (-MCP-)

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4 Series Integrated
Misko and Jerry,

Just letting you know, I've upgraded my old netbook, using your script, without any problem at all :D

I had installed LL 2.0 early Dec and did not have much on it, only things not important, so I just went for it ( no problem if I messed it up).

It took about 45 mins to do it all, including reboot.

Everything was there as it was before upgrade.

So far, more than impressed and very grateful.

So a massive thanks to you both :D

Keith
« Last Edit: February 03, 2015, 10:14:10 AM by banko »
 

Re: Upgrade Script
« Reply #17 on: February 03, 2015, 12:10:44 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8280
    Posts
  • Reputation: 777
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Misko and Jerry,

Just letting you know, I've upgraded my old netbook, using your script, without any problem at all :D

I had installed LL 2.0 early Dec and did not have much on it, only things not important, so I just went for it ( no problem if I messed it up).

It took about 45 mins to do it all, including reboot.

Everything was there as it was before upgrade.

So far, more than impressed and very grateful.

So a massive thanks to you both :D

Keith

Thanks for the feedback Keith :)
 

Re: Upgrade Script
« Reply #18 on: February 05, 2015, 06:30:30 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Reputation: 154
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

I've got several here that I haven't bother to upgrade because I didn't think 2.2 was significant enough of an upgrade to have to reinstall EVERYTHING on EVERY machine here. I guess I'll make a pretty good guinea pig, because between all the different machines, I have a mix of programs. Right now, the problem is finding the time.

I am working on three different websites. Two are for non-profit organizations. I have found that BlueGriffon is the best WYSIWYG HTML editor out there, regardless of platform. Kompozer just doesn't display web sites nearly as well.

If anyone else out there is using one that's better, lets us know. But PLEASE, start another thread, for Jerry's sake.

I've made a New Year's resolution to not drift off-topic. I plan to keep it...

73 DE N4RPS
Rob


A gun in your hand is worth more than a whole police force on the phone.
 

Re: Upgrade Script
« Reply #19 on: February 05, 2015, 12:46:32 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello Jerry and misko,

the upgrade went smoothly, it took 19 minutes to complete, including checking for updates after completion.
All is working correctly with zero errors after upgrade.
 

Re: Upgrade Script
« Reply #20 on: February 05, 2015, 01:56:04 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi Jerry & Misko,

Updated...

Tested on my HP Laptop i5-4200u not i5-4500u
Including re-boot the upgrade took approx 7 mins, the home-upgrade part seemed to be almost instantaneous.

All appears to be working fine, tested networking, printing and common apps.

Many Thanks... Dave
« Last Edit: February 07, 2015, 04:49:54 AM by Wirezfree »
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Upgrade Script
« Reply #21 on: February 05, 2015, 10:06:29 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8280
    Posts
  • Reputation: 777
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Hello Jerry and misko,

the upgrade went smoothly, it took 19 minutes to complete, including checking for updates after completion.
All is working correctly with zero errors after upgrade.

Brilliant, thank you for responding bitsnpcs :)
 

Re: Upgrade Script
« Reply #22 on: February 05, 2015, 10:08:31 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8280
    Posts
  • Reputation: 777
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Hi Jerry & Misko,

Tested on my HP Laptop i5-4500u
Including re-boot the upgrade took approx 7 mins, the home-upgrade part seemed to be almost instantaneous.

All appears to be working fine, tested networking, printing and common apps.

Many Thanks... Dave

Thanks for letting us know Dave. The home-upgrade part should be very quick, it backs up a few kilobytes worth of files, then modifies existing ones. Lots of code but small outcome :)
 

Re: Upgrade Script
« Reply #23 on: February 05, 2015, 11:26:38 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello Jerry and misko,

the upgrade went smoothly, it took 19 minutes to complete, including checking for updates after completion.
All is working correctly with zero errors after upgrade.

Brilliant, thank you for responding bitsnpcs :)

I forgot to add the system info, it is a P4 2.0Ghz, 1Gb RAM.
 

Re: Upgrade Script
« Reply #24 on: February 06, 2015, 01:04:49 PM »
 

riser

  • Occasional Poster
  • **
  • 66
    Posts
  • Reputation: 30
  • Linux Lite Member

  • Linux Lite: 1.0.6
Hi Jerry,

I plan on testing this process sometime this month.  I was not looking forward to a full clean LL 2.2 install given all the customization I have make, but always wanted the increased speed and latest packages.

I took a look at the script and would like to suggest some code changes for easier maintenance and reduced overhead.  Feel free to ignore, and I must mention this code is not fully tested (I tested bits of changes to ensure the resulting commands are equivalent).

riser

Code: [Select]

#!/bin/bash
#----------------------------------------------------------------
# Description: Linux Lite Upgrade Script
# Authors: Misko_2083, Jerry Bezencon 2015
# Website: https://www.linuxliteos.com
#----------------------------------------------------------------

# Use zenity to execute the passed-in command
run_command() {
    stdbuf -oL /bin/bash -c "$1" | stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/*$/ s/^/# /p' | zenity --progress --title="$2" --pulsate --width=600 --auto-close
    return $?
}

# Ensure multi-language support
export LANG=C

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

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

# Linux Lite default dialog icon
ic="/usr/share/icons/zenity-llcc.png"

# Get list of available updated packages
zenity --question --title="Linux Lite Upgrade Utility" --window-icon="/usr/share/icons/zenity-llcc.png" --text="We will now Upgrade your system to Linux Lite 2.2\n\nPlease ensure you are connected to the internet before you start.\n\nAt the end of this upgrade, please reboot and complete the upgrade process.\n\nClick Yes to continue or No to abort."

if [ "$?" -ne "0" ]; then
   exit 0
fi

# Update packages
x=run_command 'sudo apt-get update \-y' 'Updating package information...'

# Erase existing available info
sudo dpkg --clear-avail

# Create /etc/apt/apt.conf.d/local to leave /etc/issue and /etc/lsb-release defaults (only needed in LL 2.2)
x=run_command 'cd /tmp && wget http://repo.linuxliteos.com/upgrade/local && sudo mv local /etc/apt/apt.conf.d/ && sudo chown root:root /etc/apt/apt.conf.d/local && sleep 2' 'Automating default configuration...'

# Install new packages, remove obsolete packages, clean up
x=run_command 'sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade \-y && sudo apt-get install inxi libreoffice-gnome dmz-cursor-theme file-roller lite-welcome lite-cleaner catfish deja-dup system-config-date light-locker thunar-archive-plugin whiskermenu \-y && sudo apt-get update \-y && sudo apt-get remove xarchiver \-y && sudo apt-get autoremove \-y && sudo apt-get clean' 'Upgrading to Linux Lite 2.2...'

# Add new wallpapers
x=run_command 'cd /tmp && wget http://repo.linuxliteos.com/upgrade/2.0-2.2/walls-2.2.tar.gz && sudo tar -xvf walls-2.2.tar.gz -C /usr/share/backgrounds/xfce/ && cd /usr/share/backgrounds/xfce/ && sudo chown root:root *.jpg && sudo chown root:root *.png && sleep 2' 'Adding new wallapapers...'

# Update plymouth, lsb_release and issue files /etc changes
x=run_command 'sudo sed -i "s/Linux Lite 2.0/Linux Lite 2.2/g" /etc/llver && sudo sed -i "s/Linux Lite 2.0/Linux Lite 2.2/g" /etc/lsb-release && sudo sed -i "s/Linux Lite 2.0/Linux Lite 2.2/g" /etc/issue && sleep 2' 'Updating version information...'

# /lib/plymouth/themes/ubuntu-text/ changes
echo "s/Ubuntu 14.04/Linux Lite 2.2/g
s/black=0x2c001e/black=0x000000/g
s/white=0xffffff/white=0xffffff/g
s/brown=0xff4012/brown=0xffff00/g
s/blue=0x988592/blue=0x000000/g" > /tmp/sed_rules.$$
x=run_command 'sudo sed -i -f /tmp/sed_rules.$$ /lib/plymouth/themes/ubuntu-text/ubuntu-text.plymouth && sudo update-initramfs -u' 'Updating boot configuration please wait...'

# Update to new login screen
x=run_command 'cd /tmp && wget https://github.com/linuxlite/litelogin/archive/master.zip && unzip master.zip && for FILE in index.theme index.html low_contrast_linen.png style.css; do sudo cp /tmp/litelogin-master/usr/share/lightdm-webkit/themes/linuxlite/$FILE /usr/share/lightdm-webkit/themes/linuxlite; done && sudo rm -rf master.zip && sudo rm -rf litelogin-master/ && sleep 2' 'Updating to new login theme...'

# Ask to view upgrade log - TO DO
# example of log inclusion - x=$( stdbuf -oL /bin/bash \-c '(sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade \-y )' 2>&1 | tee /var/log/llupdates.log |
# PROCEED=$(zenity --question --title="$APPNAME Updates" --window-icon=/usr/share/icons/zenity-llcc.png --text="Updates have finished installing.\n\nWould you like to view the $APPNAME Updates log?"; echo $?)
# if [ ${PROCEED} -eq 1 ]; then
#   zenity --info --title="$APPNAME Updates" --window-icon="${INSTALL_ICON}" --text="$APPNAME Updates Complete."
#   exit;
# else
#   zenity --text-info --ok-label="Quit" --cancel-label="Cancel" --title="Updates Log" --width=700 --height=300 --filename="/var/log/llupdates.log"
# fi

# exit 0

# Reboot dialogue
# Credit to xunil: http://bbs.archbang.org/viewtopic.php?id=279
title="Select Reboot to complete the System Upgrade"
exit_type=`zenity  --width="400" --height="220" --title="$title" --list --radiolist --column="Select" \
    --column="Exit Type" --column="Description" \
    TRUE "Reboot" "Reboot your computer"\
    FALSE "Shutdown" "Shutdown your computer"\
    FALSE "Cancel" "Continue using your computer" `

# User must select a target type (Check if they cancelled)
if [ ! "$exit_type" ]; then
   zenity --error --title="Error" --text="You must make a selection"
    exit
fi

# Action to perform by user
if [ "$exit_type" = "Reboot" ]
then
    # Do Reboot here
    sudo shutdown -r now | zenity --progress --percentage=95 --title=Reboot --auto-close --auto-kill --no-cancel --width=300
elif [ "$exit_type" = "Shutdown" ]
then
    # Do Shutdown here
    sudo shutdown -h now | zenity --progress --percentage=95 --title=Shutdown --auto-close --auto-kill --no-cancel --width=300
else
    # Do Cancel here
    exit 0
fi
« Last Edit: February 06, 2015, 01:33:00 PM by riser »
 

Re: Upgrade Script
« Reply #25 on: February 06, 2015, 01:10:09 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8280
    Posts
  • Reputation: 777
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thank you riser, could you please edit your code to include #comments for any changes/additions.
 

Re: Upgrade Script
« Reply #26 on: February 06, 2015, 01:35:30 PM »
 

riser

  • Occasional Poster
  • **
  • 66
    Posts
  • Reputation: 30
  • Linux Lite Member

  • Linux Lite: 1.0.6
I essentially made 3 changes:
- Consolidate running zenity based commands using a function (so any changes to behavior are done in one place and code is cleaner)
- Replaced the multiple 'sed -i' replacements of the theme text with a single 'sed -f'
- Moved/changed logic to exit if user does not want to upgrade
 

Re: Upgrade Script
« Reply #27 on: February 07, 2015, 03:19:29 AM »
 

banko

  • Forum Regular
  • ***
  • 154
    Posts
  • Reputation: 16
  • Linux Lite Member

  • Linux Lite: 4.4 64bit

  • CPU: Dual core Celeron CPU T3300 (-MCP-)

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4 Series Integrated
further to my post about the upgrade taking 45 mins,
I should have added that this was on a old netbook with a 16 gig SSD, which slow read write times made it almost unusable.
But LL made it at least usable and this 45 mins should be the maximum time anyone should take.

I think Dave's 7 minutes is pretty awesome.

Keith.
 

Re: Upgrade Script
« Reply #28 on: February 08, 2015, 11:58:02 PM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Reputation: 154
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

I ran the upgrade script on a Samsung RV515-A03US with 8GB RAM and a 1TB HD, and it only took a couple of minutes to upgrade. This is a LOT less time than ANY of the Ubuntu upgrades take. Will keep you informed as I upgrade the other lappies around here.

I ended up with some leftover GRUB entries from 2.0, which I edited out with Grub Customizer. Other than that, it worked like a champ...

73 DE N4RPS
Rob

UPDATE: I upgraded the 32-bit 2.0 install on my Gateway Tablet PC (M285E, 2 GB RAM, 320GB HD) to 2.2. It was successful, but I had to run boot-repair on it to fix GRUB, then reinstalled grub-customizer. All better now, and what you came up with is certainly better than not being able to upgrade!

Did the upgrade on the HP nc6320 (4 GB RAM, 1 TB HD) after (temporarily) removing grub-customizer, and reinstalled GC afterward. No issues other than having to update the GRUB entries to reflect 2.2 instead of 2.0...
« Last Edit: February 10, 2015, 06:46:10 AM by N4RPS »


A gun in your hand is worth more than a whole police force on the phone.
 

Re: Upgrade Script
« Reply #29 on: February 09, 2015, 06:30:49 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8280
    Posts
  • Reputation: 777
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thanks Rob. I haven't decided yet the simplest way to deploy the upgrade process. We'll come up with something :)
 

 

-->
X Close Ad

Linux Lite 6.0 RC1 Released - See Release Announcements