Ubuntu 9.04 on eeePC 901

Just a outlook on the new Jaunty

Pretty sleek and flawless for an eeePC 901, everything work:

-wifi

-camera

-bluetooth

-hotkey (but the wireless/bt)

-suspend

Hot stuf:

26 second with 2Gb ram on a Atom 1.6, wifi connected.

Not bad, closer and closer to the Xandros (16s) and WinXP(24s)
First OpenOffice 3

904-ooo.png
Janitor: to clean and remove old and non-used packages

904-ooo.png

Very important: my claimed bug: selectable network’s information

904-nm.png

But huge disappointment: cannot resize nor rotate pics in nautilus:

904-pics.png

Anyway, this new version, once again sounds promising. Stay tuned for tip and tricks.

Relakks, Hadopi, take it easyyyyy

Voila une des solution au lois anti internet qui ressurgissent chaques années à l’assemblé:

https://www.relakks.com/

C’est un service VPN payant hébergé en Suède

relakks.png
S’inscrire, payer (5€ pour 1 mois)

Installer le client VPN:

sudo apt-get install network-manager-pptp

Click sur l’icone de la connexion réseau=> Connexion VPN=>Configure VPN

Ajouter=> PPTP protocol=>Crréer
Nom de connexion: Relakks

Passerelle: pptp.relakks.com

Nom d’utilisateur et mot de passe: celui fourni lors de l’inscription

Avancé=> Selectionner: Utiliser encryption Point à Point (MPPE)

Puis enfin pour se connecter:

Click sur connexion réseau=> Connexion VPN=>Relakks

vpn.png

Voilà!!!, rien d’autre à faire

On checke l’ip:

ip.png

Puis un petit torrent pour voir le débit max, test avec VPN Relakks:
268.png

Une bonne moyenne à 250ko/s

Testons maintenant sans VPN Relakks:

856.png

un bon 850ko/s sur un torrent légal, connexion Free dégoupé.

Conclusion:

La connexion est stable et constante, certe limité à quelques centaines de ko/s, mais largement suffisant.

Pour 5€/mois ou 45€/ans, cela rend le projet d’Albanel quaduc avec sa haute hautorité coutant 65M€ aux contribuables.

df not updated

If you rm some big file and you don’t recover your space disk (df shows your device always full), you can check if there is some process using your deleted file with :

ls -ld /proc/*/fd/* 2>&1 | fgrep ‘(deleted)’

You simply have to kill these processes which are still using your file.

How to: Copy and Paste highlighted and intented source code in Open Office

Maybe you have some repport due, where few lines of code are needed, but Open Office Writer doesn’t handle .c source file, neither .py, .m
The solution:

sudo apt-get install highlight

gedit “~/.gnome2/nautilus-scripts/Highlight and open with OOO”

#!/bin/bash
#
highlight -o /tmp/highlight_temp_file.html $*
openoffice /tmp/highlight_temp_file.html
rm /tmp/highlight_temp_file.html

chmod +c “~/.gnome2/nautilus-scripts/Highlight and open with OOO”

And now, any right clic on a file, and it’s opened in OOO with nice colors.

Hercules Deluxe Webcam :compiling drivers for Ubuntu 8.10

Here again we are facing a crappy hardware with homebrewed drivers, not integrated: sunday morning, let’s compile something.
That’s a translated how to from here

Unplug the webcam

lsmod | grep ov

to check if any module is loaded, and remove it

sudo rmmod gspca_ov519sudo rm -r/lib/modules/`uname -r`/kernel/ubuntu/misc/media/ov511

sudo rm /lib/modules/`uname -r`/kernel/drivers/media/video/gspca

So let’s download the drivers’ sources:

wget http://www.rastageeks.org/downloads/ov51x-jpeg/ov51x-jpeg-1.5.9.tar.gztar -zxwf ov51x-jpeg-1.5.9.tar.gz

cd ov51x-jpeg-1.5.9/

sudo apt-get install build-essential linux-headers-`uname -r`

make

sudo make install

sudo modprobe ov51x-jpeg

echo “options ov51x-jpeg forceblock=1” | sudo tee -a /etc/modprobe.d/options

echo “options ov51x-jpeg force_palette=13” | sudo tee -a /etc/modprobe.d/options

tail -f /var/log/syslog | grep “ov51x”

and plug the webcam, something close to this should appears:

kernel: [324189.288878] ov51x_jpeg: USB OV519 video device found
kernel: [324189.656291] ov51x_jpeg: Sensor is an OV7648
kernel: [324189.758541] ov51x_jpeg: Device at usb-0000:00:1d.1-2 registered to minor 1

(control+c to quit)

gstreamer-properties

and the webcam shoud show up

If not, check the rights:

ls -l /dev/video*
crwxrwxrwx+ 1 root video 81, 0 2009-01-14 20:03 /dev/video0
crw-rw—-  1 root video 81, 1 2009-01-18 14:10 /dev/video1

The first one is good, but not the second webcam, only video access, so to correct it: create a simlink at the module initialisation:

sudo gedit /etc/udev/rules.d/80-programs.rules

And add this line:

KERNEL==”video[0-1]”, NAME=”video%k”, SYMLINK+=”%k”, MODE=”0666″

Restart the service

sudo /etc/init.d/udev restart

now check it works fine:

mplayer tv:// -tv driver=v4l:width=640:height=480:device=/dev/video0

Now you end up with a perfectly working webcam, it’s time to check out the new cross plateform opensource webcam instant messaging:a
http://www.qutecom.org/

(And to drop Skype)