Welcome .Pup - for newcomers

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
peppyy
Posts: 443
Joined: Mon 27 Jun 2005, 23:49
Location: VT USA
Contact:

#21 Post by peppyy »

I think there might be a slight problem with a few of the actions. When I click on Mount it brings up Puppy XUL alpha 0.0.3 too.

Very nice tho. How would I change the default applications like launching mplayer instead of gxine?... Wait! It is in the readme. It is the make a wish thing. I suppose I should setup all the defaults before I hand this over to my client.

Have to read my choices list again now that I think I am through installing.

Ahhhhhhhhh, I am weally giong to miss this little pup.
Puppy Linux...
It just works!

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

#22 Post by Lobster »

The double opening is to demonstrate what I am attempting with XUL
- the "progs" icon also brings up pupgets and dotpups (two programs) if this is confusing then I can restrict it to one . . .

I am now working on a right click option which would save desktop space . .

The readme should tell you how to "hack" the script - it is as easy as I could make it. It was designed by an idiot for idiots (that does not make it idiot proof)

:)

Anyways it is a work in progress - hope some are finding it useful . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#23 Post by Lobster »

:D

Further to the Foundation meeting
this program has been updated

See first posting in this thread for latest downloadable .pup

The important update is the Links button
which now brings up an HTML file of most useful web pages

the bookmarks.html that comes with the program can also be imported into mozilla browser
and found at:

Code: Select all

/usr/local/welcome/
Attachments
welcome.jpg
(69.26 KiB) Downloaded 1868 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

I've been reading agian :)

#24 Post by willhunt »

Lobster thanks for this welcome pup as I am new
to this stuff it has been most educational for me
but I have hit a snag and was wondering if
someone could help :)

Code: Select all

#!/bin/sh
# adapted from
# Lobster August Dec 2005 Puppy Welcome version 0.1.1
# License GPL

export ChewToy="

<hbox>
<frame Tools>

  <hbox>
   <text>
    <label>Docs</label>
   </text>
   <button>
   <input file>/usr/local/lib/X11/mini-icons/mut.xpm</input>
   <action>dillo /usr/share/doc/index.html &</action>
   <action>sleep 3</action>
##
###### can this be encapsulated so I only have 1 file
##
   <action>./choose.sh &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Wizards</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-dog.xpm</input>
    <action>./wiz.sh &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Bkgrnd</label>
  </text>
  <button>
    <input file>/usr/local/lib/X11/mini-icons//mini.window3d.xpm</input>
    <action>set-bkgrnd &</action>
  </button>
  </hbox>

  <hbox>
   <text>
    <label>Edit</label>
   </text>
   <button>
     <input file>/usr/local/lib/X11/mini-icons/mini.text.xpm</input>
     <action>./edit.sh &</action>
   </button>
  </hbox>

</frame>

<frame Xtras>

  <hbox>
   <text>
    <label>Paint</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-palette.xpm</input>
    <action>/usr/local/bin/mtpaint &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Media</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/gxine.xpm</input>
    <action>/usr/local/bin/gxine &</action>
   </button>
  </hbox>

 <hbox>
   <text>
    <label>Volume</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-speaker.xpm</input>
    <action>/usr/local/bin/xtmix &</action>
   </button>
  </hbox>

</frame>

<frame Online>
  <hbox>
   <text>
    <label>News</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-news.xpm</input>
    <action>defaultbrowser http://www.puppylinux.org/wikka/LatestNews &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Forum</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-dog.xpm</input>
    <action>defaultbrowser http://www.murga.org/~puppy/ &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Software</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/dotpup.xpm</input>
    <action>dillo http://www.puppylinux.org/wikka/DotPups &</action>
    <action> dotpup &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Chat</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/chat16.xpm</input>
    <action>mozilla http://www.puppylinux.org/wikka/PuppyLinuxIRC &</action>
   </button>
  </hbox>

</frame>

<frame>

<vbox>
##
###### gotta be a way to put these at the bottom of the box 
##
    <button help>
    <action>dillo /usr/share/doc/index.html &</action>
    <action>defaultbrowser http://rhinoweb.us/ &</action>
   </button>
  </vbox>
  <vbox>
   <button cancel></button>
  </vbox>

</frame>

</hbox>

"
gtkdialog --program ChewToy

unset ChewToy

and the files I would like to include
choose.sh

Code: Select all

#!/bin/sh

FILE=`Xdialog --title "Please choose a file" --fselect /usr/share/doc/ 28 58 2>&1`

case $? in
	0)
		dillo "$FILE" ;;
	1)
		echo "Cancel pressed.";;
	255)
		echo "Box closed.";;
esac
any help would be great as I am clueless :(

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

#25 Post by Lobster »

:)

I am no expert . . .
so I would keep this as a seperate file (which I have called "howto")
I then changed its permissions from rox

Code: Select all

#!/bin/sh

FILE=`Xdialog --title "Please choose a file" --fselect /usr/share/doc/ 28 58 2>&1`

case $? in
   0)
      dillo "$FILE" ;;
   1)
      echo "Cancel pressed.";;
   255)
      echo "Box closed.";;
esac 
Then I modified the existing welcome file like so

Code: Select all

#!/bin/sh

# Lobster Jul 2006 Puppy Welcome version 1.3
# License GPL
 
export WelcomePuppy="

<vbox>
   <vbox><pixmap><input file>/usr/local/lib/X11/mini-icons/mini-dog.xpm</input></pixmap></vbox>

<frame Offline>

  <hbox>
   <text>
    <label>Wizards</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
    <action>/usr/sbin/wizardwizard &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Help</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-question.xpm</input>
     <action>/usr/local/welcome/howto &</action>
    <action>defaultbrowser http://rhinoweb.us/ &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Drives</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-fdisk.xpm</input>
    <action>/usr/sbin/mut &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Paint</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-palette.xpm</input>
    <action>/usr/local/bin/mtpaint &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Edit</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini.text.xpm</input>
    <action>/usr/local/bin/leafpad &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Media</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-cdlabel.xpm</input>
    <action>/usr/local/bin/gxine &</action>
   </button>
  </hbox>

 <hbox>
   <text>
    <label>Volume</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-speaker.xpm</input>
    <action>/usr/local/bin/xtmix &</action>
   </button>
  </hbox>

</frame>

<frame Online>

 <hbox>
   <text>
    <label>Welcome</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-happy.xpm</input>
    <action>dillo http://www.zen45800.zen.co.uk/puppy3/index.htm &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Software</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-diskette.xpm</input>
    <action>dillo http://www.puppylinux.org/wikka/DotPups &</action>
    <action> /usr/sbin/pupget &</action>
   </button>
  </hbox>

    <hbox>
   <text>
    <label>Forum</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-dog.xpm</input>
    <action>mozilla http://www.murga.org/~puppy/ &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Chat</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/chat16.xpm</input>
    <action>mozilla http://www.puppylinux.org/wikka/PuppyLinuxIRC &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>News</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-news.xpm</input>
    <action>mozilla http://www.puppylinux.org/wikka/LatestNews &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>Links</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/info16.xpm</input>
    <action>mozilla /usr/local/welcome/bookmarks.html &</action>
   </button>
  </hbox>

</frame>

  <hbox>
   <button cancel></button>
  </hbox>

  <hbox>
    <text>
     <label>lobster@puppylinux.org</label>
    </text>
  </hbox>

</vbox>

"
gtkdialog --program WelcomePuppy

unset WelcomePuppy 

this is the line that calls the howto file with your code

Code: Select all

     <action>/usr/local/welcome/howto &</action>
you will notice that it calls the howto file (your code) from a specific location
so make sure the files are there

If you play about with the code or it suits you
make it into a dot pup
and call it welcome 1.4

Code: Select all

# Will Hunt Jul 2006 Puppy Welcome version 1.4
# License GPL
:)

one other thing I changed this from "mozilla" to "defaultbrowser" (that was my error) - so now should work with any browser BUT it requires one to be online . . .

Code: Select all

  <action>defaultbrowser http://rhinoweb.us/ &</action>
Hope that is of some use - and here is a console command
"pwd"
just put that in - not password - it means present working directory
:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#26 Post by Flash »

Lobster, do you think the Welcome .pup would be the place to put G2's explanation of the Linux way to copy and paste? It needs to be somewhere that beginners will see.

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

the third button

#27 Post by Lobster »

GuestToo urged me to get a 3 button mouse (a wheel mouse will do too) and the third mouse button can also be emulated - you can set this up in Puppy some how - anyone remember?

Maybe it should be in there - maybe Will will work it out . . .

Only the Linux Jedi know the force of the "third button"

"May the button be with you"
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

thanks lobster and flash

#28 Post by willhunt »

Thanks for the tip lobster. this is a great "puzzle" for me as I've never wrote a
script before but here is the dotpup of the one I have been working at I would
like to have one the used all the examples from xdialog :) And i like that cut and
paste and the logo
:oops:
Attachments
welcome.pup
(22.23 KiB) Downloaded 473 times
Last edited by willhunt on Fri 21 Jul 2006, 13:10, edited 1 time in total.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#29 Post by GuestToo »

the place to put G2's explanation of the Linux way to copy and paste
in any case, there could be text displayed at the top of rxvt windows when they are opened

here's a little demo, with an ascii art banner ... i think MTpaint can export pictures as ascii art

install the dotpup, then open an rxvt console window to see the banner
Attachments
bannerdemo.pup
rxvt banner demo
(1.52 KiB) Downloaded 484 times

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

gtkdialog guicompletion

#30 Post by willhunt »

This guicompletion looks like something real handy for a linux noob like me the src is only
182k maybe someone will compile it as I have broke my compiler again :oops maybe if GuestToo has time he could compile it and the do the bash patch

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#31 Post by Flash »

GuestToo wrote:...install the dotpup, then open an rxvt console window to see the banner
I did that but don't get no banner :(

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#32 Post by GuestToo »

your shell is probably set to /bin/sh
you can find out by typing env

if you type (or paste) this in an rxvt window

export SHELL=/bin/bash
rxvt


it should open a new rxvt window with the banner

or if your shell is /bin/sh, this should also work:

export ENV=/root/.bashrc
rxvt


if it works and you want an rxvt banner every time you open an rxvt window, you can put either
export SHELL=/bin/bash
or
export ENV=/root/.bashrc
in /etc/profile.local and reboot

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

what do you use to work with ansi

#33 Post by willhunt »

the last time I used it thedraw was what there was for dos what do you use in linux? I'm digging out the old asni art packs now :lol:

Post Reply