And back again to Ubuntu. I don't know why, but I always come back to Ubuntu.
After 3 months on openSUSE I got once more a confirmation that RPM based distributions aren't for me. I just don't like them - or I'm way too spoiled with DEB based distributions.
So I switched to LMDE and fulfilled a long-time wish to install a rolling release Debian Testing. But unfortunately the testing has sometimes bugs, and it gave me from time to time the impression, that even if I love to live on the edge with my PC, I should stick with something more ... proven ... stable ... familiar.
So this time I chose PinguyOS, build on top of Linux Mint and Ubuntu with a heavy load of PPAs and much software pre-installed.
First thing I had to do was to deactivate some PPAs, de-install some Thunderbird plug-ins and ready I was.
I'm always coming back to Ubuntu, no matter how many other distributions I try out, nothing gives me as much satisfaction as an Ubuntu based one.
It's only too bad that the ElementaryOS release I'm waiting for will be based on the next LTS (12.04) release of Ubuntu. Don't get me wrong, it's a great idea to release a stable version, but the waiting sucks...
Until then I hope I will be wise enough to be patient and wait.
jeudi 15 septembre 2011
dimanche 7 novembre 2010
Installer Android 2.2 sur HTC Tattoo Orange (fr) sous Linux
Préface
HTC a promis debut 2010 une mise à jour pour Android 2.1 pour le HTC Tattoo, mais de plus en plus il y a des messages dans les forums divers, que HTC ne compte pas à faire une mise à jour de Android 1.6 (version actuel sur les derniers Tattoos). Mécontent de cet attitude envers les proprietaires d'un HTC Tattoo, j'ai décidé d'installer un micrologiciel customisé (basé sur Android 2.2) sur mon Tattoo.
Après plusieurs heures de recherches (surtout sur le forum de xda-developers.com) et plusieurs tentatives, voici les démarches à faire.
Attention : vous faites des modifications importantes sur votre mobile, je ne suis pas responsable si vous cassez votre mobile (normalement tout est réparable).
Ceci a été effectué sous openSUSE 11.3.
Installer le Android SDK et connecter le Tattoo
D'abord il faut se procurer du SDK pour Android ici : http://developer.android.com/sdk/index.html.
Ensuite extraire l'archive téléchargé dans un dossier facile à atteindre (/home/marc-andre/Android-SDK dans mon cas) et pour faciliter les tâches suivantes, mettre à jour les chemins :
Mettez votre Tattoo en mode débogage USB : Paramètres -> Applications -> Développement -> Débogage USB et connectez votre Tattoo avec le câble USB à l'ordinateur.
Maintenant taper les commandes suivantes :
adb devices
Si vous-avez un résultat comme ceci :
HT9A2LG13080 device
vous êtes bon pour la suite.
Créer la GoldCard
Pour forcer le Tattoo à accepter nos actions, il faut créer une goldcard, donc une carte MicroSD modifié. Une GoldCard permet de simuler un CID d'un HTC nu.
Tapez la commade suivante :
(Attention : avec les guillemets !)
Copiez le code hexadécimal affiché (ça ressemble à ça : 532600bd227d9c0347329407514d5402) et allez sur http://hexrev.soaa.me/, coller le code dans le champs et soumettez le.
Copiez ensuite le nouveau code et allez ici : http://psas.revskills.de/?q=goldcard.
Remplissez le formulaire avec votre adresse mail valide (vous recevez la GoldCard sur cette adresse mail) et collez le code copié précédemment, passer le test anti-spam et envoyez le formulaire.
Faites une sauvegarde de votre MicroSD sur votre ordianteur (il faut imperativement brancher la carte sur votre ordinateur - avec un lecteur de carte par example). Puis formatez la carte en VFAT (FAT32).
Si vous avez reçu votre GoldCard par mail, on peut continuer par la commande suivante (Attention, indiquez les bons chemins vers goldcard.img et votre carte SD !) :
Remettez la carte dans votre Tattoo puis démarrez le.
Forcer le root sur Tattoo
Pour pouvoir continuer, il nous faut l'accès du superutilisateur. Hélas, sous le micrologiciel de HTC, on peut pas avoir par défaut accès en root. Il faut qu'on utilise une faille dans le noyau fourni par HTC (et depuis la connaissance de cette faille, celle-ci n'a pas été corrigé - tant mieux pour nous).
Téléchargez mon archive http://www.mediafire.com/?md0icohcexd5zv8 et décompressez-le dans un dossier facile a retenir (/home/marc-andre/assets dans mon cas).
Maintenant on va copier un petit logiciel sur le Tattoo pour exploiter cette faille et qui nous permet d'avoir l'accès en mode superutilisateur, pour cela faites :
adb push /home/marc-andre/assets/exploit-m7/m7 /data/local/bin/m7 #comme toujours mon cas
adb push /home/marc-andre/assets/flash_image /data/local/bin/flash_image
adb push /home/marc-andre/assets/su /data/local/bin/su
adb push /home/marc-andre/assets/tattoo-hack/tattoo-hack.ko /data/local/bin/tattoo-hack.ko
adb push /home/marc-andre/assets/boot.img /data/local/bin/boot.img
adb push /home/marc-andre/assets/recovery-tattoo.img /data/local/bin/recovery-tattoo.img
adb shell "cd /data/local/bin && chmod 755 ./m7"
Et maintenant il faut aller dans la console et exécuter m7 :
$ cd /data/local/bin
$ while ./m7 ; do : ; done
Il y a certainement plusieurs lignes qui défilent, c'est tout a fait normale, et à la fin vous avez un '#' (il se peut qu'il faut d'abord appuyer sur Entrée pour faire un saut à la ligne). Nous avons accès en mode superutilisateur ! Pour vérifier si c'est le cas, tapez :
# export PATH=/system/bin
# id
Si vous-avez l'affiche suivante :
ça veut dire que c'est bon (notez le 'root').
Pour que ça reste comme ça (et encore plus), il faut passer à l'étape suivante.
Installation de 'su' et nouveau bootloader
Toujours dans la console du Tattoo tapez :
# chmod 4755 /data/local/bin/su
# insmod /data/local/bin/tattoo-hack.ko
# mount -o rw,remount /dev/block/mtdblock5 /data
# mount -o rw,remount /dev/block/mtdblock3 /system
# mv /data/local/bin/su /system/bin/su
(Si vous recevez un erreur pour le tattoo-hack.ko, essayez l'autre dans le dossier tattoo-hack-g6561203)
Ouvrez maintenant une autre console Linux, et essayez si 'su' vous donne accès en mode superutilisateur :
$ /data/local/bin/su
Si vous avez un '#', c'est bon.
Et avant tout, on installe le nouveau bootloader :
# /data/local/bin/flash_image boot /data/local/bin/boot.img
Une fois achève, redémarrez votre Tattoo avec :
Remplacer le mode recovery
Une fois votre Tattoo est redémarré, retournez dans la console du Tattoo, et normalement vous êtes déjà superutilisateur :
# /data/local/bin/flash_image recovery /data/local/bin/recovery-tattoo.bin
puis
Dès que votre Tattoo est en mode recovery, par la console faites :
# /sbin/bart -a -b -c --norecovery
pour faire une sauvegarde de votre installation et redemarrez votre Tattoo :
Flasher le nouveau ROM sur le Tattoo
Après la sauvegarde, il nous reste que de choisir le ROM à installer. Moi pour ma part, j'ai choisi "fyodor FroYo AOSP Tattoo v0.7.2c" (faites un tour sur http://forum.xda-developers.com/forumdisplay.php?f=544 pour regarder les pour et contres de tous les ROMs).
Copiez d'abord le fichier update.zip (ou le ROM de votre choix renommé en update.zip) sur la carte SD :
adb shell reboot recovery
Quand votre Tattoo est de nouveau dans le recovery, videz d'abord le cache Dalvik et Data. Et ensuite choisissez Flash update.zip. L'installation du nouveau ROM est en route.
Après l'installation, redémarrez votre Tattoo et voilà, vous êtes partie sous Android 2.2 !
Par contre il manque les Google Apps, vous les trouvez ici : http://goo.gl/oetkQ.
Dans la console :
adb shell reboot recovery
et dans le mode recovery juste flasher le ZIP de la carte SD.
Épilogue
Pour passer mon Tattoo sous Android 2.2 il m'as fallu 2 jours. J'ai écrit ce tutoriel de mémoire et avec l'historique de mon navigateur pour retrouver mon chemin. En plus je ne suis pas trop doué pour écrire des tutoriaux, vous m'excusez.
Je ne suis pas sur s'il faut passer vraiment par toutes les étapes ci-dessus, mais ça peut pas faire de mal.
Mais si jamais vous rencontrez un problème, n'hésitez pas de laisser un commentaire pour que je peut mettre à jour mon tutoriel avec la partie manquant / fausse.
Crédits
Aux développeurs du http://forum.xda-developers.com.
jeudi 28 octobre 2010
Kubuntu 10.10 ditched in favor of openSUSE 11.3
Enough is enough...
After a change to Ubuntu 10.04 in begin of June, I switched back to Kubuntu 10.04 in September due to a buggy Gnome (for example this long-known bug with copy & past not working after you close the software of origin) and other reasons. But Kubuntu didn't look nice either, and felt as well unstable and slow. I nevertheless waited for 10.10 to come out and to do an upgrade, but it just got worse. The software I need for my work didn't function as expected (take Skype for example).
Research
I did some research about opinions from others for a stable workstation Linux. The main contestants were Red Hat or SLED. Fedora, the offspring of Red Hat is cutting etch and therefor object to possible breaks in software. Nothing I can use. So I installed openSUSE in VirtualBox and gave it a tryout. The first impression was more then good, the difference between Kubuntu and it are big.
It's done...
So I ditched this week my Kubuntu 10.10 installation for openSUSE 11.3.
But what i missed straight away was dash (the bash replacement under Ubuntu), it will take some time, but I will get used to it.
What else struggled me was the RPM package management system. It is far from as smooth as the Debian packaging system; mostly I had problems with dependency resolution - or I just do not know yet how to use it correctly. And when talking about the packaging system, I was (and am) quiet confused with the repositories under openSUSE. So what I appreciated much, the first moment I knew about it, is the package search on software.opensuse.org, so no need to search a long time for a certain package in some lost repository (or a PPA for Ubuntu).
It feels good
For now I can feel more stability and cohesion in openSUSE then I felt in Kubuntu for a long time. My Skype worked straight out the box, I got Sun/Oracle Java and VirtualBox installed and can code right away without having the impression that my workstation is an old 486.
Just on my servers I will hold on to Ubuntu, I cannot afford it to have downtime on them just because I messed something up as long as I am not familiar to zypper...
PS: My favorite game OpenTTD did install completely with the necessary content and works great !
After a change to Ubuntu 10.04 in begin of June, I switched back to Kubuntu 10.04 in September due to a buggy Gnome (for example this long-known bug with copy & past not working after you close the software of origin) and other reasons. But Kubuntu didn't look nice either, and felt as well unstable and slow. I nevertheless waited for 10.10 to come out and to do an upgrade, but it just got worse. The software I need for my work didn't function as expected (take Skype for example).
Research
I did some research about opinions from others for a stable workstation Linux. The main contestants were Red Hat or SLED. Fedora, the offspring of Red Hat is cutting etch and therefor object to possible breaks in software. Nothing I can use. So I installed openSUSE in VirtualBox and gave it a tryout. The first impression was more then good, the difference between Kubuntu and it are big.
It's done...
So I ditched this week my Kubuntu 10.10 installation for openSUSE 11.3.
But what i missed straight away was dash (the bash replacement under Ubuntu), it will take some time, but I will get used to it.
What else struggled me was the RPM package management system. It is far from as smooth as the Debian packaging system; mostly I had problems with dependency resolution - or I just do not know yet how to use it correctly. And when talking about the packaging system, I was (and am) quiet confused with the repositories under openSUSE. So what I appreciated much, the first moment I knew about it, is the package search on software.opensuse.org, so no need to search a long time for a certain package in some lost repository (or a PPA for Ubuntu).
It feels good
For now I can feel more stability and cohesion in openSUSE then I felt in Kubuntu for a long time. My Skype worked straight out the box, I got Sun/Oracle Java and VirtualBox installed and can code right away without having the impression that my workstation is an old 486.
Just on my servers I will hold on to Ubuntu, I cannot afford it to have downtime on them just because I messed something up as long as I am not familiar to zypper...
PS: My favorite game OpenTTD did install completely with the necessary content and works great !
mardi 29 juin 2010
My *NIX history
1995 - 1996
First time I got in touch with *NIX was with FreeBSD back in 1995, when it was featured in a PC magazine (I do not remember which one it was). Back then I was young and just attracted by the idea of a different OS, other then Windows 3.11/DOS. But you can imagine that - as a Windows 3.11 user - it was something I couldn't possibly understand nor use.
1997 - 1999
In 1997 I got in touch with Corel Linux, tried it on my PC but still didn't got the idea about incompatibility between Microsoft products and Linux, so I dumped it fast as I couldn't do anything with it. And while in my civil service, a student showed me SuSE Linux on his PC; but my previous experience with Corel Linux kept me on distance.
2000 - 2003
Back in 1999 I got an old IBM laptop and had already 2 PCs with Windows installed. And I had a RedHat Distribution on hand, so I gave Linux another try.
I liked it, and - as I wasn't depending on my laptop as my sole PC - kept it installed. I got in touch with other Linux users on IRC and at this time (like it is still the case today), working in the console was cool.
After some weeks I replaced RedHat with Slackware, because I wanted something "hard" to work with. I managed to get wireless and sound working on my old laptop. The console was my home for a long time, with ncurses there were so many applications perfectly running in it. The same time, when I worked with a fellow webdesigner, we used a SuSE Linux server. I liked very much Yast to keep control over the system.
To keep trying something different, in 2002 I replaced on one of my PCs Windows with BeOS (not quiet a *NIX). It was a nice OS, but unfortunately without a future.
2005 - present
As my life got a bit turbulent in 2004, I did not have any PC until 2005 when I bought a Toshiba Laptop. And at first I started with Fedora. And as usual, I couldn't stay with it and wanted again something different, and so I found Ubuntu.
It should be the beginning of a long relation as my favourite Linux distribution.
Over the last couple of years I tried other OS as well, like MirOS and other BSD derivatives, Solaris, Darwin and countless Linux distributions (thank you dual-boot and VirtualBox).
On the server-side I used for about a year Gentoo, but changed afterwards to Ubuntu Server, because that way I have the same tool-set as on my workstation (call me lazy).
Since I work as a developer for Sudimage (4 years now), I only used the KDE-based Kubuntu, but recently i switched to Ubuntu with Gnome.
Future
Now I keep a closer look on the Elementary OS as my future OS.
Not yet
What I never tried yet (but what I wish to do as soon as possible):
First time I got in touch with *NIX was with FreeBSD back in 1995, when it was featured in a PC magazine (I do not remember which one it was). Back then I was young and just attracted by the idea of a different OS, other then Windows 3.11/DOS. But you can imagine that - as a Windows 3.11 user - it was something I couldn't possibly understand nor use.
1997 - 1999
In 1997 I got in touch with Corel Linux, tried it on my PC but still didn't got the idea about incompatibility between Microsoft products and Linux, so I dumped it fast as I couldn't do anything with it. And while in my civil service, a student showed me SuSE Linux on his PC; but my previous experience with Corel Linux kept me on distance.
2000 - 2003
Back in 1999 I got an old IBM laptop and had already 2 PCs with Windows installed. And I had a RedHat Distribution on hand, so I gave Linux another try.
I liked it, and - as I wasn't depending on my laptop as my sole PC - kept it installed. I got in touch with other Linux users on IRC and at this time (like it is still the case today), working in the console was cool.
After some weeks I replaced RedHat with Slackware, because I wanted something "hard" to work with. I managed to get wireless and sound working on my old laptop. The console was my home for a long time, with ncurses there were so many applications perfectly running in it. The same time, when I worked with a fellow webdesigner, we used a SuSE Linux server. I liked very much Yast to keep control over the system.
To keep trying something different, in 2002 I replaced on one of my PCs Windows with BeOS (not quiet a *NIX). It was a nice OS, but unfortunately without a future.
2005 - present
As my life got a bit turbulent in 2004, I did not have any PC until 2005 when I bought a Toshiba Laptop. And at first I started with Fedora. And as usual, I couldn't stay with it and wanted again something different, and so I found Ubuntu.
It should be the beginning of a long relation as my favourite Linux distribution.
Over the last couple of years I tried other OS as well, like MirOS and other BSD derivatives, Solaris, Darwin and countless Linux distributions (thank you dual-boot and VirtualBox).
On the server-side I used for about a year Gentoo, but changed afterwards to Ubuntu Server, because that way I have the same tool-set as on my workstation (
Since I work as a developer for Sudimage (4 years now), I only used the KDE-based Kubuntu, but recently i switched to Ubuntu with Gnome.
Future
Now I keep a closer look on the Elementary OS as my future OS.
Not yet
What I never tried yet (but what I wish to do as soon as possible):
- Debian
- Arch
- DragonFly BSD
- CentOS (as server OS)
Ces derniers heures [suivi]
Ceci est un suivi sur Ces derniers heures.
Maintenant pour du vrai, ces derniers heures ont sonné. Tout à été transféré temporairement vers nos serveurs récent, en attend de créer les hébergements définitif.
Ces derniers heures ont duré quand-même presque 2 ans.
Maintenant pour du vrai, ces derniers heures ont sonné. Tout à été transféré temporairement vers nos serveurs récent, en attend de créer les hébergements définitif.
Ces derniers heures ont duré quand-même presque 2 ans.
lundi 14 juin 2010
[Screencast] Magento - Création d'un article configurable
Voici mon premier screen-cast concernant Magento et la création d'un article configurable. La vidéo est en cours de édition.
(Si la vidéo s'affiche pas correctement, allez sur www.youtube.com/watch?v=rByeeOHDCw4)
Un tutoriel pour le changement automatique des images après la sélection d'une option est en préparation.
(Si la vidéo s'affiche pas correctement, allez sur www.youtube.com/watch?v=rByeeOHDCw4)
Un tutoriel pour le changement automatique des images après la sélection d'une option est en préparation.
vendredi 4 juin 2010
PrestaShop vs. Magento CE
After a half year with PrestaShop as our proposed solution for e-commerce websites, and another half year with Magento CE as our 'new' solution, here is a small review from our experience :
+ Pro :
But already after a short while we got more and more costumers dissatisfied with the look and feel of the back-office, and we got more and more bug reports as well. The only answers to those bugs were workarounds with other modules to circumvent the problems. This is unacceptable for our clients and puts us into a bad light.
So we were looking for an alternative.
+ Pro :
As with PrestaShop, modifications are not done on the core files, but as extended classes to the MVC, or in creating a cascading folder tree to rewrite template files.
PrestaShop may be great for DIY users, but for us it is not something we can install for our clients. It is fast deployed and easily adapted to the design you wish for it. But the limitations you have - even if you could extend it - are a no-go. Someone who has the time to extend it to his needs, that is great, but in our business : time is money. That applies as well on the bug-hunting in PrestaShop installations, and more on the waiting for bug-fixes from the project.
Magento CE is a hard one at first, but after 3 - 4 installations and modifications of the base system, you get to know it. A negative side is, that you have to search a long time if you have questions, but when you find what you are looking for, you can be sure it is well documented. Just be sure to look for the right version of Magento.
Magento CE is for us the way to go !
PS : If I need to write a non-common extension to Magento CE, I will try to write a how-to. Maybe one of you can use it later.
PrestaShop
+ Pro :
- Easy installation
- Easy to modify (making changes to the behaviour without affecting the core files)
- Good template system (Smarty)
- Fast response-time from the community
- Buggy (core AND modules)
- Limited for extended needs
- Toy-like interface
- Rare updates and almost no bug-fixes
But already after a short while we got more and more costumers dissatisfied with the look and feel of the back-office, and we got more and more bug reports as well. The only answers to those bugs were workarounds with other modules to circumvent the problems. This is unacceptable for our clients and puts us into a bad light.
So we were looking for an alternative.
Magento CE
+ Pro :
- Stable core (based on Zend Framework)
- Very broad base of functions included, almost no limits for extensions
- Professional looking Front and Back-office
- Many extensions available with an easy upgrade function (Magento Connect)
- Installation can be tricky, moving an installation is very hard
- Modifications are difficulty to realise for newcomers
- Templates are not easily to maintain, you need to know the way how Magento CE works to know where you have to modify what .phtml file
- The responsiveness of the community forum is almost inexistant
As with PrestaShop, modifications are not done on the core files, but as extended classes to the MVC, or in creating a cascading folder tree to rewrite template files.
What did we learn
PrestaShop may be great for DIY users, but for us it is not something we can install for our clients. It is fast deployed and easily adapted to the design you wish for it. But the limitations you have - even if you could extend it - are a no-go. Someone who has the time to extend it to his needs, that is great, but in our business : time is money. That applies as well on the bug-hunting in PrestaShop installations, and more on the waiting for bug-fixes from the project.
Magento CE is a hard one at first, but after 3 - 4 installations and modifications of the base system, you get to know it. A negative side is, that you have to search a long time if you have questions, but when you find what you are looking for, you can be sure it is well documented. Just be sure to look for the right version of Magento.
Magento CE is for us the way to go !
PS : If I need to write a non-common extension to Magento CE, I will try to write a how-to. Maybe one of you can use it later.
Inscription à :
Messages (Atom)