Last active
November 1, 2018 12:27
-
-
Save azet/9692875dd2e811e81f5d5e74196639df to your computer and use it in GitHub Desktop.
standard crouton/chroot setup on my chromebook pixel (2015)
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
#!/usr/bin/env bash | |
set -e -o pipefail | |
# if you just want/need to update run this script with (.... -u) | |
#[[ -z ${1} ]] && 1="" | |
[[ ${USER} == "chronos" ]] || exit 1 | |
cd ~/Downloads | |
curl -O https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton | |
# stretch: | |
sudo sh crouton -e -t core,cli-extra,extension,chrome,audio,xfce-desktop,xiwi -r stretch -n stretch ${1} | |
apt_pkgs="sudo apt-get install -y build-essential cmake git wget zsh zsh-dev curl zsh-common autoconf automake autotools-dev debhelper dh-make gnupg fakeroot devscripts lintian patch patchutils quilt python3 golang git-buildpackage screen tmux gnupg-agent tcpdump tshark pandoc glances radare2 mtr lua5.2 sysstat ltrace pwgen pstack cpuid git-flow tree highlight peco" | |
sudo enter-chroot -n stretch -x sudo apt-get update | |
sudo enter-chroot -n stretch -x ${apt_pkgs} | |
# xenial: | |
sudo sh crouton -e -t core,cli-extra,extension,chrome,audio,unity-desktop,touch,xiwi -r xenial -n xenial ${1} | |
# kali: | |
sudo sh crouton -e -t core,cli-extra,extension,chrome,audio,xfce,xiwi -r kali-rolling -n kali ${1} | |
sudo enter-chroot -n kali -x sudo apt-get install kali-linux-full -y | |
cat << EOF >> ~/.bashrc | |
alias signal="sudo startxiwi -bfTn stretch signal-desktop" | |
alias signal-beta="sudo startxiwi -bfTn stretch signal-desktop-beta" | |
#alias list_chroots="printf '\t\`-------. chroots on this system:\n'; find /mnt/stateful_partition/crouton/chroots/* -maxdepth 0 -type d -printf '\t\t|--+ [ %F ]\n\t\t| \`-- fs-path: %H\n\t\t| \`-- fs-type: %F\n'" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment