-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
101 lines (89 loc) · 2.78 KB
/
Makefile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
ALL=bash vim
STARDUST=~/stardust
UNAME := $(shell uname) # detech os, not windows compliant
HOSTNAME := $(shell hostname)
.PHONY: help vbox $(ALL)
#ifeq ($(wildcard file1),)
# CLEAN_SRC =
#else
# CLEAN_SRC = *.h file3
#endif
help:
cat $(STARDUST)/README.rst
all: $(ALL)
vbox: ubuntu vim bash
rm ~/supernova
bash:
if [ "$(shell uname)" = "Linux" ]; then\
rsync --ignore-existing ~/.bashrc ~/.bashrc.bk;\
rm ~/.bashrc;\
ln -s $(STARDUST)/.bashrc ~/.bashrc;\
elif [ "$(shell uname)" = "Darwin" ]; then\
ln -s $(STARDUST)/.bashrc ~/.bash_profile;\
fi
zsh:
rm ~/.zshrc
ln -s $(STARDUST)/.zshrc ~/.zshrc
emacs:
ln -s $(STARDUST)/.emacs ~/.emacs
vim:
ln -s $(STARDUST)/.vimrc ~/.vimrc
mkdir -p ~/.vim
cp -R $(STARDUST)/vim/* ~/.vim/
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim +BundleInstall +qall
#cd ~/.vim/bundle/command-t/; rake make
ssh:
mkdir ~/.ssh
touch ~/.ssh/authorized_keys
touch ~/.ssh/config
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
cd ~/.ssh; ssh-keygen -t rsa -C "$(HOSTNAME)"
ubuntu:
mkdir -p ~/bin ~/envs ~/projects ~/www
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get install -y ntp
sudo apt-get install -y vim
#sudo apt-get install -y emacs
#sudo apt-get install -y ssh
sudo apt-get install -y ruby1.9.3
sudo apt-get install -y rake
sudo apt-get install -y htop
sudo apt-get install -y build-essential
sudo apt-get install -y git
sudo apt-get install -y bash-completion
sudo apt-get install -y nginx
#sudo apt-get install -y mysql-server
#sudo apt-get install -y apache2
#sudo apt-get install -y libapache2-mod-php5
#sudo apt-get install -y libapache2-mod-wsgi
#sudo apt-get install -y php5-mysql
sudo apt-get install -y python-dev
sudo apt-get install -y python-setuptools
sudo apt-get install -y python-imaging
#sudo apt-get install -y python-mysqldb
sudo apt-get install -y libpq-dev
sudo apt-get install -y postgresql
#sudo apt-get install -y python-psycopg2
sudo apt-get install -y sqlite3
#sudo apt-get install -y mongodb
#sudo apt-get install -y mongodb-org
#sudo apt-get install -y git-core
sudo apt-get install -y mercurial
sudo apt-get install -y subversion
sudo apt-get install -y memcached
#sudo apt-get install -y apt-xapian-index
#sudo apt-get install -y xapian-omega
#sudo apt-get install -y python-xapian
#sudo apt-get install -y openjdk-6-jdk
sudo apt-get install -y nodejs
sudo apt-get install -y golang
#sudo apt-get install -y postfix
sudo easy_install virtualenv
cd ~/; npm install less