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



Optional Widget for Linux Lite 3.2

Author (Read 21125 times)

0 Members and 3 Guests are viewing this topic.

Re: Optional Widget for Linux Lite 3.2
« Reply #44 on: September 22, 2016, 04:33:59 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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
Some important information about this. How the check for updates function works. How it currently works is it uses apt-check during boot up to see if there are any updates according to the last time sudo apt-get update was run. The widget cannot check for actual updates on a regular basis without being run as sudo, something we cannot do without adding users to the sudoers file - not an option!

Also - the latest update check method is not accurate, please revert back to the previous method in the ~/.conky/updates file:

Code: [Select]
#!/bin/bash
# Check for Updates - for the Linux Lite Conky Widget
# Licence - GPLv2 Sharing is Caring
# Jerry Bezencon - Linux Lite 2016

# Variables

NUMOFUPDATES=$(LANG=C apt-get upgrade -s |grep -P '^\d+ upgraded'|cut -d" " -f1)
UPDATEY1="There is 1 Update available"
UPDATEY2="There are $NUMOFUPDATES Updates available"
UPDATEN="Your system is up to date"

# Statements

if [ $NUMOFUPDATES -gt 1 ]; then
    echo "\${color3}"$UPDATEY2    # If there is more than 1 update available

elif [ $NUMOFUPDATES -eq 1 ]; then
    echo "\${color3}"$UPDATEY1    # Return 1 Update available

else
    echo "\${color2}"$UPDATEN    # System is up to date
fi

exit 0

https://www.linuxliteos.com/files/litewidget3.tar.gz

So, you ask then, why is this part of the widget? It's a reminder when you don't remember, about how important updates are to get. Should this still be part of the widget? Your thoughts please.
« Last Edit: September 22, 2016, 04:56:31 PM by Jerry »
 

Re: Optional Widget for Linux Lite 3.2
« Reply #43 on: September 22, 2016, 06:08:03 AM »
 

Jocklad

  • Banned
  • Gold Level Poster
  • *******
  • 508
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • MEMORY: 8Gb
Thanks LL-user ok now.

Jocklad
 

Re: Optional Widget for Linux Lite 3.2
« Reply #42 on: September 22, 2016, 06:06:19 AM »
 

Jocklad

  • Banned
  • Gold Level Poster
  • *******
  • 508
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • MEMORY: 8Gb
Did you extract it directly to your home folder? For example, if you downloaded it into your Downloads folder, you may have extracted it into your Downloads folder.

Sent from my Nexus 6 using Tapatalk

Thanks Jerry,yes I did extract to the downloads folder.

Have corrected and its now running on startup  :) :) :)

Jocklad
 

Re: Optional Widget for Linux Lite 3.2
« Reply #41 on: September 22, 2016, 06:04:27 AM »
 

LL-user

  • I come here a lot
  • *****
  • 455
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
Hi Jocklad,

After extracting it you'll find two hidden folders:
Code: [Select]
.config
.conky

The ".conky" folder needs to be placed in your home folder. So if you extracted the file in a different folder than your home folder (like Downloads), you need to move it there:
Code: [Select]
$ mv .conky ~/

Inside the ".config" folder you'll find another folder "autostart" with the file "litewidget.desktop" in it. This file needs to go into the same place within your home folder:
Code: [Select]
$ mv .config/autostart/litewidget.desktop ~/.config/autostart/
Then "Lite Widget" will show up under Application Autostart.

Hope that helps :)


PS: Oops, Jerry you have been faster than me! :)
« Last Edit: September 22, 2016, 06:13:20 AM by LL-user »
 

Re: Optional Widget for Linux Lite 3.2
« Reply #40 on: September 22, 2016, 05:56:49 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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
Did you extract it directly to your home folder? For example, if you downloaded it into your Downloads folder, you may have extracted it into your Downloads folder.

Sent from my Nexus 6 using Tapatalk

 

Re: Optional Widget for Linux Lite 3.2
« Reply #39 on: September 22, 2016, 05:39:03 AM »
 

Jocklad

  • Banned
  • Gold Level Poster
  • *******
  • 508
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • MEMORY: 8Gb
Must be doing something wrong,cannot get this to run.
Have downloaded and extracted widget and installed conky-all from synaptic.

Linux widget does not show in application autostart menu.

Can add it to the autostart menu but needs a command to run.

Jocklad

Just noticed this is not a support section...........SORRY
« Last Edit: September 22, 2016, 05:55:37 AM by Jocklad »
 

