Trying to upgrade LIT a simple installer for 4 series Puppy and puplets
The major thing is including a front end for 'Petch' created by Tom (temporarily holidaying with Debian)
Also included as a zip attachment with petch - just unzip to any directory and run LIT
This is the code I have cobbled together:
Code: Select all
#! /bin/bash
# Light Installer Tmxxine GPL v3 License
# LIT v3 November 2008
# created by Lobster and someone with a clue
###################
export LIT='
<window title="Light Installer" window-position="1">
<vbox>
<menubar>
<menu>
<menuitem>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=221933#221933 &</action>
<label>Compiz Fusion</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://puppylinux.org/wikka/Compiling &</action>
<label>Developer Module</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=EZpup &</action>
<label>Ezpup</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://www.ttuuxxx.com/bigbass/FileZilla-3.0.10-version4.00.pet &</action>
<label>Filezilla</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=FireFox &</action>
<label>Firefox</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=210306#210306 &</action>
<label>Flash</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=GimpShop &</action>
<label>Gimpshop graphics editor</label>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=LinuxTmxxineGizmo &</action>
<label>Gizmo VOIP</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=205331#205331 &</action>
<label>Java</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=203328#203328 &</action>
<label>Koffice</label>
<action>exit</action>
</menuitem>
<menuitem>
<label>Kompozer HTML composition</label>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=Kompozer &</action>
<action>exit</action>
</menuitem>
<menuitem>
<label>Midori Browser</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=201498#201498 &</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=OpenOffice &</action>
<label>OpenOffice Suite</label>
<action>exit</action>
</menuitem>
<menuitem>
<label>Opera</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=176326#176326 &</action>
</menuitem>
<menuitem>
<label>Python</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=209578#209578 &</action>
</menuitem>
<menuitem>
<label>Skype</label>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=Skype &</action>
</menuitem>
<menuitem>
<label>VYM</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=217100#217100 &</action>
</menuitem>
<menuitem>
<label>WxLua</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=210428#210428 &</action>
</menuitem>
<menuitem>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=Wine &</action>
<label>Wine</label>
<action>exit</action>
</menuitem>
<label>Add Programs</label>
</menu>
<menu>
<menuitem>
<label>Petch Installer</label>
<action>rxvt -e ./petch</action>
</menuitem>
<menuitem>
<label>Setup Puppy</label>
<action>wizardwizard &</action>
</menuitem>
<menuitem>
<label>Online Programs</label>
<action>defaultbrowser http://pupweb.org/desktop/ &</action>
</menuitem>
<menuitem>
<label>Sofware</label>
<action>/usr/local/petget/pkg_chooser.sh &</action>
</menuitem>
<menuitem>
<label>Simplified Sofware</label>
<action> /usr/sbin/pupget &</action>
</menuitem>
<menuitem>
<label>Pet depository</label>
<action>defaultbrowser http://www.puppylinux.org/node/9 &</action>
</menuitem>
<label>Extras</label>
</menu>
<menu>
<menuitem>
<label>Tmxxine Upgrades</label>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=LinuxTmxxineUpgrades &</action>
</menuitem>
<menuitem>
<label>Puppy Forum</label>
<action>defaultbrowser http://www.murga-linux.com/puppy/ &</action>
</menuitem>
<menuitem>
<label>Puppy In-built help</label>
<action>defaulthtmlviewer file:///usr/share/doc/index.html &</action>
</menuitem>
<menuitem>
<label>Latest 4.1.1 Addons</label>
<action>defaultbrowser http://tmxxine.com/wik/wikka.php?wakka=DingoAddons &</action>
</menuitem>
<menuitem>
<label>About</label>
<action>`Xdialog --wrap --screencenter --left --title "LIT 3 - HELP" --msgbox "Light Installer Tmxxine GPL v3 License \n\n New for v3: Petch added, links updated, Designed for Puppy Linux Dingo 4.xx series \n\n Linux Tmxxine http://tmxxine.com/wik/wikka.php?wakka=LinuxTmxxine10 has always attempyed 100% compatibility with Puppy Linux, Add major software, Add official .pets (Puppys own package format - just click on them to install), Use 'Cloud' Online facilities, Setup Puppy, Two formats for adding software packages: .pets (Puppy Extra Treats) - download and click on to install .sfs (squash files) - download to /mnt/home/ and run Menu / System / Bootmanager configure bootup and reboot. \n\n created by Lobster Nov 2008" 600x0`</action>
</menuitem>
<label>Help</label>
</menu>
</menubar>
<frame>
<pixmap>
<input file>lit.jpg</input>
</pixmap>
</frame>
<hbox>
<text><label>Install</label></text>
<entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
</hbox>
<hbox>
<button ok></button>
<button cancel></button>
</hbox>
</vbox>
</window>'
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program=LIT --center); do
eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
exec rxvt -e ./petch -name Xpetch -bg "#F3F2DF" -e petch -c -P $SOURCE
fi
gtkdialog3 --program LIT
unset LIT
Petch softwareName
It seems to be doing something
but not sure what
Code: Select all
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program=LIT --center); do
eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
exec rxvt -e ./petch -name Xpetch -bg "#F3F2DF" -e petch -c -P $SOURCE
fi
thanks . . .