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 Tue 02 Sep 2014, 08:57
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Puppy version applet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
GMMan_

Joined: 06 Jul 2007
Posts: 15

PostPosted: 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.
pupver.tar.gz
Description  A zipped up archive of my Pupver program. Note that it may not be the latest.
gz

 Download 
Filename  pupver.tar.gz 
Filesize  1.08 KB 
Downloaded  580 Time(s) 
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: 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: ##b0rked 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
View user's profile Send private message 
GMMan_

Joined: 06 Jul 2007
Posts: 15

PostPosted: Mon 08 Oct 2007, 15:29    Post subject:  

I still find the applet a bit easier... and have a better display.
Back to top
View user's profile Send private message 
richard.a


Joined: 15 Aug 2006
Posts: 510
Location: Adelaide, South Australia

PostPosted: 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 Smile 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
View user's profile Send private message 
richard.a


Joined: 15 Aug 2006
Posts: 510
Location: Adelaide, South Australia

PostPosted: 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
View user's profile Send private message 
Lobster
Official Crustacean


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

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

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


Smile

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


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0646s ][ Queries: 13 (0.0045s) ][ GZIP on ]