Raspberry pi - Introduction

Hello once again.

This is the first of series of Raspberry pi related posts. I believe that the Raspberry pi (rpi from now on) can help us learn from basic electronics to coding, presenting alternative solutions to existing or not problems. In this series I will make a step-by-step installation of a simple, descent LAMP (Linux Apache MySql PHP) server.

This is what a rpi looks like, compared to a D, a AAA battery and a SD card.

For those not familiar with the pi, I think it will enough to start with the following bullets:

it is a single-board processorit has low cost, (approximately 35$)low performance, ARM6 700Mhz single core processor with 256/512Mb of RAM (type A/B)runs a distribution of GNU/linux based on Debian, called raspbianhas some GPIO (General Purpose Input Output) pins, used to connect sensors, devices etc in order to control them, get data or output data toit has a large community for project ideas/solutionsI believe those are enough for now. In a few words the rp…

sendmail app - GUI and CLI versions

Hello there.
I recently needed to automate a process of sending emails from MS windows machine, to lots of recipients in order to help a good friend at his work. Think of it as newsletter emails. This is why I made a small .exe file in .  I had little experience with, this is why I started from the .exe file with GUI which was easier from me to visualize and debug. To cut story short. I made it work. However, without CLI how is it possible to automate it? I know there is autoit program, but ... come on. I 'd spent quite some time to make this work. So I made a CLI version too.

The use is simple.
In  the GUI version there are listboxes to add attachments and recipients. Labels are self-explanatory so no need to say much.

The CLI version takes these arguments:
-t=[mail text]
-l=[.txt file path for recipients]
-a=[path of the attachment]
-o=[path of the txt log file to write]
--help for help
e.g. for using gmail

Simple password generator from terminal

Hello again.

I wanted to get several WPA passwords and test them by trying to hack them for educational purposes.

Since I didn`t want to use an online generator (because when you don`t have a connection they are useless) I though I should have them taken from terminal.

The procedure is simple and it worked. At least for me.

1st open your bash source file
gksudo ~/.bashrc

2nd add this small script

genpasswd() {
    local l=$1
           [ "$l" == "" ] && l=16
          tr -cd 'a-zA-Z0-9\<>!".;:$%&/()=?|@#[]}{'< /dev/urandom | head -c ${l} | xargs

3rd save and exit

4th source it
source ~/.bashrc

and that`s it.

try it by typing
genpasswd 10

to get a password with 10 characters

GL and HF

Conky has been polished and refurbished

Hello again.

Conky is changing. Remember this article? Get ready to see something different. Compare it with this one.
Old one Polished version
I have left out several indicator, but it looks really nice.

Here is how to get it.

If you don't have conly, install it.
$sudo apt-get install conky

Donwload the new source file, as well as the logo.png image the rings from here and extract them in a folder, let;s call it conky2 in your home folder.

First step is to install the new font, called neuropolitical by double clicking in the neuropolitical.tif file in the file and then the install button.

Then copy the clock_rings.lua to ~/.lua/scripts folder. These two folders do not exist so create them.
$sudo mkdir ~/.lua
$sudo mkdir ~/.lua/scripts

and then copy the clock_rings.lua file
$cd ~/
$sudo cp ~/conky2/Ubuntu/clock_rings.lua ~/.lua/scripts

Create a folder to put the logo.png file.
$sudo mkdir ~/.conky
$sudo cp ~/conky2/Ubuntu/logo.png ~/.conky

Inside the same folde…

New AMD ATI catalyst drivers. The scenery is changing.

Hi there once more.

It has been a while. Remember the previous post how to install the ATI drivers in Ubuntu? Well you can forget all about that.

It seems that something has changed and all the necessary actions are included in a wizard type installation for the AMDCatalyst 12.2 proprietary display drivers for Linux.

First, go here (AMD support site) to get the drivers for your OS and card.

I can say that you are almost done. You must only make this *.run file executable and then run it.
(I won't open terminal to show howeasy the whole process is)

Enter your password to allow it to run as superuser and a wizard will start as shown below. Choose according to yor case and the rest are being taken care of. A reboot however is necessary.

Has this new policy anything to do with the fact that nvidia has joined The Linux Foundation?

Read more here (

What do you think?

Install the new ATI drivers in Ubuntu 11.10 (and make them work)

Hi there once more.

Following the previous post about problems with ATI drivers, amdcccle (see it here), I' ve looked it into a little bit more.

I was lucky since guys at (they rock), had the solution ready for me.

New ATI catalyst 11.8 to the rescue and a proper easy how-to.

This is basically a re-post of the one found in (check it here) from the noobie perspective.

First download the new drivers from here. (I got the 64bit one)

Put the file in a folder (lets name it ati in the home folder) and make it executable.
$cd ~/ati
$sudo chmod +x
Then create the necessary packages, based on the 11.10 Ubuntu version  $sudo ./ --buildpkg Ubuntu/oneiric
Before continuing, it is very likely that you might be missing some packages that are necessary to create the packages and cpontinue with this procedure. I've listed below those that I was mis…

Ubuntu 11.10 ATI drivers and NTFS mounts problem

Hi there again Ubuntu users.

This will be a small post about a problem I faced when I upgraded to 11.10 and it has to do with ATI drivers and NTFS mounts. I ' ve googled them around and I see that there are quite some people facing similar problems.

(I run the 64-bit version, so I do not know if the same applies for the 32-bit one.)

I use two monitors and when the PC rebooted, after the update, the monitor mode had been switched to mirror monitors. I though OK, no problem. It is something that has happened before in the past and I thought that AMD Catalyst Control Center will give the solution. Unfortunately, even though I was using the AMD Catalyst Control Center (administrative version) it didn't save any changes and simply terminated. Each time.

So I tried to "kill my time" and watch a movie instead. I tried to cut and paste a movie to an external media center. No go. I didn't have write privs in the NTFS external HDD. That was new. It took a while (reading a…