This feed contains pages in the "linux" category.

This time me and marabo have realized what so called an 'Automatic Tee Up', which is a device used in golf practice.

The device is controlled by an AtMega16 microcontroller and an open source software written by myself and (sooner or later) available on-line.

We are currently looking for sponsors who want to put in test this device on the field and give us feedbacks.

What need to be done

  • A more detailed webpage with picture and more video
  • A beautiful package for the device and the shaker

If You want more infos contact me.

A video on youtube:

Posted Fri 14 May 2010 03:44:22 PM CEST Tags: linux

My new bank send me signed emails, but theirs CA is not present in debian openssl installation. Looking around into their website I've found the CA certificate called TrustItaliaC1.cer. Downloaded it then

openssl x509 -in TrustItaliaC1.cer -text

It should dump the certificate contents. Unfortunately I didn't find a way to install the certificate as user into my home directory without playing as root which is almost always a bad thing to do, so, to keep the root's modification at minimum, I create a ~/.ssl/certs

mkdir ~/.ssl/certs

move and rename the CA into the new dir as

mv TrustItaliaC1.cer ~/.ssl/certs/mybank.pem

then as root

sudo -i
cd /etc/ssl/certs
ln -s /home/enrico/.ssl/certs/mybank.pem
c_rehash

Now in mutt I can see as verified the emails from the bank. Good.

Posted Wed 28 Apr 2010 11:42:06 AM CEST Tags: linux

I usually backup my nokia phone contacts to pc using multisync, now I have to switch from multisync to opensync.

Before you continue, I strongly suggest you make a backup of your phone contacts in some way (funny eh!) because these tools can erase it all, even they tend to ask for a confirmation before.

What I usually do is to sync the phone with a directory in vcard files, then cat these files together in a single large file used in lbdb for my mutt address book.

If you change something in the phone then it will be changed in the files too on the next sync, but if you want to make changes in a file to get to the phone the only way right now seems to remove the old record and add the new one.

Eventually you can always remove the old record and add as the last record number + 1 a new version, this will add your changes to the phone. Keep an eye on opensync web site for updates.

First you need to install these packages:

apt-get install osynctool opensync-plugin-syncml opensync-plugin-file

then create the sync directory:

mkdir /home/enrico/opensync/e71

then

osynctool --addgroup e71
osynctool --addmember e71 file-sync
osynctool --addmember e71 syncml-obex-client
osynctool --configure e71 1

I've modified only this part which off course should match your path:

<Path>/home/enrico/opensync/e71</Path>

Find out your phone mac address with hcitool scan and the channel to connect to with sdptool browse <your mac addr here>. Look at the channel with the same <SDPUUID>00000002-0000-1000-8000-0002ee000002</SDPUUID> used later in the config file. then configure the syncml plugin with:

osynctool --configure e71 2

in which I've modified:

<AdvancedOption>
  <DisplayName>Identifier</DisplayName>
  <MaxOccurs>4294967295</MaxOccurs>
  <Max>4294967295</Max>
  <Name>Identifier</Name>
  <Type>string</Type>
  <Value>PC Suite</Value>
</AdvancedOption>

and

<Bluetooth>
  <MAC>put your mac addr in here</MAC>
  <RFCommChannel>10</RFCommChannel>
  <SDPUUID>00000002-0000-1000-8000-0002ee000002</SDPUUID>
</Bluetooth>

open another terminal and use the bluetooth-agent to provide the pin code (note: you may not need this, depends on your bluetooth install and pairing with the phone):

bluetooth-agent <4 number PIN>

the shoot:

osynctool --discover e71
osynctool --sync e71

Have a nice day.

Posted Wed 21 Apr 2010 03:09:29 PM CEST Tags: linux

Welcome...

Latest blog's summary

OpenGolfMat aka automatic tee up
Posted Fri 14 May 2010 03:44:22 PM CEST

Google and Yahoo search box
Posted Mon 10 May 2010 03:39:15 PM CEST

Debian Openssl add CA
Posted Wed 28 Apr 2010 11:42:06 AM CEST

OpenSync Debian Squeeze and Nokia e71
Posted Wed 21 Apr 2010 03:09:29 PM CEST

rails 1.2.6 under debian lenny in (almost) userspace
Posted Sat 01 Mar 2008 12:16:21 PM CET

Links:

Posted Mon 06 Jul 2009 12:57:07 PM CEST Tags: linux

The problem start playing with rails is that most tutorial out there are based on rails 1.2.6 and doesn't work in rails 2 which is now the standard in debian lenny.

First install ruby and rubygem from debian packages.

Then install rails 1.2.6 in a local writable directory (ex. /home/mygemstuff)

gem install rails --version=1.2.6 --include-dependencies --install-dir /home/mygemstuff

Then we have to make some adjustment to the op-system. As root we link /var/lib/gems/1.8 to out /home/mygemstuff. Then we make rails and rake executable in out path.

cd /var/lib/gems/
rmdir 1.8
ln -s /home/mygemstuff 1.8

If in your path thare is /usr/local/bin than you can simply

cd /usr/local/bin
ln -s /home/mygemstuff/bin/rails
ln -s /home/mygemstuff/bin/rake

now you can do rails demo

and start to playing with it.

Posted Sat 01 Mar 2008 12:16:21 PM CET Tags: linux

Since under Xen debian etch the is no rpm-strap for fedora > 4 I proceed in this way.

Note: This is only a brief explanation, not an Howto nor a step-by-step guide.

  • I've installed fedora 8 somewhere with less stuff as possible, manually editing packages and remove any package you can during installation. This reduce fed8 into (only!) 800M filesystem. For simplicity I've used qemu with -no-acpi option as a target system.

  • From 'init 1' rsync the whole filesystem excluding /proc and /sys into the xen filesystem created for fedora, either File, Lvm partition or something like that.

    rsync -av --delete --whole-file --numeric-ids --exclude /proc --exclude /sys / root@xenserverip:/mnt/fed8.img

  • Copy the /lib/modules from xen Dom0 to the fed8 DomU. Since we'll use Xen Dom0's kernel (2.6.18-5) intead of 2.6.23 we need those modules.

  • Start the fed8 DomU, reconfigure the network from concole, remove with yum the kernel which is not needed in DomU and, eventually, any other software which deal with hardware like acpid, ntp etc.

Posted Fri 28 Dec 2007 01:05:22 PM CET Tags: linux

After a long long time I did not get to fly, I have discovered a bug in mlrutil which prevent it to download more than 988 point.

Fixed... see MlrUtil

Posted Fri 06 Jul 2007 08:44:05 PM CEST Tags: linux