-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabric-server.sh
More file actions
62 lines (49 loc) · 1.82 KB
/
fabric-server.sh
File metadata and controls
62 lines (49 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
set -e
# Install build essentials
sudo apt-get update -qq > /dev/null
sudo apt-get install -y -qq build-essential
# Install zsh
sudo apt-get install -y -qq zsh > /dev/null
sudo apt-get install -y -qq powerline fonts-powerline > /dev/null
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# sudo chsh -s /bin/zsh
# install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo apt-get install -y -qq docker-compose > /dev/null
sudo usermod -a -G docker $USER
echo "Need to log our and log in again to take effect"
# Install Node v8
# curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
# sudo apt-get install -y -qq nodejs> /dev/null
# Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install Python 2
sudo apt-get install -y -qq python
sudo apt-get install -y -qq python-pip
pip install glances
# Install nginx
sudo apt-get install -y -qq nginx > /dev/null
# Github credentials caching for approx 1 year
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=31000000'
# Setup aliases
ALIASES='
# Prints docker containers in paged mode
alias dps="docker ps | less -S"
alias tls="tmux list-session"
alias tks="tmux kill-session -t "
alias tns="tmux new -s "
alias tat="tmux attach -t"
'
echo "Setting up the following aliases"
echo "$ALIASES"
echo "$ALIASES" > ~/.bash_aliases
# Finally prompt user to log out and log in again to run hypervault.sh
wget -O hypervault.sh https://raw.githubusercontent.com/lixiii/hypervault-setup-scripts/master/hypervault.sh
echo "Logging you out. Please login again to run hypervault.sh"
exit