Versioninfo

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

Versioninfo

#1 Post by 01micko »

Hello people :)

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. :)
Version 1.8
Code cleanup, I'm lame at bash :lol: .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
Attachments
versioninfo-2.0.pet
(810 Bytes) Downloaded 727 times
verinf.jpg
(8.17 KiB) Downloaded 1997 times
Last edited by 01micko on Fri 11 Sep 2009, 09:24, edited 13 times in total.
Puppy Linux Blog - contact me for access

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#2 Post by trio »

Hmm, bro..using gxmessage is much nicer

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

trio wrote:Hmm, bro..using gxmessage is much nicer
Done!
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#4 Post by 01micko »

Um... bugfix

gxmessage is nicer but some puppies only have xmessage, so now both are catered for... :)
Last edited by 01micko on Tue 21 Jul 2009, 13:05, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#5 Post by ttuuxxx »

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 :shock: but just an idea :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#6 Post by 01micko »

hey ttuuxxx,

Yeah, neat idea, but it would need support from the top :) . 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
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#7 Post by ttuuxxx »

01micko wrote:hey ttuuxxx,

Yeah, neat idea, but it would need support from the top :) . 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 :)
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 :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#8 Post by 01micko »

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. 8) . 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
Puppy Linux Blog - contact me for access

Minnesota
Posts: 326
Joined: Thu 11 Sep 2008, 11:25

versioninfo

#9 Post by Minnesota »

:) 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. :) :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#10 Post by 01micko »

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: Select all

#!/bin/bash
sleep 5
versioninfo &
Name it something different to "versioninfo"! Make it executable.

Something like that would do the trick. 8)
Puppy Linux Blog - contact me for access

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#11 Post by trio »

01micko wrote:Um... bugfix

gxmessage is nicer but some puppies only have xmessage, so now both are catered for... :)
no, usually if there's no gxmessage, there's a synlink named gxmessage that links to xmessage. they will work ok

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#12 Post by 01micko »

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

Anyway, gxmessage is default

Cheers 8)

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.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#13 Post by 01micko »

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. :)

See main post.
Puppy Linux Blog - contact me for access

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#14 Post by Lobster »

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 :)

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 Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#15 Post by 01micko »

Hello Lobster :)
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 :) (see main post) Do you think the timeout should be longer or shorter?
Somewhere (forget where) there is a versioninfo or version file - anyone remember?
maybe you are using that?
Yep! (/etc/puppyversion) :)

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

Cheers
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#16 Post by 01micko »

:lol:

(I'll share it later. :wink: )
Attachments
versioninfo-trans.jpg
(39.02 KiB) Downloaded 811 times
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#17 Post by ttuuxxx »

hey micko is it a widget for conky? or a stand alone ? Stand alone would be nice and low on resources, Since its not updating or changing etc. Hardware info also shows the glibC that would be cool, maybe even gtk version.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#18 Post by 01micko »

Ha ha!

Well it is standalone 8) , same script with a new dependency. :)

The app used is xosd. The source is available from that link. It includes libxosd.so.2.

ttuuxxx. Can you do me a favour and compile it for me? I did it and came up with a 25k pet using Barry's method with new2dir but 15k of that are these seemingly useless png files. If they are useless I could get an 11k pet, but, that is without stripping bin and lib. (er, don't know how yet :lol: )

Cheers

Mick
Puppy Linux Blog - contact me for access

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#19 Post by trio »

Now your getting "hot" Bro ... ditch that xmessage

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#20 Post by 01micko »

trio wrote:Now your getting "hot" Bro ... ditch that xmessage
:wink: Yep! That's the plan. I was mainly testing interest... seems there is some with 60+ downloads.

So I began the hunt for a transparent alternative. Came up with "xosd" and it fits the bill. :) It could be used to make a "mini" widget manager. It does have issues, I can't figure out why it is always on top :? . There are variants out there with system monitors and such, It is by no means conky, but it is handy. Has a progress bar function too.

Cheers
Puppy Linux Blog - contact me for access

Post Reply