Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Ubuntu 16.04.1 Parallels Tools Install Log

2016-09-10T12:09:57-0500:

Parallels Tools 9.0.24251.1052177 Installer started.
2016-09-10T12:09:59-0500: execCmd: ./installer/pm.sh check_guest_tools 2>&1 [0]

Sat Sep 10 12:09:59 CDT 2016
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Perform installation into the /usr/lib/parallels-tools directory
cat: /usr/lib/parallels-tools/kmods/../version: No such file or directory
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.4.0-36-generic/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.4.0-36-generic'
  LD      /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/built-in.o
  CC [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c: In function ‘pvmnet_pci_init’:
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c:97:19: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
       pvmnet_setup);
                   ^
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c:96:8: error: ‘alloc_netdev’ undeclared (first use in this function)
  dev = alloc_netdev(sizeof(struct pvmnet_priv), "eth%d",
        ^
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c:96:8: note: each undeclared identifier is reported only once for each function it appears in
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c: At top level:
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.c:400:13: warning: ‘pvmnet_setup’ defined but not used [-Wunused-function]
 static void pvmnet_setup(struct net_device *dev)
             ^
scripts/Makefile.build:258: recipe for target '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o' failed
make[3]: *** [/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o] Error 1
Makefile:1403: recipe for target '_module_/usr/lib/parallels-tools/kmods/prl_eth/pvmnet' failed
make[2]: *** [_module_/usr/lib/parallels-tools/kmods/prl_eth/pvmnet] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-36-generic'
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/Makefile.v26:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
Makefile.kmods:23: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
2016-09-10T12:10:00-0500: execCmd: ./install --install [143]
2016-09-10T12:10:00-0500: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
2016-09-10T12:10:01-0500: Exiting with code 1

How to install VulnReport on Ubuntu

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 &

How To Install Docker Ubuntu 14.04

Steps to Install docker ubuntu 14.04 ;

#!/bin/sh

#install docker ubuntu 14.04 LTS
#run as root fagget
apt-get update
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-get install docker-engine

How to install PhantomJS on Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
Install these packages needed by PhantomJS to work correctly.

sudo apt-get install libfreetype6 libfreetype6-dev
sudo apt-get install libfontconfig1 libfontconfig1-dev
Get it from the PhantomJS website.

cd ~
export PHANTOM_JS="phantomjs-1.9.8-linux-x86_64"
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
Once downloaded, move Phantomjs folder to /usr/local/share/ and create a symlink:

sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
Now, It should have PhantomJS properly on your system.

phantomjs --version

How to install VulnReport on Ubuntu

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 &

How to run on ubuntu VM

How to run on ubuntu VM


#Install RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
rvm install 2.0.0-p456

#Install deps
gem install bundle
sudo apt-get install curl vim libcurl3 npm libcurl3-gnutls libcurl4-openssl-dev
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
bundle install
npm install
sudo npm install -g grunt

#Font end assets stuff
grunt

#Start
rackup config.ru -p4567