This repository was archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·68 lines (45 loc) · 1.46 KB
/
start.sh
File metadata and controls
executable file
·68 lines (45 loc) · 1.46 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
63
64
65
66
67
68
#!/bin/bash
## RVM install for better ruby support https://rvm.io/rvm/install/
# install curl
sudo apt-get install curl
#download rvm
curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
#add rvm to known scripts
source /home/vagrant/.rvm/scripts/rvm
#install ruby
rvm install ruby-1.9.3
#switch to it and make default
rvm --default use 1.9.3
#install build essentials for make
sudo apt-get install build-essential
## Install Java used for google closure
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
## it will ask about license
#Jekyll
gem install jekyll
sudo apt-get install python-pygments
gem install jekyll-asset-pipeline
gem install closure-compiler
gem install yui-compressor
gem install redcarpet
gem install albino
gem install uglifier
gem install execjs
gem install sanitize
#install weasyprint for PDF generation (http://weasyprint.org/)
sudo apt-get install python-dev python-pip python-lxml libgtk2.0-0 libffi-dev --fix-missing
sudo apt-get install python-virtualenv
sudo pip install --upgrade setuptools
cd /tmp
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
sudo pip install WeasyPrint
#test
weasyprint http://www.w3.org/TR/CSS21/intro.html CSS21-intro.pdf -s http://weasyprint.org/samples/CSS21-print.css
#apache2
sudo apt-get update
sudo apt-get install apache2
#Configure webroot if needed