-
Notifications
You must be signed in to change notification settings - Fork 19
YETI Quickstart
YETI Quickstart is a non-production deployment. This deployment method is the fastest way to get YETI running on a system.
The following are required for YETI Quickstart to succeed:
- Python 2.6 or 2.7 (http://www.python.org/download/)
- Django 1.4 or higher (https://www.djangoproject.com/download/)
- PyOpenSSL 0.13 or higher (only required if Certificates are used) (https://pypi.python.org/pypi/pyOpenSSL)
- libtaxii 1.0.105 or higher (https://github.com/TAXIIProject/libtaxii/releases)
- lxml (http://lxml.de/index.html#download)
- libxml2 2.9.0 or higher (http://www.xmlsoft.org/downloads.html)
- python-dateutil 1.5 or later (http://labix.org/python-dateutil#head-2f49784d6b27bae60cde1cff6a535663cf87497b)
To install these dependencies, we recommend using the pip utility (http://pypi.python.org/pypi/pip), which will download and install these libraries along with any of their dependencies:
$ pip install django libtaxii pyOpenSSL
- Download and extract the latest release of YETI: https://github.com/TAXIIProject/yeti/releases
- In a command shell, navigate to the YETI base directory (containing manage.py and the scripts directory) and start the server (Note: The script must be run from the base directory or it won't work)
- Windows:
scripts\quickstart.bat
- Unix:
./scripts/quickstart.sh
- Windows:
If the quickstart script works, you should see output like this:
yeti>python manage.py syncdb
Creating tables ...
(Table creation output omitted for brevity)
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'example'):
Email address: [email protected]
Password: NotARealPassword
Password (again): NotARealPassword
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 9 object(s) from 1 fixture(s)
yeti>python manage.py runserver 80
Validating models...
0 errors found
July 24, 2013 - 07:45:32
Django version 1.5.1, using settings 'yeti.settings'
Development server is running at http://127.0.0.1:80/
Quit the server with CTRL-BREAK.
At this point the server is running. To verify that the server is running you should be able to open a browser and navigate to http://localhost
to view a welcome page or http://localhost/admin/
to log into the administrator interface with the user you created during the quickstart script. There are two important notes to how this script works:
- The script tells the server to listen on
127.0.0.1:80
, which will not accept connections from remote machines. If you need to accept connections from remote machines, modify the quickstart script and replace80
with0.0.0.0:80
. - If for any reason you ever want to delete the database (you forgot what user you created, forgot the password, etc), just delete the
yeti\sqlite3.db
file and re-run the quickstart script.
The quickstart deployment comes with two scripts to push and pull content from YETI.
- To push STIX Content to YETI, use the inbox_client.py script. Run it by issuing this command:
python scripts\inbox_client.py
. The inbox_client script includes a default STIX document. - To pull content from YETI, use the poll_client.py script. Run it by issuing this command:
python scripts\poll_client.py
.
In order to see the content that is in the database, navigate to http://localhost/admin/taxii_services/contentblock/
.