LtspPersistentHome

Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2006-08-10 16:31:31
Size: 677
Editor: mail
Comment:
Revision 9 as of 2006-11-06 18:44:58
Size: 4277
Editor: 207
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 * '''Launchpad entry''': none yet  * '''Launchpad entry''': https://features.launchpad.net/distros/ubuntu/+spec/ltsp-persistent-home
Line 11: Line 11:
Rather than store their home directories up on a server, some users would like to plug in flash media, and run off their memory stick. This currently works on the live CD. We should look at getting this to work for LTSP thin clients as well.
Line 13: Line 15:
Edubuntu with LTSP is enjoying much success in schools, especially in third world countries where the cost of a full function PC plus software plus support may exceed a teacher's monthly or even yearly salary. Universities and colleges in these countries also struggle to fund adequate PC labs for the use of students, which impacts on teaching. Edubuntu with LTSP could make a great contribution in tertiary education, but we need to recognise that many students at colleges, and even some at schools, have some access to computers at home, in libraries, and elsewhere. If they can only access their home directories when they are on school or college premises then they are less able to exploit any other computer resources to do homework, projects, or research. As well, some systems administrators of public systems (say, for instance, libraries), may not want to have to manage home directories for users. This would provide the perfect oportunity for library patrons to have a persistent home directory.
Line 14: Line 18:

 * Joseph is studying journalism at a college. He gets an assignment to study and report on the employment opportunities that the growth of biofuel feedstock crops may offer to subsistence farmers. He starts developing his report on a memory stick inserted into a lab computer at college, then goes to the town library to access more information resources. He wants to further edit his report using a computer available within the library.
Line 19: Line 25:
 * The user will have to pre-prepare the stick for use.
   * This will be simple. No reformatting will be required, the user just has to create the /pershome directory.
   * Perhaps a simple shell script using zenity can be created to facilitate this.
 * User plugs in media into the workstation before login.
 * User logs in.
 * the pam module pam_script will run, and determine from either /etc/ltsp/persistent_homes, or $HOME/.persistent_home, that the user wishes to have a USB persistent home dir.
 * pam_mount executes a ltspfs mount to /media/username, which mounts the vfat formatted media.
 * pam_mount then executes a layered mount of a fuse based filesystem that behaves much like the rockridge extentions for CD's, in that it maps long filenames and permissions (but not userid or groupids) into the corresponding files in a /pershome directory on the vfat media. This directory then is mounted onto $HOME for the user.
   * If there is no /pershome directory, then we pop up a dialogue box indicating that the /pershome directory hasn't been created, possibly with instructions on how to do it.
 * On logout, reverse unmounting is done. The libpam-mount module does this. '''NOT VERIFIED'''
Line 20: Line 37:

 * Design format for /etc/ltsp/persistent_homes
   * simple text file of userids
   * $HOME/.persistent_home simply has to exist.
 * package pam_script, write persistent_home checking scripts, promote to main.
 * Write fuse-filesystem:
   * fuseexmp.c, simple loopback filesystem.
   * Need to handle getattr, readdir, & link (soft and hard) system calls.
   * rest are passed through.
   * prototype in Python with python-fuse bindings. Rewrite in C if performance is a problem.
 * pam_mount, fuse-python need to be promoted to main.
Line 25: Line 53:
None.
Line 29: Line 59:
Need more input from the rest of the LTSP team.

NOTE: This page is part of the Ubuntu Specification process. Please check the status and details in Launchpad before editing. If the spec is Approved then you should contact the Assignee, or another knowledgeable person, before making changes.

Summary

Rather than store their home directories up on a server, some users would like to plug in flash media, and run off their memory stick. This currently works on the live CD. We should look at getting this to work for LTSP thin clients as well.

Rationale

Edubuntu with LTSP is enjoying much success in schools, especially in third world countries where the cost of a full function PC plus software plus support may exceed a teacher's monthly or even yearly salary. Universities and colleges in these countries also struggle to fund adequate PC labs for the use of students, which impacts on teaching. Edubuntu with LTSP could make a great contribution in tertiary education, but we need to recognise that many students at colleges, and even some at schools, have some access to computers at home, in libraries, and elsewhere. If they can only access their home directories when they are on school or college premises then they are less able to exploit any other computer resources to do homework, projects, or research. As well, some systems administrators of public systems (say, for instance, libraries), may not want to have to manage home directories for users. This would provide the perfect oportunity for library patrons to have a persistent home directory.

Use cases

  • Joseph is studying journalism at a college. He gets an assignment to study and report on the employment opportunities that the growth of biofuel feedstock crops may offer to subsistence farmers. He starts developing his report on a memory stick inserted into a lab computer at college, then goes to the town library to access more information resources. He wants to further edit his report using a computer available within the library.

Scope

Design

  • The user will have to pre-prepare the stick for use.
    • This will be simple. No reformatting will be required, the user just has to create the /pershome directory.
    • Perhaps a simple shell script using zenity can be created to facilitate this.
  • User plugs in media into the workstation before login.
  • User logs in.
  • the pam module pam_script will run, and determine from either /etc/ltsp/persistent_homes, or $HOME/.persistent_home, that the user wishes to have a USB persistent home dir.
  • pam_mount executes a ltspfs mount to /media/username, which mounts the vfat formatted media.
  • pam_mount then executes a layered mount of a fuse based filesystem that behaves much like the rockridge extentions for CD's, in that it maps long filenames and permissions (but not userid or groupids) into the corresponding files in a /pershome directory on the vfat media. This directory then is mounted onto $HOME for the user.
    • If there is no /pershome directory, then we pop up a dialogue box indicating that the /pershome directory hasn't been created, possibly with instructions on how to do it.
  • On logout, reverse unmounting is done. The libpam-mount module does this. NOT VERIFIED

Implementation

  • Design format for /etc/ltsp/persistent_homes
    • simple text file of userids
    • $HOME/.persistent_home simply has to exist.
  • package pam_script, write persistent_home checking scripts, promote to main.
  • Write fuse-filesystem:
    • fuseexmp.c, simple loopback filesystem.
    • Need to handle getattr, readdir, & link (soft and hard) system calls.

    • rest are passed through.
    • prototype in Python with python-fuse bindings. Rewrite in C if performance is a problem.
  • pam_mount, fuse-python need to be promoted to main.

Code

Data preservation and migration

None.

Unresolved issues

BoF agenda and discussion

Need more input from the rest of the LTSP team.


CategorySpec

LtspPersistentHome (last edited 2009-07-24 03:07:01 by 201)