3 # not so well written shell script
4 # to make sure beloved packages are installed
9 # declare an array variable
10 # access: echo "${arr[0]}", "${arr[1]}"
11 declare -a pkgs
= ("redis-server" "emacs24-nox" "tmux" "git" "git-core" "python3" "python3-doc" "python3-dev" "python-setuptools" "uwsgi-plugin-python" "postgresql-contrib" "postgresql" "libpq-dev" "libjpeg-dev" "zlib1g-dev" "libpng12-dev" "udisks" "hwinfo" "unzip" "gcc" "make" "build-essential" "fail2ban" "rkhunter" "chkrootkit" "ntp" "nginx-full" "apache2-utils" "fabric" "supervisor" "devscripts" "python-stdeb" "syslog" "openssl" "zip" "pdftk" "libncursesw5-dev" "libssl-dev" "libgdm-dev" "libsqlite3-dev" "tk-dev" "libreadline-dev" "bzip2-doc" "libbz2-dev" "tig" "lm-sensors" "hddtemp" "resolvconf" "ferm" "shellinabox")
13 ## now loop through the above array
16 dpkg
--get-selections |
grep $i > /dev
/null
2>&1
18 apt-get
install --quiet --assume-yes $i
22 # install project requirements using pip
23 # if on on prod server, install requirements/prod.txt
25 # otherwise requirements/dev.txt