GithubHelp home page GithubHelp logo

niklasb / live-guest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lernstick/live-guest

0.0 2.0 1.0 54 KB

Debian Live - guest system for removable Debian Live media

Shell 93.63% Python 6.37%

live-guest's Introduction

live-guest Debian package
-------------------------


* Functionality *

Live-guest enables a system to funtion as a hub for Debian Live
systems. You can connect a removable medium containing a Debian Live
system and have it automatically mounted as the home directory for
specially created "live-guest" user.

The main functionality is in the scripts /usr/share/live-guest/mount
and /usr/share/live-guest/unmount. The first script is triggered by a
udev rule and mounts the Debian Live system if no user is already
logged in. The the second script cleans up the system after logout.
It's also called by udev on device removal to clean up if not
everything was unmounted cleanly.


* Prerequisites *

  + Autologin has to be disabled in the login manager. This is done
    automatically if you install the package onto a Debian Live system.

  + pam_scripts has to be configured as an optional session PAM module 
    to run a script at the end of a user session. This script unmounts 
    the guest Debian Live system. Add the following line to your PAM 
    configuration:

    session     optional        pam_script.so

    See Debian bug #670182 for a proposal configure this automatically.
    

* Custom scripts *

Live-guest has several hooks to plug in custom scripts:

/usr/share/live-guest/mount.d
/usr/share/live-gust/unmount.d
   Executable scripts in these two directories are run with run-parts after
   everything is set up respectively before tear down. These directories are
   meant for add-on Debian packages.

/usr/local/share/live-guest/mount.d
/usr/local/share/live-guest/unmount.d
   These directories are for hook scripts written by the local user.

All hook scripts get either "mount" or "unmount" as the first
argument. If the same scritp should be used in both cases the script
should be put into mount.d and just symlinked from unmount.d.

* Configuration *

Configuration variables can be customized in /etc/live-guest.d/. All
files ending in ".conf" in this directory will be source in alphabetic
order. Default values can be found in /usr/share/live-guest/defaults.

 -- Gaudenz Steinlin <[email protected]>  Tue, 24 Apr 2012 16:31:02 +0200

live-guest's People

Contributors

gaudenz avatar niklasb avatar

Watchers

 avatar James Cloos avatar

Forkers

anthonyv5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.