<commit_before># vmango

vmango is a virtual machines management web interface written using [Go](http://golang.org/).

# Development installation

For Ubuntu 14.04

Install Go 1.5
    
    cd /usr/local
    sudo wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
    sudo tar xf go1.5.1.linux-amd64.tar.gz

Install libvirt development package:
    
    sudo apt-get install libvirt-dev

Compile

    make all

Create test ip addresses, images and plans
    
    mkdir images
    touch images/{Centos-7.1_amd64_raw.img,Centos-7.1_i386_raw.img,Ubuntu-14.04_amd64_raw.img}
    ./bin/vmango-add-plan --name=5 --memory=512 --disk=20 --cpus=1
    ./bin/vmango-add-plan --name=10 --memory=1024 --disk=30 --cpus=1
    ./bin/vmango-add-plan --name=20 --memory=2048 --disk=40 --cpus=2
    ./bin/vmango-add-plan --name=40 --memory=4096 --disk=60 --cpus=2
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.101
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.102
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.103
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.2 --ip=192.168.123.104
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.105


Run app

    ./bin/vmango<commit_msg>Fixed development part of readme<commit_after># vmango

vmango is a virtual machines management web interface written using [Go](http://golang.org/).

## Development installation
### For Ubuntu 14.04

Install Go 1.5

    cd /usr/local
    sudo wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
    sudo tar xf go1.5.1.linux-amd64.tar.gz

Install libvirt enviroment:

    sudo apt-get install libvirt-dev libvirt-bin qemu-kvm virt-manager qemu-system
    sudo usermod -aG libvirtd [username]
    #relogin


Compile

    make all

Create test ip addresses and plans

    ./bin/vmango-add-plan --name=5 --memory=512 --disk=20 --cpus=1
    ./bin/vmango-add-plan --name=10 --memory=1024 --disk=30 --cpus=1
    ./bin/vmango-add-plan --name=20 --memory=2048 --disk=40 --cpus=2
    ./bin/vmango-add-plan --name=40 --memory=4096 --disk=60 --cpus=2
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.101
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.102
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.103
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.2 --ip=192.168.123.104
    ./bin/vmango-add-ip --mask=24 --gw=192.168.123.1 --ip=192.168.123.105

Add dummy images

    mkdir images
    touch images/{Centos-7.1_amd64_raw.img,Centos-7.1_i386_raw.img,Ubuntu-14.04_amd64_raw.img}

Run app

    ./bin/vmango
    # or better
    make && ./bin/vmango
{'fraction_non_alphanumeric': 0.17444444444444446, 'fraction_numerical': 0.13703703703703704, 'mean_word_length': 2.4987046632124352, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 20, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1610301', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1071, 'n_words': 208}