Author Topic: Need to preserve installs as first day.  (Read 736 times)

Offline Crow

  • Hero Member
  • *****
  • Posts: 8746
  • OBJECTS IN MIRROR... ARE LOSING
Need to preserve installs as first day.
« on: September 21, 2012, 11:49:37 AM »
I've been wondering how to lock the desktop in my educative remaster once it is installed since the kids at school can easily change configs and that make teachers go crazy  ;D

In Windows there is an application (I don't know it's name) that every time you reboot the computer is like the first day, no changes are stored. That application is used in places where many people uses the computers: schools, internet cafes and others.

What can be done in Linux about this?
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline twa

  • Full Member
  • ***
  • Posts: 65
  • flown west
Re: Need to preserve installs as first day.
« Reply #1 on: September 21, 2012, 12:16:17 PM »
Crow,
not sure this is what you are asking for:
Configure your computer>Security
from there you can change many parameters.
cheers
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread.

Offline pags

  • Hero Member
  • *****
  • Posts: 2515
  • Keep it clean.
Re: Need to preserve installs as first day.
« Reply #2 on: September 21, 2012, 12:24:34 PM »
Are you concerned about OS and application updates, or would you do that as a re-install?

Have you considered a "poor man's install" with Persistence?  You could then wipe the persistence files, and be back at day one.

Just a thought...

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Need to preserve installs as first day.
« Reply #3 on: September 21, 2012, 12:38:40 PM »
the windows app you mention is deepfreeze but that one deletes everything done during the session when you shutdown or restart the machine, only what was present before you installed it remains on the hard disk, this includes updates and personal files saved to hard disk

i ignore if deepfreeze exist for linux, but it does exist for windows and mac

http://www.faronics.com

a native linux apps doing this, i never heard of it

i recommend just wiping the user and creating a new one but not sure if it works for this customized version
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline pags

  • Hero Member
  • *****
  • Posts: 2515
  • Keep it clean.
Re: Need to preserve installs as first day.
« Reply #4 on: September 21, 2012, 01:42:27 PM »
...
i recommend just wiping the user and creating a new one but not sure if it works for this customized version

That's pretty good...make a copy of the user's home directory from install, and have a script that restores it after logout (or on a regular basis from a cron job).

Depends on how Crow wants to see this working...

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Need to preserve installs as first day.
« Reply #5 on: September 21, 2012, 02:03:16 PM »
or maybe just the configs and leave the rest of the user folders untouched?

this could work well if it can be made to work before logging in but not sure how long could it take to delete and restore all those config files
« Last Edit: September 21, 2012, 02:05:11 PM by T6 »
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Crow

  • Hero Member
  • *****
  • Posts: 8746
  • OBJECTS IN MIRROR... ARE LOSING
Re: Need to preserve installs as first day.
« Reply #6 on: September 21, 2012, 05:17:19 PM »
Thank you all, forgot to say that the remaster is in LXDE

Security doesn't do what I need
The poor man's install sounds good if I never update which is possible since most machines doesn't have internet
Nope, no Deepfreeze for Linux  :-\ and to make a new user while it works implies a direct intervention from me and recreate Wbar which is not a good idea
Pags idea of making a copy of home (or configs as T6 says) and have a script that restores it after logout sounds great, unfortunately I don't have the slightest idea on script writing and the forum doesn't have a place to ask for personalized software  ;D

I think I will try the poor man's install and enroll me in some course of Python
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
Re: Need to preserve installs as first day.
« Reply #7 on: September 21, 2012, 05:23:06 PM »
There is a place to learn to personalise software - the Advanced Users' section.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline pags

  • Hero Member
  • *****
  • Posts: 2515
  • Keep it clean.
Re: Need to preserve installs as first day.
« Reply #8 on: September 21, 2012, 05:41:24 PM »
Thank you all, forgot to say that the remaster is in LXDE

Security doesn't do what I need
The poor man's install sounds good if I never update which is possible since most machines doesn't have internet
Nope, no Deepfreeze for Linux  :-\ and to make a new user while it works implies a direct intervention from me and recreate Wbar which is not a good idea
Pags idea of making a copy of home (or configs as T6 says) and have a script that restores it after logout sounds great, unfortunately I don't have the slightest idea on script writing and the forum doesn't have a place to ask for personalized software  ;D

