On Fresh install of Ubuntu
1. Install required packages
$ sudo apt-get upgrade
$ sudo apt-get install git ruby postgresql postgresql-server-dev-all build-essential tcl postgresql-contrib authbind
2. Clone the repo
$ git clone https://github.com/salesforce/vulnreport.git
3. Install rvm
$ \curl -sSL https://get.rvm.io | bash
$ source /home/[follow instructions from RVM]/.rvm/scripts/rvm
4. Install ruby 2.1.2
rvm install ruby-2.1.2
5.Reboot
shutdown -r now
6. Log into server and go to the report dir(expected this is done in the home directory of the user)
cd vulnreport/
7.Install required gems
gem install bundle
gem install rollbar
8. Install redis required
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
make test
sudo make install
cd utils
sudo ./install_server.sh
service redis_[PORT] restart
9. Go back to the repo folder and install required gems via bundle
cd ~/vulnreport/
bundle
10. Configured Postgres - settings below use default postgres DB please use something else
sudo -u postgres psql template1
ALTER USER postgres with password 'PASSWORD';
ctrl+d
11. Edit the .env file
cp .env.example .env
vi .env
11.a. Set the following making changes as required
export RACK_ENV=production
export VR_SESSION_SECRET= 123abc
export DATABASE_URL= postgres://postgres:PASSWORD@localhost:5432/template1
export REDIS_URL= redis://locathost:[PORT]
export ROLLBAR_ACCESS_TOKEN= [GET TOKEN FROM ROLLBAR SITE https://rollbar.com NEED TO CONNECT TO GITHUB ACCOUNT]
12. Run the seed file - once successful(output says ALL DONE! :) ) delete it
./SEED.rb
rm -f SEED.rb
13. Generate required SSL cert
openssl genrsa -rand /boot/pxeboot -out server.key 2048
openssl req -new -sha256 -key self.key -out server.csr
openssl x509 -req -days 999 -in self.csr -signkey self.key -out self.crt
14. Edit port binding for the reporting server - Any port you want
vim start.sh
authbind thin start -p [PORT] --threaded --ssl --ssl-cert-file self.crt --ssl-key-file self.key
15. Start the service then browse to https://serverip(localhost):port
nohup ./start.sh &
1. Install required packages
$ sudo apt-get upgrade
$ sudo apt-get install git ruby postgresql postgresql-server-dev-all build-essential tcl postgresql-contrib authbind
2. Clone the repo
$ git clone https://github.com/salesforce/vulnreport.git
3. Install rvm
$ \curl -sSL https://get.rvm.io | bash
$ source /home/[follow instructions from RVM]/.rvm/scripts/rvm
4. Install ruby 2.1.2
rvm install ruby-2.1.2
5.Reboot
shutdown -r now
6. Log into server and go to the report dir(expected this is done in the home directory of the user)
cd vulnreport/
7.Install required gems
gem install bundle
gem install rollbar
8. Install redis required
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
make test
sudo make install
cd utils
sudo ./install_server.sh
service redis_[PORT] restart
9. Go back to the repo folder and install required gems via bundle
cd ~/vulnreport/
bundle
10. Configured Postgres - settings below use default postgres DB please use something else
sudo -u postgres psql template1
ALTER USER postgres with password 'PASSWORD';
ctrl+d
11. Edit the .env file
cp .env.example .env
vi .env
11.a. Set the following making changes as required
export RACK_ENV=production
export VR_SESSION_SECRET= 123abc
export DATABASE_URL= postgres://postgres:PASSWORD@localhost:5432/template1
export REDIS_URL= redis://locathost:[PORT]
export ROLLBAR_ACCESS_TOKEN= [GET TOKEN FROM ROLLBAR SITE https://rollbar.com NEED TO CONNECT TO GITHUB ACCOUNT]
12. Run the seed file - once successful(output says ALL DONE! :) ) delete it
./SEED.rb
rm -f SEED.rb
13. Generate required SSL cert
openssl genrsa -rand /boot/pxeboot -out server.key 2048
openssl req -new -sha256 -key self.key -out server.csr
openssl x509 -req -days 999 -in self.csr -signkey self.key -out self.crt
14. Edit port binding for the reporting server - Any port you want
vim start.sh
authbind thin start -p [PORT] --threaded --ssl --ssl-cert-file self.crt --ssl-key-file self.key
15. Start the service then browse to https://serverip(localhost):port
nohup ./start.sh &