Created
November 19, 2017 04:06
-
-
Save austinkregel/59fb0c59c77bbe87f85a1a89582ba87d to your computer and use it in GitHub Desktop.
This is a bash script to install crouton for chromebooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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