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 Thu 23 Oct 2014, 02:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Versioninfo
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [45 Posts]   Goto page: 1, 2, 3 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Mon 20 Jul 2009, 23:18    Post subject:  Versioninfo
Subject description: a tiny app that lets you know kernel version and puppy version in an instant
 

Hello people Smile

In response to forum member Minnesota's request for easy recognition of what Puppy version and what kernel you are using I created this small script to let you know in an instant this information.

A transparent dialog appears bottom of screen letting you know the pup and kernel. It should appear in your taskbar.

It runs at boot or on restart of X and has a timeout of 60 seconds. You can also run it from a terminal. You can also run it by navigating to "/root/Startup/versioninfo.sh" and clicking the script.

Uninstall old version unless you want to maintain the menu entry, this one does not have a menu entry

Have fun!


Changelog
Version 2.0
Added functionality for woof built puppies whereby Versioninfo identifies the compatible distro that puppy is built from, such as "ubuntu", "debian", "puppy", etc. It still works fine for standard build puppies too. Smile
Version 1.8
Code cleanup, I'm lame at bash Laughing .It executed twice if "/etc/puppyversion" existed.
Version 1.7
Added code to handle woof builds, there is no "/etc/puppyversion" - Thanks BarryK
Version 1.6
Ditched "xosd". (It is a useful little app IMO and deserves it's own thread)
Using "yaf-splash"- thanks zigbert and trio
Now appears in your task bar (or bottom of screen if you have the bar on the top)
Timeout - 60 seconds
You can kill it earlier, click on or near the "6" in the kernel version
Smaller again - thanks Lobster
Larger text - thanks Minnesota
Version 1.0
New engine.... "xosd"... transparent, included in the pet, 16k
Moved to bottom right of screen
No timeout, stays there
Issue: always on top, and color may alter
Version 0.4
Reverted back to xmessage
Improved look
Version 0.3
Bugfix- if no gxmessage it fails, older puppies may only have xmessage.
Version 0.2
Changed to gxmessage... thanks trio
Added dialog
versioninfo-2.0.pet
Description 
pet

 Download 
Filename  versioninfo-2.0.pet 
Filesize  810 Bytes 
Downloaded  568 Time(s) 
verinf.jpg
 Description   
 Filesize   8.17 KB
 Viewed   1776 Time(s)

verinf.jpg


_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Fri 11 Sep 2009, 05:24; edited 13 times in total
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1803
Location: अनुमोदना

PostPosted: Tue 21 Jul 2009, 00:07    Post subject:  

Hmm, bro..using gxmessage is much nicer
_________________
PET Maker|WbarCC
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 21 Jul 2009, 00:29    Post subject:  

trio wrote:
Hmm, bro..using gxmessage is much nicer


Done!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 21 Jul 2009, 03:28    Post subject:  

Um... bugfix

gxmessage is nicer but some puppies only have xmessage, so now both are catered for... Smile

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Tue 21 Jul 2009, 09:05; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10822
Location: Ontario Canada,Sydney Australia

PostPosted: Tue 21 Jul 2009, 03:39    Post subject:  

Hey micko, I bet it wouldn't tell you which specific version your using, say like during the 4.2 build and we had like 20 different 4.2's, alpha beta, RC, final etc, but wouldn't your script just say 4.2 and the kernel? now if we think a bit out of the box <> what would have to be done? well if the burner say Pburn, when it burns a iso, if it actually looked for a sfs file and seen it in a iso, it could maybe add a text file to /etc/version2 or something which basically just had the iso name on it, so when you click your little magic script it would read, beta alpha number etc.
Probably won't happen Shocked but just an idea Smile
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 21 Jul 2009, 04:22    Post subject:  

hey ttuuxxx,

Yeah, neat idea, but it would need support from the top Smile . You know what I mean Wink . You can really get whatever info you want from whatever file if it's there.

But, Barry has these rolling version numbers for the alphas now so this approach should be fine. Is it working ok with 214? (if you had 214X5 or whatever in /etc/puppyversion, it would read it fine)

Mick

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10822
Location: Ontario Canada,Sydney Australia

PostPosted: Tue 21 Jul 2009, 04:37    Post subject:  

01micko wrote:
hey ttuuxxx,

Yeah, neat idea, but it would need support from the top Smile . You know what I mean Wink . You can really get whatever info you want from whatever file if it's there.

But, Barry has these rolling version numbers for the alphas now so this approach should be fine. Is it working ok with 214? (if you had 214X5 or whatever in /etc/puppyversion, it would read it fine)

Mick

I usually change something like noticeable like icons, and one of the guys is updating the change log now with every release so that helps Smile
Still good little app,
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 21 Jul 2009, 09:34    Post subject:  

Now here is an idea Idea

If Barry created an empty file in /etc called 'derivative' or whatever (/etc/derivative) I could easily accommodate my script to read that file... and if it is left empty it doesn't show up, so official versions just read 'kernel 2.6.xx.xx, Puppy 4xx'. However, the creator of a derivative, or, in the future when Barry steps down, the future Benevolent dictator could add their description to this file ; be it 'alpha1, alpha2, beta1, RC3, .. or HanSamBen, MacPup, NOP, etc ... you get my drift.

Now, Pwidgets could also read that file, but that is not my objective (although, if it happens I will create the widget). What I want, is to find some way to print to the screen this info, transparently, with a minimum of overhead. Cool . I'm sure it is doable, but I don't know how... yet! Of course, this method would have to satisfy JWM, Icewm, XFCE and whatever WMs are good for Puppy.

Anyone out there got any idea how we can achieve this?

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Tue 21 Jul 2009, 17:31    Post subject: versioninfo
Subject description: works
 

Smile Tried on first CD I found.. Upup 463 works, k = 2.6.29 also works on 416.

You are right the idea is to be able to pass a machine and look up to see the version number.... certainly a start... could be turned off setup or for us who want it could add to startup? Progress...as you say all kinds of information can be displayed. Smile Smile
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Wed 22 Jul 2009, 02:14    Post subject:  

Hi Minnesota,

If you wanted this at startup you could symlink to the app (it is located in /usr/sbin) in the /root/Startup directory. Or you could make a small script calling "versioninfo" and drop it into /root/Startup. This may be useful if you have a slow box, you could add some sleep.

Code:
#!/bin/bash
sleep 5
versioninfo &


Name it something different to "versioninfo"! Make it executable.

Something like that would do the trick. Cool

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1803
Location: अनुमोदना

PostPosted: Wed 22 Jul 2009, 05:15    Post subject:  

01micko wrote:
Um... bugfix

gxmessage is nicer but some puppies only have xmessage, so now both are catered for... Smile


no, usually if there's no gxmessage, there's a synlink named gxmessage that links to xmessage. they will work ok

_________________
PET Maker|WbarCC
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Wed 22 Jul 2009, 05:21    Post subject:  

That symlink must be missing in BarryK's 2 revamp, 218.

Anyway, gxmessage is default

Cheers Cool

Edit... ahhh, seems BK missed gxmessage in 218 altogether, it is in ttuuxxx' 214, big_bass' 216-fat_free-dillo and official 217. I haven't anything further back! I may scrap the option and add funcionality for the "derivative" idea... Puppy creators can use it if they wish.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Thu 23 Jul 2009, 07:22    Post subject:  

Updated to 0.4

The newer pups Barry has made don't have "gxmessage" so I reverted to "xmessage" but tried to make it look a little nicer. Smile

See main post.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 23 Jul 2009, 08:27    Post subject:  

Hi 01micko

tried version 04 in Puppy 4.17 - the program closed down
without me clicking on OK - is that deliberate?
VersionInfo at the start of the menu entry is superfluous Smile

Somewhere (forget where) there is a versioninfo or version file - anyone remember?
maybe you are using that?

version numbers can be called up by running help
kernel number by running System Hardinfo

Hope that is of use and interest and you continue developing this useful little prog

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Thu 23 Jul 2009, 08:52    Post subject:  

Hello Lobster Smile

Lobster wrote:
tried version 04 in Puppy 4.17 - the program closed down
without me clicking on OK - is that deliberate?


01micko wrote:
It disappears after 10 seconds.


Yes Smile (see main post) Do you think the timeout should be longer or shorter?

Quote:
Somewhere (forget where) there is a versioninfo or version file - anyone remember?
maybe you are using that?


Yep! (/etc/puppyversion) Smile

I hope to develop this further such that it can be displayed transparently on screen. (Onto it I hope Very Happy ) (and without conky)

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [45 Posts]   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) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1061s ][ Queries: 12 (0.0242s) ][ GZIP on ]