Install Dabo on Puppy Precise Linux (maybe also work on ubuntu 12.04 LTS)

The advance of puppy linux is, that it is a very small and light weight distribution.
You can install puppy with dabo and xampp (includes Mysql) on a 1 GB usb device  or a virtual machine and take it with you to your customers.

  • Install Precise Puppy 5.7.1 on a usb device or an virtual machine (or where you want)
  • Update the Puppy Packet Manager
  • Click on xampp1.8.1.sfs in your file-manager and follow the instructions.
  • Open the Puppy Packet Manager and search for idle2.7_2.7.3 package and install.
    This is the python environment with the idle IDE
  • Install wxpython. This part is a little tricky. You can find a installation manual here
    http://holgerrpl.bplaced.net/blog/?p=90
  • Open the Puppy Packet Manager and search for python_mysqldb_1.2.3.
    This is the package that will give you access to the mysql-database of the xampp-package.
  • Open the Puppy Packet Manager and search for python_setuptools_0.6.24.
    This package is needed to install Dabo.
  • Dowload Dabo.
    The best way is to check out via svn. You can also download the tarball from here
    http://dabodev.com/download
  • .Unpack the downloaded tarball or the files you checked out in:
    /usr/lib/python2.7/dist-packages/
    Now you will have a daboXXXX folder in /usr/lib/python2.7/dist-packages/ (xxxx is the version)
  • Open a terminal in this folder and type: python setup.py install
    Now Dabo will be installed in your python environment.
  • Change to the folder demo in your current directory and start the demo application with: python DaboDemo.py

If you are doing right, it should work.

 

 

Install wxPython on Puppy Precise 5.7.1 (should also work for ubuntu 12.04)

I used the Puppy-Packet-Manager for install. Please click at every installation below on „check dependencies“

I first installed idle-python2.7_2.7.3 from the ubuntu repository. This will install python 2.7.3 base system and the idle editior.

Install the following packages:
python-wxgtk2.8
python-wxtools
wx2.8-i18n
libwxgtk2.8-dev
libgtk2.0-dev

That’s the way it should work. But it won’t.

The installation from the repository comes with a link named wx.pth. What you need is a textfile named wx.pth with the location of the wx folder in it. That’s a „python-style-link“.

You have to fix wx.pth.
You find it in /usr/lib/python2.7/dist-packages/wx.pth
Delete this file (it is a link).
Create a new textfile with the same name (wx.pth) in /usr/lib/python2.7/dist-packages/
Open it and type the folowing text in the file wx.pth

wx-2.8-gtk2-unicode

and save the file.

Now you can check the installation with the following code:

import wx
app = wx.App()
frame = wx.Frame(None, -1, ‚Hello WX‘)
frame.Show()
app.MainLoop()

You should get a empty window with the title „Hello WX“.