Skip to content

Instantly share code, notes, and snippets.

@nucleardreamer
Created July 23, 2016 17:28
Show Gist options
  • Save nucleardreamer/8ce6e2317e360bfd357035086ce07faa to your computer and use it in GitHub Desktop.
Save nucleardreamer/8ce6e2317e360bfd357035086ce07faa to your computer and use it in GitHub Desktop.
#!/bin/bash -e
SUDO=
if [ "$UID" != "0" ]; then
if [ -e /usr/bin/sudo -o -e /bin/sudo ]; then
SUDO=sudo
else
echo '*** run sudo bruh'
exit 0
fi
fi
WDIR=/tmp
cd $WDIR
# chrome
curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
$SUDO echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
# nvm
$SUDO curl -sSL https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
# docker
$SUDO apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
$SUDO echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
# zerotier
$SUDO echo "deb https://download.zerotier.com/debian/jessie jessie main" > /etc/apt/sources.list.d/zerotier.list
$SUDO apt-get update && $SUDO apt-get install -y \
ntp socat netcat nmap \
xmonad \
suckless-tools \
stalonetray \
xmobar \
zsh \
zerotier-one \
docker-engine \
google-chrome-stable \
pulseaudio
$SUDO apt-get install -f -y
pip install -U \
pip \
udiskie \
docker-compose \
awscli
$SUDO usermod -aG docker $USER
# oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# autorandr
git clone https://github.com/phillipberndt/autorandr.git
cd $WDIR/autorandr && make && $SUDO make install
$SUDO service docker restart
$SUDO service zerotier-one restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment