Run TurnKey Linux container images in Chrome OS Crostini Linux.
TurnKey Linux offers a bunch of free and open source Debian-based pre-packaged ready-to-use server software appliances.
turnkey-crostini uses the generic container format which is specifically packaged for Proxmox. By the means of a helper container turnkey-crostini creates a Crostini compatible image which gets imported and deployed to the Chrome OS termina virtual machine.
Choose among a variety TurnKey Linux container images here and provide the file name along with a desired container name when executing the command below.
Open crosh (press Ctrl+Alt+T anywhere in Chrome OS) and start termina virtual machine vmc start termina
.
💡 I do recommend using a separate termina virtual machine and leave the Chrome OS termina/penguin instance untouched to prevent unwanted damage to the Chrome OS Crostini Linux integration. For example type vmc start dev
to create a new VM or vsh dev
to connect to an already existing/running VM.
run_container.sh --container_name turnkey-helper && \
while ! (lxc exec turnkey-helper curl ifconfig.co &> /dev/null); \
do echo 'Waiting for turnkey-helper...'; sleep 2; done && \
lxc exec turnkey-helper -- sh -c \
"curl https://raw.githubusercontent.com/flenny/turnkey-crostini/master/setup.sh > setup.sh && \
chmod +x setup.sh && ./setup.sh" && \
lxc file pull turnkey-helper/root/rootfs.tar.gz /tmp && \
lxc file pull turnkey-helper/root/metadata.tar.gz /tmp && \
lxc file pull turnkey-helper/root/container_name /tmp && CONTAINER_NAME=$(cat /tmp/container_name) && \
lxc image import /tmp/metadata.tar.gz /tmp/rootfs.tar.gz --alias turnkey-$CONTAINER_NAME && \
lxc delete --force $CONTAINER_NAME &> /dev/null; \
lxc launch turnkey-$CONTAINER_NAME $CONTAINER_NAME && \
lxc image delete turnkey-$CONTAINER_NAME &> /dev/null && \
lxc delete --force turnkey-helper && \
lxc exec $CONTAINER_NAME turnkey-init
-
What is the default root password?
Typelxc exec ${container name} passwd
to set a password for root. -
How can I connect to the TurnKey container?
Typelxc exec ${container name} bash
or navigate to the containers IP address to use a web-based shell. Typelxc list
in termina to get container IP addresses. -
I missed the TurnKey Linux first boot configuration. How can I run the script manually?
Typelxc exec ${container name} turnkey-init
.