{"id":4613,"date":"2019-05-11T18:26:03","date_gmt":"2019-05-11T16:26:03","guid":{"rendered":"https:\/\/nil.uniza.sk\/?p=4613"},"modified":"2019-06-07T12:51:56","modified_gmt":"2019-06-07T10:51:56","slug":"installation-of-scirius-ce","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/installation-of-scirius-ce\/","title":{"rendered":"Installation of Scirius CE"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Installation of Scirius CE<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Author<\/strong>: Miroslav Koh\u00fatik<\/li><li><strong>Operating system<\/strong> : Ubuntu 16.04<\/li><\/ul>\n\n\n\n<p>Scirius Community Edition is a web interface dedicated to Suricata ruleset management. It handles the rules file and updates of the associated files. <\/p>\n\n\n\n<p>This guide will walk you through the installation of Scirius Community Edition on Ubuntu 16.04 operating system. <br> Before proceeding with installation of Scirius CE, you need to have IDS Suricata installed. Installation guide for Suricata can be found <a href=\"https:\/\/nil.uniza.sk\/en\/installation-of-suricata\/\">here<\/a>. <\/p>\n\n\n\n<p>Install python package and header file manager <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install python-pip python-dev<\/code><\/pre>\n\n\n\n<p>Download Scirius repository from GitHub<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/StamusNetworks\/scirius.git<\/code><\/pre>\n\n\n\n<p>Go to the directory you have just downloaded and install the necessary dependencies from inside there<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd scirius\nsudo pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<p>Download pyinotify module to monitor changes in the file system. This module is needed to restart Suricata from Scirius.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pip install pyinotify<\/code><\/pre>\n\n\n\n<p>Download the Gitdb module to enable reading and writing to git repositories<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pip install gitdb<\/code><\/pre>\n\n\n\n<p>Install npm<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install npm<\/code><\/pre>\n\n\n\n<p>Download webpack version 3.11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo npm install -g npm@latest webpack@3.11<\/code><\/pre>\n\n\n\n<p>Install Scirius<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install<\/code><\/pre>\n\n\n\n<p>The previous command has created a directory for the Scirius Hunt component. Go to the Hunt directory, install Hunt and prepare it for use <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd hunt\nnpm install\nnpm run build<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Running Scirius<\/h3>\n\n\n\n<p>Initiate the Django database from inside the scirius directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python manage.py migrate<\/code><\/pre>\n\n\n\n<p>Create a superuser account<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python manage.py createsuperuser<\/code><\/pre>\n\n\n\n<p>Before starting the application, you need to construct the bundles by running webpack (this step has to be repeated after each code update)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo webpack<\/code><\/pre>\n\n\n\n<p>Use this command to start Scirius accessible on local device only on address localhost:8000<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo python manage.py runserver<\/code><\/pre>\n\n\n\n<p> If you want scirius to listen to an address reachable form an outside network, you need to add the address to ALLOWED_HOSTS list in settings.py. Afterwards, you can run Scirius with the followng command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python manage.py runserver x.x.x.x:8000<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Source:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/scirius.readthedocs.io\/en\/latest\/installation-ce.html\">Installation and setup<\/a> &#8211; Scirius documentation<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Installation of Scirius CE Author: Miroslav Koh\u00fatik Operating system : Ubuntu 16.04 Scirius Community Edition is a web interface dedicated to Suricata ruleset management. It handles the rules file and updates of the associated files. This guide will walk you through the installation of Scirius Community Edition on Ubuntu 16.04 operating system. Before proceeding with&#8230;<\/p>","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[715],"tags":[1043,914],"class_list":["post-4613","post","type-post","status-publish","format-standard","hentry","category-network-security-tools","tag-scirius","tag-suricata"],"taxonomy_info":{"category":[{"value":715,"label":"Tools"}],"post_tag":[{"value":1043,"label":"scirius"},{"value":914,"label":"suricata"}]},"featured_image_src_large":false,"author_info":{"display_name":"Miroslav Koh\u00fatik","author_link":"https:\/\/nil.uniza.sk\/en\/author\/miroslav-kohutik\/"},"comment_info":7,"category_info":[{"term_id":715,"name":"Tools","slug":"network-security-tools","term_group":0,"term_taxonomy_id":713,"taxonomy":"category","description":"","parent":707,"count":8,"filter":"raw","cat_ID":715,"category_count":8,"category_description":"","cat_name":"Tools","category_nicename":"network-security-tools","category_parent":707}],"tag_info":[{"term_id":1043,"name":"scirius","slug":"scirius","term_group":0,"term_taxonomy_id":1041,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"},{"term_id":914,"name":"suricata","slug":"suricata","term_group":0,"term_taxonomy_id":912,"taxonomy":"post_tag","description":"","parent":0,"count":6,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/4613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=4613"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/4613\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=4613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=4613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=4613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}