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 &
Learn More :
How To
- HOW TO SET UP A SERVER W/RCON
- HOW TO SETUP LRAB AND UNREAL
- How to set up sdless a9lh
- How to set up group calendar, including link to download addon:
- How to install PhantomJS on Ubuntu
- HOW TO INSTALL LIBPD ON RASPBIAN
- How to install Audio Recorder in Ubuntu 16.04, 15.10
- HOW TO INSTALL GAMES ON THE VITA
- How to: install LibArtifactData-1.0
- HOW TO PLAY POKEMON GO ON PC WITHOUT GETTING BANNED v1.1
- How to install GRUB Customizer for Ubuntu Backtrack Linux
- How to install Slowloris on Linux
- How To install mongodb and php driver in ubuntu 12.10 ?
- Installing Tata Docomo 3G Dongle under Ubuntu 10.10
- Installing Kubuntu (Ubuntu) 12.10 in VMWare Player 5