Difference between revisions of "Chumby One tips and tricks"

From Chumby Wiki
Jump to: navigation, search
(New page: A crib sheet of useful commands. ==Local boot scripts== Scripts in /psp/rfs1/userhook0, /psp/rfs1/userhook1, /psp/rfs1/userhook2 get run on boot and are stored locally (no USB dongle need...)
 
(Local boot scripts)
 
Line 3: Line 3:
 
==Local boot scripts==
 
==Local boot scripts==
 
Scripts in /psp/rfs1/userhook0, /psp/rfs1/userhook1, /psp/rfs1/userhook2 get run on boot and are stored locally (no USB dongle needed). userhook2 is run just before the control panel is downloaded, and is the typical place to interject commands. Earlier hooks are provided in case you need to muck with drivers, paths, etc.
 
Scripts in /psp/rfs1/userhook0, /psp/rfs1/userhook1, /psp/rfs1/userhook2 get run on boot and are stored locally (no USB dongle needed). userhook2 is run just before the control panel is downloaded, and is the typical place to interject commands. Earlier hooks are provided in case you need to muck with drivers, paths, etc.
 +
 +
'''Note:''' This information is also valid for Chumby Classics (at least on latest beta version)
  
 
==Making a swap partition==
 
==Making a swap partition==

Latest revision as of 16:00, 10 January 2010

A crib sheet of useful commands.

Local boot scripts

Scripts in /psp/rfs1/userhook0, /psp/rfs1/userhook1, /psp/rfs1/userhook2 get run on boot and are stored locally (no USB dongle needed). userhook2 is run just before the control panel is downloaded, and is the typical place to interject commands. Earlier hooks are provided in case you need to muck with drivers, paths, etc.

Note: This information is also valid for Chumby Classics (at least on latest beta version)

Making a swap partition

if [ ! -e /mnt/storage/swap ]
then
    echo "Making 256M swapfile"
    dd if=/dev/zero of=/mnt/storage/swap bs=1M count=256
    mkswap /mnt/storage/swap
fi
swapon /mnt/storage/swap

Loading .so's without modifying the base install

chumby:/mnt/storage# echo $LD_LIBRARY_PATH
/lib:/lib:/usr/lib:/usr/local/lib:/mnt/storage/lib:/mnt/storage/local/lib

Put the libraries in /mnt/storage/lib or /mnt/storage/local/lib.