<commit_before>#Install Ravada

Clone the sources:

    $ git clone https://github.com/frankiejol/ravada.git

#Packages

##Debian

- mysql-server
- libauthen-passphrase-perl
- libdbd-mysql-perl
- libdbi-perl
- libdbix-connector-perl
- libipc-run3-perl
- libnet-ldap-perl
- libproc-pid-file-perl
- libvirt-bin
- libsys-virt-perl
- libxml-libxml-perl
- libconfig-yaml-perl
- libmoose-perl
- libjson-xs-perl
- qemu-utils
- perlmagick
- libmoosex-types-netaddr-ip-perl


##Old debian

In old debians and ubuntus Mojolicious is too outdated. Remove libmojolicious-perl and install the cpan release:

    $ sudo apt-get purge libmojolicious-perl
    $ sudo apt-get install cpanminus
    $ sudo cpanm Mojolicious

#Mysql Database

Create a database named "ravada". 

Grant all permissions to your user:

    $ mysql -u root -p
    mysql> grant all on ravada.* to ravada@'localhost' identified by 'figure a password';
    exit

Review and run the sql files from the sql dir.

    $ mysqladmin -p create -u root ravada
    $ cd ravada/sql/mysql
    $ cat *.sql | mysql -p -u ravada ravada
    $ cd ..
    $ cd data
    $ cat *.sql | mysql -p -u ravada ravada

#Config file

Create a config file at /etc/ravada.conf with:
    
    db:
      user: ravada
      password: *****

#KVM backend

Install KVM 

    $ sudo apt-get install qemu-kvm qemu-utils
    $ sudo virsh pool-define-as default dir - - - - "/var/lib/libvirt/images"

#Ravada user

Add a new user for the ravada web. This command will create a new admin user in the database:

    $ cd ravada
    $ ./bin/rvd_back.pl --add-user user.name

#Next

Read docs/operation.md
<commit_msg>Add lib-meminfo-perl to packages list<commit_after>#Install Ravada

Clone the sources:

    $ git clone https://github.com/frankiejol/ravada.git

#Packages

##Debian

- mysql-server
- libauthen-passphrase-perl
- libdbd-mysql-perl
- libdbi-perl
- libdbix-connector-perl
- libipc-run3-perl
- libnet-ldap-perl
- libproc-pid-file-perl
- libvirt-bin
- libsys-virt-perl
- libxml-libxml-perl
- libconfig-yaml-perl
- libmoose-perl
- libjson-xs-perl
- qemu-utils
- perlmagick
- libmoosex-types-netaddr-ip-perl
- libsys-meminfo-perl

##Old debian

In old debians and ubuntus Mojolicious is too outdated. Remove libmojolicious-perl and install the cpan release:

    $ sudo apt-get purge libmojolicious-perl
    $ sudo apt-get install cpanminus
    $ sudo cpanm Mojolicious

#Mysql Database

Create a database named "ravada". 

Grant all permissions to your user:

    $ mysql -u root -p
    mysql> grant all on ravada.* to ravada@'localhost' identified by 'figure a password';
    exit

Review and run the sql files from the sql dir.

    $ mysqladmin -p create -u root ravada
    $ cd ravada/sql/mysql
    $ cat *.sql | mysql -p -u ravada ravada
    $ cd ..
    $ cd data
    $ cat *.sql | mysql -p -u ravada ravada

#Config file

Create a config file at /etc/ravada.conf with:
    
    db:
      user: ravada
      password: *****

#KVM backend

Install KVM 

    $ sudo apt-get install qemu-kvm qemu-utils
    $ sudo virsh pool-define-as default dir - - - - "/var/lib/libvirt/images"

#Ravada user

Add a new user for the ravada web. This command will create a new admin user in the database:

    $ cd ravada
    $ ./bin/rvd_back.pl --add-user user.name

#Next

Read docs/operation.md

{'fraction_non_alphanumeric': 0.09870208270449743, 'fraction_numerical': 0.0006036824630244491, 'mean_word_length': 2.7531143827859568, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '178675', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1156, 'n_words': 361}