Skip to content

Instantly share code, notes, and snippets.

@austinkregel
Created November 19, 2017 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinkregel/59fb0c59c77bbe87f85a1a89582ba87d to your computer and use it in GitHub Desktop.
Save austinkregel/59fb0c59c77bbe87f85a1a89582ba87d to your computer and use it in GitHub Desktop.
This is a bash script to install crouton for chromebooks
#!/bin/bash
# Install crouton
echo ''
echo ''
echo '# Installing crouton #'
echo ''
curl -sS https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton > /tmp/crouton
echo ''
echo ''
echo '# Running crouton #'
echo '# Please do not let me fall asleep. #'
echo '# Estimated install time: 25 minutes #'
echo ''
echo ''
sleep 5
validateInput() {
if [ -z "$1" ]; then
echo ""
echo $2;
echo "Usage ./script.sh {chroot_name}"
exit 1;
fi
}
NAME=$1
validateInput "$NAME" "You must enter a name for your chrooted environment (No spaces)"
sudo sh /tmp/crouton -t core,audio,cli-extra,x11,xiwi -r xenial -n $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment