Puppy version applet

A home for all kinds of Puppy related projects
Post Reply
Message
Author
GMMan_
Posts: 15
Joined: Fri 06 Jul 2007, 20:43

Puppy version applet

#1 Post by GMMan_ »

Here's a little program that I wrote as a practice in Perl that will check for the version in Puppy. It's not really efficient (doesn't use lots of variables that some built in commands throw in), but it should work. Please report any bugs or suggestions. Thanks and enjoy.

Instructions for installing: Just place in one of Puppy's many bin locations (my favorite is /usr/bin). The file should be marked executable when you get it, but in case it's not, make it executable by issuing 'chmod a+x pupver' to make executable.

Instruction for using: Open the console and type 'pupver' to run.
Attachments
pupver.tar.gz
A zipped up archive of my Pupver program. Note that it may not be the latest.
(1.08 KiB) Downloaded 874 times

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

Re: Puppy version applet

#2 Post by alienjeff »

GMMan_ wrote:Instruction for using: Open the console and type 'pupver' to run.
Pre-existing methodology not requiring download bandwidth, installation nor storage:

Open a console and type:

Code: Select all

cat /etc/puppyversion
Or click the "Help" icon on your desktop.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

GMMan_
Posts: 15
Joined: Fri 06 Jul 2007, 20:43

#3 Post by GMMan_ »

I still find the applet a bit easier... and have a better display.

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#4 Post by richard.a »

GMMan_ wrote:I still find the applet a bit easier... and have a better display.
I like it :) Thank you for producing it.

hosted (in Australia) at http://micro-hard.homelinux.net/puppy/d ... ver.tar.gz

It will also work off a menu call if you would like it to do so. Probably the best spot could be the Settings menu, and I think it would be useful to have it in the master code for the menu.



Edit
This is what it looks like on a copy of 2.02mini (retro) which I've been "adjusting" to look nicer on older machines...
Image
There are several other captures in the same directory

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#5 Post by richard.a »

I discovered that on installed puppies it would not run because of the lack of an /initrd directory off the root.

A snoop around discovered that on both live and and installed systems, there is an existing file called /etc/puppyversion (note lower case) that can be used just as well.

I've tried this out on 2.02, 2.02r2 (MiniPup), 2.10pro, 2.11, 2.15ce, 2.15ez, 2.16ez, and 300 'vanilla'. Works.

I've put a zip up here...http://micro-hard.homelinux.net/puppy/downloads/pupver-new.tar.gz for anyone interested.

Copying the script to /usr/bin saves having to put a path in too.

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

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

Re: Puppy version applet

#6 Post by Lobster »

GMMan_ wrote: It's not really efficient
Pah - you is learning Perl (more than I could do . . . I did try) 8)

Here is my attempt at usable info + presentation in one line of Bash

Code: Select all

echo ; cat /etc/puppyversion ; echo ' is your Puppy Linux Version number' ; echo
:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#7 Post by Pizzasgood »

cli:

Code: Select all

PUPVER=`cat /etc/puppyversion`;echo "You are running Puppy $PUPVER"
con gui:

Code: Select all

PUPVER=`cat /etc/puppyversion`;Xdialog --title "Puppy Version" --msgbox "You are running Puppy $PUPVER" 0 0
spam:

Code: Select all

PUPVER=`cat /etc/puppyversion`;while [ 1 ]; do echo "You are running Puppy $PUPVER"; done
(ctrl-c will make it shut up)
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

Post Reply