mardi 26 juillet 2011

Si vous êtes harcelé par un huissier ou un cabinet...

Source : Antibanque


Un organisme, une banque, une maison de crédit, un opérateur, une assurance ou autre, estime que vous leur devez de l’argent. Vous n’êtes pas d’accord et vous contestez.

Votre créancier mandate un cabinet de recouvrement. Et le harcèlement commence. Appels téléphoniques et correspondances quotidiennes avec menaces, chantage et intimidation.

Ils vont demander votre condamnation au tribunal, ils vont venir saisir vos meubles en votre absence, ils vont bloquer vos comptes, ponctionner votre salaire et même s’en prendre à votre entourage, parents, enfants, etc.

Cet enfer est une réalité pour des millions de nos concitoyens. Pourtant, il y a plusieurs choses qu’il faut savoir. D’abord, ces démarches sont illégales.

Si vous devez réellement de l’argent, votre créancier n’a qu’une possibilité : mandater un huissier pour qu’il fasse valider la créance auprès du tribunal d’instance. Le cas échéant, il obtient une ordonnance portant injonction de payer. Ensuite, il vous présente ce document. Vous avez un mois pour faire opposition. Ce que vous faites. Puis le juge vous convoque et vous pourrez lui exposer vos arguments.

Pour obtenir une telle ordonnance, l’huissier doit avoir un dossier en béton, sans vice de forme. En réalité, il est très rare qu’un créancier puisse fournir un tel dossier.

Comme il est sûr de se faire débouter par le juge, alors il utilise des moyens illégaux comme ceux que je viens d’exposer.

Si vous êtes la cible d’un de ces organismes, je vous conseille de lui faire adresser la lettre suivante en recommandé avec accusé de réception.


Messieurs,

Vous m’avez prévenu que l’organisme XXX vous a mandaté pour recouvrir une certaine créance.

Cette somme étant l’objet d’une contestation de ma part, j’use de mon droit de demander l’arbitrage de l’autorité judiciaire.

Il appartient donc à cet organisme de solliciter le juge d’instance aux fins d’obtenir une « ordonnance portant injonction de payer ».

Le cas échéant, dès que celle-ci me sera signifiée par voie d’huissier, et en fonction des éléments présentés, je me réserve le droit, soit de payer, soit d’y faire opposition dans le délai d’un mois.

Le juge d’instance ou de proximité me convoquera en audience et je pourrais alors lui exposer mon point de vue, documents à l’appui.

Le juge pourra alors valablement trancher sur la validité de ladite créance ou non.

Il n’y a pas d’autres procédures. Je vous demande donc expressément de cesser vos relances et d’informer l’organisme qui vous a mandaté de ma position.

A partir de la date de réception de cette lettre, toutes relances de votre part, tant par courrier que par téléphone, seront considérées comme du harcèlement et de l’intimidation. Je n’hésiterai pas à porter plainte pour ce motif, ce qui hypothèquera sérieusement vos chances d’obtenir la validation de la dette par les voies judiciaires.

Je vous prie de croire, messieurs, en l’expression de mes sentiments respectueux.


www.aplombfrance.fr

mardi 19 juillet 2011

GIMP dans UNE SEULE fenêtre !

Source : WebUpd8


GIMPBox: Get A Single-Window Mode In Stable GIMP (2.6.x)




GIMP Single Window GIMPBox

GIMP from SVN (2.7.x) comes with a built-in single-window mode (can be disabled) but I find it unstable sometimes so I prefer to use the stable GIMP 2.6.x, especially since there are so many goodies you can use to enhance it, like GIMP Painter and GIMP Paint Studio, G'MIC or the GIMP Plugin Registry package.

So if you want to use the stable GIMP 2.6.x (tested with GIMP 2.6.11 under Ubuntu 11.04) and still get a single-window mode in GIMP, here's how to do it using a script called GIMPBox.


GIMPBox is a python script which wraps all the GIMP windows into one window. It does not modify GIMP and you use it by changing the GIMP shortcut to launch GIMPBox instead of GIMP. You can open multiple images at the time thanks to a tab bar that GIMPBox will display at the bottom of the window (the tabs include previews too).


Before proceeding, there are a few issues that occur when using GIMPBox that you should know about:
  • when launching GIMPBox, there is a slight delay (probably 1-2 seconds) when GIMP is not running as single-window. But like I said, the delay is very small;
  • If you use Unity and AppMenu (Global Menu) is enabled, the GIMP menu won't show up on the top panel. You can still access the menu by right clicking inside the GIMP window or by running GIMPBox with a special command (see below) which will make the menu to show up in GIMP (but it's not possible to get the menu to show up on the top panel) like in my screenshot.
  • You can't open multiple images by right clicking an image and selecting to open it with GIMP.
  •  By default, the keyboard shortcuts won't work. However, there is a way around this: you can press TAB and then you should be able to use the keyboard shortcuts. This is only required once for a session, but if you edit multiple images in the same time and keep switching between them, you'll have to press TAB again to use keyboard shortcuts.
  • it doesn't work with GNOME3

