OBTVSE2 is a clean and simple markdown blogging platform on Rails. Installing OBTVS2 on Ubuntu is quite easier if you have basic Linux Admin skills.
I followed the below steps to setup OBTVSE2 on Ubuntu Server
1. We need to create a Normal SSH user with sudo priviliges called obtv using the below commands and login to that user shell
#useradd -m obtv -s /bin/bash -g sudo
--Assign a password to this user
#passwd obtv
Login as obtv user now and you should be under /home/obtv directory
2. OBTVSE2 requires Ruby, So We need to setup the Ruby environment , Follow the steps below
#curl -L https://get.rvm.io | bash -s stable --rails
#source ~/.rvm/scripts/rvm
#rvm install ruby-2.0.0-p481
#rails new Sites
This will setup the ruby project under /home/obtv/Sites/
3. Now we will download the obtvse2 inside “Sites” folder
#cd Sites/
#git clone git://github.com/natew/obtvse2.git
#cd obtvse2
#gem install debugger
#bundle install
#rake db:migrate
4. obtvse2 requires a runtime server, For this we will install a node.js server
#apt-get install libpq-dev nodejs
5. Now we will start the OBTVSE2 application on some port say 3000. We will start this server inside a screen so it will be running even if you logout
From root user login, create a screen
#screen -S obtvse2-blog
Now under the screen start the application on port 3000 with user obtv
Edit /home/obtv/Sites/obtvse2/config/info.yml to fill in your personal and site information.
#su - obtv
#cd Sites/obtvse2
#bundle exec rails s
This will start your obtvse2 application on port 3000
After executing above commands, Press ctrl+D to leave the screen active and exit.
6. Now we have to Configure Apache so that your site blog.domain.com connects to the back-end OBTVSE2 application.
Create a virtual host and configuration should look like below
ServerName blog.domain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
<Directory /var/www/html>
Options -Indexes
DirectoryIndex index.html index.php
AllowOverride All
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
7. After this just enable this Apache virtual host, reload your apache server and access the obtvse2 application at http://blog.domain.com
If you have any difficulty with the setup, Feel free to ask.