Skip to content

Run TurnKey Linux container images in Chrome OS Crostini Linux.

License

Notifications You must be signed in to change notification settings

flenny/turnkey-crostini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

turnkey-crostini

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.

Getting started

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

⚠️ Please note that an already existing container with the same name gets automatically deleted by the script. Otherwise the new container cannot be deployed.

FAQ

  • What is the default root password?
    Type lxc exec ${container name} passwd to set a password for root.

  • How can I connect to the TurnKey container?
    Type lxc exec ${container name} bash or navigate to the containers IP address to use a web-based shell. Type lxc list in termina to get container IP addresses.

  • I missed the TurnKey Linux first boot configuration. How can I run the script manually?
    Type lxc exec ${container name} turnkey-init.

Screenshot

TurnKey Linux Apps

About

Run TurnKey Linux container images in Chrome OS Crostini Linux.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages