View previous topic :: View next topic |
Author |
Message |
VanWEric n00b
Joined: 28 May 2004 Posts: 16
|
Posted: Wed Aug 11, 2004 6:28 pm Post subject: Making X a kiosk |
|
|
I little slideshow/webpage I'd like to have running on a display computer continuosly. In one user's .xinitrc I have it pop mozilla and have fun. all other users should be able to use the computer normally. The 'special' user's name is kiosk.
1) Can I disable the mouse for kiosk, but enable it for everyone else? Or is there something I can do in .xinitrc to move the mouse to a corner?
2) I want kiosk to log in and startx automajically at boot. However, you should be able to ctrl-alt-backspace out to his terminal, or ctrl-alt-fN to a different term. I don't want other users to have to be in X, but they should be able to. I had it working with one display manager, but it started gnome for the other users.
3) Why does my screen black out sometimes? If the page doesn't refresh for a while, everything goes black. Not good when somepages may be rather long movies.
Gnome has xscreensaver, but kiosk never explicitly starts it, and xscreensaver is prettier than blank screen.
Thanks in advance.
Eric
Oh btw: mplayerplug-in is amazing, as is python. _________________ www.olin.edu |
|
Back to top |
|
|
br0mGreV Apprentice
Joined: 28 Jul 2004 Posts: 265 Location: Paris, France
|
Posted: Thu Aug 12, 2004 3:20 pm Post subject: |
|
|
which version of X do you use ?
Xfree or X.org ?
Every question you ask are solvable, but i have to make some tests before posting a correct answer (no gentoo at hand to test while at work) but i think all goes around the XF86Config file:
I think you can use a personnal .Xf86Config, on the ~kiosk with the flags :
[quote="Xf86Config man pages"]- Option "DontVTSwitch" "boolean"
This disallows the use of the Ctrl+Alt+Fn sequence (where Fn refers to one of the numbered function keys). That sequence is normally used to switch to another oqvirtual terminal)cq on operating systems that have this feature. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off.
- Option "DontZap" "boolean"
This disallows the use of the Ctrl+Alt+Backspace sequence. That sequence is normally used to terminate the X server. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off.
- Option "DontZoom" "boolean"
This disallows the use of the Ctrl+Alt+Keypad-Plus and Ctrl+Alt+Keypad-Minus sequences. These sequences allows you to switch between video modes. When this option is enabled, those key sequences have no special meaning and are passed to clients. Default: off.
- Option "AllowMouseOpenFail" "boolean"
This allows the server to start up even if the mouse device can't be opened/initialised. Default: false.
- Option "BlankTime" "time"
sets the inactivity timeout for the blanking phase of the screensaver. time is in minutes. This is equivalent to the Xserver's `-s' flag, and the value can be changed at run-time with xset(1) . Default: 10 minutes.
So here I think you can proceed :
Copy/paste your /etc/X11/Xf86Config file to the ~/.Xf86Config file
Remove the mouse input device and add the differents options just exposed in the ~/.Xf86Config.
Add to the .bashrc a startx -- -xf86config .Xf86Config
and change the default owner of the files so that the users can't change it.
and you have your mouse disactivated with no blank screen file.
see man XF86Config and man startx for more info. _________________ Rien n'est éternel, pas même les problèmes... |
|
Back to top |
|
|
georwell Guru
Joined: 25 Jun 2003 Posts: 430 Location: Uppsala, Sweden
|
Posted: Thu Aug 12, 2004 5:50 pm Post subject: |
|
|
you might want to checkout kde's kiosk tool. |
|
Back to top |
|
|
VanWEric n00b
Joined: 28 May 2004 Posts: 16
|
Posted: Mon Aug 16, 2004 8:43 pm Post subject: |
|
|
Thanks, I got it working. Instead of hiding the cursor, i ended up using xwarppointer.
Is there really nothing in the portage tree that allows you to control the mouse from the command line?
Oh, a list of what I ended up doing:
in xorg.conf
Code: |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "BlankTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
|
Code: |
Section "Monitor"
#DisplaySize 370 300 # mm
Identifier "Monitor0"
VendorName "ACR"
ModelName "Acer AL1912"
# HorizSync 13364.0 - 0.0
# HorizSync 24.0 - 80.0
# VertRefresh 843863104.0 - 0.0
# Option "DPMS" <- Important bit - comment it out
EndSection
|
in .xinitrc
Code: |
/usr/local/bin/xwarppointer 1280 1280
sleep 3
mozilla http://localhost/kiosk.htm
|
I left it all unsecure in terms of someone walking up to it, because the computer is behind locked doors that need a (very low level) security clearance.
Thanks br0mGreV, I appreciate it. _________________ www.olin.edu |
|
Back to top |
|
|
Shaman Apprentice
Joined: 12 Sep 2002 Posts: 167 Location: Kingston, ON
|
Posted: Tue Aug 17, 2004 4:56 pm Post subject: |
|
|
georwell wrote: | you might want to checkout kde's kiosk tool. |
I can't find it in portage... is it there? |
|
Back to top |
|
|
br0mGreV Apprentice
Joined: 28 Jul 2004 Posts: 265 Location: Paris, France
|
Posted: Wed Aug 18, 2004 11:11 am Post subject: |
|
|
KDE Kiosk is a mode of KDE.
check this link for more info.
you can find an extra tool KIOSK admin tool here.
Since i'm not using KDE, i can't tell if this tool is aviable in portage, maybe in the admin packages. try by yourself. _________________ Rien n'est éternel, pas même les problèmes... |
|
Back to top |
|
|
|