Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Ubuntu Lockdown

clava (2525860) writes | more than 2 years ago

Java 2

clava (2525860) writes "We have a desktop Java testing application that is going to be administering tests to students on lab computers running Ubuntu 10.x. These computers are used by the students for other purposes and we're not allowed to create special users or change the OS configuration. When the testing app is launched, we need to restrict users from exiting the app so they can't do things like search the internet for answers or use other applications. Is there a good way to put an Ubuntu machine in kiosk mode or something via our application and have exiting kiosk mode be password protected? Any ideas are appreciated."

Sorry! There are no comments related to the filter you selected.

Try this (1)

Shifty0x88 (1732980) | more than 2 years ago | (#38285382)

It seems someone has come up with a Kiosk version of Ubuntu already. Ubuntu Kiosk Edition [] Maybe you could just look at the scripts that have added and incorporate it into your stock Ubuntu version.

Other than that, you could just create a simple keep-alive program that just looks at your java app and makes sure it is always running, and if not start it and maximize it.

It could also send an alert with the computer name by email or something, to warn you of any cheating.

This will only stop some people but you can just remove the top title bar (and the minimize, maximize and you guessed it the close button). Unfortunately you can still just do an Alt+F4 and you close the java app. setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.NONE);

So I found this bit of code on the internet but it makes it hella challenging to actually close the java app when you actually want to kill it: setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

I actually had to go into task manager and kill the javaw.exe that is running the app.

Oh and I hope you are using Swing or you will have to find equivalent methods(if they exist) for AWT or whatever you are using for your GUI

routes/resolv.conf/hosts file (1)

greenfruitsalad (2008354) | more than 2 years ago | (#38285412)

i'd just change /etc/resolv.conf, set a couple of static entries in /etc/hosts and remove default route.

that way the machine will only be able to access FQDNs defined in /etc/hosts and if somebody enters a direct IP address into web browser, the computer will not know a route to it.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?