- sudo apt-get install schroot debootstrap
- 增加下面描述至/etc/schroot/schroot.conf
[xenial]
description=Ubuntu Xenial (LTS)
directory=/home/XXX/xenial
users=XXX //主體使用者名稱
groups=XXX //主體使用者群組
root-groups=root
aliases=unstable,default - mkdir /home/XXX/xenial
- sudo debootstrap --variant=buildd --arch amd64 xenial /home/XXX/xenial http://archive.ubuntu.com/ubuntu/
or
sudo debootstrap --arch amd64 xenial /home/XXX/xenial http://archive.ubuntu.com/ubuntu/ - sudo mkdir /home/XXX/xenial/home/XXX
- schroot -c xenial -u XXX
- exit
- 安裝sudo and language
sudo chroot /home/XXX/xenial
apt-get install sudo
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
exit - 增加user and group
sudo chroot /home/XXX/xenial /bin/bash
groupadd XXX
useradd -g XXX XXX
passwd XXX
exit
sudo debootstrap --arch amd64 --keyring=/etc/apt/trusted.gpg lucid /home/victor/Workspace/hisilicon http://old-releases.ubuntu.com/ubuntu/
Bind Filesystem
/etc/fstab
/dev /home/XXX/xenial/dev auto bind 0 0
/dev/pts /home/XXX/xenial/dev/pts auto bind 0 0
/proc /home/XXX/xenial/proc auto bind 0 0
沒有留言:
張貼留言