h:
$ xfd -fn cursor
The -solid argument takes a color name (Section 3.13) or a color code (hex digits in
the form #rrbbgg) as its argument.
15.10 Putting It All Together: Scripting a Kiosk
The core of most kiosk systems is a script (or group of scripts) that start the X server,
kiosk applications, and any related services, and then monitor the kiosk application,
restarting the X sever or applications when necessary.
Here is an example of a basic kiosk script, combining the ideas from the other articles
in this chapter:
#!/bin/bash
#
# kiosk.sh :: start a web browser in Kiosk mode
#
# --- Configuration variables
export DISPLAY=":1"
BROWSER="/usr/bin/mozilla"
STARTPAGE="file:/usr/local/kiosk/index.html"
HOMEPAGE="http://yellow/"
WARN="file:/usr/local/kiosk/outage_warning.html"
XSERVER="/usr/bin/X"
XMODMAP="/usr/bin/xmodmap /usr/local/kiosk/xmodmap.txt"
SCREENSAVER="/usr/bin/xscreensaver -nosplash"
SCREENSETUP="xsetroot -cursor_name left_ptr -solid blue"
SECONDS="15"
CHECK="wget $HOMEPAGE --spider -t 1"
# --- End of configuration variables
while true
do
# Step 1: Start the X server, allowing local connections only
$XSERVER $DISPLAY -nolisten tcp -ac -terminate &
XPID=$!
# Step 2: Start the screensaver
$SCREENSAVER &
# Step 3: Adjust the keymapping, pointer configuration, mouse shape,
# and root window color
$XMODMAP
$SCREENSETUP
15.
Pages:
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352