This repository has been archived by the owner on May 27, 2018. It is now read-only.
Releases: lstoll/cros-crostini
Releases · lstoll/cros-crostini
0.1
# Fetch and install image
curl -Lo /tmp/stretch.tgz http://github.com/lstoll/chromeoshack/releases/download/0.1/stretch.tgz
lxc image import /tmp/stretch.tgz --alias stretch
rm /tmp/stretch.tgz
# Create lxd container, set up a user
lxc launch stretch stretch
lxc exec stretch -- useradd -u 1000 \
-s "/bin/bash" \
-m "lstoll"
groups="audio cdrom dialout floppy plugdev sudo users video"
for group in ${groups}; do
lxc exec stretch -- usermod -aG "${group}" lstoll
done
# Keep user session running in container even if logged out
lxc exec stretch -- loginctl enable-linger lstoll
# Launch a session inside the container
lxc exec stretch -- /bin/login -f lstoll