Skip to content

Instantly share code, notes, and snippets.

@saderi
Last active January 14, 2019 12:16
Show Gist options
  • Save saderi/f3454f80e663e129c64fed4966a451cf to your computer and use it in GitHub Desktop.
Save saderi/f3454f80e663e129c64fed4966a451cf to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script is meant for quick & easy install via:
# Tested in debian 9
# $ wget -q -O - "https://gist.github.com/saderi/f3454f80e663e129c64fed4966a451cf/raw" | bash -
wget -q -O - https://www.mongodb.org/static/pgp/server-4.0.asc | apt-key add -
echo 'deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main' > /etc/apt/sources.list.d/mongodb-org-4.0.list
# Update , upgrade OS and install curl, vim and git and mongoDB
apt-get update \
&& apt-get upgrade -y \
&& apt install -y curl vim git mongodb-org
systemctl enable mongod
systemctl start mongod
# Edit .bashrc enable color in bash
sed -i \
-e "s/# export LS_OPTIONS='--color=auto'/export LS_OPTIONS='--color=auto'/g" \
-e "s/# alias ls='ls \$LS_OPTIONS'/alias ls='ls \$LS_OPTIONS'/g" \
-e "s/# eval \"\`dircolors\`\"/eval \"\`dircolors\`\"/g" \
.bashrc
# Create custom .vimrc for disable VISUAL mod and enable syntax
echo "syntax on" > .vimrc \
&& echo "colorscheme desert" >> .vimrc \
&& echo "set mouse-=a" >> .vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment