GithubHelp home page GithubHelp logo

flenny / turnkey-crostini Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1 MB

Run TurnKey Linux container images in Chrome OS Crostini Linux.

License: GNU General Public License v3.0

Shell 100.00%
chromeos crostini turnkey-linux pixelbook chrome-linux

turnkey-crostini's Introduction

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

turnkey-crostini's People

Contributors

flenny avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

turnkey-crostini's Issues

Ask user for image and container name

Instead of setting environment variables, ask user for image and container name. The default container name could be retrieved from the image name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.