LoginSignup
5
7

More than 5 years have passed since last update.

schrootでchroot

Last updated at Posted at 2015-12-26
  • dcrootはdeprecatedです。 schrootを使う。

参考

chroot他

インストール

apt-get install schroot debootstrap
mkdir -p /srv/chroot/xenial
debootstrap xenial /srv/chroot/xenial
/etc/schroot/schroot.conf
[xenial]
type=directory
directory=/srv/chroot/xenial
# usersにschroot許可するユーザ一覧を列挙
users=user1

user1にてchroot実施

sudo不要
cd ~
schroot -c xenial -p bash
  • -pをつけると環境変数を引き継ぎ、X転送可能。
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7