Install Open Cache Manager in Gentoo (and probably any other distro)

Posted on

logo

OCM, or Open Cache Manager is an piece of software for all your geocaching needs.

Gentoo doesn’t has an ebuild (at least none I couldn’t find) for OCM. We need to configure it by hand. This means compile it. OCM is developed in C# and Java . It is heavily dependent on Mono.

This are packages for Gentoo, but probably for any other distro, the names are equal if not the same.  It could work .

Dependencies:

dev-lang/mono
dev-dotnet/webkit-sharp
dev-dotnet/gconf-sharp
dev-dotnet/ndesk-dbus
dev-dotnet/ndesk-dbus-glib

Let’s emerge all this packages. This may take a while, whether you already have or not some packages

emerge -av dev-lang/mono dev-dotnet/webkit-sharp dev-dotnet/gconf-sharp dev-dotnet/ndesk-dbus dev-dotnet/ndesk-dbus-glib

After all dependencies are met, lets configure and install Open Cache Manager

Download the latest version from http://sourceforge.net/projects/opencachemanage/files/

tar -zxvf opencachemanager-1.0.15.tar.gz
cd opencachemanager-1.0.15
./configure

If there’s something missing, configure will exit with an error and with the information of what’s missing.

make
make install

After all installed, let’s execute it. The binary for OCM is ocm-gtk !

screenshot

Fluxbox fbsetbg set background with dual monitors

Posted on

I’ve started using Fluxbox a while ago. Primarily in my work computer and next at home.

At my work there’s no problem because I only have one monitor, but at home, I use two monitors and fbsetbg wasn’t doing the trick, even not working sometimes. After a doing research I finally found the answer.

fbsetbg can be used stand alone (finding itself an app to set the background) or you can specify an application for it.

In this case, I’m using feh with xinerama support.

In the fbsetbg manual (man fbsetbg) it says that we need only to specify the background setter once, using the option -u . Still, in my fluxbox startup script I specify the option anyway..

So, to span wallpapers across two monitors, just use feh

fbsetbg -u feh ...picture(s)....

Example in your fluxbox startup file:

 

fbsetbg -u feh -R <path/to/pictures> &

screenshot

 

 

Instalar osTicket em CentOS 7 e CentOS 6

Posted on Updated on

O osTicket é um excelente Gestor de Helpdesk – Apenas faz gestão de Helpdesk, mas faz muito bem.

A versão que vamos instalar é a ultima versão a esta altura (v3.3.9) que pode ser adquirida aqui.

Neste caso, não vamos criar nenhuma diretoria especifica para o osticket mas na raíz da maquina, ficando este servidor dedicado apenas a isto – ou pelo menos, o site principal
Read the rest of this entry »

Arduino Hygrometer or humidity sensor

Posted on

Recently I’ve acquired a hygrometer – humidy – sensor for a project I’m working on . I’ve bought it from Banggood.com .

To really know when to water the garden, tests needed to be made.

Read the rest of this entry »

Arduino LED Ambient Mood Light with Light/Luminosity/LUX Sensor

Posted on

Finished Cube glowing red

 

After reading about LED cubes with Arduino doing nothing else than just fading between colors, i decided to build my one, but instead of just fading colors, why not gather information from the surrounding environment ?

Using the Adafruit TSL2561 and some assumptions (more on that later) I build this cube !
Read the rest of this entry »

Raspberry PI music player gesture controlled with hover

Posted on Updated on

Hover and Raspberry PI

I’ve recently received my hover gesture board from justhover.com and I needed a nice project to test it ! In the past, I’ve managed to get a bluetooth wireless speaker to work with my Raspberry PI and now, I’m going to use to output music from my music player controlled with gestures !

Note: Didn’t get to output music from pygame to my bluetooth speaker. Always getting the following error:

ALSA lib audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_OPEN failed : Invalid argument(22)

But, I’ve connected some speakers to the jack output and was set !

Read the rest of this entry »

Arduino Robô controlado por Wifi com o Adafruit CC3000 Wifi-shield

Posted on

Para um workshop onde ia falar sobre Arduino, tinha que mostrar um projeto mais interessante – então, nada como um robô controlado por Wifi.

Componentes usados

Se não sabem o que é o wifi-shield da Adafruit CC3000, podem consultar no Adafruit learning center, escrito por Rick Lesniak. Além de explicar como soldar, também explica as ligações e algumas das funções.

Para funcionar, não podem esquecer de efectuar o download das bibliotecas (podem consultar o github ou descarregar directamente a ultima versão) e adicionar ao vosso IDE do Arduino.

Após efectuarem o download e terem adicionado ao vosso IDE, podem executar os exemplos existentes.

Este tutorial para o Robô é baseado no existente no Adafruit Learning Center – WiFi controlled Mobile Robot – , escrito por Marco Schwartz. As diferenças é que o driver de motor que eu usei não é o mesmo, logo, há funções que no código não iriam funcionar, então, alterei e adicionei funções e instruções ao código que irei colocar aqui.

Podem sacar o codigo completo do projecto na minha página do bitbucket – arduino-wifi-robot
Read the rest of this entry »

Linux cups notifications

Posted on Updated on

I had problems with some printers, sometimes, the print server just stops the queue and I only know when the user complains he can’t print ! This can cause several problems and so, I need to know when a printer stops. CUPS can warning you about that so you can do something about it.

Cups is able to send email notifications when some event occurs .

I’m using CUPS 1.3.7 with CentOS 5.10 x86

Read the rest of this entry »

Linux screenFetch

Posted on

screenFetch

screenFetch is a small, but awesome utility that displays the logo of your distro in ASCII ART – with colors, as well some information about your environment. It supports a lot of Linux distributions and there respective logos, most main stream Desktop Managers and a lot of window managers. screenFetch can (and is it’s main purpose) take screenshots with the info on screen ! I think is just awesome and I love ASCII ART !

You can see what options it can take with screenFetch -h

 

 

Arduino e LEGO® Power Functions

Posted on

Originally posted on GroundZero Blog:

No dia 10 de junho participei num workshop sobre eletrônica e informática com um projecto baseado em LEGO® Power Functions e Arduino.

Basicamente o projecto envolvia um comboio LEGO® cujo movimento era controlado pelo Arduino. Os objectivos do projecto eram:

  • O comboio tinha de parar na estação sempre que lá passava.
  • Quando arrancava da estação tinha de se ouvir um apito
  • Logo que saisse da estação, o comboio tinha de ser transferido para a linha interior
  • Quando efetuasse 2 voltas na linha interior era novamente transferido para a linha exterior
Layout Final
Layout Final

Para elaborar o projecto, para além do LEGO®, foi usado:

  • 1 arduino
  • 1 buzzer
  • 2 sensores de obstáculos
  • 1 servo
  • 2 leds IR
Arduino and buzzer
Arduino and buzzer
Servo
Servo
Sensor de obstaculos
Sensor de obstáculos
Led's IR
Led’s IR

Para controlar o comboio na estação foi necessário usar dois led´s devido ao alcance e ângulo destes. Um controla a entrada da estação e o outro…

View original 295 more words