LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-02-2004, 08:43 PM   #1
yaseenlambe
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Kiosk Setup


Hi !!!!!
Tyring to setup a Kiosk system with SuSe 9.1 most of the work is done !!!
with the start up placed in the rc4.d and starting of the X session and loading of the browser in full screen using firefox extension to load the browser in full screen!!!!
just would like to know how can i setup the browser to come back to the homepage
after every two minutes if there is no activity ..
pointers or help of anysort will be appreciated
thanx and take care
 
Old 12-02-2004, 11:54 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
use a script that checks if somebody is working (check mouse/keyboard-interrupts). maybe use a cronjob for this. if there's no happening, execute the firefox --remote openurl thing (read the manpage or mozilla homepage).

sl mritch.
 
Old 12-03-2004, 01:04 PM   #3
yaseenlambe
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
reply to post

I know how to fire up Firefox with the command line and start it full screen but i am just not sure
how i will check for the keyboard and mouse interrupts and write it all in the script ..to have it working.
and also is there a simpler approach to this like a browser with the kiosk preference
as for the fullscreen of the browser i have downloaded an extension which allows me open it in fullscreen
 
Old 12-03-2004, 01:22 PM   #4
dnorseman
Member
 
Registered: Aug 2003
Location: Chicago, USA
Distribution: RHEL, CentOS, Ubuntu
Posts: 43

Rep: Reputation: 15
I have internet kiosks set up with Suse9.1. I call up firefox like this at start up.

while true ; do
path to firefox command
done

I got the idea from one of the kiosk projects. Whenever someone closes firefox it comes starts back up to the home page. I started using the kiosk full screen but I like my set up better. I use fluxbox and removed the window handlers except for the close button. It works well in my situation, but I like the idea of redirect to the home page with no keyboard activity. However when people are done browsing the web they like to close the browser, so a majority of the time the home page is displayed. I don't know if this is a better way but I thought I would suggest it.
 
Old 12-03-2004, 01:28 PM   #5
butthead
LQ Newbie
 
Registered: Nov 2001
Location: Guilderland, NY
Distribution: SuSe 8.1
Posts: 13

Rep: Reputation: 0
I set up a kiosk application for a retail customer service desk and encountered the same problem.

If you are using a browser, you can easily use a JavaScript to set a timeout on any/all pages and automatically return to the start page that you set when the timeout expires. This was a very simple solution to get the result you're looking for.
 
Old 12-03-2004, 01:36 PM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
you can find the nr. of irq's in /proc/interrupts. keyboard will likely be irq #1 and a ps2 mouse will be #12. cat them and compare them, let's say every 5 minutes.

oversimplified:

new_value=`cat /proc/interrupts | grep keyboard | awk '{print $2}'`
if [ "$old_value" -eq "$new_value" ]; then
firefox --display=localhost:0 --remote openurl
else
export old_value=$new_value
fi

-------
i don't know of such a bowser extension.

-------
*untested*
a (maybe) simplier aproach to this (no need to write a script) could be using a tool called "sleepd". it's actually made for putting a laptop to sleep, but the command hat would normaly put it to sleep can be specified in any way you want.
it watches the interrupts you tell it and when they are idle long enough you could start the remote firefox command.
*untested*

sl mritch.
 
Old 12-08-2004, 10:37 PM   #7
yaseenlambe
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Solution for reloading the browser to homepage

hello everyone thank you all for ur help i could finally get the code working for thank mritch ur help was valuable here is my code:-


# storing the old keyboard value
old_keyboardvalue=$(cat /proc/interrupts | grep i8042 | awk '{print $2}')

# storing the old mouse value
old_mousevalue=$(cat /proc/interrupts | grep 10: | awk '{print $2}')

export DISPLAY=:0

# message to display to warn the user
xmessage -center "If you leave the workstation for more than 2min it will return back to homepage and all work will be lost"

# and infinite loop
while true
do
sleep 16

#storing the new keyboard and mouse value after a sleep of 10 secs
new_keyboardvalue=$(cat /proc/interrupts | grep i8042 | awk '{print $2}')
new_mousevalue=$(cat /proc/interrupts | grep 10: | awk '{print $2}')

# if block to check if the values has changed after 20 secs
if [ "$old_keyboardvalue" = "$new_keyboardvalue" -a "$old_mousevalue" = "$new_mousevalue" ]
then
xmessage -center "The workstation will return back to homepage"
# reload the browser after giving the message
/usr/bin/firefox -remote "openurl(http://learningcommons.senecacollege.ca)" &
else
old_keyboardvalue="$new_keyboardvalue"
old_mousevalue="$new_mousevalue"
fi
done

thank you once again for all ur help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kiosk booting? rbonafied Mandriva 2 03-04-2006 10:53 AM
Kiosk linux colinstu Linux - Software 2 06-16-2005 10:04 AM
Kiosk PC Project mostly done andguent Linux - Software 2 12-30-2004 09:01 AM
Are there any Linux Kiosk Distros? teddymills Linux - Distributions 1 07-06-2004 01:31 PM
Building a Kiosk mysticpain Linux - General 6 05-29-2004 05:43 PM


All times are GMT -5. The time now is 07:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration