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.
Puppy version applet
Puppy version applet
- 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
Re: Puppy version applet
Pre-existing methodology not requiring download bandwidth, installation nor storage:GMMan_ wrote:Instruction for using: Open the console and type 'pupver' to run.
Open a console and type:
Code: Select all
cat /etc/puppyversion
[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]
[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]
I like it Thank you for producing it.GMMan_ wrote:I still find the applet a bit easier... and have a better display.
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...
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]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
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
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]
[img]http://micro-hard.dreamhosters.com/416434.png[/img]
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
Re: Puppy version applet
Pah - you is learning Perl (more than I could do . . . I did try)GMMan_ wrote: It's not really efficient
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
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
cli:
con gui:
spam:
(ctrl-c will make it shut up)
Code: Select all
PUPVER=`cat /etc/puppyversion`;echo "You are running Puppy $PUPVER"
Code: Select all
PUPVER=`cat /etc/puppyversion`;Xdialog --title "Puppy Version" --msgbox "You are running Puppy $PUPVER" 0 0
Code: Select all
PUPVER=`cat /etc/puppyversion`;while [ 1 ]; do echo "You are running Puppy $PUPVER"; done
[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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]