26 lines
1 KiB
Bash
Executable file
26 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
# detect if building inside a CI system, like Travis
|
|
if [ -z ${IN_CI+x} ]; then
|
|
echo "choosing the more interactive installation method"
|
|
COMMAND_PREFIX="apt-get -y";
|
|
else
|
|
echo "choosing totally noninteractive installation method"
|
|
COMMAND_PREFIX="DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confnew\"";
|
|
fi
|
|
set -e
|
|
|
|
sudo apt-get update
|
|
|
|
if [ -z ${IN_CI+x} ]; then
|
|
echo "upgrading whole system, as not in CI"
|
|
UPGRADE_COMMAND="sudo $COMMAND_PREFIX dist-upgrade"
|
|
eval ${UPGRADE_COMMAND}
|
|
fi
|
|
|
|
INSTALL_COMMAND="sudo $COMMAND_PREFIX install meld whois zsh tmux vim atop aria2 curl pv pixz gajim tor torsocks nodejs npm terminator gsmartcontrol python-pip mesa-utils mesa-utils-extra aptitude p7zip-full p7zip-rar thunderbird mercurial kdiff3 gnupg2 python3-setuptools aircrack-ng macchanger"
|
|
eval ${INSTALL_COMMAND}
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
DIR="$DIR/../"
|
|
DIR="$DIR" $DIR/common/configure_fresh_system
|
|
|