Monday, December 13, 2010

So excited about the Sheeva Plug


I finally broke down and did it, with a little help from my pops from Christmas; I bought the Sheeva Plug (100 bucks). I can't wait to get it as I have so many ideas. I've got an old camera that I can use with the USB plugin to take anonymous pictures when needed... There are so many more applications. Arduino extensions, python scripts, and on and on...

I've been exploring the difficulties and easiness on the web. Here are a few links that I have found so far:

Saturday, December 4, 2010

Madrid Linux User Group Meetings

Madrid Linux User Group
Meets Every Thursday Evening -21:00hrs
@ Cafe Commercial - 1st Floor,
Glorieta Bilbao, 7, 28004 Madrid

Metro: Bilbao - Linea 1 y 4

Viva la MLUG!

Wednesday, December 1, 2010

Make An Eclipse Project A Java Project

go into the project file and add this line


inside of the natures xml.

Fedora 14 killed my ....

... so with an upgrade from 13 to 14 which was actually pretty smooth, I found that a couple of things did not survive the upgrade process, namely, Squeezebox Server and PandoraFMS.

Well Squeezebox Server was all to do with Perl being updated from 5.10 to 5.12 . The solution: an upgrade to the Squeeze Centre nightly builds to get it all working with Perl 5.12. So far so good and no bugs have become apparent.
There was also a new dependency on that Perl uses to compile the following modules:

>$ ldd
> /usr/share/squeezeboxserver/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/YAML/Syck/
> => (0x00007fff341ff000)
> => /lib64/ (0x00007f4a0e1be000)
> /lib64/ (0x0000003d92e00000)
> $ ldd
> /usr/share/squeezeboxserver/CPAN/arch/5.12/x86_64-linux-thread-multi/auto/YAML/Syck/
> => (0x00007fff6375c000)
> => /lib64/ (0x00007fad76cc7000)
> => /lib64/ (0x00007fad76923000)
> /lib64/ (0x0000003d92e00000) after tracking down the library I dropped it into /lib64 and that was that!

Onto PandoraFMS, well not quite a fix that will be suitable for all but I'll outline it anyways.
On startup PandoraFMS borks at Perl module DB::pm which one would assume was more Perl chaos. However, seems not, it's actually Perl not being able to communicate with new version of MySQL server. Seeing as my PandoraFMS implementation is only at the evaluation phase I just dropped back in the pandora_console/install.php file and re-initialised set up of the PandoraFMS databases.
Though, this may not be suitable for a live site at least it's a heads up in the right direction to resolve the problem.

So after all it wasn't Fedora 14 that killed anything and it wasn't entirely all Perls fault either.

Tuesday, November 30, 2010

Madrid Linux User's Group Meeting

Ok, let's meet at 8 p.m. on the 2 (second) floor, Thursday in Café Comercial, Metro Bilbao, Glorieta Bilbao, 7

Monday, November 29, 2010

Quick Reference PDF

While looking for a quickly tutorial on python and glade I found something else that is quite interesting...

I'm putting a link to the quick reference guide that you can put up on the wall.

Saturday, November 27, 2010

Events That We Could Go To


I thought I would put down some event websites that I found.

Interesting Ubuntu Sticker

So I went to the UPM polytechnical university today to study in the library, they've got free WIFI there too..

The funny thing is that I saw a sticker on one of the students lockers that said:

Ubuntu, Linux for humans.

Also, there was a lot of IEEE computer society stuff there.

Interesting place!!

Friday, November 26, 2010

Multi Router Looking Glass

Objective: create a web interface for viewing routing tables and other routing commands.

I have chosen John Fraizer's Multi Router Looking Glass (a working example can be seen at RIPE's Routing Information Service page). The latest version of the software can be downloaded at: .
Basically the software consists of a cgi script to place in your apache server cgi-bin and a couple of perl & bash scripts. There is also code to make fastping, an alternative to ping. I just used plain old ping in my setup.

CPAN Perl Module: First thing we need is the Perl "Network::Telent::Cisco" module to allow the main script to communicate via telnet to our network equipment. SSH is available via the "Network::SSH::Perl" module, however I will not cover this here.

Access your CPAN shell:

$ perl -MCPAN -e shell

Note: If this is the first time you have run this command you will have to configure CPAN.

Now install "Network::Telnet::Cisco" module.

cpan> install Net::Telnet::Cisco

With this done all we need is a little file keeping to get our program into place. From our downloaded and extracted tar.gz folder issue the following commands:

cp index.cgi /usr/local/www/apache22/cgi-bin/
chmod +x /usr/local/www/apache22/cgi-bin/index.cgi
cp fping1 ztr ztraceroute /usr/local/bin
chmod +x /usr/local/bin/fping1 /usr/local/bin/ztr /usr/local/bin/ztraceroute
cp mrlg.conf.sample /etc/mrlg.conf

Note: These are for FreeBSD, your directory structure may vary.
Now, we need to edit fping1, ztr & ztraceroute to make sure all paths within these files are correct for your system. For FreeBSD I had to edit paths to bash & traceroute, also exchange fastping for ping and its's correct path.

mrlg.conf set up:
To get anything out of your index.cgi, ie. MRLG, you need to config /etc/mrlg.conf.
First, we have to tell MRLG the host details we will be running MRLG on.

## Set the URL for the location of the looking-glass....

Secondly, we can amend a router to the details of one of our local routers.

$::Routers{'Folkestone-AS2'} = {
comment => 'Cisco 2600 Series',
server => '',
use_port => '23',
login_pass => 'cisco',
full_tables => '1',
cisco => '1',
debug => "0",

That is all we need to get an interface into our routers as demonstrated below.

The conf file has lots of settings not discussed here but which can be very useful so I would advise this be your first point of call if you decide to install MRLG.

Madrid Linux User's Group's Last Meeting

We had a good meeting yesterday. Tied up some loose ends and now we can start trying to get more people together.