LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2004, 07:18 PM   #16
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45

the rm is rather short no? as for the reinstall....

if you do that on your server it should not take all that long no? i am assuming (yes assumptions make an ass out of me i know) that your server is running a SCSI raid thus the wr times should be very fast, and i just dont see users putting 100m+ worth of data on that HD to make the process all that long.

few seconds top, nothing unreasonable i would think.
 
Old 05-21-2004, 07:19 PM   #17
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
man i really love the power of *nix, its just so much more then M$ has ever been, or likely ever will be.

by the time M$ catches up to what linux is doing today linux will be an other decade ahead.
 
Old 05-21-2004, 07:25 PM   #18
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Lleb_KCir

if you do that on your server it should not take all that long no? i am assuming (yes assumptions make an ass out of me i know) that your server is running a SCSI raid thus the wr times should be very fast
In our case the files are not on a server, but on individual PCs.
You're right though. The time to delete files shouldn't be much of an issue.

Quote:
Originally posted by Lleb_KCir

i just dont see users putting 100m+ worth of data on that HD to make the process all that long.
Also true, but we have a few patrons that might
 
Old 05-21-2004, 07:26 PM   #19
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Lleb_KCir
man i really love the power of *nix, its just so much more then M$ has ever been, or likely ever will be.

by the time M$ catches up to what linux is doing today linux will be an other decade ahead.
Amen
 
Old 05-21-2004, 07:29 PM   #20
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Original Poster
Rep: Reputation: 15
Well, I was at a staff meeting this morning and my Library Director gave me the OK to start looking for some new internet PCs that will be running Linux

I think We'll probably be going with the scripts to erase and restore the public users Home directory after each reboot.

If anyone has any ideas to add, as always, they are welcome
 
Old 05-22-2004, 08:54 AM   #21
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
gratz on getting the go-a-head. i look forward to hearing how it works out for you.

i will be wanting to set something like that up in a year or so at a public facility and this type of setting will be ideal for it.

only thing i could think of if you did not want to scrub it on a reboot, or did not want to reboot linux every time a new user gets on is to give ea user some kind of generic user/pw with their own home dir.

example:

you set up each box to have 100 users:

user1
p/w = whateveryouwant.


then on a nightly basis the system goes in and scrubs all of the home dir of any changes made that day. little more work, but also saves the EU time as if you have old hardware linux is not the fastest booting OS out there.

but then again, that is a M$ guy thinking, and not linux.
 
Old 05-22-2004, 11:11 AM   #22
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Lleb_KCir

only thing i could think of if you did not want to scrub it on a reboot, or did not want to reboot linux every time a new user gets on is to give ea user some kind of generic user/pw with their own home dir.
Hmm... hadn't thought of that one. I wonder if I could write a script that would asign the 'public' user a new home directory on each login. That way we'd only need one user name and pwd, but still keep each users files separate.

One advantage of that would be if a patron came back later on the same day and needed access to the files they were using earlier they would still be there.

Quote:

then on a nightly basis the system goes in and scrubs all of the home dir of any changes made that day. little more work, but also saves the EU time as if you have old hardware linux is not the fastest booting OS out there.
We just bought new internet PCs a couple years ago, so they're reasonably fast. But you're right, having to wait for them to reboot could be annoying if we have other patrons waiting to use that computer.

Maybe we could have the clean-up script run when the public user logs in. That way when a patron is done using the computer all they would have to do is log out, which would be a lot faster than rebooting the computer.

Last edited by AlexV; 05-22-2004 at 11:12 AM.
 
Old 05-22-2004, 01:02 PM   #23
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
It'd be more efficient to do the cleaning when a user logs out, rather than when a new user logs in, don't you think?

Remember .bash_logout
Just set it up with

rm -rf download/*

Bingo, temporary space cleared.


Say you set it up this way -- /home/user/download -- Have /home/user/download be the only writeable part in the home directory.

Users won't be able to change the .dotfiles for preferences, etc -- and only one directory to clean on logout. All users use the same name, would be one way to do it.

I'm not sure if any programs would object to not being able to write to their respective .conf files... But it's worth a shot.

--Shade

Last edited by Shade; 05-22-2004 at 01:04 PM.
 
Old 05-22-2004, 01:48 PM   #24
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Shade

Say you set it up this way -- /home/user/download -- Have /home/user/download be the only writeable part in the home directory.

I'm not sure if any programs would object to not being able to write to their respective .conf files... But it's worth a shot.

--Shade
I've already tried turning off write access to the home directory. Gnome, KDE, and other programs that store their settings there don't take to kindly to that though

In fact, it seems that Gnome keeps some user settings (wallpaper in this case) some where other than the home directory...

I've been testing some scripts the delete the users home directory and replace it with a back-up from a tar file, but although everything else (files and sub directories created, etc.) seems to be restore to the way it was when I created the tar file, the changes to wallpaper are not reset!

Can anyone tell me where these settings are actually kept ?
 
Old 02-15-2006, 08:53 AM   #25
philosophe
LQ Newbie
 
Registered: Feb 2005
Distribution: Mandriva 2006 on Sony PCG-SRX77
Posts: 17

Rep: Reputation: 0
I haven't read this whole thread, so forgive me if this isn't relevant.

Bill Ott of the Grand Rapids (MICH) Public Library uses open source extensively at the library and made an interesting presentation on Internet Station Manager to KLUG (Kalamazoo Linux Users Group) last year.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Public School Library software klnasveschuk Linux - Software 2 09-15-2006 06:02 PM
Linux on public computer Tepsunius Debian 11 06-27-2005 08:09 PM
Legal Question: Can a public library 'borrow' the design of the FC website? AlexV General 3 02-21-2005 01:13 AM
Securing Public Machines - New to Linux jpapa Linux - Security 3 10-20-2004 08:48 PM
Public Windows, Private Linux c0rrupt0 Linux - Networking 8 09-11-2003 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration