IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

Kiosk HOWTO

Search Howtos :Match :
Next Previous Contents

4. Initializing the Kiosk

Under normal (i.e. kiosk) conditions, Linux should boot straight into Kiosk mode. In the event of a power failure, accidental reboot, or scheduled reboot, you need to configure the system to do this.

For our kiosk we elected to use init level 4, which is normally unused, for kiosk mode. We made the following adjustment to /etc/inittab:

4.1 /etc/inittab modifications


# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - Kiosk mode
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:4:initdefault:

4.2 /etc/rc.d/rc.4/S99xkiosk runlevel script

To initialize the kiosk after everything else has been initialized, including, in our case, Apache and MySQL, create the file /etc/rc.d/rc.4/S99xkiosk:


#!/bin/bash
#
# S99xkiosk   Initialization of kiosk for runlevel 4
#
# Author:           Gene Wilburn <genew at rom.on.ca>
#
 
# Display message on console
echo "Starting up the X Window Kiosk ... "
 
if [ -f /.netscape/lock] ; then
   rm /.netscape/lock
fi

# Logging of X activity
echo %%%%%%%%%%%%%Reboot%%%%%%%%%% >> /var/log/xlog
/root/xkiosk
 
# This point should only be reached by pressing Ctrl-Backspace
/sbin/shutdown -r now
 
# All done.

Once this file has been created and inittab has been adjusted to boot into init level 4, Linux will boot directly into kiosk mode. On our kiosk we disable telnet and ftp and install ssh so we can maintain and administer the kiosk remotely across the network with ssh and scp.

4.3 Booting normally from the console

There are times, especially during testing, when you'd like to work from the console in a normal init level 3 mode. To do this, press Ctrl-Backspace to reboot the system. When LILO: appears type:

LILO: linux init 3

and log in as usual.


Next Previous Contents
Search Howtos :Match :
Transmission 1.41 beta 2
Lightweight, yet powerful BitTorrent client
X-Moto 0.5.0
2D motocross platform game
Gdm 2.25.1
Reimplementation of the well known xdm program.
Linux Kernel 2.6 2.6.28-rc7
Linux Kernel
Linux Kernel 2.4 2.4.37
Linux Kernel
RIP 7.3
Small linux system for the purpose of system booting or repairing
GEdit 2.25.1
Small but powerful text editor
VLC media player 0.9.7
Cross-platform media player and streaming server
GNOME 2.25.2
GNOME desktop environment
WebGUI 7.6.5
A fully featured content management system.
Free IT Magazines, White Papers, eBooks, and more !
Dr. Dobb's Journal

Dr. Dobb's Journal enables programmers to write the most efficient and sophisticated programs and help in daily programming quandaries.

The 7 Things that IT Security Professionals MUST KNOW!

Gain key insight into security problem and find the safest means to protect your technological assets.

Database Trends and Applications

Provides timely coverage of the technology, intelligence and insight needed to plan, implement and manage information-rich projects.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info