Skip to content

Instantly share code, notes, and snippets.

Some links I want to save around trying to look at building a xenial or bionic image for crostini / lxc on ChromeOS
https://chromium.googlesource.com/chromiumos/containers/cros-container-guest-tools/+/master/
https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/master/project-termina/chromeos-base/termina-lxd-scripts/files/
#this next one looks to be the source and builds for how to make the virtwl packages installed by the debs above.
https://chromium.googlesource.com/chromiumos/containers/cros-container-virtwl/+/master
https://bugs.chromium.org/p/chromium/issues/list?can=2&q=Proj=Containers%20&sort=-modified&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified
sudo apt-get install curl wget vim software-properties-common && sudo apt-add-repository contrib && sudo apt-get update
@Zate
Zate / gnome_chromote.sh
Created April 10, 2018 22:31 — forked from packetpilot/gnome_chromote.sh
headless ubuntu|debian + gnome, accessible via Chrome Remote Desktop
#!/bin/bash
# gnome and chrome and chrome remote desktop access
# chrome itself is not required, but is included here.
# other desktops can be used w/ light script changes.
# tested on:
# - ubuntu xenial GCE instance
# - debian stretch crostini container on a Pixelbook (eve)
# running ChromeOS v67.0.3383.0 (dev channel)
# _without_ being in developer mode
@Zate
Zate / vm_setup.sh
Last active March 21, 2018 18:47
Setup stretch VM on ChromeOS and launch vscode
#! /bin/bash
set -euf -o pipefail
curl -Lo /tmp/stretch.tgz http://github.com/lstoll/chromeoshack/releases/download/0.1/stretch.tgz
lxc image import /tmp/stretch.tgz --alias stretch
lxc launch stretch stretch
lxc exec stretch -- useradd -u 1000 -s "/bin/bash" -m "zate"
groups="audio cdrom dialout floppy plugdev sudo users video"
for group in ${groups}; do
@Zate
Zate / get_go.sh
Last active February 5, 2024 18:19
Shell script to download and install latest golang
#! /bin/bash
# [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69)
# Download latest Golang release for AMD64
# https://dl.google.com/go/go1.10.linux-amd64.tar.gz
set -euf -o pipefail
# Install pre-reqs
sudo apt-get install python3 git -y
o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)')
@Zate
Zate / get_amis.sh
Created February 4, 2018 18:47
Script to grab latest Amazon Linux AMI's to include in cloudformation templates.
!/bin/bash
# runs through each region and grabs the latest Amazon Linux AMI to be used for standard EC2 Instances.
# use this to make sure the right AMI ID's are in the cloudformation templates.
tabs 4
echo -e "\tAWSRegionToAMI:"
for region in `aws ec2 describe-regions --output text | cut -f3`

Keybase proof

I hereby claim:

  • I am Zate on github.
  • I am zate (https://keybase.io/zate) on keybase.
  • I have a public key whose fingerprint is 8B05 F610 C703 3D3B 0656 9180 D047 B6BC C2AD D4D3

To claim this, I am signing this object: