4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 62 / 217
Newer►
  • Shutter - Feature-rich Screenshot Tool

    alternative to screencloud

    via Doo

    May 18, 2016 at 5:49:14 PM GMT+2 - permalink - archive.org - http://shutter-project.org/
    screencloud screenshot
  • thumbnail
    How to install Graphite as a user (non root)

    !/bin/bash

    How to install Graphite as a user on CentOS 5.5 (with neither internet access and root account)

    --------------------------------------------------------------------------------

    Tomasz Kalkosiński - refaktor.blogspot.com

    #

    Graphite is a Scalable Realtime Graphing (http://graphite.wikidot.com/)

    This script is based on two excellent tutorials:

    http://community.webfaction.com/questions/10038/how-to-install-pycairo-in-python27-thanks

    https://gist.github.com/jgeurts/3112065

    My scenario:

    - no internet access

    - only user account, no root account

    - gcc and make installed

    - some libraries missing

    - no development packages for installed libraries

    #

    Goals:

    - installation directory is $HOME/graphite-install

    - install libraries to $HOME

    - install Graphite and stuff to $HOME/graphite

    #

    If you see wget here - wget it to your local machine and upload to remote CentOS.

    You must have gcc and make installed. You can't go on without it.

    Check it with:

    rpm -qa | grep gcc

    ---- 1. Environment setup ----

    Set up these variables. Some of these directories don't exist yet. They will be created as you go on.

    You can put these variables to your .bashrc.

    export CFLAGS="-I$HOME/include -I$HOME/include/python2.7"
    export CPPFLAGS="-I$HOME/include -I$HOME/include/python2.7"
    export PKG_CONFIG_PATH="$HOME/lib/pkgconfig"
    export LDFLAGS="-L$HOME/lib -L$HOME/lib/python2.7"
    export LD_LIBRARY_PATH="$HOME/lib:$HOME/lib/python2.7:$HOME/lib/python2.7/site-packages/cairo"
    export PYTHONPATH="$HOME/lib/python:$HOME/lib/python2.7/site-packages:$HOME/.local/bin/usr/local/lib/python2.7/site-packages"
    export PATH="$HOME/.local/bin:$PATH"

    ---- 2. Libraries ----

    These libraries are required by Graphite. You need to compile them, because other libraries and python modules

    need their headers. They are installed to $HOME/lib and headers are placed in $HOME/include.

    cd $HOME/graphite-install

    wget http://zlib.net/zlib-1.2.8.tar.gz
    wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.6.2.tar.gz
    wget http://www.sqlite.org/2013/sqlite-autoconf-3071700.tar.gz

    tar zxf zlib-1.2.8.tar.gz
    tar zxf libpng-1.6.2.tar.gz
    tar zxf sqlite-autoconf-3071700.tar.gz

    cd zlib-1.2.8
    ./configure --prefix=$HOME
    make
    make install

    cd ../libpng-1.6.2
    ./configure --prefix=$HOME
    make
    make install

    cd ../sqlite-autoconf-3071700.tar.gz
    ./configure --prefix=$HOME
    make
    make install

    ---- 3. Python 2.7.5 ----

    Python installed by default in CentOS may miss some native modules compiled. You need to recompile.

    cd $HOME/graphite-install
    wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz

    tar zxf Python-2.7.5.tgz
    cd Python-2.7.5

    enable-shared is crucial here

    ./configure --enable-shared --prefix=$HOME
    make

    Check output for this line:

    Python build finished, but the necessary bits to build these modules were not found:

    Make sure that _zlib and _sqlite3 IS NOT on that list. Otherwise you miss dependencies or you had errors before.

    make install

    Now you can have two Python installations in system. I use ~/bin/python everywhere from now on to use my version.

    ---- 4. Cairo ----

    Cairo has some dependencies to fulfill.

    cd $HOME/graphite-install
    wget http://cairographics.org/releases/pixman-0.26.2.tar.gz
    wget ftp://sourceware.org/pub/libffi/libffi-3.0.11.tar.gz
    wget http://ftp.gnome.org/pub/GNOME/sources/glib/2.31/glib-2.31.22.tar.xz
    wget http://cairographics.org/releases/cairo-1.12.2.tar.xz
    wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2

    tar xzf pixman-0.26.2.tar.gz
    tar xzf libffi-3.0.11.tar.gz

    My system didn't have unxz so I had to download and repack to zip.

    unzip glib-2.31.22.zip

    unzip cairo-1.12.2.zip

    unxz glib-2.31.22.tar.xz
    unxz cairo-1.12.2.tar.xz
    tar xjf py2cairo-1.10.0.tar.bz2

    cd libffi-3.0.11
    ./configure --prefix=$HOME
    make
    make install

    cd ../glib-2.31.22
    ./configure --prefix=$HOME
    make
    make install

    cd ../pixman-0.26.2
    ./configure --prefix=$HOME
    make
    make install

    cd ../cairo-1.12.2
    ./configure --prefix=$HOME
    make
    make install

    cd ../py2cairo-1.10.0
    ~/bin/python ./waf configure --prefix=$HOME
    ~/bin/python ./waf build
    ~/bin/python ./waf install

    Check if cairo is properly installed:

    ~/bin/python -c 'import cairo; print cairo.version'

    You should see cairo version number.

    If there is an import error, there is something wrong with your PYTHONPATH.

    ---- 5. Django and modules ----

    Remember that it is all installed in user directory.

    cd $HOME/graphite-install
    wget https://django-tagging.googlecode.com/files/django-tagging-0.3.1.tar.gz
    wget https://www.djangoproject.com/m/releases/1.5/Django-1.5.1.tar.gz
    wget https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.5.zip#md5=caf26025ae1b02da124a58340e423dfe
    wget http://twistedmatrix.com/Releases/Twisted/11.1/Twisted-11.1.0.tar.bz2

    unzip zope.interface-4.0.5.zip
    tar zxf django-tagging-0.3.1.tar.gz
    tar zxf Django-1.5.1.tar.gz
    tar jxf Twisted-11.1.0.tar.bz2

    cd zope.interface-4.0.5
    ~/bin/python setup.py install --user

    cd ../Django-1.5.1
    ~/bin/python setup.py install --user

    cd ../django-tagging-0.3.1
    ~/bin/python setup.py install --user

    cd ../Twisted-11.1.0
    ~/bin/python setup.py install --user

    ---- 6. Graphite ----

    Remember that it is all installed into $HOME/graphite directory!

    cd $HOME/graphite-install
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz
    wget https://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz
    tar -zxvf graphite-web-0.9.10.tar.gz
    tar -zxvf carbon-0.9.10.tar.gz
    tar -zxvf whisper-0.9.10.tar.gz

    cd whisper-0.9.10
    ~/bin/python setup.py install --home=$HOME/graphite

    cd ../carbon-0.9.10
    ~/bin/python setup.py install --home=$HOME/graphite

    cd ../graphite-web-0.9.10

    You're almost there. Check if all dependencies are met:

    ~/bin/python check-dependencies.py

    There should be no fatal errors, only warnings for optional modules.

    ~/bin/python setup.py install --home=$HOME/graphite

    ---- 7. Configuration ----

    cd $HOME/graphite/conf

    Copy example configurations

    cp carbon.conf.example carbon.conf
    cp storage-schemas.conf.example storage-schemas.conf
    vim storage-schemas.conf

    You should really read document on how to configure your storage. It is a quick read:

    http://graphite.wikidot.com/getting-your-data-into-graphite

    Configure it the way you need.

    cd $HOME/graphite/lib/python/graphite
    cp local_settings.py.example local_settings.py

    vim local_settings.py

    This file is crucial:

    Line around 13: setup your TIME_ZONE from this list: http://stackoverflow.com/questions/13866926/python-pytz-list-of-timezones

    Line around 23: DEBUG = True

    Line around 24: append ALLOWED_HOSTS = ["*"]

    Lines around 46-54: change paths from /opt/graphite to your explicit graphite installation dir,

    for example /home/you/graphite. $HOME doesn't work here!

    Uncomment lines 141-150 (starting with DATABASES) and update NAME with full explicit database path. $HOME doesn't work here!

    Create new database for Graphite web application

    ~/bin/python manage.py syncdb

    Start carbon deamon

    cd $HOME/graphite
    ~/bin/python carbon-cache.py status
    ~/bin/python carbon-cache.py start

    I run development graphite server in a screen, since I cannot expose it via httpd.

    screen

    In screen

    ~/bin/python manage.py runserver

    Detach with Control-A, Control-D (attach again with screen -r next time)

    Check if it works, you should see <title>Graphite Browser</title>

    curl localhost:8000

    You can run some example client to send some stats.

    You can adjust example-client.py delay value for more/less stats.

    cd $HOME/graphite/examples
    ~/bin/python example-client.py

    Done!

    Easy as pie :)

    May 18, 2016 at 10:30:23 AM GMT+2 - permalink - archive.org - https://gist.github.com/SpOOnman/5957589
    graphite
  • http://www.lelivrescolaire.fr/
    May 18, 2016 at 9:27:01 AM GMT+2 - permalink - archive.org - http://www.lelivrescolaire.fr/
    ecole education livre programme scolaire
  • Node.js passe la sixième vitesse - LinuxFr.org

    Recap de la situation actuelle concernant nodejs

    May 14, 2016 at 9:04:37 AM GMT+2 - permalink - archive.org - http://linuxfr.org/news/node-js-passe-la-sixieme-vitesse
    node nodejs
  • [Sélection littérature] 21 bijoux de science-fiction qui gagneraient à être (plus) connus | Journal du Geek | Page 4

    via pyros

    May 5, 2016 at 10:38:30 AM GMT+2 - permalink - archive.org - http://www.journaldugeek.com/tests/selection-litterature-21-bijoux-de-science-fiction-qui-gagneraient-a-etre-plus-connus/4/
    book ebook kobo scifi
  • GitHub - farrokhi/dnsdiag: DNS Diagnostics and Performance Measurement Tools

    via puckel

    May 2, 2016 at 1:45:31 PM GMT+2 - permalink - archive.org - https://github.com/farrokhi/dnsdiag
    dns
  • thumbnail
    Two Monkeys Were Paid Unequally: Excerpt from Frans de Waal's TED Talk - YouTube

    ;-)

    April 29, 2016 at 3:00:47 PM GMT+2 - permalink - archive.org - https://www.youtube.com/watch?v=meiU6TxysCg
    experience monkey pay ted
  • 25 graphite, grafana and statsd gotchas
    April 27, 2016 at 4:02:40 PM GMT+2 - permalink - archive.org - https://blog.raintank.io/25-graphite-grafana-and-statsd-gotchas/
    bestof grafana graphite statsd
  • Note: Rails encoding

    Enfin trouvé la solution à mon probleme d'encoding :

    incompatible character encodings utf-8 and ascii-8bit

    Tout ça a cause d'un bug de la gem mysql qui pense que certaines chaines récupérées en base sont encodée en ascii-8bit alors que pas du tout.. La solution est simple : utiliser la gem mysql2 à la place qui résout ce probleme. Ce genre de bug rend fou car on a beau chercher une logique, il n'y en a pas, bref merci Google :-)

    April 23, 2016 at 3:39:18 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?Hl5uog
    encoding rails ruby
  • Detecting the use of "curl | bash" server side | Application Security

    :o

    April 22, 2016 at 2:18:49 PM GMT+2 - permalink - archive.org - https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/
    bash curl security
  • Note: Send rich event to graphite

    curl -X POST "http://localhost/events/" -d '{"what": "Web Service", "tags": "production deploy", "data":"version 1.1.7"}'

    April 21, 2016 at 3:07:43 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?2vE6ww
    grafana graphite
  • Note: Demo rapide graphite grafana

    On envoie une valeur aléatoire toutes les 10 secondes et on observe le résultat sur un dashboard grafana qui se refresh tout seul toutes les 10 secondes ;-)

    for i in {1..60}; do line=$(echo "toto $(( ( RANDOM % 10 ) + 1 )) $(date +%s)"); echo $line; echo $line | nc -q0 localhost 2003; sleep 10; done

    April 21, 2016 at 12:32:02 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?JUrxHw
    grafana graphite
  • Has anyone ever got a remote JMX JConsole to work? - Stack Overflow

    java </3

    April 21, 2016 at 9:45:38 AM GMT+2 - permalink - archive.org - http://stackoverflow.com/questions/151238/has-anyone-ever-got-a-remote-jmx-jconsole-to-work
    java
  • GitHub - future-architect/vuls: Vulnerability scanner for Linux, agentless, written in golang.

    via doo

    April 19, 2016 at 2:51:03 PM GMT+2 - permalink - archive.org - https://github.com/future-architect/vuls/
    security
  • Vendez vos parts additionnelles de plats cuisinés ! - Mummyz

    à tester dans les 2 sens

    April 19, 2016 at 11:56:06 AM GMT+2 - permalink - archive.org - https://www.mummyz.fr/
    bouff economie miam partage
  • Getting Started with the G1 Garbage Collector
    April 19, 2016 at 11:23:31 AM GMT+2 - permalink - archive.org - http://www.oracle.com/technetwork/tutorials/tutorials-1876574.html
    g1 java
  • Ruby gem search: show all remote versions
    April 19, 2016 at 9:27:32 AM GMT+2 - permalink - archive.org - https://ma.ttias.be/ruby-gem-search-show-remote-versions/
    gem ruby
  • Understanding Metrics in the Age of the TSDB

    La base de la métrologie avec les différents types de metric : gauge, rate, histogram.. Le rôle de statsd (buffer..)

    April 18, 2016 at 11:09:45 PM GMT+2 - permalink - archive.org - https://blog.filippo.io/understanding-metrics/
    graphite metrics statsd tsdb
  • thumbnail
    GitHub · Where software is built
    April 18, 2016 at 10:47:50 PM GMT+2 - permalink - archive.org - https://github.com/abulimov/haproxy-lint/blob/master/README.md
    haproxy lint syntax
  • Garbage First Garbage Collector Tuning
    April 18, 2016 at 5:17:52 PM GMT+2 - permalink - archive.org - http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html
    g1 java
Links per page: 20 50 100
◄Older
page 62 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation