| Author |
Message |
GMMan_
Joined: 06 Jul 2007 Posts: 15
|
Posted: Mon 08 Oct 2007, 13:03 Post subject:
Puppy version applet Subject description: A little program for seeing the version of Puppy |
|
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.
| Description |
A zipped up archive of my Pupver program. Note that it may not be the latest.
|

Download |
| Filename |
pupver.tar.gz |
| Filesize |
1.08 KB |
| Downloaded |
488 Time(s) |
|
|
Back to top
|
|
 |
alienjeff

Joined: 08 Jul 2006 Posts: 2290 Location: Winsted, CT - USA
|
Posted: Mon 08 Oct 2007, 14:07 Post subject:
Re: Puppy version applet Subject description: A little program for seeing the version of Puppy |
|
| 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: | | cat /etc/puppyversion |
Or click the "Help" icon on your desktop.
_________________ hangout: ##arch-ftw on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker
|
|
Back to top
|
|
 |
GMMan_
Joined: 06 Jul 2007 Posts: 15
|
Posted: Mon 08 Oct 2007, 15:29 Post subject:
|
|
I still find the applet a bit easier... and have a better display.
|
|
Back to top
|
|
 |
richard.a

Joined: 15 Aug 2006 Posts: 510 Location: Adelaide, South Australia
|
Posted: Tue 09 Oct 2007, 19:52 Post subject:
|
|
| 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/downloads/pupver.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...
There are several other captures in the same directory
Richard
_________________ Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?

|
|
Back to top
|
|
 |
richard.a

Joined: 15 Aug 2006 Posts: 510 Location: Adelaide, South Australia
|
Posted: Sun 21 Oct 2007, 21:52 Post subject:
Subject description: Problem on installed puppies |
|
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
_________________ Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?

|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 22 Oct 2007, 05:07 Post subject:
Re: Puppy version applet Subject description: A little program for seeing the version of Puppy |
|
| GMMan_ wrote: | | It's not really efficient |
Pah - you is learning Perl (more than I could do . . . I did try)
Here is my attempt at usable info + presentation in one line of Bash
| Code: | echo ; cat /etc/puppyversion ; echo ' is your Puppy Linux Version number' ; echo
|
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 23 Oct 2007, 19:07 Post subject:
|
|
cli:
| Code: | | PUPVER=`cat /etc/puppyversion`;echo "You are running Puppy $PUPVER" |
con gui:
| Code: | | PUPVER=`cat /etc/puppyversion`;Xdialog --title "Puppy Version" --msgbox "You are running Puppy $PUPVER" 0 0 |
spam:
| Code: | | PUPVER=`cat /etc/puppyversion`;while [ 1 ]; do echo "You are running Puppy $PUPVER"; done | (ctrl-c will make it shut up)
_________________ 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

|
|
Back to top
|
|
 |
|