You are Here:
Linux Lite 7.0 RC1 Released - See Release Announcement Section



Update Checker

Author (Read 52444 times)

0 Members and 2 Guests are viewing this topic.

Re: Update Checker
« Reply #47 on: February 25, 2016, 11:54:40 AM »
 

fishmanluvslinux

  • New to Forums
  • *
  • 13
    Posts
  • Reputation: 2
  • Loving My Linux Lite
    • View Profile
    • Fishman Loves Linux

  • CPU: Intel Celeron G1620 @ 2.70 Ghz

  • MEMORY: 4Gb

  • VIDEO CARD: NVidia GT210 1024 DDR-3
I am waiting patiently. =]
People Are More Important Than Software!
 

Re: Update Checker
« Reply #46 on: February 25, 2016, 10:54:41 AM »
 

Coastie

  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 656
    Posts
  • Reputation: 53
  • Linux Lite User
    • View Profile

  • CPU: AMD A10-6700 (ASUS M32)

  • MEMORY: 12Gb

  • VIDEO CARD: ADM Radeon HD (integrated)
Nice! How about either days or hours check? Checking once a day is enough to me.


Left Mac OS X for Linux in Jan 2014
 

Re: Update Checker
« Reply #45 on: February 25, 2016, 03:13:24 AM »
 

Wirezfree

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

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Maybe I missed this.?, if Not
If it is running, does the actual tray icon change colour to reflect status.?
Like:
Green  = Running & No Updates
Yellow  = Running & Updates Available
Red     = Running, but problems like, No Internet, Repository Not responding

Blue     = Running, But Updates checks not enabled
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: Update Checker
« Reply #44 on: February 25, 2016, 12:35:07 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8791
    Posts
  • Reputation: 803
  • 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
For all folks, always remain focused on our target audience, Windows users and new folk to linux, not existing linux users. We cannot assume in Linux Lite, we need to spell things out and make them easy to understand. Remember, grandma has to look at this app and understand what it does. It needs to stay simple and not 'over-optioned'.
 

Re: Update Checker
« Reply #43 on: February 25, 2016, 12:24:54 AM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Hi Shaggy,

Another possible option for preferences would be restricting the updates only to security updates.
If someone is out and about and just wants to make sure possible security holes are closed, there wouldn't be the need to download a huge libre office update - if it's not a security patch of course ;)

This will take some consideration, security update is a relative term. Minor fixes for some things, may not always be marked as such. Notability with ppa packages. Which ALOT of users have installed. This feature will be considered for sure, but no promises. My personal intent atm is to provide a means of displaying amount of possible updates. But not all packages with security updates may be flagged as such with how debian/ubuntu/ppa's work in general.

That being said, any and all ideas are welcomed. I try not to influence things with my personal tastes within reason lol.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Update Checker
« Reply #42 on: February 24, 2016, 11:50:12 PM »
 

LL-user

  • I come here a lot
  • *****
  • 457
    Posts
  • Reputation: 215
  • Linux Lite Member
    • View Profile
Hi Shaggy,

Another possible option for preferences would be restricting the updates only to security updates.
If someone is out and about and just wants to make sure possible security holes are closed, there wouldn't be the need to download a huge libre office update - if it's not a security patch of course ;)
 

Re: Update Checker
« Reply #41 on: February 24, 2016, 10:05:14 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Might head to bed soon, or at least lay down for tv lol. But here is another video for folks.


The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Update Checker
« Reply #40 on: February 24, 2016, 08:18:24 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8791
    Posts
  • Reputation: 803
  • 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
Sounds good shaggy.
 

Re: Update Checker
« Reply #39 on: February 24, 2016, 08:15:05 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
I'd going to work on this for sometime tonight, if anyone has any idea's it would be great time to mention it...

So far I'm going to try and build a gui tool for perfs in updater. This will include:

- update interval adjustments

- possibly toggling notifcations


- toggle autostart (removing from right click menu)
« Last Edit: February 24, 2016, 08:18:19 PM by shaggytwodope »
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Update Checker
« Reply #38 on: February 24, 2016, 07:26:40 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
misko_2083,

Hurry and post something else.  You're stuck on a bad luck number of posts.
Want to thank me?  Click my [Thank] link.
 

Re: Update Checker
« Reply #37 on: February 24, 2016, 06:31:31 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
@updater: An option to change the update interval, that would be the most usefull option.  :)

@Network connection testing: great idea
In lite control center, we used this method to check the connection to the internet:
Pinging Gooogle dns servers.
Code: [Select]
ping -c 1 8.8.8.8 2>&1 | grep "connect: Network is unreachable" &>/dev/null
            if [ $? = 1 ]; then
                   echo Active
            else
                    echo Not connected
            fi
But if we use this method when google is down the script would not update. lol
 

Re: Update Checker
« Reply #36 on: February 24, 2016, 06:07:53 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Icon's are not finalized at all. This is up to Jerry or anyone that would like to create or find icon's to use. Some can be theme neutral, so it's a non issue if done right. Short of that a preferences menu may come along in time to permit changing the icon's. I never planned to provide "options" with this tool. But it seems it's only natural. (short of it is.. the current icon's are nothing more then placeholders)

As far as the update script, I've not worked on it at all, short of adding dist-upgrade to it recently. If you have any improvement ideas to that.. open a PR. I've not had time myself to go into detail with it. (Needs some linting fixes lol)  I think in addition to your fix, we may want to consider a network connection testing method before executing. Quite similar to what you've provided.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Update Checker
« Reply #35 on: February 24, 2016, 05:58:51 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
shaggytwodope, how about an option to switch between the dark and light tray icon from the right-click menu?

In /usr/scripts/updates-gui is a method that kills synaptic and gdebi-gtk if they are open.
Code: [Select]
# 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
If there is an install process running that causes problems.
What if a loop runs untill the lock is released or the user clicks Cancel?
Something like:
Code: [Select]
function checklock () {
# Checks for exclusive lock and wait until package managers are closed
while  fuser /var/lib/dpkg/lock 2>&1 >/dev/null  ; do
   echo "# Waiting for other software managers to finish..." $"\n"
   if [ "$(pidof synaptic)" ]; then
      echo "# Please close any open package managers..." $"\nsynaptic"
   fi
   echo 1
   sleep 1
   echo 30
   sleep 1
   echo 60
   sleep 1
   if [ ! -z "$(pgrep gdebi-gtk)" ]; then
      echo "# Please close any open package managers..." $"\ngdebi-gtk"
   fi
   echo 95
   sleep 1
done | (if ! zenity --progress --title="$APPNAME - close any open package managers" --percentage=20 --auto-close;then killall $(basename $0); exit; fi)

}
checklock
 

Re: Update Checker
« Reply #34 on: February 24, 2016, 02:51:23 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
So, new video. Showing some updates + state change (checks for crap in cache after it sees any updates run etc). Video really shows it better then I can explain lol.

Also new cache updating method.. Jerry might be happy with that. (Note lack of sudo needed.)





It should all be ready to go for the most part soon, refinement with icon's and dialog's down the road.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Update Checker
« Reply #33 on: February 24, 2016, 11:54:57 AM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

 

-->
X Close Ad

Linux Lite 7.0 RC1 Released - See Release Announcement Section