forked from melpa/melpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·35 lines (28 loc) · 874 Bytes
/
bootstrap
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
#!/bin/bash
# \curl -L https://raw.github.com/milkypostman/melpa/master/scripts/bootstrap | bash
SUDOENV='DEBIAN_FRONTEND=noninteractive'
cd ${HOME}
#sudo ${SUDOENV} add-apt-repository -y ppa:cassou/emacs
sudo ${SUDOENV} apt-get -y update
sudo ${SUDOENV} apt-get -y upgrade
sudo ${SUDOENV} apt-get -y \
install \
subversion git cvs darcs fossil curl bzr mercurial \
emacs24 emacs24-el emacs24-common-non-dfsg \
tmux make runit nginx
# build the log stuff
mkdir -p ~/log
mkdir -p ~/var/run
mkdir -p ~/var/lib/logrotate
mkdir -p ~/www
mkdir -p ~/etc
# ruby is used for templating
\curl -L https://get.rvm.io | bash -s stable
PATH=$PATH:$HOME/.rvm/bin
source "$HOME/.rvm/scripts/rvm"
rvm requirements
rvm install ruby-1.9.3
rvm use ruby-1.9.3 --default
echo "source ~/.profile" >> .bash_profile
git clone http://github.com/milkypostman/melpa
sudo reboot