Skip to content

Instantly share code, notes, and snippets.

@mountcedar
Created September 11, 2014 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mountcedar/1c8350d93c413c6d2486 to your computer and use it in GitHub Desktop.
Save mountcedar/1c8350d93c413c6d2486 to your computer and use it in GitHub Desktop.
Sakura VPSのubuntu12.04上にgollumを入れる ref: http://qiita.com/mountcedar/items/a59ef90a0bf3e98672bd
module Precious
class App < Sinatra::Base
use Rack::Auth::Basic, "This is private wiki" do |username, password|
[username, password] == ['yukke', 'passwd']
end
end
end
$ sudo apt-get -yV install ruby1.9.3 rubygems
$ sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.3 500
$ sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.3 500
$ sudo gem install rubygems-update
$ sudo gem update
$ sudo apt-get install libxslt-dev libxml2-dev
$ sudo apt-get install -yV lib32z1-dev
$ sudo apt-get install libicu-dev
$ sudo gem install nokogiri
$ sudo gem install gollum
$ mkdir notes
$ cd notes
$ git init
$ gollum —mathjax
$ cd notes
$ gollum —mathjax
$ cd notes
$ gollum —mathjax —config auth.rb
$ cd notes
$ gollum —mathjax —config auth.rb —allow-uploads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment