]> git.wh0rd.org Git - home.git/commitdiff
crostini-vapier-setup: helper for setting up new installs
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 Mar 2020 20:06:47 +0000 (15:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 4 Mar 2020 20:06:47 +0000 (15:06 -0500)
.bin/crostini-vapier-setup [new file with mode: 0755]

diff --git a/.bin/crostini-vapier-setup b/.bin/crostini-vapier-setup
new file mode 100755 (executable)
index 0000000..a3b5876
--- /dev/null
@@ -0,0 +1,87 @@
+#!/bin/bash
+pkgs=(
+       ipython3
+       pylint3
+
+       dict
+       elinks
+       gimp
+       inkscape
+       mpv
+
+       autoconf
+       autoconf-archive
+       automake
+       autopoint
+       bison
+       ccache
+       clang
+       clang-format
+       dejagnu
+       diffstat
+       flex
+       gcc
+       gettext
+       g++
+       git
+       git-email
+       git-svn
+       gdb
+       keychain
+       libtool
+       patchutils
+       pax-utils
+       pinfo
+       screen
+       strace
+       subversion
+       texinfo
+       tree
+       vim
+
+       openjdk-8-jre-headless
+
+       device-tree-compiler
+       libcap-dev
+       libcap-ng-dev
+       libfdt-dev
+       libftdi-dev
+       libglib2.0-dev
+       liblzma-dev
+       libpixman-1-dev
+       libreadline-dev
+       libsdl1.2-dev
+       libusb-1.0-0-dev
+       pkg-config
+       python-beautifulsoup
+       python-dev
+       virtualenv
+       zlib1g-dev
+)
+exec sudo bash -c '
+set -ex
+printf "Defaults !tty_tickets\nDefaults timestamp_timeout=360\n" > /etc/sudoers.d/vapier
+chmod 440 /etc/sudoers.d/vapier
+
+curl "https://dl-ssl.google.com/linux/linux_signing_key.pub" | apt-key add -
+echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >/etc/apt/sources.list.d/google-chrome.list
+
+apt-get update
+apt-get dist-upgrade
+
+apt-get -y install google-chrome-stable "$@"
+
+ln -sf ~vapier/.profile.d/ROOT-bash_profile ~root/.bash_profile
+for f in .gitconfig .inputrc .nanorc ; do
+       ln -sf ~vapier/${f} ~root/${f}
+done
+rm -f ~root/.profile ~root/.bashrc
+echo . ~vapier/.profile.d/ROOT-bashrc > ~root/.bashrc
+
+rm -f /etc/motd
+echo "[crostini]" > /etc/ps1_append
+
+rm -f /etc/ssh/sshd_not_to_be_run
+/usr/sbin/sshd
+
+' bash "${pkgs[@]}"