Skip to content

Instantly share code, notes, and snippets.

@saintvictoria
Created April 21, 2015 13:59
Show Gist options
  • Save saintvictoria/f2fe96ac3fce6e7d3b4c to your computer and use it in GitHub Desktop.
Save saintvictoria/f2fe96ac3fce6e7d3b4c to your computer and use it in GitHub Desktop.
MacVim bootstrap to intall LightWAVE locally
#! /bin/bash
set -e
sudo yum install -y httpd.x86_64
sudo service httpd start
sudo yum install -y libcurl-devel.x86_64
curl -OL http://prdownloads.sourceforge.net/libcgi/libcgi-1.0.tar.gz
tar xf libcgi*
cd libcgi-1.0
./configure
make CFLAGS='-fPIC'
#67 sudo yum install -y unzip
# 68 unzip -l Erik-LightWave.zip
# 69 unzip Erik-LightWave.zip lightwave-0.63.tar.gz
# 70 tar tvf lightwave-0.63.tar.gz
# 71 tar xvf lightwave-0.63.tar.gz/(/vagrant/lightwave)
# 72 ls
# 73 cd lightwave
# 74 ls
# 75 make lightwave 2>&1 | tee build.log
# 76 make DocumentRoot=$HOME/html CFLAGS+='-I/usr/local/include' lightwave 2>&1 | tee build.log
# 77 ls /usr/local/include
# 78 vi server/lightwave.c +43
#change <libcgi/ to <
# 79 make DocumentRoot=$HOME/html CFLAGS+='-I/usr/local/include' lightwave 2>&1 | tee build.log
# 80 make DocumentRoot=$HOME/html lightwave 2>&1 | tee build.log
# 81 ls
# 82 make DocumentRoot=$HOME/html patchann 2>&1 | tee build.log2
# 83 vi Make
# 84 vi Makefile
# 85 make DocumentRoot=$HOME/html patchann 2>&1 | tee build.log2
# 86 ls server
# 87 vi server/lw-apache.conf
#change userphysionet to vagrant
#also at the bottom, changed errorlog and accesslog to httpd
# 88 ls /etc/httpd/
# 89 ls /etc/httpd/conf.d
# 90 vi /etc/httpd/conf.d/welcome.conf
# 91 sudo mv /etc/httpd/conf.d/welcome.conf /etc/httpd/
# 92 sudo cp server/lw-apache.conf /etc/httpd/conf.d
# 93 cd ..
# 94 mkdir html cgi-bin
# 95 mv lightwave/lightwave cgi-bin/
# 96 cp lightwave/server/lw-scribe cgi-bin/
# 97 ls lightwave/client
# 98 cp -pr lightwave/client html/lightwave
# 99 ls html/lightwave
# 100 vi html/lightwave/lightwave.html
# 101 sudo service httpd restart
# 102 sudo -i
# 103 ls -al
# 104 chmod 0711 .
#sudo service iptables stop
# 105 curl -v http://192.168.56.101/lightwave/lightwave.html
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'centos-6-4'
# courtesy of http://www.vagrantbox.es/
config.vm.box_url = 'http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20131103.box'
config.vm.network "private_network", ip: "192.168.56.101"
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '1024']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment