joamuran / n4d-ltsp

n4d plugin suite for LTSP under a #lliurex environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Library Documentation: class LtspChroot in module LtspChroot

class LtspChroot


methods


def __init__(self):

A simple init method

def apt(self):

Apt functions

def get_lliurex_version_on_chroot(self, chroot_dir):

get the LliureX Version of chroot given.

def info(self):

Show basic info about this plugin.

def prepare_X11_applications(self, chroot_dir):

Prepare a X11 environment to run graphical apps into a chroot

def prepare_chroot_for_run(self, chroot_dir):

Prepare chroot to run commands mounting some directories:

  • /proc/
  • /sys/
  • /dev/
  • /dev/pts/

def run_command_on_chroot(self, chroot_dir, command):

Possible commands: * x-editor * synaptic * terminal

def startup(self, options):

Startup functions

def test_chroot(self, chroot_dir):

test_chroot test if the given directory is a real chroot or besides, it seems like a chroot.

def umount_chroot(self, chroot_dir):

Umount system directories now with -lazy, TODO: test if it is mounted already

About

n4d plugin suite for LTSP under a #lliurex environment.


Languages

Language:Python 99.7%Language:Shell 0.3%