I am new to Linux and Safepup - working with it for about one week - please excuse me if I get the terminology incorrect.

I am attempting to create a internet kiosk with mouse only navigation.

Within one week, I have come so far thanks to the help of Raffy - who has ofered some timely advice.

I have come up against two problems:

Q1 How do you 'mirror' or duplicate the actions of the left button mouse click (button 1) on buttons two and three (effectively disabling the right click menu in firefox) Is there a file to edit?

Q2 I have the need to disable the minimize, maximize and window close events of firefox. Is this a WM thing or firefox configuration. Safepup uses JWM. Alternatives could be permanently hiding the taskbar, resizing the window (not preferred) or masking the buttons somehow so they become inactive.

And now for a final (and could be quite a stupid question) does WJM need to load in order to view firefox? Can safepup just simply load firefox without the WM?

Various ways to disable the right mouse button. Take the mouse apart if you can and push the micro switch down so it doesn't click. If you can't take it apart, use some kind of filler between the depress portion of the mouse and the body.

I think maybe it's better to use jwm and just get rid of all the menu items you don't want people to have access to. Also delete the desktop items.

But, you don't have to use jwm, but you lose some basic functionality, which is probably what you want.

Edit ~/.xinitrc and near the bottom where it executes the window manager, comment that out. Add a line to have it execute Firefox instead. While you are editing you might want to comment out the ROX lines and see how you like that loss of functionality.

Theoretically you can have Firefox open at your preferred dimensions with the -width and -height switches. But you'll have to play with that one.

For those with the same problem, I have come up with a solution. It may not be the *right* solution, but it works. I would still like to appeal to Ubuntu experts to help point me down the true path.

As for my solution, I first used info from various HowTos regarding mouse mappings, by modifying the xorg.conf file and adding a ButtonMapping Option to the mouse InputDevice:

Option "ButtonMapping" "1 1 1"

This works, of course, because it maps all mouse buttons to button 1 when the X server starts up. The real problem is that it is a system-wide setting, and I could not find a way to have user-specific xorg.conf files.

I also tried working with xmodmap to change the button mappings there, but was confronted with errors either telling me that I need to specify values for all 9 mouse buttons (!!!), or that a value was out of range. It seems that regardless of how many mouse buttons you have, you need to specify 9 values, AND the values all have to be unique. So doing the following does not work:

xmodmap -e "pointer = 1 1 1 1 1 1 1 1 1"

But, the following DOES WORK:

xmodmap -e "pointer = 1 9 8 7 6 5 4 3 2"

Since I don't have 9 buttons on my mouse, this effectively disables buttons 2 and 3, my desired result. The bonus of using xmodmap is that I can now put it into a user-specific .gnomerc file in the $HOME directory of the users I want to have this crippled behaviour.

from
http://ubuntuforums.org/showthread.php?t=264372&highlight=disable+mouse+button

for ideas about locking down jwm see:
http://www.murga-linux.com/puppy/viewtopic.php?t=21940

If all you want is a browser don't forget that there is a quit entry in the browser file menu. You will need to watch for this and restart the browser if the user tries to close it_________________Will
contribute: community website, screenshots, puplets, wiki, rss

Bruce B: I will use the Mac mouse as a last resort as it is for multiple computers I wish to use the kiosk for. Good suggestion though!

Bruce B:

Quote:

I suppose you noticed that when using Firefox in place of the Windows manager it kills X when closed. But on the other hand there are other ways to kill X which would be hard to work around.
So do you want the users to have root control at the command prompt?

Because the right mouse button is effectively 'kind of' disabled. When Firefox is closed I have a single icon on the desktop with no taskbar. In JWM with no right mouse button, users cannot access the system. With a keyboard however, I press F12 to bring the menu up. Works a treat!

HairyWill: Thanks for your suggestions. I will give them a go overnight.... just another late night. What you said in your final point is very interesting:

Quote:

If all you want is a browser don't forget that there is a quit entry in the browser file menu. You will need to watch for this and restart the browser if the user tries to close it

Could you detail this in a little more.... What to do exactly. Because I haven't been able to deactivate the window close, minimize or maximize buttons, users can still exit firefox. I would love for Firefox to automatically launch again once a user has closed. Or will this be messy when trying to shutdown the system???

I have just had a go at getting the "ButtonMapping" "1 1 1" in the xorg.conf at each boot.
This is in 412 The keyboard and mouse are automatically detected (no user input), but i left the display options for the user.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum