Results 1 to 2 of 2

Thread: Using PPAs inside chroot ?

  1. #1
    Join Date
    Jan 2010
    Location
    India
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Using PPAs inside chroot ?

    Hi,

    https://help.ubuntu.com/community/BasicChroot

    A chroot is basically a special directory on your computer which prevents applications, if run from inside that directory, from accessing files outside the directory. In many ways, a chroot is like installing another operating system inside your existing operating system.
    Is it somehow possible to configure chroot to allow (read only) access to a particular folder outside chroot ?

    If that is possible I will install some useful but untrusted/unofficial PPAs inside the chroot environment. But if it is impossible to configure chroot to allow access to a folder outside there is no point.


    Accessing graphical applications inside the chroot

    You can run graphical applications within a chroot, but you need to provide an X server for them to run in first. The easiest way to do this is to set the display of the chroot system to be identical to the root display of your system's main X server.
    In other words, in the chroot shell type
    export DISPLAY=:0.0
    But question is will the NVIDIA proprietery driver run inside chroot ? vdpau possible ?
    Last edited by linuxyogi; July 28th, 2011 at 07:17 PM.
    Lubuntu 14.04
    free
    showing high ram usage ? Read this
    When people say "you've changed " there's a 95% chance that you just stopped acting the way they wanted you to.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Using PPAs inside chroot ?

    Quote Originally Posted by linuxyogi View Post
    Hi,

    https://help.ubuntu.com/community/BasicChroot

    Is it somehow possible to configure chroot to allow (read only) access to a particular folder outside chroot ?

    If that is possible I will install some useful but untrusted/unofficial PPAs inside the chroot environment. But if it is impossible to configure chroot to allow access to a folder outside there is no point.
    Yes, you can mount any partition, directory or file, from outside the chroot environment the same way you mount dev, proc and sys.

    Code:
    sudo mount --bind /path/to/source /var/chroot/path/to/dest
    If you want to make it read-only, you have to issue a second remount command:
    Code:
    sudo mount -o remount,ro /var/chroot/path/to/dest

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •