midi keyboard + jackd + debian

I finally managed to use my M-Audio 88es from the command line

install

apt-get install fluidsynth
apt-get install jackd2

this should have installed everything you need (dependencies too)

on the CLI (you will need 3 terms)

term 1

jackd -d alsa --period 128 --device hw:0 --rate 44100

term 2

fluidsynth --server --audio-driver=jack --connect-jack-outputs /usr/share/sounds/sf2/FluidR3_GM.sf2

term 3

aconnect -o -l
aconnect 24:0 128:0
aconnect -d 24 128

sources
========

here and here

Posted in Debian, linux, music | Tagged , , , | Leave a comment

installing munin with Debian


apt-get install munin munin node


chown munin:www-data -Rv /var/cache/munin/www

/etc/munin/apache.conf

16
17 Order allow,deny
18 #Allow from localhost 127.0.0.0/8 ::1
19 Allow from all
20 #Options None
21 Options FollowSymLinks

add file munin.conf to /etc/apache2/sites-available/


   ServerAdmin root@localhost
   DocumentRoot /var/www/munin
   
       Options FollowSymLinks
       AllowOverride None
   
   LogLevel notice
   CustomLog /var/log/apache2/access.log combined
   ErrorLog /var/log/apache2/error.log
   ServerSignature On


a2ensite munin.conf

this finally did the trick:

mv /var/cache/munin/www/ /var/www/munin

expect a few updates in the following days, beacuse


tail -f /var/log/apache2/error.log /var/log/munin/munin-html.log

is still giving a few errors

found the error:

munin.conf:9:htmldir /var/cache/munin/www

replaced by /var/www/munin

source

Posted in Debian, linux, tech | Tagged , , | Leave a comment

how much MEM and CPU used by one binary with ps


ps wwu -C [binary name here]

Posted in Debian, music | Tagged , , , , | Leave a comment

#moon #pictures #astrophotography

Here are most of the moon shots I’ve done since last year.

p1160851

p1160852

p1160853

p1160854

p1160855

p1160856

p1160857

p1160858

p1160859

p1160860

p1160861

p1160862

p1160863

imgp0298_dng_shotwell

imgp0310_dng_shotwell

imgp0317_dng_shotwell

imgp0318_dng_shotwell

imgp0327_dng_shotwell

imgp0328_dng_shotwell

imgp0329_dng_shotwell

imgp0330_dng_shotwell

imgp0331_dng_shotwell

imgp0332_dng_shotwell

imgp0333_dng_shotwell

imgp0334_dng_shotwell

imgp0335_dng_shotwell

imgp0336_dng_shotwell

imgp0337_dng_shotwell

imgp0338_dng_shotwell

imgp0339_dng_shotwell

imgp0340_dng_shotwell

imgp0341_dng_shotwell

imgp0342_dng_shotwell

imgp0343_dng_shotwell

imgp0344_dng_shotwell

imgp0350_dng_shotwell

imgp0351_dng_shotwell

imgp0352_dng_shotwell

imgp0353_dng_shotwell

imgp0374_dng_shotwell

imgp0375_dng_shotwell

imgp0378_dng_shotwell

imgp0379_dng_shotwell

imgp0381_dng_shotwell

imgp0382_dng_shotwell

imgp0383_dng_shotwell

imgp0384_dng_shotwell

imgp0385_dng_shotwell

imgp0386_dng_shotwell

imgp0387_dng_shotwell

imgp0388_dng_shotwell

moon

imgp0457_dng_shotwell

imgp0458_dng_shotwell

imgp0459_dng_shotwell

imgp0460_dng_shotwell

imgp0461_dng_shotwell

imgp0462_dng_shotwell

imgp0463_dng_shotwell

imgp0464_dng_shotwell

Posted in astrophotography | Tagged , , | Leave a comment

Adafruit’s ultimate GPS logger

Today I tested Adafruit’s ultimate GPS logger.
As usual, it was well documented on Adafruit’s site.

I took the first example from the tutorial and this was what I got:

Adafruit's ultimate GPS logger montage

Adafruit’s ultimate GPS logger montage

And here are the pictures from the soldering:
2014-04-23 16.58.08

2014-04-23 16.51.02

2014-04-23 16.50.55

2014-04-23 16.50.51

Posted in arduino, gps, tech | Tagged , , | Leave a comment

imagemagik “collage” of pictures

montage -label '%f' *.JPG -tile 4x -shadow -geometry 150x150+1+1 -background gray ~/graphs/montage.jpg

Posted in astrophotography, bash, linux, photo | Tagged , , | Leave a comment

raspberry: installing pygal

apt-get install python-pip
apt-get install libxml2-dev libxslt1-dev gcc python2.7-dev

root@raspberrypi-1:/home/pi# pip install pygal

Posted in bash, Debian | Leave a comment

1.8″ TFT Adafruit display(ST7735) and Arduino uno

draft

Install Adafruit ST7735 Lib and the Adafruit_GFX library for Arduino.

I had to upgrade ino to 0.3.6 in order to be able to build the example srcipts:

pip install --upgrade ino

I renamed the example files to .ino (’cause .cpp & pde gave errors)

Make sure you name the directories as in the documentation.


root@tortuguita:/usr/share/arduino/libraries# ls -lh Adafruit_*
Adafruit_GFX:
total 36K
-rw-r--r-- 1 root root  13K Jul  5 23:51 Adafruit_GFX.cpp
-rw-r--r-- 1 root root 2.8K Jul  5 23:51 Adafruit_GFX.h
-rw-r--r-- 1 root root 8.0K Jul  5 23:51 glcdfont.c
-rw-r--r-- 1 root root 1.4K Jul  5 23:51 license.txt
-rw-r--r-- 1 root root  947 Jul  5 23:51 README.txt

Adafruit_ST7735:
total 40K
-rwxr-xr-x  1 root root  22K Nov  8 19:44 Adafruit_ST7735.cpp
-rwxr-xr-x  1 root root 4.7K Nov  8 19:44 Adafruit_ST7735.h
drwxr-xr-x 10 root root 4.0K Nov  8 19:44 examples
-rw-r--r--  1 root root 1.1K Nov  8 19:44 README.txt

Then I built it using inotool.

Posted in arduino, raspberry pi, tech | Leave a comment

send SMS with arduino GSM shield

DRAFT

Recipe:

  • sendSMS example sketch from arduino
  • picocom [1]
  • SIM card from a French local provider
  • The serial monitor from the Arduino IDE can be used, too.



    [1] Don’t have what I type echoed, which is frustrating

     picocom --omap crlf --emap crcrlf,delbs --baud 9600 /dev/ttyACM0 

    Posted in arduino | Tagged , , | Leave a comment

    Arduino GSM shield with SIM

    image

    image

    image

    image

    Posted in linux | Leave a comment