aquaballoon

Snorby - Snort

Sep 15th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.50 KB | None | 0 0
  1. http://everydayiszeroday.blogspot.com/2013/01/installing-snorby-on-ubuntu-1204.html
  2.  
  3. # sudo su -
  4. # apt-get update
  5. # apt-get upgrade
  6. # apt-get install mysql-server
  7. # apt-get install apache2
  8. # apt-get install libyaml-dev git-core default-jre imagemagick libmagickwand-dev wkhtmltopdf gcc g++ build-essential libssl-dev libreadline-gplv2-dev zlib1g-dev linux-headers-generic libsqlite3-dev libxslt1-dev libxml2-dev libmysqlclient-dev libmysql++-dev apache2-prefork-dev libcurl4-openssl-dev -y
  9.  
  10. Install Ruby & Friends
  11. # apt-get install ruby1.9.3 ruby-text-format
  12. # gem install bundler
  13. # gem install rails
  14. # gem install rake --version=0.9.2
  15.  
  16. Install Snorby
  17. # cd /var/www/
  18. # git clone http://github.com/Snorby/snorby.git
  19.  
  20. # cd /var/www/snorby/config/
  21. # cp database.yml.example database.yml
  22. # cp snorby_config.yml.example snorby_config.yml
  23. # sed -i s/"\/usr\/local\/bin\/wkhtmltopdf"/"\/usr\/bin\/wkhtmltopdf"/g /var/www/snorby/config/snorby_config.yml
  24.  
  25. Configure snorby database username and password
  26.  
  27. # nano database.yml
  28.  
  29.  
  30. Edit the settings to match your MySQL installation
  31.  
  32. # cd /var/www/snorby/
  33. # bundle install --deployment
  34. # rake snorby:setup
  35.  
  36. Setup Apache
  37. # gem install passenger
  38. # passenger-install-apache2-module
  39.  
  40. The lines should look something like this at the end of the file
  41.  
  42. # Include of directories ignores editors' and dpkg's backup files,
  43. # see README.Debian for details.
  44.    LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
  45.    PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.18
  46.    PassengerRuby /usr/bin/ruby1.9.1
  47.  
  48. # Include generic snippets of statements
  49. Include conf.d/
  50.  
  51. # Include the virtual host configurations:
  52. Include sites-enabled/
  53.  
  54.  
  55. Now add the website as follows:
  56.  
  57. # nano /etc/apache2/sites-available/snorby
  58.  
  59. Add the following lines (change the ServerAdmin and Servername to something of your choice)
  60.  
  61. <VirtualHost *:80>
  62.         ServerAdmin admin@localhost
  63.         ServerName snorby.localhost
  64.         DocumentRoot /var/www/snorby/public
  65.  
  66.         <Directory "/var/www/snorby/public">
  67.                 AllowOverride all
  68.                 Order deny,allow
  69.                 Allow from all
  70.                 Options -MultiViews
  71.         </Directory>
  72. </VirtualHost>
  73.  
  74. Enable the new website and disable the default site
  75.  
  76. # a2dissite default
  77. # a2ensite snorby
  78. # service apache2 reload
  79.  
  80. Browse to the new website and login with the following default credentials:
  81.  
  82. Username: snorby@snorby.org
  83. Password: snorby
Advertisement
Add Comment
Please, Sign In to add comment