Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: alu on May 10, 2011, 06:30:11 AM

Title: PyRoom Fetch and install script
Post by: alu on May 10, 2011, 06:30:11 AM
here is a simple bash script for you to customize in order to fetch and install PyRoom (also as attached file):

#!/bin/bash
# Fetch PyRoom last tar.gz from the Internet onto your USB key/HDD drive (replace with your PATH)
cd /mnt/sda1/PackTC
# wget http://launchpad.net/pyroom/0.4/0.4.1/+download/pyroom-0.4.1.tar.gz
# Uncompress PyRoom
tar -xf pyroom-0.4.1.tar.gz
# Load dependencies (replace with your PATH)
tce-load -i /mnt/sda1/tce/optional/python.tcz
tce-load -i /mnt/sda1/tce/optional/pygtk-2.7.tcz
tce-load -i /mnt/sda1/tce/optional/pyxdg.tcz
tce-load -i /mnt/sda1/tce/optional/libglade.tcz
# Run PyRoom
cd /mnt/sda1/PackTC/pyroom-0.4.1/
python pyroom &

EDIT: added missing dependency (libglade.tcz)
Title: Re: PyRoom Fetch and install script
Post by: Guy on May 10, 2011, 07:57:35 AM
You can make it into an extension

http://wiki.tinycorelinux.net/wiki:extension_for_settings


You can then get dependencies to load by creating a .dep file, and listing them in it.

Keep a copy of your extension. If you update extensions, it may be removed.
Title: Re: PyRoom Fetch and install script
Post by: alu on May 10, 2011, 08:33:41 AM
Quote
You can make it into an extension

it was my purpose not to make one, because i can use python apps from usb key such as portable applications which i find useful while working with low ram specs, and easy to update.

slightly off: i tried to do the same with wikidpad, but hit against wxpython -- difficult to build