If you are ok with these issue and want to use GIMPBox, let's proceed.



GIMPBox: single-window mode for GIMP (stable - 2.6.x)



1. Install the GIMPBox script.

If you want to take a look at the script, download it from HERE. For easier installation, copy/paste the commands below in a terminal:
sudo apt-get install python-wnck
sudo wget http://gimpbox.googlecode.com/hg/gimpbox.py -O /usr/local/bin/gimpbox
sudo chmod +x /usr/local/bin/gimpbox


2. Edit the GIMP shortcut to run the GIMPBox script instead of GIMP.

Search for "Main Menu" in Dash or for the classic GNOME desktop, right click the menu and select "Edit Menus". Then, under "Graphics" select "GIMP Image Editor", click Properties and:

a) If you don't use Unity with AppMenu (global menu), replace "gimp-2.6 %U" with "gimpbox %U":

GIMPBox



b) If you use Unity with AppMenu (global menu) enabled, replace "gimp-2.6 %U" with "env UBUNTU_MENUPROXY= gimpbox %U" (yes, there's a space after "="):

GIMP Single Window GIMPBOx

The special shortcut for those who use AppMenu is required because using GIMPBox, the AppMenu won't work. Using "UBUNTU_MENUPROXY= " will disable the AppMenu for GIMPBox so the menu will be displayed inside the window, like in my screenshot.


If you want to edit the system-wide GIMP shortcut, open a terminal and copy/paste this:
gksudo gedit /usr/share/applications/gimp.desktop

And in this file, use the same command as explained above (under a and b) for launching GIMP.



TIP: If you change Toolbox or the "Layers, Channels, Paths..." dialogs and they don't stick in GIMPBox anymore, close GIMP and run the following command to fix this:
rm ~/.gimp-2.6/sessionrc

Thanks to Pinguy for sending us the tip; info via PinguyOS forums (we've adapted the instructions for Unity / Appmenu; if you use the old GNOME2 Global Menu panel applet, see Pinguy's post for instructions on getting the menu to show in in GIMP/GIMPBox).

mardi 3 mai 2011

Fusionner deux vidéos AVI

cat file1.avi file2.avi file3.avi > video_draft.avi
mencoder video_draft.avi -o video_final.avi -forceidx -ovc copy -oac copy

Cool ! :) Linux c'est trop puissant :)

jeudi 28 avril 2011

MAJ Ubuntu 10.04 -> 11.04 = Kernel panic - not syncing VFS: Unable to mount root fs on unknown-block ()

"Oups" comme dirait l'autre !

LA solution : booter avec un liveCD kivabien puis :
mkdir /mnt/linux
mount /dev/sda1 /mnt/linux —-> sda1 is my system root partition
chroot /mnt/linux /bin/bash
mount -t proc /proc /proc
dpkg --reconfigure -a
puis éventuellement :

aptitude reinstall linux-image-2.6.38-8-generic

puis surtout : rebooter avec un vieux kernel en mode rescue et refaire un petit coup de
dpkg --reconfigure -a

vendredi 25 février 2011

Conversion MKV DTS vers AC3 : script automatisation

Encore un petit script maison bourrin :)
Edit du 1er mai 2011 : Support de la détection auto de la piste DTS FR

#!/bin/bash
SRC_FILE=$1
PISTEDTS=$2

function usage() {
    echo "Usage : mkv2ac3 source [PISTEDTS]"
    echo "Converti le fichier MKV-DTS en MKV-AC3-DTS"
    echo " Syntaxe :"
    echo "    source"
    echo "        le fichier MKV contenant a minima une piste DTS FR"
    echo "    PISTEDTS (optionnel) "
    echo "        le numéro de la piste DTS à convertir en AC3"
    echo " Dépendances :"
    echo "    libdca-utils    -    decoding library for DTS Coherent Acoustics streams (utilities)"
    echo "    aften        -    encodeur audio AC3"
    echo "    mediainfo    -    Informe du contenu d'une vidéo"
}


if [ -z "$SRC_FILE" ]; then
    usage
    exit 0
else
    if [ ! -f "$SRC_FILE" ]; then
        echo "Fichier $SRC_FILE introuvable"
        exit 0
    fi
fi

DTS=`echo "$SRC_FILE"|sed 's/\(.*\)mkv/\1dts/'`
AC3=`echo "$SRC_FILE"|sed 's/\(.*\)mkv/\1ac3/'`
DEST_FILE=`echo "$SRC_FILE"|sed 's/\(.*\)mkv/\1ac3.mkv/'`

#extraction du numéro de la piste DTS
if [ -z $PISTEDTS ]; then
    #INFO_MAX_LINE=`mkvinfo "$SRC" | grep -n Chapters | cut -d: -f1`
    #SUMMARY=head -n $INFO_MAX_LINE `mkvinfo --summary "$SRC"`
    mediainfo --Inform="Audio;Piste #2 %ID% (%Format%) -> %Language%\n" $SRC_FILE
    PISTEDTS=`mediainfo --Inform="Audio;%ID% %Format% %Language%\n" $SRC_FILE | grep "DTS" | grep "fr" | awk '{print $1}'`
    echo "Piste DTS FR détectée : #$PISTEDTS"
    read -p"Appuyer sur entrée pour continuer, ou spécifiez un n° de piste choisie : " reponse
    if [ "$reponse" != "" ]; then
        PISTEDTS=$reponse;
    fi
fi

echo "Extraction de la piste DTS #$PISTEDTS"
mkvextract tracks "$SRC_FILE" $PISTEDTS:"$DTS"

echo "Conversion de la piste DTS en AC3 $AC3"
dcadec -o wavall "$DTS" | aften -b 640 - "$AC3"

echo "Création du nouveau fichier MKV AC3/DTS $DEST_FILE"
mkvmerge -o "$DEST_FILE" \
--default-track 1:no --forced-track 1:yes -d 1 -s 4 -A -T --no-global-tags "$SRC_FILE" \
--language 0:fre --default-track 0:yes --forced-track 0:yes -a 0 -D -S -T --no-global-tags --no-chapters "$AC3" \
--language 0:fre --forced-track 0:no -a 0 -D -S -T --no-global-tags --no-chapters "$DTS" \
--track-order 0:1,1:0,2:0,0:4

Iphone : sonnerie personnalisée

Petit script bourrin maison.
#!/bin/bash
if [ ! -z "$1" ]; then
    echo "Fichier à transformer introuvable"
    echo "Usage : $0 [fichier.mp3]"
    exit 0
fi
echo Démarrage de la conversion MP3->M4R

mplayer -ao pcm $1 -ao pcm:file="$1.wav"
faac $1.wav -o $1.m4r
rm $1.wav
rename 's/\.mp3//' $1.m4r

dimanche 24 octobre 2010

Ajouter le SMTP de Gmail en SmartHost avec Postfix sous Ubuntu Server

Source : Blog Admin Linux

_______________

Voici un petit tuto permettant d’utiliser le smtp de gmail en smarthost (relay) avec le serveur de messagerie Postfix sur la distribution Ubuntu Server, ici une 9.10.

Bien sur, vous devez avoir au préalable votre serveur Postfix d’installé.

Il vous faut générer un certificat SSL pour votre serveur

Aller dans votre $HOME

root@votrehostname:~#cd ~

Puis générer le nouveau certificat :

Création du fichier « Certificate Authority »

$ /usr/lib/ssl/misc/CA.pl -newca
CA certificate filename (or enter to create)

Making CA certificate ...
Generating a 1024 bit RSA private key
........................................++++++
.............................................................................................++++++
writing new private key to './demoCA/private/cakey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:Nord
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Votre Organisation
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:votrehostname
Email Address []:test@gmail.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /usr/lib/ssl/openssl.cnf
Enter pass phrase for ./demoCA/private/cakey.pem:
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number:
c4:22:ea:51:7c:ba:68:9b
Validity
Not Before: Apr 12 09:52:02 2010 GMT
Not After : Apr 11 09:52:02 2013 GMT
Subject:
countryName = FR
stateOrProvinceName = Nord
organizationName = Votre Organisation
commonName = votrehostname
emailAddress = test@gmail.com
X509v3 extensions:
X509v3 Subject Key Identifier:
72:94:AE:2C:47:9E:A2:6E:28:6B:1A:68:51:E5:5A:3D:93:86:8C:95
X509v3 Authority Key Identifier:
keyid:72:94:AE:2C:47:9E:A2:6E:28:6B:1A:68:51:E5:5A:3D:93:86:8C:95
DirName:/C=FR/ST=Nord/O=Votre Organisation/CN=votrehostname/emailAddress=test@gmail.com
serial:C4:22:EA:51:7C:BA:68:9B

X509v3 Basic Constraints:
CA:TRUE
Certificate is to be certified until Apr 11 09:52:02 2013 GMT (1095 days)

Write out database with 1 new entries
Data Base Updated


Générer le certificat Serveur :

root@votrehostname:~# openssl req -new -nodes -subj '/CN=votrehostname/O=Votre Organisation/C=FR/ST=Nord/emailAddress=test@gmail.com' -keyout FOO-key.pem -out FOO-req.pem -days 3650
Generating a 1024 bit RSA private key
................................++++++
.++++++
writing new private key to 'FOO-key.pem'
-----


