Difference between revisions of "Chumby Software Applications, Scripts and Tools"
(→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!
Contents
- 1 Scripts
- 1.1 ap_scan
- 1.2 chumby_set_mute
- 1.3 chumby_set_pan
- 1.4 chumby_set_volume
- 1.5 chumby_version
- 1.6 disable_intro
- 1.7 download_cp
- 1.8 enable_intro
- 1.9 flashplayer_watchdog
- 1.10 get_voltage.sh
- 1.11 guidgen.sh
- 1.12 headphone_manager
- 1.13 log-rollover
- 1.14 log-rollover-enable
- 1.15 macgen.sh
- 1.16 mkdevs
- 1.17 Mountmon scripts
- 1.18 network_running.sh
- 1.19 network_status.sh
- 1.20 reboot_normal.sh
- 1.21 script_locations.sh
- 1.22 service_control
- 1.23 service_getpid
- 1.24 service_list
- 1.25 start_control_panel
- 1.26 start_intro
- 1.27 start_network
- 1.28 start_network.sh
- 1.29 start_opening_anim
- 1.30 start_sshd.sh
- 1.31 stop_control_panel
- 1.32 sync_time.sh
- 1.33 sync_time_state.sh
- 1.34 time_zone.sh
- 1.35 update.sh
- 1.36 update_now.sh
- 1.37 wait_for_link
- 1.38 wait_for_opening
- 1.39 wait_for_usb
- 2 Applications
- 2.1 amixer
- 2.2 aplay
- 2.3 arecord
- 2.4 btplay
- 2.5 chumbhowld
- 2.6 chumbipod
- 2.7 chumbipodd
- 2.8 chumbpipe
- 2.9 chumbpop
- 2.10 chumbradio
- 2.11 chumbradiod
- 2.12 chumbyAuth
- 2.13 chumby_set_volume
- 2.14 chumbyflashplayer.x
- 2.15 chumbyradio
- 2.16 chumbytorrent
- 2.17 cpi
- 2.18 curl
- 2.19 dcid
- 2.20 eject
- 2.21 exportKeys
- 2.22 fbwrite
- 2.23 gdbserver
- 2.24 headphone_mgr
- 2.25 hexdump
- 2.26 imgtool
- 2.27 memstress
- 2.28 mountmon
- 2.29 mp3.x
- 2.30 openssl
- 2.31 perl
- 2.32 scp
- 2.33 ssh
- 2.34 switchwait
- 2.35 udevinfo
- 2.36 udevstart
- 2.37 udevtest
- 2.38 usb
- 2.39 wget
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