Author: Quentin

  • Linux shell bash colors : the easy way to change them

    #Backup your dircolors file : dircolors -p > ~/.dircolorsrc #Change the color .dircolorsrc : nano .dircolorsrc #If you want to change the directory color to yellow, find DIR 01,34 and change it : DIR 01;33 # directory #Change the .bashrc values : eval “`dircolors -b ~/.dircolorsrc`” export LS_OPTIONS=’–color=auto’

    Enjoy!

  • How-to install mnoGoSearch on Debian Jessie

    mnoGoSearch tested with a fresh cloud.runabove.com Debian Jessie 7.5 instance :

    sudo nano /etc/apt/sources.list
    #Only jessie distrib
    ---> deb http://ftp.debian.org/debian jessie main
    ---> deb-src http://ftp.debian.org/debian jessie main
    
    #Update package list
    sudo apt-get update
    
    #Upgrade distrib with new distrib repository
    sudo apt-get upgrade
    
    #Install MySQL & PhpMyAdmin BEFORE mnoGoSearch
    sudo apt-get install mysql-server phpmyadmin
    
    #Create a new db
    ---> create new db db_test_mnogo at http://IP/phpmyadmin/
    
    #Go in the /tmp/ directory for instance
    cd /tmp/
    
    #Download mnogoSearch package / Here it's not the last one
    wget http://www.mnogosearch.org/Download/deb/mnogosearch_3.3.13-1.static_amd64.deb
    
    #Unpack and install
    sudo dpkg -i mnogosearch_3.3.13-1.static_amd64.deb
    
    #Go to the newly created mnoGoSearch directory
    cd /etc/mnogosearch
    
    #Backup and rename the conf file
    sudo cp indexer.conf-dist indexer.conf
    
    #Setup mnoGoSearch to work with MySQL
    sudo nano indexer.conf
    ---> replace DBAddr  mysql://root:passmysql@localhost/db_test_mnogo/?dbmode=blob
    ---> add Server http://www.website-i-want-to-crawl.com/ near the end of the file
    
    #Go to the exe file directory
    cd /usr/sbin/mnogosearch
    
    #Create DB
    ./indexer -Ecreate
    #run
    ./indexer
    Enjoy :)

    Official doc : http://www.mnogosearch.org/doc33/msearch-indexing.html

  • How-to Install Elasticsearch on Debian 7 OVH VPS

    install python-software-properties :

    apt-get install python-software-properties

    install a non official repository Oracle Java :

    echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
    echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
    apt-get update

    install Oracle JDK 7

    apt-get install oracle-java7-installer

    Download and install the Elasticsearch Public Signing Key

    wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -

    Add the following to your /etc/apt/sources.list to enable the repository

    deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main

    Run apt-get update and the repository is ready for use. You can install it with :

    apt-get update && apt-get install elasticsearch

  • Installation Symfony2, Solarium & NelmioSolariumBundle

    Nelmio Solarium Bundle permet de connecter Solarium Ă  Symfony2. Ce bundle est une initiative de Nelmio. Solarium est une librairie PHP qui permet de communiquer avec PHP. Cette petite liste de commandes est davantage une prise de note qu’un tutorial, afin de gagner du temps en cas de futures rĂ©installations. (more…)