Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 17:44
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Easy Online Updater (EOU by RSH & contributors)
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Sun 10 Mar 2013, 04:57    Post_subject:  Easy Online Updater (EOU by RSH & contributors)  

Edit : Update & infos by RSH => http://murga-linux.com/puppy/viewtopic.php?p=691259#691259

------------------------------
I appreciate the utility "LazY-Automated-Update (RSH)" http://murga-linux.com/puppy/viewtopic.php?p=671346#671346 & http://murga-linux.com/puppy/viewtopic.php?p=690865#690865
This is a simple and convenient way to provide users maintain their OS update.
The creator of this script (RSH) has not initiated discussion specific to this application, so that I would post to share/provide/improve this innovation.

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Mon 11 Mar 2013, 14:55    Post_subject:  

For update & info by RSH, see below.
Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Mon 11 Mar 2013, 22:59    Post_subject:  

The Easy Online Updater 0.6.6!

2013-03-16 by RSH and stu90 (Tray Application)
Again a nice Teamwork (remembering LazY FReD?)



Thanks, ASRI éducation.

So, you think this could be a useful application for developers to keep users of their Puppies easily up to date?

Then one should have the complete package to be able to use and to provide to the users all its features.

To make a PET that supports all functions of Easy Online Updater, the Make PET for Web Upates Package (LazY-MP4WU-1.0.0.pet) is recommended - if one does not want to do everything needed manually. It needs dir2pet installed. After installing LazY-MP4WU-1.0.0.pet there is a right-click option Make PET for Web Updates in ROX right-click-menu.

After creating a PET for Web Updates there will be several files created (see screenshot). One is the package, a second one is an executable script and then there are four text files - all are named like the created PET with extensions.

The text files are made to provide online information which can be downloaded to read them before installing from within the gui. It creates files for EN, FR, ES, DE - just edit the English version and the one from your language. English version is used by default if no other file related to the users language settings is found. To make files for other languages just make a copy or add (copy & paste) your "code" to /usr/local/mkpet4web/info_files, to get such file automatically at next use.

The executable script is for the use to see the results of the edited text file in a GUI, just like the user/downloader would see it. It grabs automatically EN version. To switch between languages make comments out of the unneeded lines inside the script:
Code:
#!/bin/bash
# Do make comments (#) out of those lines, that file you currently do not edit...
. LazY-MP4WU-1.0.0.pet.info-fr.txt
. LazY-MP4WU-1.0.0.pet.info-es.txt
. LazY-MP4WU-1.0.0.pet.info-de.txt
. LazY-MP4WU-1.0.0.pet.info.txt
Xdialog --title "LazY-MP4WU-1.0.0.pet" --msgbox "$UPDATEINFOTXT" 0 0

As you can see: LazY-MP4WU-1.0.0.pet.info.txt (which is the EN file) is taken at last, so its content is presented in the gui.

If you want to provide a screenshot to be watched online from within the gui, just name it as the PET is named and add .screenshot.jpg to it (must be .jpg).

To set the Easy Online Updater ready to use for your own purposes, just edit the URLs in /usr/local/LazY-Automated-Update/update-url - they are currently set to:
Code:
NEWSERVER="http://smokey01.com/RSH/LazY-Puppy/Updates/"
INFSERVER="http://smokey01.com/RSH/LazY-Puppy/Updates/Information/"

and it provides different directories for the PET and for the additional info stuff.

One can only use this if one has or can provide access to the download server via wget - usually "free file hosting" surely does not work.

Ok, I hope I did not forget anything. I have tested both pets again, so it should work. If not, do a post and we will get it ready - though it should be already!

Note: the developer has to set automatic search function manually - it is not set after installing the PET!!!

RSH

EDIT:

Arrghh, I did forgot some information!

The Make PET for Web Upates Application creates also a pinstall.sh script to make the pet able to be marked as installed after installing it. If one has already a pinstall.sh script inside the directory to make a PET of - don't worry. It will be renamed and after that included into the new one. The script uses:
Code:
cat >> $MP/pinstall.sh << EOF $MP/local_pinstall.sh
EOF

for this, so it should be included completely...

More and updated Information to 0.6.0 here
Informations on changes in 0.6.1 here
Informations on changes in 0.6.2 here

Informations on changes in 0.6.4
Fixed a small issue when writing $TESTSERVER to its file (now previous file is replaced)
GtkDialog-GUI-Icons set from icon=\"gtk-xxx\" to stock=\"gtk-xxx\" (hope this helps to show the icons in other/newer puppies)

Informations on changes in Easy Online Updater 0.6.5
Added some suggestions by ASRI Education (since he'd already made the changes, I just did replace those files)

Also the MakePET4WebUpdates 1.0.1 (creates now md5sum file to the created PET)
LazY-EsOnU-0.6.6.pet
Description 
pet

 Download 
Filename  LazY-EsOnU-0.6.6.pet 
Filesize  36.73 KB 
Downloaded  302 Time(s) 
LazY-MP4WU-1.0.1.pet
Description 
pet

 Download 
Filename  LazY-MP4WU-1.0.1.pet 
Filesize  6.22 KB 
Downloaded  299 Time(s) 
image-2.jpg
 Description   Created files after creating a Package for Web Updates (except the screenshot image) (Screenshot NOT updated)
 Filesize   23.4 KB
 Viewed   1613 Time(s)

image-2.jpg


_________________
LazY Puppy Home
The new LazY Puppy Information Centre


Edited_times_total
Back to top
View user's profile Send_private_message 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Wed 13 Mar 2013, 08:43    Post_subject:  

R-S-H wrote:
I have updated the Easy Online Updater to Version 0.5.1.
...
The GUI now includes a button to refresh the list of available updates to exclude already installed packages.

Hello,

This new button is it useful? it seems to me that the previous version of your script did this automatically.

Proposal
Another button could be added (next to the button "refresh"): "Installed Packages" could display a GUI in order to inform the user of already installed packages (/usr/local/Lazy-Update-Automated/installed
Together, it would be possible to modify the pinstall.sh integrated in packages update: instead of creating an empty file in folder "installed", the script pinstall.sh could copy the contents of the file *.pet.info.txt placed on the server. Thus, the user could view the contents of the packages already installed.

Info : I've updated local FR
LazY-EsOnU-0.5.1_localeFR_20130313.pet
Description 
pet

 Download 
Filename  LazY-EsOnU-0.5.1_localeFR_20130313.pet 
Filesize  2.31 KB 
Downloaded  337 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Thu 14 Mar 2013, 05:37    Post_subject:  

Quote:
it seems to me that the previous version of your script did this automatically.

Only after a restart of the gui!

Quote:
Proposal
Another button could be added (next to the button "refresh"): "Installed Packages" could display a GUI in order to inform the user of already installed packages (/usr/local/Lazy-Update-Automated/installed
Together, it would be possible to modify the pinstall.sh integrated in packages update: instead of creating an empty file in folder "installed", the script pinstall.sh could copy the contents of the file *.pet.info.txt placed on the server. Thus, the user could view the contents of the packages already installed.

Ok, I will give this some time on tomorrow (friday). Any wishes that could be released in two or three hours?

RSH

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Fri 15 Mar 2013, 15:54    Post_subject:  

R-S-H wrote:
Quote:
it seems to me that the previous version of your script did this automatically.

Only after a restart of the gui!

It's true, you're right. So your button is useful!
Back to top
View user's profile Send_private_message Visit_website 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Sat 16 Mar 2013, 12:11    Post_subject:  

Ok, here it is.

The Easy Online Updater 0.6.0!

2013-03-16 by RSH and stu90 (Tray Application)
Again a nice Teamwork (remembering LazY FReD?)

This uses GtkDialog4 (0.8.x) and Yad-0.12 and up.

Download Easy Online Updater

Tab 1 shows available Updates on Server (currently 2)


Tab 2 shows already installed Updates (currently none)


Tab 3 shows Settings and Application Info


Quote:
Proposal
Another button could be added (next to the button "refresh"): "Installed Packages" could display a GUI in order to inform the user of already installed packages (/usr/local/Lazy-Update-Automated/installed
Together, it would be possible to modify the pinstall.sh integrated in packages update: instead of creating an empty file in folder "installed", the script pinstall.sh could copy the contents of the file *.pet.info.txt placed on the server. Thus, the user could view the contents of the packages already installed.

It's done.

I've tested it several times and seems to work fine. Content of Online Information is now saved instead of an empty file. Currently this works only, if updating from within the Easy Online Updater GUI (its install function). If the User is only downloading and then moving the PET to another location then there will be still saved only the empty file.

Thanks to stu90 the Easy Online Updater has now a Tray Application which will appear in the System Tray only if new Updates are available. If so, the user can do a right-click on the Tray Application and choose either to download all available Updates or to execute Easy Online Updater GUI or to quit the Tray Application. For the Tray Application YAD is needed to be installed!

To hack this Tray Application Script and also to put this all together and get synchronized, has been a lot of more work and time needed, as i did plan for it. I hope this will be worth it.

Btw: the Name LazY Puppy will be replaced with the Name of your Puppy, because it's $DISTRO_NAME used for this!

Would be nice to see it's been used by developers for their Puppies and to make the Update-Life a little easier for the users of those Puppies...

RSH

P.S.

Currently the French locales are not included, because this needs some more translations. I have sent the file to ASRI éducation for doing the French translations.
So, just a matter of time...

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Tue 19 Mar 2013, 03:39    Post_subject:  

Hi.

After 10 new downloads of version 0.6.0 I got a pm about the yad tray application not working - over here everything is working fine. So, this is a bit confusing me, because it's a modified Lucid where it doesn't work - as well as LazY Puppy...

Anyone else experienced such problems?

RSH

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
stu91


Joined: 06 Aug 2012
Posts: 145
Location: England. Dpup. Dell Inspiron 1501

PostPosted: Tue 19 Mar 2013, 12:59    Post_subject:  

Hi R-S-H
testing stand alone the updated tray app included in your The Easy Online Updater 0.6.0 works for me on Exprimo puppy - it downloaded two update .pets and two .txt files to /root/Downloads and echos downloaded pets to /usr/local/LazY-Automated-Update/downloaded_list file - as all current updates are now downloaded the tray app doesn't show in the system tray again until new updates are available on the server but that is how it is supposed to be.
Anymore info on what is not working for whom ever it was that pm'ed you - have they tried running /usr/local/LazY-Automated-Update/lazy-auto-update-tray-app in terminal?
Back to top
View user's profile Send_private_message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Tue 19 Mar 2013, 13:33    Post_subject:  

Hi stu91,

he (ASRI Education) mentioned something about the command --kill-parent.

That's all I can say.

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Wed 20 Mar 2013, 17:16    Post_subject:  

R-S-H wrote:
Hi stu91,

he (ASRI Education) mentioned something about the command --kill-parent.

That's all I can say.

I used the version integrated in Lucid528 (yad 0.8.1).
I installed Yad 0.16.1, but it did not work.
Since then, I realized that I needed to replace the binary /usr/bin/yad by a shortcut to /usr/local/bin/yad
Now everything is ok, I have no more error message.

Note : users must be informed that a recent version of yad is required.
Back to top
View user's profile Send_private_message Visit_website 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Wed 20 Mar 2013, 17:54    Post_subject:  

@ RSH
I took a few hours to enjoy your updated and truly is excellent.

Given the importance of this utility, I would like some suggestions.

- 1 -
If all updates are installed, the user does not have access to the GUI. The user can not change preferences or view information about installed packages. I therefore propose to retain the Xdialog (without timeout) and remove the exit.
Code:
   # New, not yet installed Updates available? If not, exit
   EMPTY=`cat $serverpetlist`
   if [ "$EMPTY" = "" ]; then
      if [ "$RUNAS" != "auto" ]; then # if called from menu
         echo "$ALLUPDATESINSTALLEDMSG"
         Xdialog --title "$AUTOUPDATETXT" --msgbox "$ALLUPDATESINSTALLEDMSG" 0 0
         #Xdialog --title "$AUTOUPDATETXT" --timeout 5 --msgbox "$ALLUPDATESINSTALLEDMSG" 0 0
      fi
      #exit 3
   fi



- 2 -
I think it might be interesting to change the location of a few buttons.
I therefore propose an update of /usr/local/LazY-Automated-Update/lazy-auto-update
cf. attachments


- 3 -
Replacing a duplicate subtitle
Code:
<frame $DOAUTOUPDATEOPTFRMTXT >
replaced by
<frame $INFOAUTHOR >



- 4 -
local : addition
Code:
INFOAUTHOR="Auteurs et version"


local : change
Code:
REFRESHBTNTXT="Refresh Application List"
REFRESHBTNTXTTT="Refresh GUI's application List to hide already installed Updates"

replaced by
Code:
REFRESHBTNTXT="Refresh"
REFRESHBTNTXTTT="Refresh GUI's application List"



These are obviously only modest proposals.
LazY-EsOnU-0.6.0_fichiers_modifies.tar.gz
Description  new lazy-auto-update with locals
gz

 Download 
Filename  LazY-EsOnU-0.6.0_fichiers_modifies.tar.gz 
Filesize  8.7 KB 
Downloaded  287 Time(s) 
LazY-EsOnU-0.6.0_fichiers_modifies3.jpg
 Description   
 Filesize   17.04 KB
 Viewed   1245 Time(s)

LazY-EsOnU-0.6.0_fichiers_modifies3.jpg

LazY-EsOnU-0.6.0_fichiers_modifies2.jpg
 Description   
 Filesize   14.88 KB
 Viewed   1263 Time(s)

LazY-EsOnU-0.6.0_fichiers_modifies2.jpg

LazY-EsOnU-0.6.0_fichiers_modifies1.jpg
 Description   
 Filesize   22.93 KB
 Viewed   1235 Time(s)

LazY-EsOnU-0.6.0_fichiers_modifies1.jpg

Back to top
View user's profile Send_private_message Visit_website 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Wed 20 Mar 2013, 22:42    Post_subject:  

ASRI éducation wrote:
Note : users must be informed that a recent version of yad is required.

Yes, but the user has to read offered informations carefully as well. Wink
http://murga-linux.com/puppy/viewtopic.php?p=692431#692431
http://murga-linux.com/puppy/viewtopic.php?p=692431#692431 wrote:
This uses GtkDialog4 (0.8.x) and Yad-0.12 and up.


Quote:
If all updates are installed, the user does not have access to the GUI. The user can not change preferences or view information about installed packages. I therefore propose to retain the Xdialog (without timeout) and remove the exit.
... ... ...
I think it might be interesting to change the location of a few buttons.
I therefore propose an update of /usr/local/LazY-Automated-Update/lazy-auto-update

Yes, these changes do make sense - absolutely!

I have added your modifications and also the FR locales to the package and updated to 0.6.1, thanks.

Download Version 0.6.1 here

RSH

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
ASRI éducation


Joined: 09 May 2009
Posts: 2648
Location: France

PostPosted: Thu 21 Mar 2013, 07:15    Post_subject:  

R-S-H wrote:
ASRI éducation wrote:
Note : users must be informed that a recent version of yad is required.

Yes, but the user has to read offered informations carefully as well. Wink
http://murga-linux.com/puppy/viewtopic.php?p=692431#692431
http://murga-linux.com/puppy/viewtopic.php?p=692431#692431 wrote:
This uses GtkDialog4 (0.8.x) and Yad-0.12 and up.

You're right RSH information is present. I misread.
Back to top
View user's profile Send_private_message Visit_website 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Thu 21 Mar 2013, 16:12    Post_subject:  

Hi.

I ave noticed: when offline after the X desktop is started, the Tray-Application appears in the System Tray and tool tip says there are 0 updates available.

Should I change this to: the Tray-Application is not appearing in the system tray when offline after the X desktop is started?

RSH

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1314s ][ Queries: 13 (0.0145s) ][ GZIP on ]