<commit_before>=========================
Installing the Linux host
=========================

Install dependencies on host::

    $ sudo apt-get install uml-utilities bridge-utils

Preconfigure network tap interfaces on host, required to avoid have to start
as root::

    Get list of virtual machines to configure interface per vm from conf/qemu.conf

    Example:
        machines = debian_x32, debian_x64, debian_arm, debian_mips, debian_mipsel

You should preconfigure network interface for all of them, they all should
have ``tap`` prefix::

    $ sudo tunctl -b -u cuckoo -t tap_debian_x32
    $ sudo ip link set tap_debian_x32 master br0
    $ sudo ip link set dev tap_debian_x32 up
    $ sudo ip link set dev br0 up

    $ sudo tunctl -b -u cuckoo -t tap_debian_x64
    $ sudo ip link set tap_debian_x64 master br0
    $ sudo ip link set dev tap_debian_x64 up
    $ sudo ip link set dev br0 up

The following instructions are only for x32/x64 ubuntu 17.04 linux guests
=========================================================================

** Note if you run cuckoo with with no cuckoo user, replace cuckoo after -u to
your user **

Add agent to autorun, the easier way is to add it to crontab::

    $ sudo crontab -e
    @reboot python path_to_agent.py

Install dependencies inside of the virtual machine::

    $ sudo apt-get install systemtap gcc patch linux-headers-$(uname -r)

Install kernel debugging symbols::

    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C<KEY>

    $ codename=$(lsb_release -cs)
    $ sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
      deb http://ddebs.ubuntu.com/ ${codename}          main restricted universe multiverse
      #deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse<commit_msg>Update doc to avoid confusion with debian/ubuntu<commit_after>=========================
Installing the Linux host
=========================

Install dependencies on host::

    $ sudo apt-get install uml-utilities bridge-utils

Preconfigure network tap interfaces on host, required to avoid have to start
as root::

    Get list of virtual machines to configure interface per vm from conf/qemu.conf

    Example:
        machines = ubuntu_x32, ubuntu_x64, ubuntu_arm, ubuntu_mips, ubuntu_mipsel

You should preconfigure network interface for all of them, they all should
have ``tap`` prefix::

    $ sudo tunctl -b -u cuckoo -t tap_ubuntu_x32
    $ sudo ip link set tap_ubuntu_x32 master br0
    $ sudo ip link set dev tap_ubuntu_x32 up
    $ sudo ip link set dev br0 up

    $ sudo tunctl -b -u cuckoo -t tap_ubuntu_x64
    $ sudo ip link set tap_ubuntu_x64 master br0
    $ sudo ip link set dev tap_ubuntu_x64 up
    $ sudo ip link set dev br0 up

The following instructions are only for x32/x64 ubuntu 17.04 linux guests
=========================================================================

** Note if you run cuckoo with with no cuckoo user, replace cuckoo after -u to
your user **

Add agent to autorun, the easier way is to add it to crontab::

    $ sudo crontab -e
    @reboot python path_to_agent.py

Install dependencies inside of the virtual machine::

    $ sudo apt-get install systemtap gcc patch linux-headers-$(uname -r)

Install kernel debugging symbols::

    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C<KEY>

    $ codename=$(lsb_release -cs)
    $ sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
      deb http://ddebs.ubuntu.com/ ${codename}          main restricted universe multiverse
      #deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse
{'fraction_non_alphanumeric': 0.13158620689655173, 'fraction_numerical': 0.015448275862068966, 'mean_word_length': 3.589873417721519, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4137266', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1018, 'n_words': 427}