Installation Help - Snorby/snorby GitHub Wiki

PDFkit & wkhtmltopdf

gem install pdfkit
pdfkit --install-wkhtmltopdf

Edit snorby/config/application.rb line #23 and add the following line

 /usr/local/bin/wkhtmltopdf

ImageMagick & rmagick

Snort

Barnyard

Installing on CentOS 5.5

Here are my notes from a fresh CentOS 5.5 Install:

Install CentOS 5.5 yum update yum install ncurses-devel readline-devel gcc-c++ httpd-devel mysql-server openssl-devel mysql-devel curl-devel zlib-devel gcc libxml2-devel libxslt-devel

Be sure to install all needed deps

Change the mysqld root password

    /usr/bin/mysqladmin -u root password 'new-password'

Not tested yet but you may need to install yaml

    wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    tar xzvf yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    ./configure --prefix=/usr/local
    make
    make install

Download ruby from http://www.ruby-lang.org/en/downloads/

Untar and cd into the ruby source dir

Compile ruby with

    ./configure
    make
    make install

    cd ext/openssl
    ruby extconf.rb
    make
    make install

    gem install rails

Download and compile git from: http://git-scm.com/

Untar and cd into the git dir

    ./configure
    make
    make install

Download ImageMagick from source: wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz Untar tarball, cd to ImageMagick dir

    ./configure
    make
    make install

execute

    gem install rmagick
    gem install passenger

execute: /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/bin/passenger-install-apache2-module

(above version # may change)

Edit Apache conf: DocumentRoot "/var/www/html/snorby/public/" RailsBaseURI /var/www/html

cd to your apache document root directory git clone http://github.com/Snorby/snorby.git or git://github.com/Snorby/snorby.git

cd snorby (dir that was created in the doc root) edit config/database.yml for db user account

back in document root snorby dir:

        bundle install
        rake snorby:setup

disable selinux: echo 0 >/selinux/enforce (Be sure to re-enable after everything is working)

Start Apache service httpd start Allow access though iptables: -A RH-Firewall-1-INPUT -s x.x.x.x -m tcp -p tcp --dport 443 -j ACCEPT (or port 80)

If any errors reference to ezprint: from /var/www/html/snorby (or whatever your doc root is) bundle pack bundle install --path vender/cache

If any readline problems:

            cd /ruby-source-dir/ext/readline
            ruby extconf.rb
            make install

Add to rc.local:

            cd /var/www/snorby && /usr/local/bin/ruby script/delayed_job start
            cd /var/www/snorby && /usr/local/bin/rails runner 'Snorby::Jobs::SensorCacheJob.new(false).perform; Snorby::Jobs::DailyCacheJob.new(false).perform'

I had a problem with the Ruby version with CentOS so I had to download the source and install various packages. After installing though I found that it is important to immediately update I believe it was GEMs then you could continue otherwise nothing seemed to work.

⚠️ **GitHub.com Fallback** ⚠️