-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·36 lines (28 loc) · 1.01 KB
/
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
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
echo 'export LANGUAGE="en_US.UTF-8"' >> /etc/profile.d/lang.sh
echo 'export LANG="en_US.UTF-8"' >> /etc/profile.d/lang.sh
echo 'export LC_ALL="en_US.UTF-8"' >> /etc/profile.d/lang.sh
echo 'export GEM_HOME=/home/vagrant/.gem/ruby/1.9.1' >> /etc/profile.d/gems.sh
echo 'PATH=/home/vagrant/.gem/ruby/1.9.1/bin:$PATH' >> /etc/profile.d/path.sh
echo 'gem: --no-ri --no-rdoc' >> /root/.gemrc
echo 'gem: --no-ri --no-rdoc' >> /home/vagrant/.gemrc
source /etc/profile.d/lang.sh
source /etc/profile.d/gems.sh
source /etc/profile.d/path.sh
apt-get update
apt-get install -y \
build-essential \
git \
htop \
libxml2-dev libxslt-dev \
mysql-server mysql-client libmysqlclient-dev \
nodejs \
postgresql libpq-dev \
ruby1.9.1-full \
sqlite3 libsqlite3-dev
sudo -u postgres createuser --superuser radiant
sudo -u postgres psql -c "alter role radiant with password 'radiant';"
sudo -u postgres createdb radiant
gem install bundler mysql pg sqlite3
chown -R vagrant /home/vagrant/.gem