forked from nebeleh/linux-setup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·37 lines (31 loc) · 1005 Bytes
/
setup.sh
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
#!/bin/bash
# Simple setup.sh for configuring Ubuntu
# for headless setup.
# saving setup folder
curr_dir=`pwd`
dir=`dirname $0`
FILE_PATH=`cd $dir;pwd`
# Install nvm: node-version manager
# https://github.com/creationix/nvm
sudo apt-get install -y git-core build-essential libssl-dev keychain byobu
wget https://raw.github.com/creationix/nvm/master/install.sh
bash install.sh
# Load nvm and install latest production node
source $HOME/.nvm/nvm.sh
nvm install v6.1.0
nvm use v6.1.0
# Install rlwrap to provide libreadline features with node
# See: http://nodejs.org/api/repl.html#repl_repl
sudo apt-get install -y rlwrap
# git pull and install dotfiles as well
cd $HOME
# cp -b $FILE_PATH/dotfiles/.dir_colors .
# cp -b $FILE_PATH/dotfiles/.screenrc .
cp -b $FILE_PATH/dotfiles/.bash_profile .
cp -b $FILE_PATH/dotfiles/.bashrc .
cp -b $FILE_PATH/dotfiles/.bashrc_custom .
# setup vim
sudo apt-get install -y vim
mkdir -p .vim/colors
cp $FILE_PATH/vim/*.vim .vim/colors
cp $FILE_PATH/vim/.vimrc .