SparkyLinux Forums

Software & hardware support => Sparky applications => Topic started by: pavroo on November 01, 2014, 03:05:31 PM

Title: System Upgrade
Post by: pavroo on November 01, 2014, 03:05:31 PM
There is a new application ready in our repo called "System Upgrade" (sparky-aptus-upgrade).
It provides the recommended way for upgrading Sparky without answers for some questions.
There is only one question you have to answer: Upgrade now?
The app has the internet test check out built in - if you forget to make connection, it will display specific info.
Sparky APTus lets you make every step in your way - it's manual tool, but sparky-aptus-upgrade can do it automatically, similar like in others distributions.
But it's smaller and faster, with 'sparky touch'.

Test it and install. please, and report anything wrong you find.
I was testing and rebuilding it last few days, so it should working fine.
If everything will be OK, I'm gonna enclose it to the next sparky iso images.

Installation:
sudo apt-get update
sudo apt-get install sparky-aptus-upgrade


Run it from Menu-> System-> System Upgrade
Title: Re: System Upgrade
Post by: way12go on November 01, 2014, 04:30:52 PM
I'm using Sparkylinux JWM and I edited the jwmrc.xml file as follows... and it works. I even saved the root password in gnome-keyring with no password. I have to enter root password while I use terminal and in all other cases it's automated by keyring.

Quote<Separator/>
<Program label="Task Manager" confirm="false">lxtask</Program>
<Separator/>
<Program label="Iceweasel" confirm="false">iceweasel</Program>
<Separator/>
<Program label="Chromium" confirm="false">chromium</Program>
<Program label="TOR Browser" confirm="false">start-tor-browser</Program>
<Separator/>
<Program label="Google Earth" confirm="false">googleearth %f</Program>
<Separator/>
<Program label="USB Image Writer" confirm="false">remsu mintstick -m iso</Program>
<Separator/>
<Program label="USB Stick Formatter" confirm="false">remsu mintstick -m format</Program>
<Separator/>
<Program label="System Upgrade" confirm="false">remsu aptus-upgrade</Program>
<Separator/>
<Program label="Google Chrome" confirm="false">google-chrome</Program>
<Separator/>
Title: Re: System Upgrade
Post by: way12go on November 01, 2014, 04:45:42 PM
All I've is a small doubt.

Sometimes when I try to upgrade the downloading comes to a grinding halt then I press ctrl+c and enter the upgrade command again and this time it goes smoothly so what if this small app stops downloading and we can't even see what's going on.
Title: Re: System Upgrade
Post by: pavroo on November 01, 2014, 04:52:26 PM
In a situation like that, apt tries to keep downloading for a while.
So you have to try again.
I will think about an extra pop up message.
Title: Re: System Upgrade
Post by: GeneC on November 01, 2014, 05:17:33 PM
Hi pavroo... :D

I installed it but it wont launch? (from terminal)
(even as root).
gene@sparky:~$ sparky-aptus-upgrade
bash: sparky-aptus-upgrade: command not found
gene@sparky:~$ sudo sparky-aptus-upgrade
[sudo] password for gene:
sudo: sparky-aptus-upgrade: command not found


gene@sparky:~$ apt-cache policy sparky-aptus-upgrade
sparky-aptus-upgrade:
  Installed: 0.1.4
  Candidate: 0.1.4
  Version table:
*** 0.1.4 0
        500 http://sparkylinux.org/repo/ testing/main amd64 Packages
        100 /var/lib/dpkg/status


=====================

Edit:

OOPS... :-[

Nevermind.. It works....
Missed this.
QuoteRun it from Menu-> System-> System Upgrade
Yes, it runs from there just fine. (How do I launch from terminal...so I can see if there are any errors, et..?..)

EDIT2:.. ::)

Found it..
gksu /usr/bin/aptus-upgrade
Title: Re: System Upgrade
Post by: pavroo on November 01, 2014, 08:00:38 PM
@GeneC
Ooppss...
QuoteFound it..
gksu /usr/bin/aptus-upgrade
New version 0.1.5 is in our repo now. The binary file's name is the same as the 'deb' package.

@way12go
After upgrading change your JWM menu entry from 'aptus-upgrade' to 'sparky-aptus-upgrade'
Title: Re: System Upgrade
Post by: GeneC on November 01, 2014, 09:15:12 PM
Nice..!!
Thanks... ;)
Title: Re: System Upgrade
Post by: pavroo on November 04, 2014, 09:33:46 PM
There is a newer version of sparky-aptus-upgrade 0.1.6 ready to go.
I changed gui window for terminal on the main process (downloading and upgrading).
Sometimes it needs user reaction - gui doesn't provide it but a terminal does.
The second reason is the visible effect of the progress.
Title: Re: System Upgrade
Post by: way12go on November 05, 2014, 03:59:04 AM
Pavroo is it possible for you to add this to the system upgrade app?

Quotehttp://xmodulo.com/speed-slow-apt-get-install-debian-ubuntu.html

Quotehttp://www.unixmen.com/how-to-find-fastest-official-mirror-lists-with-netselect-apt-on-debian/

QuoteThe fastest 10 servers seem to be:

http://mirror.0x.sg/debian/
http://kartolo.sby.datautama.net.id/debian/
http://shadow.ind.ntou.edu.tw/debian/
http://debian.xtdv.net/debian/
http://mirror.sov.uk.goscomb.net/debian/
http://mirror.vorboss.net/debian/
http://debian.xtdv.net/debian/
http://ukdebian.mirror.anlx.net/debian/
http://ukdebian.mirror.anlx.net/debian/
http://debian.mirrors.ovh.net/debian/

Of the hosts tested we choose the fastest valid for HTTP:
        http://mirror.0x.sg/debian/

Writing sources.list.
Done.

Quote# Debian packages for testing
deb http://mirror.0x.sg/debian/ testing main contrib
# Uncomment the deb-src line if you want 'apt-get source'
# to work with most packages.
# deb-src http://mirror.0x.sg/debian/ testing main contrib

# Security updates for stable
# deb http://security.debian.org/ stable/updates main contrib

Every time I do dist-upgrade [ update ] my system, the download is too slow and it even pauses forever. I had to close it multiple times and restart the script.

I've 15 MBps broadband connection but, the download speed of the update is sometimes few bytes/sec or upto 100kbps and on some ocasions for a very short span of time it shoots to 900kbps. I wish the apt-fast gets implemented.

Configure apt-fast

Quotesudo dpkg-reconfigure apt-fast

Thanks Pavroo.
Title: Re: System Upgrade
Post by: way12go on November 05, 2014, 10:37:00 AM
I installed apt-fast and added 10 fastest mirrors for it and, I changed the single fastest mirror for sources.list

Here is the script as you suggested.

Quote#!/bin/bash

testroot="`whoami`"

if [ "$testroot" != "root" ]; then
    echo "Must be root"
    exit 1
fi

apt-fast update && time apt-fast dist-upgrade -y && apt-fast install -f && apt-get autoremove -y && apt-get autoclean -y

Now the upgrade is amazingly faster and more efficient.

Thanks Pavroo.
Title: Re: System Upgrade
Post by: pavroo on November 05, 2014, 12:05:57 PM
The idea is not bad, but are the mirrors official or 3th party?
Title: Re: System Upgrade
Post by: way12go on November 05, 2014, 12:55:54 PM
I changed the mirror in source.list and also added all ten mirrors to the apt-fast app and dist-upgraded with no problems what so ever. Now that I already changed it on my desktop now, it's the turn of my laptop.
Title: Re: System Upgrade
Post by: way12go on November 05, 2014, 01:10:38 PM
The list of ten mirrors is different when I tried on my laptop. Some of them are common to previous list. But, the main mirror is same for both the tests.

Quotehttp://mirror.0x.sg/debian/
http://kartolo.sby.datautama.net.id/debian/
http://debian.xtdv.net/debian/
http://debian.xtdv.net/debian/
http://ukdebian.mirror.anlx.net/debian/
http://ukdebian.mirror.anlx.net/debian/
http://mirror.i3d.net/pub/debian/
http://mirror.sov.uk.goscomb.net/debian/
http://mirror.vorboss.net/debian/
http://mirror.proserve.nl/debian/
Title: Re: System Upgrade
Post by: py-thon on November 05, 2014, 07:20:10 PM
The fastest mirror is very much dependent on where you are and when you try. LMDE has a tool to check speed of servers and then set the fastest. But with LMDE that was simple because there are less than 20 mirrors at all. If you would check connection speed to all the Debian-mirrors https://www.debian.org/mirror/list you probably lose more time checking than you lose by not connecting to the fastest mirror.

I use http://ftp.debian.org (I think that was the setting when installing Sparky) and usually get an average of more than 200 kiB/s (not on some monitoring tool, but calculated dividing downloaded size by download time) with UMTS/HSDPA-modem simply using Synaptic.
Title: Re: System Upgrade
Post by: way12go on November 06, 2014, 05:24:59 AM
After installing apt-fast and configuring the apt-fast ten mirrors and single mirror in source.list the dist-upgrade finishes in few seconds and this never happened before. Now the apt-fast doesn't use entire 15 MBps speed but it's more than sufficient. Now I remember that I need to increase the number of connections. I will do it. Thanks.
Title: Re: System Upgrade
Post by: pavroo on November 07, 2014, 04:56:42 PM
The final version of sparky-aptus-upgrade 0.1.7 is out.
http://sparkylinux.org/sparky-aptus-upgrade-0-1-7/
I haven't added the apt-fast to it, but I'd like to test it on my laptop soon.
Title: Re: System Upgrade
Post by: grandadruss on November 09, 2014, 09:55:44 AM
Just FYI, network test failed when using usb modem. Will try again when I am back on wifi - which is usual.
Title: Re: System Upgrade
Post by: pavroo on November 09, 2014, 12:11:42 PM
Have you been online with the usb modem when the message popped up?
Title: Re: System Upgrade
Post by: grandadruss on November 10, 2014, 08:20:13 AM
Yes, usb modem was working fine, ran manual upgrade from root terminal no problem.
Sparky-update ran fine tonight on wifi.
Title: Re: System Upgrade
Post by: pavroo on November 10, 2014, 04:50:46 PM
OK, thank's.
Can you grab 'sparky-aptus-upgrade-0.1.7-3' from sourceforge:
http://sourceforge.net/projects/sparkylinux/files/files/apps/sparky-aptus-upgrade_0.1.7-3_all.deb/download
install it and try upgrade again when you will be connected via USB mobile modem, please?

I have changed the connection test so it should works now on any device.
Title: Re: System Upgrade
Post by: grandadruss on November 10, 2014, 10:49:56 PM
All good. Using usb modem, double-checked 1.7.2 - said no connection, installed 1.7.3 as per above, update ran fine, no problems.
So, problem solved, working perfectly.
Thanks. :)
Title: Re: System Upgrade
Post by: pavroo on November 11, 2014, 12:32:41 AM
Cool, thank's :)