Vous constaterez bien sur que j’utilise les valeurs données plus haut.

Signer le certificat :

root@votrehostname:~# openssl ca -out FOO-cert.pem -infiles FOO-req.pem
Using configuration from /usr/lib/ssl/openssl.cnf
Enter pass phrase for ./demoCA/private/cakey.pem:
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number:
c4:22:ea:51:7c:ba:68:9c
Validity
Not Before: Apr 12 09:57:23 2010 GMT
Not After : Apr 12 09:57:23 2011 GMT
Subject:
countryName = FR
stateOrProvinceName = Nord
organizationName = Votre Organisation
commonName = votrehostname
emailAddress = test@gmail.com
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
D8:65:D7:DA:68:6C:34:00:14:63:98:B0:BD:C9:9D:67:A0:04:74:2E
X509v3 Authority Key Identifier:
keyid:72:94:AE:2C:47:9E:A2:6E:28:6B:1A:68:51:E5:5A:3D:93:86:8C:95

Certificate is to be certified until Apr 12 09:57:23 2011 GMT (365 days)
Sign the certificate? [y/n]:y

1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated


Copier les certificats dans votre dossier postfix :

root@votrehostname:~# mkdir /etc/postfix/certif
root@votrehostname:~# cp demoCA/cacert.pem FOO-key.pem FOO-cert.pem /etc/postfix/certif
root@votrehostname:~# chmod 644 /etc/postfix/FOO-cert.pem /etc/postfix/certif/cacert.pem
root@votrehostname:~# chmod 400 /etc/postfix/certif/FOO-key.pem

Gmail utilise un certificat Thawte Premium Server CA.

Il vous faut l’ajouter dans le fichier :

root@votrehostname:~# cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem >> /etc/postfix/certif/cacert.pem

Si vous ne faites pas ça, vous aurez le message suivant :
Server certificate not trusted

Attention il semblerait que Gmail a changé de certificat, je m’en suis rendu compte le 27 Mai 2010.

Il n’utilise plus un certicat Thawte mais Equifax

J’ai rencontré ce message d’erreur :

May 23 06:53:21 hostname postfix/smtp[20658]: certificate verification failed for smtp.gmail.com[209.85.229.109]:587: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority

Pour palier à ce problème, il suffit d’ajouter le bon certificat :

root@votrehostname:~# cat /etc/ssl/certs/Equifax_Secure_CA.pem >> /etc/postfix/cacert.pem

Configuration du serveur Postfix :

Pour cela, il faut modifier le fichier /etc/postfix/main.cf

## TLS Settings
#
smtp_tls_CAfile = /etc/postfix/certif/cacert.pem
smtp_tls_cert_file = /etc/postfix/certif/FOO-cert.pem
smtp_tls_key_file = /etc/postfix/certif/FOO-key.pem
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/certif/cacert.pem
smtpd_tls_cert_file = /etc/postfix/certif/FOO-cert.pem
smtpd_tls_key_file = /etc/postfix/certif/FOO-key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
#
## SASL Settings
# This is going in to THIS server
smtpd_sasl_auth_enable = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noanonymous
#smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtpd_sasl_application_name = smtpd

relayhost = [smtp.gmail.com]:587
transport_maps = hash:/etc/postfix/transport

Ajouter dans le fichier /etc/postfix/transport

gmail.com smtp:[smtp.gmail.com]:587

Ajouter dans le fichier /etc/postfix/sasl_passwd

[smtp.gmail.com]:587 test@gmail.com:password

Puis :

postmap sasl_passwd postmap transport /etc/init.d/postfix restart
Voilà, votre serveur est configuré

Nettoyer la création de certificat :

root@votrehostname:~# cd ~ rm FOO-req.pem FOO-cert.pem FOO-key.pem && rm -r demoCA/

Tester l’envoie de mail :

J’ai pour habitude de tester l’envoie de mail via telnet :

root@votrehostname:/etc/postfix# telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 hostname ESMTP Postfix (Ubuntu)
EHLO test@gmail.com
250-hostname
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM:test@gmail.com
250 2.1.0 Ok
RCPT TO:test@gmail.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject:test

test envoi de mail

.
250 2.0.0 Ok: queued as 9D381812
quit
221 2.0.0 Bye
Connection closed by foreign host.

Ce qui est en gras est a renseigner par vos soins bien sur icon wink Ajouter le SMTP de Gmail en SmartHost avec Postfix sous Ubuntu Server

Pour vérifier, faite un petit

mailq
ou
postqueue -p
Et vérifier dans le fichier /var/log/mail.log que vous n’avez pas d’erreur.