LIT 3 - help!

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

LIT 3 - help!

#1 Post by Lobster »

hi Guys getting myself in a pickle as per usual :oops:

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   
This last bit is meant to take any program as a variable pass it to rxvt so it runs the command from rxvt

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
Help!
thanks . . .
Attachments
lit3_alpha.tar.gz
(5.9 KiB) Downloaded 455 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

Hi Lob,

Code: Select all

  exec rxvt -title Xpetch -bg orange -e ./petch -c -P $SOURCE
I use "./petch" , not "petch", so that the petch in the same folder is used.
You also called twice " -e petch", so I removed that.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#3 Post by Lobster »

8) Thanks Mark

It now seems to work OK. :)

Better finish it off and polish it up a bit :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#4 Post by prit1 »

Lobster,

This looks very promising. Really good thinking. Let us know when the polishing and finishing is complete.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

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

#5 Post by Lobster »

Hi Prit

Enclosed is the Beta - if anyone would like to test and/or suggest further 4.xx series programs

Help improved
Links updated
Attachments
lit3beta.tar.gz
(6.22 KiB) Downloaded 437 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#6 Post by ttuuxxx »

Here's a pet package if you want to install it and have a menu item
menu/Setup Lit Software Packages
ttuuxxx
Last edited by ttuuxxx on Thu 20 Nov 2008, 10:28, edited 1 time in total.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#7 Post by Lobster »

Thanks Ttuuxxx

have released it here as LIT 3
http://www.murga-linux.com/puppy/viewto ... 185#235185
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#8 Post by ttuuxxx »

Your Welcome :wink: It had 1 error, filezilla has been removed, Bigbass moved to Erics site because my server wasn't downloading properly, but that filezilla is outdated anyways and I packaged the latest and it works on 4.0 and 4.1, I tested it, I also updated the code on this one at the bottom of this message. So maybe delete the first one I posted and replace it with this one.
ttuuxxx
Attachments
LIT-3.0.pet
(6.58 KiB) Downloaded 457 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#9 Post by Lobster »

ttuuxxx, at the moment getting this with your filezilla link
Concurrent download limit exceeded.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#10 Post by ttuuxxx »

Lobster wrote:ttuuxxx, at the moment getting this with your filezilla link
Concurrent download limit exceeded.
Thats eric's site, it has reached its monthly download limit I'm Guessing.
Knowing him, he's probably already on it as we speak :)
Ps the file is there, just can't download it until the server is fixed
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply