jump to navigation

PortableApps in Puppy Linux 1 January, 2009

Posted by aronzak in Linux, portableapps, Puppy Linux.
Tags: , , , , ,
trackback

Puppy Linux can be installed on your USB stick. So can PortableApps, a collection of cross platform open source software that can run on Windows. Interestingly, nearly all of the apps also run perfectly in wine, except for a few issues. So, I got an idea. Why not try and integrate the two.

I created a simple script that can run at startup to check weather the Portableapps.com suite is installed, and then if wine is installed, offer to start it, and if not, offer to download and install wine. Pretty cool, huh?

Here’s some screenshots of it in use:

First, the obligatory desktop shot.

1

After copying my script to the ‘Startup’ folder and restarting X, a dialog pops up.

s2

In a new version, the network connection setup comes up so that you can actually set up a connection before you try and download a file (whoops).

3The file will download and then you are prompted to install the package.

4

All done, wine is now installed.

5

Just keeping the user clued in.

6And now the desktop with the PortableApps Menu

7

Ok, and finally, two versions of abiword are running, the PortableApps one on top, and the native one on the bottom.

82

NB. Take a look at that compatibility page. Abiword doesn’t work that well.

Finally, here’s a new version of the script that I wrote:

#!/bin/bash
# Author: Aronzak
# Download and install wine

if [ -f /mnt/home/PortableApps/PortableAppsMenu/PortableAppsMenu.exe ]; then
 if [ -f /usr/bin/wine ]; then
  Xdialog --title "Run PortableApps" --yesno "Wine is installed. \nWould you like to run PortableApps?" 0 0
  [ ! $? -eq 0 ] && exit 0
  wine /mnt/home/PortableApps/PortableAppsMenu/PortableAppsMenu.exe
 else
  Xdialog --title "Run PortableApps" --yesno "You have PortableApps installed on your usb stick.\n Congratulations. Would you like to download and\n install wine so that you can run PortableApps in Puppy?\n (Download is around 8MB)" 0 0
  [ ! $? -eq 0 ] && exit 0
  Xdialog --title "Run PortableApps" --no-cancel --msgbox "Please use the networking wizard to set up a network connection." 0 0
  connectwizard
  Xdialog --title "Run PortableApps" --yesno "Would you like to download wine now? \n (Download is around 8MB)" 0 0
  [ ! $? -eq 0 ] && exit 0
  echo "wget http://downloads.sourceforge.net/wine/wine-1.1.10-i486-1kjz.tgz?modtime=1228522686&big_mirror=1" > /tmp/runme
  echo "wait" >> /tmp/runme
  echo "tgz2pet wine-1.1.10-i486-1kjz.tgz 2> /dev/null" >> /tmp/runme
  echo "wait" >> /tmp/runme
  echo "exit" >> /tmp/runme
  chmod +x /tmp/runme
  rxvt -bg "orange" -title "Puppy Universal Installer" -geometry 80x10 -e /tmp/runme
  Xdialog --title "Run PortableApps" --no-cancel --msgbox "Wine downloaded. Will now install." 0 0
  pupget /root/wine-1.1.10-i486-1kjz.pet
  Xdialog --title "Run PortableApps" --no-cancel --msgbox "Wine should now be installed. Will now run PortableApps." 0 0
  wine /mnt/home/PortableApps/PortableAppsMenu/PortableAppsMenu.exe
 fi
fi

I’d appreciate feedback to improve the script. Does this work for you?

Advertisements

Comments»

1. aronzak - 1 January, 2009

Oh yeah: Happy new year!

2. Attack of the Cocker Spaniels ~ ThermionicEmissions - 1 January, 2009

[…] to run PortableApps in Puppy Linux (or linux in general).  This was just way too simple and too good an idea for me to […]

3. iampriteshdesai - 2 January, 2009

You can even install Puppy Linux on your hard drive beside Ubuntu, I use it as a an alternative cool OS:
http://helpforlinux.blogspot.com/2008/10/install-puppy-linux-in-ubuntu.html

4. guitarMan666 - 21 April, 2009

The script does not work for me. Returns a permission denied error [on line 3] when “Run in terminal” selected from ROX-filer. Does nothing at all if run directly from a terminal. I am however using a PuppyLinux installed via UNetBootIn so it may have different results if i use the Puppy Universal Installer.

5. Jurgen Guthixx XD - 24 February, 2010

k, i’m a little bit of a noob here (and “a little bit” is an understatement, I just started using Linux yesterday XD).

What file-type do I save the file as? Or do I put the code in a file that already exists? It it’s not a file that already exists, where do I put this new file to make it run at start?

6. mickeyj4j - 6 May, 2012

what i would like to know is
1. what puppy linux version did you set this up for.
2. if this will work now in the main puppy version. slacko, lupu, racy, wary.
3. how to modify the script for the modern puppies.

mickeyj4j - 6 May, 2012

also to get this working properly i found it necessary to install portable apps suite first before puppy linux on the flansdrive concerned. do you find this.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: