From 64b0a6dd26e21c1c3eac846738470edbe0350251 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 4 Mar 2020 15:06:47 -0500 Subject: [PATCH] crostini-vapier-setup: helper for setting up new installs --- .bin/crostini-vapier-setup | 87 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100755 .bin/crostini-vapier-setup diff --git a/.bin/crostini-vapier-setup b/.bin/crostini-vapier-setup new file mode 100755 index 0000000..a3b5876 --- /dev/null +++ b/.bin/crostini-vapier-setup @@ -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[@]}" -- 2.39.5