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!

Shell linux AWK: Addition of the 2nd column separated by tabs

awk -F’t’ ‘{a+=$2}END{printf “%in”,a}’

Shell Linux: Sort on 2nd column with tab separated content

sort -t t’ -n -k2

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 […]

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 […]

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.