At job usually I need to create scripts to send mail with logs for example while creating a backup. After looking for some email clients I found Mutt that looked really easy to use and to install. First of all you should now that Mutt it’s a Mail User Agent (MUA) it means you should have already one Mail transfer agent (MTA) installed correctly (To let Mutt use the sendmail command). So there we go…, first we install like usually:

$ sudo apt-get install mutt

The most configuration changes that we would make is to change the default mail to show while sending the mails, as by default it will show the name of our server. This can be edit in the file /etc/mutt/Muttrc:

$ sudo nano /etc/mutt/Muttrc

And we add the following lines:

set realname="Username to show"
set from="username@host"
set use_from=yes

If you want to use this service with different users in the same server, you should create a copy of the configuration file for each user as following:

$ cp /etc/mutt/Muttrc ~/.muttrc

We’re ready to send our first test:

mutt -s "Test mail" -a /srv/test.tgz destination@testmail.com < /tmp/mailmessage.txt

If everything works good we can start to use it into our bash scripts for monitoring tasks such as backups. Here a small piece of script that I use in my backups:

destMail=destinationMail@destinationDomain.com

attachment=/srv/scripts/backup.log

dateFormat=$(date +"%a, %e/%m/%Y %T")
subject="Backup server ($dateFormat)"

mailcontent=$(cat <<?
	Log - Server backup   
)

echo "$mailcontent" > /srv/scripts/msg.tmp
echo >> /srv/scripts/msg.tmp

mutt -s "$subject" -a "$attachment" "$destMail" < /srv/scripts/msg.tmp
rm /srv/scripts/msg.tmp

I’ve just finished a calendar for 2009. I’ve included both, complete calendar in PNG files and PSD template so you can modify it and make your own design.

Calendar template 2009

You can grab it here

It has been two months without writing anything in here. It was a very busy & stress period and even if not over, I hope at least it will go decreasing in the next months.

I’ve many nice news for this new year, and looks very promising in both personal and professional ways.

I really believe that detailed planning of your whole year life period won’t work at the end and aims like, “I’ll keep fit, I’ll study more, I’ll join English lessons, I’ll learn how to do {put something here},…“ and even more when you’re not in a somehow stable situation, about job, place to live, studies, etc.

But I believe it’s good to take a time to think about what you would like to be after a while and put you some real and interesting objectives taking into considerations your position and your current abilities to reach them.

I think due to my IT & engineer education I’ts very hard for me not to try to plan everything like in a real project instead of just leave them to start and end by themselves.

But I’ll give a try, I will take only few ones. I just wish to help somehow to start them and let’s see how is going :)

I’ll take time to show my progress here :)

Yesterday was the last day of the OSWC and I could assist to the “Vision of the gurus” conference.

The guest stars for this speech were Bdale Garbee (Hewlett-Packard), Suárez-Potts (Openoffice.org & SUN), Martin Michlmayr (Debian) y Sacha Labourey (Red Hat), moderated by Francis Pisani (El País, Le Monde).

Sacha Labourey introduced the speech with a question: Who is taking the real benefits from opensource? the companies or the final users?

And I think it’s true that users usually doesn’t care so much about what they’re using as long as it works. They just look for something, download it (many times not just free software) and give it a try. If after a while they find something wrong on it they just change it without thinking about the chance to change something in it.

Around the companies there’re still the same thoughts. You start to use one product (Which you’ve already paid for) and after some time you notice that you need new features. But after checking the roadmap of your software provider you’ll be lucky if it appear before one year.

What to do? Just sit down and wait, or take another company product (Paying again of course). Maybe some companies just think that it’s hard to maintain code from others. But even if it’s not true there’re also many others alternatives such as ask an external company specialized in opensource to develop a new custom feature for the software you’re using.

In this way Sacha Labourey paid attention to the importance educating the companies about the correct way to pay for the software.

Bdale Garbee spoke about the importance that the companies should put into the development of this kind of software, but he also pointed out that FLOSS it isn’t a commercial model so it won’t make a company to be successful by itself.

He spoke also about the lack of usability of some GUIs in opensource. According to this he also mentioned that his young daughter without being IT-related has been taking part in some opensource conferences discussing about this topic. Taking this example he empathized that we need to include all the sectors of the population in the FLOSS world.

Martin Michlmayr commented how surprising was for him the first day that there were so many young people in the conference. He focused that even if there’s a huge community over there, as this event shows, the people doesn’t know yet how to use opensource properly. They should learn to give something back to the community instead of just take and use. He joked about that they’re getting old, but then he asked who will replace them when they’ll start to be less active and then nobody laughed in the auditorium :)

Suárez-Potts was speaking about sustainability, not just about FLOSS but about our world, arguing how bad is monopoly in every aspect of this life, because that destroys freedom and innovation.

At the end he read a manifest that he was writing during the OSWC. It’s was really nice and you can read it completely on his blog, but I would like to quote few lines:

  • Do today what can be done tomorrow and the day after, or planning for the future in every act.
  • Do things in the consciousness of the others
  • Do what you can now, and don’t wait for some sign, revolution, spectacle or catastrophe. We have the tools to act, we have the sense, and we all know what has to be done. I want communities of freedom, based on the principles of individual freedom and responsibility and acting in conjunction with others.

…as the Málaga conference shows, the world is connected

So keep this in mind:

Don’t wait for google to tell you what you’ve to do next just think what to do, and do it now!

Today started the Open Source World Conference in Málaga. Around 9.000 participants willing to take part during three days in many interesting conferences, workshops, discussions and so on. The event is held in Palacio de Ferias y Congresos, an amazing building full of facilities for this kind of events.

Taking a look to the programme you can get an idea of how many people from different sectors are involved in this event. It’s just pity that many meetings will be at the same time.

This morning I’ve chosen Apache Workshop by Santiago Gala and Thorsten Scherler from the Apache Software Foundation. They were explaining the bases behind the ASF, how they organize the projects, the hierarchy they use, and the concept of the meritocracy.

It’s nice the way they work, if you’re a commiter and you want to make some special change in the project, you make a proposal that everyone will vote. You just need 3 positive votes and none negative point to be allowed to do it. In the case someone puts a negative vote he needs to make good explanation to convince everyone why he did it.

This kind of workflow allows people that actually do things, to following doing stuff instead of stopping them. If someone run faster than you, just take out from his way and let him to go.

They also exposed a little the Apache License 2.0 which I didn’t know so much and now I think it’s quite nice for some kind of projects. For standards related for example, this license allows companies to modify the source code by themselves without need to redistribute it. I agree more with this kind of philosophy focused in the community and in the process to develop a successful project instead of focusing everything in the code itself (that could be more the GNU way).

About that way to think and the philosophy behind their way to accept new project proposals you should read the article Worse is better (Richard P.Gabriel). It exposes some nice thoughts that can be used while creating software communities around a nice, but still far from perfect, idea.

After a small break it started the official presentation of the OSWC. Firstly there were some political words as usually followed by the awaited presentation from Tim O’Reilly about web2.0.

It was the first time I was in a presentation from Tim, and I really like his point of view about the whole open/proprieatry software situation and the misunderstanding of the concept of freedom when we speak about software (to use, to copy, to ask for changes, to modify…).

The speech also focused in the obsession of people with the fight between windows and linux when the monopoly actually is coming from a other source. It’s not coming from your computer OS but through the internet, like for example google, flickr, amazon, etc. Almost all of them were born using opensource software, but they’re proprietary software as well as the criticized Microsoft.

After that just time for lunch and relax while watching the stands from the sponsors. No so much activity there, just in the O’Reilly stand it was nice to see 35% of discount for their cool books. There I got a present: Beautiful code (Thank you!). I was reading nice reviews about this book, so I hope I’ll find it interesting, I’ll let you know :)

That’s all for today let’s see how will go the rest days.