Difference between revisions of "Chumby Software Applications, Scripts and Tools"

From Chumby Wiki
Jump to: navigation, search
(cpi)
(chumbipodd)
Line 201: Line 201:
 
==chumbipod==
 
==chumbipod==
 
==chumbipodd==
 
==chumbipodd==
 +
 +
Documented at [[Chumby as an iPod server]].
 +
 
==chumbpipe==
 
==chumbpipe==
 
==chumbpop==
 
==chumbpop==

Revision as of 13:48, 16 November 2007

This page is an attempt to document the various scripts and applications which come pre-installed on a stock Chumby distribution.

Status: Alpha

Please help update it!

Scripts

All of these scripts are found in /usr/chumby/scripts/


ap_scan

ap_scan - Scans for wireless networks and outputs XML. If /tmp/hidden_ssid exists, the script will switch the SSID of the wireless interface to the SSID defined in /tmp/hidden_ssid before initiating the scan. If the interface was configured with a different SSID prior to a wireless scan that read from /tmp/hidden_ssid, the script will restore the original SSID when the scan has completed.

chumby_set_mute

Set the "mute" volume of the Chumby. Mute affects the Chumby speaker but not the headphones. Is this correct?


chumby_set_pan

Set the "balance" level of the Chumby. Is this correct?


chumby_set_volume

Set the master volume of the Chumby.


chumby_version

Displays the software, firmware and hardware versions

   syntax: /usr/chumby/scripts/chumby_version [-s -f -h -n -t --rfs1 --rfs2]
   -s     - display software version
   -f     - display firmware build number
   -h     - display hardware version number
   -n      - display hardware serial number
   -t      - display hardware time since last crypto processor power cycle
   --rfs1  - display RFS1 md5sum
   --rfs2  - display RFS2 md5sum

disable_intro

Disable the intro screen.

download_cp

enable_intro

Enable the intro screen.

flashplayer_watchdog

Script that watches for flashplayer hangs or exits?

get_voltage.sh

With no arguments, reports raw values from /proc/chumby/battery-voltage If battery or line is specified, gets specified value and converts to approximate voltage.

guidgen.sh

Extracts chumby putative ID from crypto processor

headphone_manager

Daemon responsible for disabling internal speakers when external headphones/speaker is plugged in


log-rollover

Script to roll over /var/log/messages

Usually invoked from crontab:

50 2,6,10,14,18,22 * * * /usr/chumby/scripts/log-rollover

log-rollover-enable

Enable log-rollover in crontab

macgen.sh

Outputs wireless NIC hardware address

mkdevs

Simple script to automatically populate a /dev directory.

Mountmon scripts

See mountmon.conf for list of environment variables available on input
and required output values

mountmon_utils.sh

Utility functions used by mountmon scripts

add.sh

"Add" event script for mountmon

mount.sh

Mount event script for mountmon

remove.sh

Remove event script for mountmon

umount.sh

Unmount event script for mountmon


network_running.sh

Determines whether the network is running

network_status.sh

Polls the status of the network interface and outputs XML to /tmp/chumby/network_status.xml

reboot_normal.sh

Reboots the Chumby

script_locations.sh

Set default script directory locations

service_control

Service control wrapper script

Usage:
service_control service_name action [args]
This just gets the ETC_INIT_DIR value from script_locations.sh then invokes
${ETC_INIT_DIR}/${service_name} action [args]

service_getpid

Get process id(s) of running service

service_list

Get list of running services


start_control_panel

Responsible for starting the control panel in the correct mode

start_intro

start_network

Starts the network after the network config has been written

start_network.sh

symlink to start_network

start_opening_anim

start_sshd.sh

Start the SSH Daemon

stop_control_panel

Stop the control panel widget from playing

sync_time.sh

Synchronize clock with network time server

  • Called by sync_time_state.sh

sync_time_state.sh

Set or read the sync_time_state from /psp/use_ntp


time_zone.sh

update.sh

Autoupdate script

update_now.sh

Sets the paranoid boot flag to boot into autoupdate mode and force an immediate reboot.

wait_for_link

Wait for the (network?) interface to establish link before proceeding

wait_for_opening

Wait for opening animation to start.

wait_for_usb

Wait for the usb subsystem to finish loading before proceeding

Applications

These applications are in /usr/bin.

  • Note: Busybox tools are not included in this list.

amixer

aplay

arecord

btplay

chumbhowld

chumbipod

chumbipodd

Documented at Chumby as an iPod server.

chumbpipe

chumbpop

chumbradio

From the forum: "Require[s] an as-yet unreleased hardware accessory." [1]

chumbradiod

chumbyAuth

chumby_set_volume

chumbyflashplayer.x

chumbyradio

chumbytorrent

cpi

Usage : cpi [--help] | [-p] [-a] [-d] [-r]

Interface with Crypto Processor

Options:

   --help      Display this help screen

   -k <KEYID>  Use the specified key ID (default is 0)
   -r <FILE>   Read query XML from FILE (ignored if valid -i specified)
   -w <FILE>   Write result XML to FILE (ignored if valid -o specified)
   -i          Read query XML from stdin
   -o          Write result XML to stdout
   -p          Write putative ID of specified key index to stdout
   -a 

curl

dcid

eject

exportKeys

fbwrite

gdbserver

headphone_mgr

hexdump

Dump a file or pipe in hex

imgtool

memstress

mountmon

mp3.x

openssl

Open SSL tool

perl

This is perl, v5.8.8 built for linux

scp

Secure copy

ssh

Secure shell (ssh to another machine)

switchwait

udevinfo

udevstart

udevtest

usb

wget

Get a file from the web