Re: Optional Widget for Linux Lite 3.2
« Reply #38 on: September 21, 2016, 09:45:45 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
Yep. Noticed it yesterday evening.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Optional Widget for Linux Lite 3.2
« Reply #37 on: September 21, 2016, 04:15:04 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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

Important to note for anyone else who wants to give it a go. The package conky-all needs to be installed! If the package conky got installed, it would display an error related to the image.


Ah yes, I forgot that part! I'll add it to the download post. Thanks.
 

Re: Optional Widget for Linux Lite 3.2
« Reply #36 on: September 21, 2016, 04:11:45 AM »
 

LL-user

  • I come here a lot
  • *****
  • 455
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
Just gave it a try on a test system. :)

Important to note for anyone else who wants to give it a go. The package conky-all needs to be installed! If the package conky got installed, it would display an error related to the image.

Have also integrated the update status part into my own conky configuration on the production system [LL 2.8]. Thanks Jerry! :)

I only need to see how/whether there will be an automatic update happening between reboots. I run the machine on a regular basis for weeks utilizing suspend so can't rely on a reboot.
 

Re: Optional Widget for Linux Lite 3.2
« Reply #35 on: September 20, 2016, 02:13:53 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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
New package:

- Smokey transparency
- Better contrasting feather on transparent background vs text
- Alternative update check

https://www.linuxliteos.com/files/litewidget2.tar.gz

Overwrite the existing files.

You need this package installed to be able to use the widget:

Code: [Select]
sudo apt-get install conky-all
« Last Edit: September 21, 2016, 04:17:09 AM by Jerry »
 

Re: Optional Widget for Linux Lite 3.2
« Reply #34 on: September 19, 2016, 11:16:54 PM »
 

LL-user

  • I come here a lot
  • *****
  • 455
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
Thanks for taking the time to clarify, Jerry! :)

I came across /etc/update-motd.d/ and /usr/lib/update-notifier/ when I was following up my discovery of update notifications displayed when I remotely logged in to one of my systems on the command line.

I haven't dug deeper into it (yet) to understand the full setup.

You mention that the apt-check is run at boot time.
Just had a quick look at cron jobs and found apt-compat as a daily one pointing to /usr/lib/apt/apt.systemd.daily.
So I hope I'm not wrong to assume that an update is not only run at boot/reboot time but on a regular basis.
Otherwise there wouldn't be a check for quite some time considering that people just suspend their system. Also the execpi loop in the widget would just use up resources without real benefit.

Also, I'm still not clear about the effects of the settings in Synaptic -> Settings -> Software & Updates -> Updates, especially in Linux Lite.

Looking into the setup/configuration of (semi)automatic updates seems like opening a can of worms ... :D
 

Re: Optional Widget for Linux Lite 3.2
« Reply #33 on: September 19, 2016, 10:04:04 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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

Is the "apt-get update" part covered by the system out of the box? I see that you straight away check for available updates via "apt-get upgrade".


That method does work, each time I've reboot one of my VM's here running the widget displays a new amount of updates when they're available.
You can change Line 8 in the updates script to show:

Code: [Select]
NUMOFUPDATES=$(LANG=C /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 1)
if you like. apt-check is run at boot time to check for the number of updates available and show them in the motd, it's an Ubuntu thing :)
 

Re: Optional Widget for Linux Lite 3.2
« Reply #32 on: September 19, 2016, 08:50:20 PM »
 

LL-user

  • I come here a lot
  • *****
  • 455
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
Thanks, Jerry!

It's coming along nicely :) Especially the lightness, simplicity and flexibility is great!

Is the "apt-get update" part covered by the system out of the box? I see that you straight away check for available updates via "apt-get upgrade".
 

Re: Optional Widget for Linux Lite 3.2
« Reply #31 on: September 19, 2016, 04:34:52 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • 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 anyone who would like to test this, I have uploaded it to here - https://www.linuxliteos.com/files/litewidget2.tar.gz download and extract it to your home folder, then go to Menu, Settings, Session and Startup, Application Autostart tab, place a tick in 'Lite Widget'. This is how you enable/disable it at start up.

You need this package installed to be able to use the widget:

Code: [Select]
sudo apt-get install conky-all
« Last Edit: September 21, 2016, 04:16:43 AM by Jerry »
 

Re: Optional Widget for Linux Lite 3.2
« Reply #30 on: September 18, 2016, 08:46:56 PM »
 

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
Feather is a nice touch  8) I like it!!!
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
 

 

-->
X Close Ad

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