I think I will try the poor man's install and enroll me in some course of Python

A script wouldn't be too hard...just need to get your ducks in a row as to what the details might be.

Do you have a timeframe for this?  I don't mind helping, if I can...

Offline Crow

  • Hero Member
  • *****
  • Posts: 8746
  • OBJECTS IN MIRROR... ARE LOSING
Re: Need to preserve installs as first day.
« Reply #9 on: September 21, 2012, 10:41:35 PM »
Thank you pags, last time I programmed something was a couple of educative games back in 1985 or 1986 I went to coursera.org and this Monday will begin a course on introduction to programming, it say's they use Python for the homework

I don't have a time frame, in fact is something I listened and I thought it could be a feature for the next remaster.

The Advanced User Section is for... well, advanced users and I'm not a CLI guy so I better learn something before I go there.

I think what pags said has a lot of sense: a snapshot of home, except some folders like Documents, Images and so on and the possibility to recover that image at will or automatically every shutdown, that way the kids works would be safe.
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline CaptainSarcastic

  • Sr. Member
  • ****
  • Posts: 329
Re: Need to preserve installs as first day.
« Reply #10 on: September 22, 2012, 01:46:31 AM »
Could you set User permissions to read-only for all system folders?  It sounds like you don't want them to be able to customize settings and appearance, and it seems like locking down their permissions on the right folders might do the trick.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
Re: Need to preserve installs as first day.
« Reply #11 on: September 22, 2012, 05:33:34 AM »
You mean on your system they're not?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15279
  • ┌∩┐(◕_◕)┌∩┐
Re: Need to preserve installs as first day.
« Reply #12 on: September 22, 2012, 07:07:44 AM »
Setting it up as a "kiosk / kiosk mode"  may of done it - the only thing I could find in the repo relates to xfce

xfce-kiosk - Kiosk support for the Xfce desktop environment

Doing a web search for xfce-kiosk listed the following page but it's not very detailed

http://wiki.xfce.org/howto/kiosk_mode

=====================
The following may give some tips

Creating a kiosk with Linux and X11: 2011 edition
Posted on November 5, 2011 by Alan.

.............finding a solution to the problem “on the cheap”, and being a fairly new Linux fanatic at the time, I figured I’d see what I could do using free software. This led to my first kiosk project.

Since then, I’ve refined my approach time and again, deploying kiosks throughout my organization just about anywhere a web-browser kiosk can be put to use. The original library system has been completely rebuilt with newer hardware and software, but is fundamentally the same system I set up five years ago.

Practice

In this tutorial, I’ll walk through how I set up a kiosk for use at my workplace, and why I choose the different components that I do.

Choose and install the OS

The first task is to get a basic OS install. You can do this with about any distribution of Linux you feel comfortable with, but I’d recommend taking the following aspects into consideration:

Once you have the basic install, we need to get a few software components on there:

    xorg is vital for displaying video
    gdm (version 2) will be the display manager
    matchbox-window-manager will be our window manager
    chromium-browser will be our sample kiosk application
    emacs for editing text, though you can install your favorite CLI text editor instead
    rsync will be part of our security lock-down later
    openssh-server is useful for doing remote administration

Full blog / tutorial

=======================================

If you won't be doing any updating (or minimal updates) I guess you could work around it but it does say

Don’t use a rolling release or a distro that updates every few months. The idea is to put out a kiosk and not touch it for a few years if you don’t need to. Use something with a long release cycle, or a long-term support release.
« Last Edit: September 22, 2012, 07:17:53 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Crow

  • Hero Member
  • *****
  • Posts: 8746
  • OBJECTS IN MIRROR... ARE LOSING
Re: Need to preserve installs as first day.
« Reply #13 on: September 22, 2012, 07:31:12 AM »
Extraordinary finding Menotu, I will read that. The part about rolling release distro doesn't bother me since many of that installs doesn't have an internet connection at this time.

Thank you
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline Crow

  • Hero Member
  • *****
  • Posts: 8746
  • OBJECTS IN MIRROR... ARE LOSING
Re: Need to preserve installs as first day.
« Reply #14 on: September 22, 2012, 08:18:57 AM »
I think something like this would be great  ;D  but it doesn't exist, I think

http://extragear.kde.org/apps/kiosktool/#status
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412