constant stream of curated content
Category • Technologie
 Array
(
    [id] => 9mAc
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2019-01-29 04:18:15
    [kind] => memo
    [access] => 9
    [title] => 11 essentials online tools
    [content] => Here is some essentials online tools that deserves to be known:

[size=2]1[/size] Minify your php script with [url=http://www.cuho.eu/php-minify/]minifyPHP[/url]

[size=2]2[/size] Minify your javascripts with [url=https://www.websiteplanet.com/fr/webtools/jscssminifier/]jscssminifier[/url]

[size=2]3[/size] Un-minify your javascripts with [url=http://jsbeautifier.org/]jsbeautifier[/url]

[size=2]4[/size] Compare two files online with [url=http://www.diffnow.com/]diffnow[/url]

[size=2]5[/size] A web interface to connect to your ftp server: [url=http://www.net2ftp.com/]net2ftp[/url]

[size=2]6[/size] Take a snapshot of a website with different browsers and screen sizes with [url=http://browsershots.org/]browsershots[/url]

[size=2]7[/size] Create a favicon online from an image with [url=http://www.chami.com/html-kit/services/favicon/]this service from chami.com[/url]

[size=2]8[/size] Crack your pdf online with [url=http://www.pdfcrack.com/]pdfcrack[/url]

[size=2]9[/size] Decode a barcode by uploading an image to [url=http://www.onlinebarcodereader.com/]onlinebarcodereader[/url]

[size=2]10[/size] Download every online video with [url=http://keepvid.com/]keepvid[/url]

[size=2]11[/size] Create an animated GIF with [url=http://gifmaker.me/]GifMaker[/url]

[size=2]12[/size] Create a custom map from OSM datas with [url=http://maposmatic.org/]Maposmatic[/url]
    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 1
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2019-01-29 04:18
Here is some essentials online tools that deserves to be known:

1 Minify your php script with minifyPHP

2 Minify your javascripts with jscssminifier

3 Un-minify your javascripts with jsbeautifier

4 Compare two files online with diffnow

5 A web interface to connect to your ftp server: net2ftp

6 Take a snapshot of a website with different browsers and screen sizes with browsershots

7 Create a favicon online from an image with this service from chami.com

8 Crack your pdf online with pdfcrack

9 Decode a barcode by uploading an image to onlinebarcodereader

10 Download every online video with keepvid

11 Create an animated GIF with GifMaker

12 Create a custom map from OSM datas with Maposmatic
 Array
(
    [id] => HP19
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2013-11-06 20:19:26
    [kind] => memo
    [access] => 9
    [title] => Leica III teardown
    [content] => This tutorial is covering an almost complete teardown of one of the first rangefinder cameras ever produced, the Leica F (or Leica III), produced from 1935 to 1940.

This tutorial covers the first model of Leica III. You will find great similarities with models IIIa and IIIb. Models from Leica IIIc are really different by design.

By "almost complete disassembly", I mean allowing access to most parts of the camera, if the curtains are dead of course, you will have some more screws to remove.

[size=1.2]Hardware[/size]
- Several small flat screwdriver if possible magnetized . Note that the so-called " precision " commercially screwdriver may be too big for the watch .
- A clean brush to remove dust ;
- A flat nose pliers if you want to try removing the rangefinder in warrior mode.
- A box with compartments in order to place as and when the various screws you remove .


[size=1.2]Preliminary Note[/size]

If you want to adjust the curtains' tension, there's no need to teardown the whole camera, this setting is at the bottom, by removing the small black screws that release the adjusting gears.
[img=https://daryo.com/data/asset/LNiw_17wtmk_1_AD9ea.jpg]



[size=1.2]Step 1 - Removal of the camera body[/size]

Begin by removing the base and the cylinder of the film.
[img=https://daryo.com/data/asset/LNiw_1wtmk_Wf0Tr.jpg]

After locking the lens, remove it.
Remove the four screws that secure the support of the lens.

Warning , the bottom two screws hold a small metal plate. Avoid dropping it on the curtains.
[img=https://daryo.com/data/asset/LNiw_2wtmk_NQ2Vx.jpg]

Remove the last screw holding the upper plate.
[img=https://daryo.com/data/asset/LNiw_3wtmk_VIoJ4.jpg]

You should be there.
[img=https://daryo.com/data/asset/LNiw_4wtmk_H3Rly.jpg]

Remove the three screws on the front panel of the unit.
[img=https://daryo.com/data/asset/LNiw_5wtmk_ddYmR.jpg]

Remove the scew that secure the slow shutter knob, remove the three screws that sits behind. Memorize how these parts are mounted, if necessary by taking pictures.
[img=https://daryo.com/data/asset/LNiw_6wtmk_1_qLmfm.jpg]

Remove the five screws that hold the top of the unit to the housing. There are two in front, three behind.
[img=https://daryo.com/data/asset/LNiw_8wtmk_1_AbSSO.jpg]

You can now slide the camera from the case. Pay close attention to the rangefinder arm, which should be kept inside during the operation.
[img=https://daryo.com/data/asset/LNiw_9wtmk_1_35B7y.jpg]

The first step is now complete.


[size=1.2] Step 2 - Removing the rangefinder cover[/size]

To give you an idea, here is the final result we want to achieve.
[img=https://daryo.com/data/asset/LNiw_18wtmk_1_v89Fc.jpg]


Remove the screw that secures the left viewfinder.
[img=https://daryo.com/data/asset/LNiw_10wtmk_1_iRYWe.jpg]

Remove the viewfinder by gently pulling it backwards.
Loosen the rear screw.
Remove the main viewfinder by unscrewing it (if necessary use a pair of pliers, without forcing on optical)
[img=https://daryo.com/data/asset/LNiw_15wtmk_1_GvsJD.jpg]

Unscrew the rangefinder right lens.
[img=https://daryo.com/data/asset/LNiw_11wtmk_1_gPOHO.jpg]

Turn the unit and remove the screw shown in the picture.
[img=https://daryo.com/data/asset/LNiw_12wtmk_1_m5XgW.jpg]

Remove the optical pull strap of the rangefinder left lens by unscrewing it.
[img=https://daryo.com/data/asset/LNiw_13wtmk_1_EqwcF.jpg]

Remove the optical by turning it very gently (with a pair of pliers if needed).
[img=https://daryo.com/data/asset/LNiw_14wtmk_1_4AIZ8.jpg]

Remove the top plate which is held by three screws, remove the small screw from the shutter time selector and unscrew it.
[img=https://daryo.com/data/asset/LNiw_16wtmk_1_c2XcX.jpg]

Normally you're there. You can now remove the top cover.
[img=https://daryo.com/data/asset/LNiw_21wtmk_1_hVPVT.jpg]

You now have access to the shutter mechanism ...
[img=https://daryo.com/data/asset/LNiw_19wtmk_1_AYBiz.jpg]

... and to the rangefinder.
[img=https://daryo.com/data/asset/LNiw_20wtmk_1_eFZ45.jpg]


To reassemble, follow this tutorial in reverse, and TAKE YOUR TIME. There is nothing worse than having to re-disassemble the whole stuff because you forget a screw.
    [language] => en
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2013-11-06 20:19
This tutorial is covering an almost complete teardown of one of the first rangefinder cameras ever produced, the Leica F (or Leica III), produced from 1935 to 1940.

This tutorial covers the first model of Leica III. You will find great similarities with models IIIa and IIIb. Models from Leica IIIc are really different by design.

By "almost complete disassembly", I mean allowing access to most parts of the camera, if the curtains are dead of course, you will have some more screws to remove.

Hardware
- Several small flat screwdriver if possible magnetized . Note that the so-called " precision " commercially screwdriver may be too big for the watch .
- A clean brush to remove dust ;
- A flat nose pliers if you want to try removing the rangefinder in warrior mode.
- A box with compartments in order to place as and when the various screws you remove .


Preliminary Note

If you want to adjust the curtains' tension, there's no need to teardown the whole camera, this setting is at the bottom, by removing the small black screws that release the adjusting gears.




Step 1 - Removal of the camera body

Begin by removing the base and the cylinder of the film.


After locking the lens, remove it.
Remove the four screws that secure the support of the lens.

Warning , the bottom two screws hold a small metal plate. Avoid dropping it on the curtains.


Remove the last screw holding the upper plate.


You should be there.


Remove the three screws on the front panel of the unit.


Remove the scew that secure the slow shutter knob, remove the three screws that sits behind. Memorize how these parts are mounted, if necessary by taking pictures.


Remove the five screws that hold the top of the unit to the housing. There are two in front, three behind.


You can now slide the camera from the case. Pay close attention to the rangefinder arm, which should be kept inside during the operation.


The first step is now complete.


Step 2 - Removing the rangefinder cover

To give you an idea, here is the final result we want to achieve.



Remove the screw that secures the left viewfinder.


Remove the viewfinder by gently pulling it backwards.
Loosen the rear screw.
Remove the main viewfinder by unscrewing it (if necessary use a pair of pliers, without forcing on optical)


Unscrew the rangefinder right lens.


Turn the unit and remove the screw shown in the picture.


Remove the optical pull strap of the rangefinder left lens by unscrewing it.


Remove the optical by turning it very gently (with a pair of pliers if needed).


Remove the top plate which is held by three screws, remove the small screw from the shutter time selector and unscrew it.


Normally you're there. You can now remove the top cover.


You now have access to the shutter mechanism ...


... and to the rangefinder.



To reassemble, follow this tutorial in reverse, and TAKE YOUR TIME. There is nothing worse than having to re-disassemble the whole stuff because you forget a screw.
 Array
(
    [id] => LNiw
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2013-11-06 20:12:14
    [kind] => memo
    [access] => 9
    [title] => Démontage du Leica III
    [content] => [url=http://daryo.com/element/leica-iii-teardown,HP19]English version[/url]

Nous allons procéder au démontage quasi-complet de l'un des premiers appareils photos à mise au point télémétrique jamais produit, le Leica F (ou Leica III), produit de 1935 a 1940.

Ce tutoriel couvre le premier modèle de Leica III. Vous trouverez de grandes similarités avec les modèles IIIa et IIIb. Les modèles à partir du Leica IIIc sont largement différents dans leur conception.

Par démontage quasi-complet, j’entends permettre l’accès à la plupart des éléments de l'appareil, bien évidemment si les rideaux sont morts, vous aurez quelques vis de plus à enlever.

[size=1.2]Matériel[/size]
- Plusieurs petits tournevis plats si possible aimantés. Notez bien que les tournevis dits "de précision" vendus dans le commerce peuvent être encore trop gros pour de l'horlogerie.
- Un pinceau propre, pour enlever les poussières;
- Une pince à bec plat si vous voulez vous tenter le démontage du télémètre en mode warrior.
- Une boîte avec casiers afin d'y placer au fur et à mesure les différentes vis que vous enlevez.


[size=1.2]Note préliminaire[/size]

Si vous cherchez à régler la tension des rideaux, inutile de démonter tout l'appareil, ça se règle en dessous, en retirant les petites vis noir qui dégagent les roues dentées permettant le réglage.
[img=https://daryo.com/data/asset/LNiw_17wtmk_1_AD9ea.jpg]



[size=1.2]Étape 1 - Retrait du corps de l'appareil[/size]

Commencez par retirer le socle et le cylindre de la pellicule.
[img=https://daryo.com/data/asset/LNiw_1wtmk_Wf0Tr.jpg]

Après avoir verrouillé l'objectif, dévissez-le, puis retirez les 4 vis qui maintiennent le support de l'objectif.

Attention, les deux vis du bas maintiennent une petite plaque de métal. Évitez de la faire tomber sur les rideaux.
[img=https://daryo.com/data/asset/LNiw_2wtmk_NQ2Vx.jpg]

Retirez cette dernière vis, en retenant la plaque de maintien supérieure.
[img=https://daryo.com/data/asset/LNiw_3wtmk_VIoJ4.jpg]

Vous devriez en être là.
[img=https://daryo.com/data/asset/LNiw_4wtmk_H3Rly.jpg]

Retirez ensuite les trois vis de la face avant de l'appareil.
[img=https://daryo.com/data/asset/LNiw_5wtmk_ddYmR.jpg]

Démontez le bouton de réglage de l'obturation lente, en enlevant la première vis, puis les trois qui sont derrière. Mémorisez bien la façon dont ces différentes pièces sont montées, au besoin en prenant des photos.
[img=https://daryo.com/data/asset/LNiw_6wtmk_1_qLmfm.jpg]

Retirez les cinq vis qui maintiennent le haut de l'appareil au boîtier. Il y en a deux devant, trois derrière.
[img=https://daryo.com/data/asset/LNiw_8wtmk_1_AbSSO.jpg]

L'intérieur de l'appareil peut maintenant coulisser. Faites très attention au bras du télémètre, qui doit être maintenu à l'intérieur durant l'opération.
[img=https://daryo.com/data/asset/LNiw_9wtmk_1_35B7y.jpg]

La première étape est terminée.




[size=1.2]Étape 2 - Démontage du capot du télémètre.[/size]

Afin de vous faire une idée, voici le résultat final auquel nous voulons parvenir.
[img=https://daryo.com/data/asset/LNiw_18wtmk_1_v89Fc.jpg]


Retirez la vis qui bloque le viseur du télémètre.
[img=https://daryo.com/data/asset/LNiw_10wtmk_1_iRYWe.jpg]

Retirez le viseur en le tirant délicatement vers l'arrière.
Dévissez la vis arrière.
Enlever le viseur principal en le dévissant (au besoin munissez-vous d'une pince, sans trop forcer sur les optiques)
[img=https://daryo.com/data/asset/LNiw_15wtmk_1_GvsJD.jpg]

Dévissez l'objectif de droite du télémètre.
[img=https://daryo.com/data/asset/LNiw_11wtmk_1_gPOHO.jpg]

Retournez l'appareil et retirez la vis indiquée sur la photo.
[img=https://daryo.com/data/asset/LNiw_12wtmk_1_m5XgW.jpg]

Retirez en le dévissant le cerclage de l'optique de l'objectif gauche du télémètre.
[img=https://daryo.com/data/asset/LNiw_13wtmk_1_EqwcF.jpg]

Retirez l'optique en la dévissant très délicatement, puis dévissez la vis centrale de l'objectif.
[img=https://daryo.com/data/asset/LNiw_14wtmk_1_4AIZ8.jpg]

Retirez la plaque supérieure qui est maintenue par trois vis, retirez la petite vis du sélecteur de temps d'obturation, et dévissez-le.
[img=https://daryo.com/data/asset/LNiw_16wtmk_1_c2XcX.jpg]

Normalement vous en êtes là. Vous pouvez maintenant enlever le capot.
[img=https://daryo.com/data/asset/LNiw_21wtmk_1_hVPVT.jpg]

Vous avez maintenant accès au mécanisme d'obturation...
[img=https://daryo.com/data/asset/LNiw_19wtmk_1_AYBiz.jpg]

...ainsi qu'au télémètre.
[img=https://daryo.com/data/asset/LNiw_20wtmk_1_eFZ45.jpg]


Pour le remontage, suivez ce guide en sens inverse, et surtout prenez votre temps. Il n'y a rien de pire que devoir re-démonter car on a oublié une vis.

    [language] => fr
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2013-11-06 20:12
English version

Nous allons procéder au démontage quasi-complet de l'un des premiers appareils photos à mise au point télémétrique jamais produit, le Leica F (ou Leica III), produit de 1935 a 1940.

Ce tutoriel couvre le premier modèle de Leica III. Vous trouverez de grandes similarités avec les modèles IIIa et IIIb. Les modèles à partir du Leica IIIc sont largement différents dans leur conception.

Par démontage quasi-complet, j’entends permettre l’accès à la plupart des éléments de l'appareil, bien évidemment si les rideaux sont morts, vous aurez quelques vis de plus à enlever.

Matériel
- Plusieurs petits tournevis plats si possible aimantés. Notez bien que les tournevis dits "de précision" vendus dans le commerce peuvent être encore trop gros pour de l'horlogerie.
- Un pinceau propre, pour enlever les poussières;
- Une pince à bec plat si vous voulez vous tenter le démontage du télémètre en mode warrior.
- Une boîte avec casiers afin d'y placer au fur et à mesure les différentes vis que vous enlevez.


Note préliminaire

Si vous cherchez à régler la tension des rideaux, inutile de démonter tout l'appareil, ça se règle en dessous, en retirant les petites vis noir qui dégagent les roues dentées permettant le réglage.




Étape 1 - Retrait du corps de l'appareil

Commencez par retirer le socle et le cylindre de la pellicule.


Après avoir verrouillé l'objectif, dévissez-le, puis retirez les 4 vis qui maintiennent le support de l'objectif.

Attention, les deux vis du bas maintiennent une petite plaque de métal. Évitez de la faire tomber sur les rideaux.


Retirez cette dernière vis, en retenant la plaque de maintien supérieure.


Vous devriez en être là.


Retirez ensuite les trois vis de la face avant de l'appareil.


Démontez le bouton de réglage de l'obturation lente, en enlevant la première vis, puis les trois qui sont derrière. Mémorisez bien la façon dont ces différentes pièces sont montées, au besoin en prenant des photos.


Retirez les cinq vis qui maintiennent le haut de l'appareil au boîtier. Il y en a deux devant, trois derrière.


L'intérieur de l'appareil peut maintenant coulisser. Faites très attention au bras du télémètre, qui doit être maintenu à l'intérieur durant l'opération.


La première étape est terminée.




Étape 2 - Démontage du capot du télémètre.

Afin de vous faire une idée, voici le résultat final auquel nous voulons parvenir.



Retirez la vis qui bloque le viseur du télémètre.


Retirez le viseur en le tirant délicatement vers l'arrière.
Dévissez la vis arrière.
Enlever le viseur principal en le dévissant (au besoin munissez-vous d'une pince, sans trop forcer sur les optiques)


Dévissez l'objectif de droite du télémètre.


Retournez l'appareil et retirez la vis indiquée sur la photo.


Retirez en le dévissant le cerclage de l'optique de l'objectif gauche du télémètre.


Retirez l'optique en la dévissant très délicatement, puis dévissez la vis centrale de l'objectif.


Retirez la plaque supérieure qui est maintenue par trois vis, retirez la petite vis du sélecteur de temps d'obturation, et dévissez-le.


Normalement vous en êtes là. Vous pouvez maintenant enlever le capot.


Vous avez maintenant accès au mécanisme d'obturation...


...ainsi qu'au télémètre.



Pour le remontage, suivez ce guide en sens inverse, et surtout prenez votre temps. Il n'y a rien de pire que devoir re-démonter car on a oublié une vis.
 Array
(
    [id] => zks7
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2013-02-27 08:17:00
    [kind] => memo
    [access] => 9
    [title] => iPhone 4 - No Service: repair the blue coil inductor at low cost by making a jumper
    [content] => If your iPhone 4 switch quickly between "Searching" and "No service" after a fall or an attempt to repair the screen, you may have damaged the blue coil inductor, present near the battery connector [i](see picture)[/i].
[img=https://daryo.com/data/asset/ap2i_iphone4_details_PNG_QSX3.PNG]

This component is here to pre-amplify (moderately) the GSM signal between the antenna and the oscillator who filter out unwanted frequencies.

This is not a totally vital component, and it may not be worth trying to change it.

You can find this component on eBay for 8 euros, but it will be difficult to weld without special CMS equipment an solid skills. Some folks can do it for sixty euros, but that is a little bit too much.

The best thing to do in my opinion, having tested it on two iPhone 4, is to make a jumper with tin or a copper wire between the two legs of the lost component, and you will get your signal back.

I then made in a few seconds a mere trace of tin soldering between the two legs of the inductor, and I got five bars of network on an iPhone 4 that was picking absolutely nothing.

Of course, even if it is at the reach of anybody, it is still better to perform the operation under a magnifying glass, without trembling, and especially not to insist on temperature. There are vital components such as baseband nearby, and the surface is very small, so there is no need for too much heat.

Some guys are using heat gun. I would not recommend it for the same reason (too much heat, small surface, vital components nearby).

I saw on some sites that you could also make a jumper in case of loss of the oscillator (the golden circle component to the left of the blue inductor in the image).

I would not recommend it. Frequencies will not be filtered at all, and there will be virtually no protection between the antenna and the input signal in the baseband.
    [language] => en
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2013-02-27 08:17
If your iPhone 4 switch quickly between "Searching" and "No service" after a fall or an attempt to repair the screen, you may have damaged the blue coil inductor, present near the battery connector (see picture).


This component is here to pre-amplify (moderately) the GSM signal between the antenna and the oscillator who filter out unwanted frequencies.

This is not a totally vital component, and it may not be worth trying to change it.

You can find this component on eBay for 8 euros, but it will be difficult to weld without special CMS equipment an solid skills. Some folks can do it for sixty euros, but that is a little bit too much.

The best thing to do in my opinion, having tested it on two iPhone 4, is to make a jumper with tin or a copper wire between the two legs of the lost component, and you will get your signal back.

I then made in a few seconds a mere trace of tin soldering between the two legs of the inductor, and I got five bars of network on an iPhone 4 that was picking absolutely nothing.

Of course, even if it is at the reach of anybody, it is still better to perform the operation under a magnifying glass, without trembling, and especially not to insist on temperature. There are vital components such as baseband nearby, and the surface is very small, so there is no need for too much heat.

Some guys are using heat gun. I would not recommend it for the same reason (too much heat, small surface, vital components nearby).

I saw on some sites that you could also make a jumper in case of loss of the oscillator (the golden circle component to the left of the blue inductor in the image).

I would not recommend it. Frequencies will not be filtered at all, and there will be virtually no protection between the antenna and the input signal in the baseband.
 Array
(
    [id] => ap2i
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2013-02-27 07:51:00
    [kind] => memo
    [access] => 9
    [title] => iPhone 4 - Réseau indisponible: réparer le fameux inducteur bleu à moindre coût en faisant un jumper
    [content] => Si la barre de réseau de votre iPhone 4 oscille entre "Recherche" et "Réseau indisponible" après une chute ou une tentative de réparation, vous avez peut-être abîmé l'inducteur, de couleur bleue, présent à côté du connecteur de batterie [i](voir image)[/i].
[img=https://daryo.com/data/asset/ap2i_iphone4_details_PNG_QSX3.PNG]

Ce composant est chargé de pré-amplifier (modérément) le signal GSM entre l'antenne et un oscillateur qui filtrera les fréquences indésirables.

Ce n'est donc pas un composant totalement vital, et ce n'est peut-être pas la peine d'essayer de le changer.

Car bien que vous puissiez trouver ce composant sur eBay à 8 euros, il vous sera difficile de le souder sans du matériel spécial CMS. Des sociétés peuvent vous le faire pour une soixantaine d'euros, mais, soyons franc ça fait cher.

La meilleure chose à faire à mon avis, pour l'avoir testé sur deux iPhone 4, c'est de faire un jumper en étain ou en fil de cuivre entre les deux pattes du composant perdu, et vous récupérerez votre signal.

J'ai d'ailleurs fait en quelques secondes une simple trace d'étain au fer à souder entre les deux pattes de l'inducteur, et j'ai récupéré cinq barres de réseau sur un iPhone 4 qui ne captait absolument plus rien.

Naturellement, même si c'est à la portée du premier venu, il vaut tout de même mieux réaliser l'opération sous une loupe, sans trembler, et surtout ne pas insister trop niveau température. Il y a des composants vitaux tels que le baseband a proximité, alors la surface étant très petite il est inutile de trop chauffer.

J'ai vu sur certains sites que l'on pouvait également réaliser un jumper en cas de perte de l'oscillateur (le composant doré rond à gauche de l'inducteur bleu, sur l'image).

Je le déconseille. Les fréquences seront alors mal filtrées, et il n'y aura quasiment plus aucune protection entre l'antenne et l'entrée du signal dans le baseband.


    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2013-02-27 07:51
Si la barre de réseau de votre iPhone 4 oscille entre "Recherche" et "Réseau indisponible" après une chute ou une tentative de réparation, vous avez peut-être abîmé l'inducteur, de couleur bleue, présent à côté du connecteur de batterie (voir image).


Ce composant est chargé de pré-amplifier (modérément) le signal GSM entre l'antenne et un oscillateur qui filtrera les fréquences indésirables.

Ce n'est donc pas un composant totalement vital, et ce n'est peut-être pas la peine d'essayer de le changer.

Car bien que vous puissiez trouver ce composant sur eBay à 8 euros, il vous sera difficile de le souder sans du matériel spécial CMS. Des sociétés peuvent vous le faire pour une soixantaine d'euros, mais, soyons franc ça fait cher.

La meilleure chose à faire à mon avis, pour l'avoir testé sur deux iPhone 4, c'est de faire un jumper en étain ou en fil de cuivre entre les deux pattes du composant perdu, et vous récupérerez votre signal.

J'ai d'ailleurs fait en quelques secondes une simple trace d'étain au fer à souder entre les deux pattes de l'inducteur, et j'ai récupéré cinq barres de réseau sur un iPhone 4 qui ne captait absolument plus rien.

Naturellement, même si c'est à la portée du premier venu, il vaut tout de même mieux réaliser l'opération sous une loupe, sans trembler, et surtout ne pas insister trop niveau température. Il y a des composants vitaux tels que le baseband a proximité, alors la surface étant très petite il est inutile de trop chauffer.

J'ai vu sur certains sites que l'on pouvait également réaliser un jumper en cas de perte de l'oscillateur (le composant doré rond à gauche de l'inducteur bleu, sur l'image).

Je le déconseille. Les fréquences seront alors mal filtrées, et il n'y aura quasiment plus aucune protection entre l'antenne et l'entrée du signal dans le baseband.

 Array
(
    [id] => WNXk
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2013-01-17 13:11:00
    [kind] => memo
    [access] => 9
    [title] => Configurer SSH sans password sous iOS en 30 secondes
    [content] => Si vous avez deux iDevices que vous souhaitez connecter en SSH, notamment pour des opérations de backup (en utilisant LaunchD par exemple), ou simplement pour le fun, il est nécessaire que les clés publiques de vos devices aient été échangées afin d'éviter de passer par un mot de passe.

Sur ce sujet, d'ailleurs, l'installation de ssh sur un appareil iOS nécessite le changement de mot de passe des utilisateurs root et mobile, puisque les deux sont fixés par défaut sur "alpine". Question sécurité, je ne vous fait pas de dessin.

De plus si votre Apple TV / iPad / iPod / iPhone / Mac Mini ont un port ouvert sur votre routeur vers l'internet mondial, il est préférable de passer par un port non standard de type 1234, 2222, 2002 en lieu et place du port 22 par défaut sur SSH, afin d'éviter en partie les tentatives d'intrusions (plus le numéro de port est élevé, moins les portscan seront efficaces, puisqu'ils ne testent généralement qu'une fourchette de ports).

Donc voici les deux commandes qui vous permettront de générer les clés, et de connecter directement vos deux iBidules:

Vous devez remplacer:
* user : votre nom d'utilisateur (évitez root, désactivez-le dans sshd.conf)
* domain.net : l'adresse ip de votre box ou l'adresse fixe de votre équipement
* /path/to/ : l'emplacement des clés par rapport à la racine du disque
* 1234 : le port sur lequel ssh écoute

[pre]ssh-keygen -t rsa
cat /path/to/.ssh/id_dsa.pub | ssh -p 1234 [email protected] \
    "cat - >>/path/to.ssh/authorized_keys"[/pre]
    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2013-01-17 13:11
Si vous avez deux iDevices que vous souhaitez connecter en SSH, notamment pour des opérations de backup (en utilisant LaunchD par exemple), ou simplement pour le fun, il est nécessaire que les clés publiques de vos devices aient été échangées afin d'éviter de passer par un mot de passe.

Sur ce sujet, d'ailleurs, l'installation de ssh sur un appareil iOS nécessite le changement de mot de passe des utilisateurs root et mobile, puisque les deux sont fixés par défaut sur "alpine". Question sécurité, je ne vous fait pas de dessin.

De plus si votre Apple TV / iPad / iPod / iPhone / Mac Mini ont un port ouvert sur votre routeur vers l'internet mondial, il est préférable de passer par un port non standard de type 1234, 2222, 2002 en lieu et place du port 22 par défaut sur SSH, afin d'éviter en partie les tentatives d'intrusions (plus le numéro de port est élevé, moins les portscan seront efficaces, puisqu'ils ne testent généralement qu'une fourchette de ports).

Donc voici les deux commandes qui vous permettront de générer les clés, et de connecter directement vos deux iBidules:

Vous devez remplacer:
* user : votre nom d'utilisateur (évitez root, désactivez-le dans sshd.conf)
* domain.net : l'adresse ip de votre box ou l'adresse fixe de votre équipement
* /path/to/ : l'emplacement des clés par rapport à la racine du disque
* 1234 : le port sur lequel ssh écoute

ssh-keygen -t rsa
cat /path/to/.ssh/id_dsa.pub | ssh -p 1234 [email protected] \
"cat - >>/path/to.ssh/authorized_keys"
 Array
(
    [id] => xpRm
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2012-07-19 10:37:00
    [kind] => memo
    [access] => 9
    [title] => Configurer son AppleTv 2 comme un serveur web
    [content] => L'Apple TV 2 est sans doute le produit de chez Apple qui a le plus de potentiel, en matière de customization.

Un produit fonctionnant avec de la mémoire flash, toujours branché, et donc toujours allumé et connecté, tournant sous une base unix, il était tentant d'en faire un serveur web, et les résultats sont assez impressionnants.

Tout d'abord, il faut bien sûr jailbreaker son Apple TV, à l'aide de Seas0npass (evasi0n peut également le faire). Notez que si vous avez une Apple TV 3, il n'est pas possible de la jailbreaker, vous pouvez donc arrêter ici la lecture de ce billet.

Ensuite (et c'est un peu en dehors du sujet), je vous conseille d'installer ATV Flash Black, qui est normalement payant (à moins de passer par une baie bien connue située en Suède). Ce merveilleux package vous installera sur l'écran d’accueil l'application Medias, qui vous permet de mater tous les formats de films via des partages smb et afp.

C'est évidemment beaucoup plus clean qu'installer cette immonde daube qu'est XBMC. Après tout, on n'achète pas une Apple TV pour avoir une interface pourrie sur un logiciel buggué jusqu'à la moelle et d'une lenteur affligeante, n'est ce pas ?

Bon, la parenthèse est fermée, nous sommes prêt, votre Apple TV 2 est jailbreaké, l'accès ssh est donc opérationnel, et vous connaissez son adresse ip (sinon elle est dans le menu réglages > réseau).

Ne vous laissez pas impressionner par la longueur de ce tutoriel, ça ne vous prendra que 20 minutes.

[size=1.5]1 - Sécuriser SSH un minimum[/size]

Comme tous les iBidules, les mots de passe des deux utilisateurs [b]root[/b] et [b]mobile[/b] son fixés sur "alpine". On ne va évidemment pas laisser ça comme ça.

Donc sur votre ordi, dans votre console ssh préférée, tapez:
[pre]ssh root@(adresse ip)[/pre]donc là vous tapez alpine pour vous connecter, puis[pre]passwd[/pre]Là vous tapez deux fois un bon mot de passe bien sécurisé, et ensuite on va aussi changer celui de mobile, donc[pre]su mobile[/pre]retapez alpine, puis[pre]passwd[/pre]on va vous redemander alpine, puis deux fois le même nouveau mot de passe, choisissez-en un différent, si possible.

[size=1.5]2 - Installer tout le nécessaire pour un bon vieux serveur web[/size]

Comme nous ne voulons pas saturer la mémoire ram de notre Apple TV, nous n'installerons pas MySQL. De toutes façon c'est très compliqué à utiliser dans cet environnement, puisque notre version de php ne le supporte pas, nous utiliserons donc SQLite.

donc, ssh en root sur l'Apple TV, puis[pre]apt-get update[/pre] pour avoir les bonnes versions qui vont bien.
Ensuite [pre]apt-get install lighttpd php sqlite3 nano[/pre]
Les packages nécessaires vont s'installer, il nous reste plus qu'à configurer tout ça.

[size=1.5]3 - Vérifier que tout soit bien prêt à se lancer au démarrage[/size]

Je ne m’étalerai pas sur LaunchD dans ce billet, ça ferra l'objet d'un tutoriel à part.

Donc, toujours dans ssh:[pre]cd /Library/LaunchDaemons
ls[/pre]Si, comme c'est probable, vous n'avez aucun fichier contenant de prés ou de loin "lighttpd" dans son titre, rien n'est configuré.

Dans ce cas[pre]nano net.lighttpd.plist[/pre]et copiez le contenu du fichier suivant:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>net.lighttpd</string>
        <key>OnDemand</key>
        <false/>
        <key>Program</key>
        <string>/usr/sbin/lighttpd</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/lighttpd</string>
                <string>-f /etc/www/lighttpd.conf</string>
                <string>-D</string>
        </array>
</dict>
</plist>

faites ctrl+x pour quitter, et y pour enregistrer.

[size=1.5]4 - Configurer lighttpd[/size]

Vérifiez ensuite que le fichier lighttpd.conf soit bien dans /etc/www/. Si tel n'est pas le cas, faites un [pre]find / -name lighttpd.conf[/pre]créez le dossier www dans etc en faisant [pre]mkdir /etc/www[/pre] puis déplacez le fichier avec[pre]mv (ancien emplacement)/lighttpd.conf /etc/www/[/pre]
Nous allons créer un dossier qui contiendra le répertoire http, dans l'arborescence de l'utilisateur mobile:[pre]mkdir /private/var/mobile/Media/Sites[/pre]
Vous pouvez maintenant vérifier votre config en faisant [pre]nano /etc/www/lighttpd.conf[/pre]
vérifiez les lignes suivantes:

server.document-root = /private/var/mobile/Media/Sites/
index-file.names        = ( "index.php","index.html")

vérifiez également que #dir-listing.activate = "enable"
soit bien commenté par un # pour éviter d'afficher le contenu des répertoires.

Configurez ensuite le fastCGI pour PHP:

fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" => "/tmp/php-fcgi.sock",
"bin-path" => "/private/var/stash/bin/php-cgi",
"max-procs" => 1,
"bin-environment" =>
( "PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000" ))))

puis ctrl+x pour fermer et y pour enregistrer.

[size=1.5]5 - Configurer php[/size]

Là c'est beaucoup plus simple, nous nous contenterons du minimum syndical.

[pre]nano /usr/lib/php.ini[/pre]
et faites en sorte que votre fichier ressemble à peu près à ça:

upload_max_filesize = 14M
post_max_size = 14M
max_execution_time = 240
session.auto_start = 1
expose_php=off

[size=1.5]6 - On prépare un petit test (en option)[/size]

Bien entendu il n'y a pas encore de fichier html ou php dans notre répertoire "Sites", vous pourrez les ajouter en installant netatalk ou pure-ftpd, pas besoin d'un tutoriel pour ça.

Si vous n'avez vraiment rien dans votre répertoire Sites, vous pouvez faire un petit test pour vérifier que tout fonctionne bien:[pre]nano /private/var/mobile/Media/Sites/index.php[/pre]
Et copiez la ligne suivante:
<? echo "php fonctionne"; ?>

ctrl+x et y

[size=1.5]7 - On peut démarrer[/size]

Tout est près, nous allons donc demander à LaunchD de bien vouloir nous lancer lighttpd.
[pre]launchctl load /Library/LaunchDaemons/net.lighttpd.plist
launchctl start net.lighttpd[/pre]

Histoire de vérifier que tout soit bien lancé, faites un "ps aux" et vérifiez qu'il y ai bien un process lighttpd qui soit lancé.

Vous pouvez maintenant taper dans votre navigateur http://(adresse ip de l'apple tv)

[size=1.5]7 - En cas d'erreur[/size]

Si ça ne fonctionne pas (et que donc le process lighttpd n'est pas lancé lorsque vous vérifiez via "ps aux"), votre config est peut-être moisie, ou alors php plante lamentablement.

Essayez tout d'abord de lancer manuellement lighttpd:
[pre]/usr/sbin/lighttpd -f /etc/www/lighttpd.conf -D[/pre]Vous aurez le message d'erreur et vous pourrez ainsi rectifier ce qui ne va pas.

Si le problème vient de php, le debug se ferra en faisant un[pre]cat /var/log/syslog[/pre] pour vérifier les messages d'erreur sur la console.


Voilà voilà, si vous êtes motivés, [url=http://www.daryo.com/seb/element/postfix-sur-apple-tv-le-cha-non-manquant-pour-avoir-un-serveur-web-totalement-operationnel,ch14]vous pouvez aussi configurer un serveur de mail.[/url]
    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2012-07-19 10:37
L'Apple TV 2 est sans doute le produit de chez Apple qui a le plus de potentiel, en matière de customization.

Un produit fonctionnant avec de la mémoire flash, toujours branché, et donc toujours allumé et connecté, tournant sous une base unix, il était tentant d'en faire un serveur web, et les résultats sont assez impressionnants.

Tout d'abord, il faut bien sûr jailbreaker son Apple TV, à l'aide de Seas0npass (evasi0n peut également le faire). Notez que si vous avez une Apple TV 3, il n'est pas possible de la jailbreaker, vous pouvez donc arrêter ici la lecture de ce billet.

Ensuite (et c'est un peu en dehors du sujet), je vous conseille d'installer ATV Flash Black, qui est normalement payant (à moins de passer par une baie bien connue située en Suède). Ce merveilleux package vous installera sur l'écran d’accueil l'application Medias, qui vous permet de mater tous les formats de films via des partages smb et afp.

C'est évidemment beaucoup plus clean qu'installer cette immonde daube qu'est XBMC. Après tout, on n'achète pas une Apple TV pour avoir une interface pourrie sur un logiciel buggué jusqu'à la moelle et d'une lenteur affligeante, n'est ce pas ?

Bon, la parenthèse est fermée, nous sommes prêt, votre Apple TV 2 est jailbreaké, l'accès ssh est donc opérationnel, et vous connaissez son adresse ip (sinon elle est dans le menu réglages > réseau).

Ne vous laissez pas impressionner par la longueur de ce tutoriel, ça ne vous prendra que 20 minutes.

1 - Sécuriser SSH un minimum

Comme tous les iBidules, les mots de passe des deux utilisateurs root et mobile son fixés sur "alpine". On ne va évidemment pas laisser ça comme ça.

Donc sur votre ordi, dans votre console ssh préférée, tapez:
ssh root@(adresse ip)
donc là vous tapez alpine pour vous connecter, puis
passwd
Là vous tapez deux fois un bon mot de passe bien sécurisé, et ensuite on va aussi changer celui de mobile, donc
su mobile
retapez alpine, puis
passwd
on va vous redemander alpine, puis deux fois le même nouveau mot de passe, choisissez-en un différent, si possible.

2 - Installer tout le nécessaire pour un bon vieux serveur web

Comme nous ne voulons pas saturer la mémoire ram de notre Apple TV, nous n'installerons pas MySQL. De toutes façon c'est très compliqué à utiliser dans cet environnement, puisque notre version de php ne le supporte pas, nous utiliserons donc SQLite.

donc, ssh en root sur l'Apple TV, puis
apt-get update
pour avoir les bonnes versions qui vont bien.
Ensuite
apt-get install lighttpd php sqlite3 nano

Les packages nécessaires vont s'installer, il nous reste plus qu'à configurer tout ça.

3 - Vérifier que tout soit bien prêt à se lancer au démarrage

Je ne m’étalerai pas sur LaunchD dans ce billet, ça ferra l'objet d'un tutoriel à part.

Donc, toujours dans ssh:
cd /Library/LaunchDaemons
ls
Si, comme c'est probable, vous n'avez aucun fichier contenant de prés ou de loin "lighttpd" dans son titre, rien n'est configuré.

Dans ce cas
nano net.lighttpd.plist
et copiez le contenu du fichier suivant:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.lighttpd</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/sbin/lighttpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/lighttpd</string>
<string>-f /etc/www/lighttpd.conf</string>
<string>-D</string>
</array>
</dict>
</plist>

faites ctrl+x pour quitter, et y pour enregistrer.

4 - Configurer lighttpd

Vérifiez ensuite que le fichier lighttpd.conf soit bien dans /etc/www/. Si tel n'est pas le cas, faites un
find / -name lighttpd.conf
créez le dossier www dans etc en faisant
mkdir /etc/www
puis déplacez le fichier avec
mv (ancien emplacement)/lighttpd.conf /etc/www/

Nous allons créer un dossier qui contiendra le répertoire http, dans l'arborescence de l'utilisateur mobile:
mkdir /private/var/mobile/Media/Sites

Vous pouvez maintenant vérifier votre config en faisant
nano /etc/www/lighttpd.conf

vérifiez les lignes suivantes:

server.document-root = /private/var/mobile/Media/Sites/
index-file.names = ( "index.php","index.html")

vérifiez également que #dir-listing.activate = "enable"
soit bien commenté par un # pour éviter d'afficher le contenu des répertoires.

Configurez ensuite le fastCGI pour PHP:

fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" => "/tmp/php-fcgi.sock",
"bin-path" => "/private/var/stash/bin/php-cgi",
"max-procs" => 1,
"bin-environment" =>
( "PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000" ))))

puis ctrl+x pour fermer et y pour enregistrer.

5 - Configurer php

Là c'est beaucoup plus simple, nous nous contenterons du minimum syndical.

nano /usr/lib/php.ini

et faites en sorte que votre fichier ressemble à peu près à ça:

upload_max_filesize = 14M
post_max_size = 14M
max_execution_time = 240
session.auto_start = 1
expose_php=off

6 - On prépare un petit test (en option)

Bien entendu il n'y a pas encore de fichier html ou php dans notre répertoire "Sites", vous pourrez les ajouter en installant netatalk ou pure-ftpd, pas besoin d'un tutoriel pour ça.

Si vous n'avez vraiment rien dans votre répertoire Sites, vous pouvez faire un petit test pour vérifier que tout fonctionne bien:
nano /private/var/mobile/Media/Sites/index.php

Et copiez la ligne suivante:
<? echo "php fonctionne"; ?>

ctrl+x et y

7 - On peut démarrer

Tout est près, nous allons donc demander à LaunchD de bien vouloir nous lancer lighttpd.
launchctl load /Library/LaunchDaemons/net.lighttpd.plist
launchctl start net.lighttpd


Histoire de vérifier que tout soit bien lancé, faites un "ps aux" et vérifiez qu'il y ai bien un process lighttpd qui soit lancé.

Vous pouvez maintenant taper dans votre navigateur http://(adresse ip de l'apple tv)

7 - En cas d'erreur

Si ça ne fonctionne pas (et que donc le process lighttpd n'est pas lancé lorsque vous vérifiez via "ps aux"), votre config est peut-être moisie, ou alors php plante lamentablement.

Essayez tout d'abord de lancer manuellement lighttpd:
/usr/sbin/lighttpd -f /etc/www/lighttpd.conf -D
Vous aurez le message d'erreur et vous pourrez ainsi rectifier ce qui ne va pas.

Si le problème vient de php, le debug se ferra en faisant un
cat /var/log/syslog
pour vérifier les messages d'erreur sur la console.


Voilà voilà, si vous êtes motivés, vous pouvez aussi configurer un serveur de mail.
 Array
(
    [id] => E4Wh
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2012-07-19 10:20:00
    [kind] => memo
    [access] => 9
    [title] => Postfix on AppleTV2 : the missing app to create a full home server
    [content] => [url=http://www.daryo.com/seb/element/setup-your-appletv-2-as-a-webserver,u9Tm]I recently set up a full web server with one of the best device ever built: the Apple TV 2.[/url]

• I've got lighttpd and php, from cydia (those are quite good versions, but I'm planning to update php to get more features).
• I've got pure-ftpd from the excellent [url=http://cydia.radare.org/]radare repository[/url]

There was only one thing who were missing: postfix.
This software is the most known MTA, and allows you to turn your atv2 to a fully functional mail server.

After some days of search, i realized that i would have to compile it by myself, straight on the appleTV2, and i'm now happy to release it to the world, through the radare repo:

[size=1.5]Here is the .deb: [url=http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb]postfix-2.9.3-arm-apple-darwin.deb[/url][/size]
[url=http://daryo.com/data/asset/postfix-2.9.3.deb]mirror link[/url]

To install it, just connect with ssh to your appleTV2, and then:
[pre]wget http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb
dpkg -i postfix-2.9.3.deb[/pre]
You can now navigate to /etc/postfix/ and start to setup the server. This can be a little bit hard for noobs, since there is a lot of option, but there is many tutorials to help you.

You would also need the plist file, to enable postfix on load: [url=http://daryo.com/data/asset/org.postfix.plist]org.postfix.plist[/url]


[b]edit : here is my config file (main.cf)
I use PHP as a MDA.[/b]

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
message_size_limit = 30000000
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
mail_owner = ([i]your postfix user[/i])
default_privs = mobile
myhostname = ([i]yourmachine.domain.com[/i])
mydomain = ([i]domain.com[/i])
myorigin = $mydomain
unknown_local_recipient_reject_code = 550
relayhost = ([i]IP adress of your ISP SMTP[/i])
in_flow_delay = 2s
mailbox_command = /private/var/stash/bin/php ([i]/path/to/php/command.php[/i])
mail_spool_directory = /var/mobile/Mail/
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = _postfix
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
inet_protocols = all
    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2012-07-19 10:20
I recently set up a full web server with one of the best device ever built: the Apple TV 2.

• I've got lighttpd and php, from cydia (those are quite good versions, but I'm planning to update php to get more features).
• I've got pure-ftpd from the excellent radare repository

There was only one thing who were missing: postfix.
This software is the most known MTA, and allows you to turn your atv2 to a fully functional mail server.

After some days of search, i realized that i would have to compile it by myself, straight on the appleTV2, and i'm now happy to release it to the world, through the radare repo:

Here is the .deb: postfix-2.9.3-arm-apple-darwin.deb
mirror link

To install it, just connect with ssh to your appleTV2, and then:
wget http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb
dpkg -i postfix-2.9.3.deb

You can now navigate to /etc/postfix/ and start to setup the server. This can be a little bit hard for noobs, since there is a lot of option, but there is many tutorials to help you.

You would also need the plist file, to enable postfix on load: org.postfix.plist


edit : here is my config file (main.cf)
I use PHP as a MDA.


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
message_size_limit = 30000000
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
mail_owner = (your postfix user)
default_privs = mobile
myhostname = (yourmachine.domain.com)
mydomain = (domain.com)
myorigin = $mydomain
unknown_local_recipient_reject_code = 550
relayhost = (IP adress of your ISP SMTP)
in_flow_delay = 2s
mailbox_command = /private/var/stash/bin/php (/path/to/php/command.php)
mail_spool_directory = /var/mobile/Mail/
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = _postfix
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
inet_protocols = all
 Array
(
    [id] => ch14
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2012-07-19 10:20:00
    [kind] => memo
    [access] => 9
    [title] => Postfix sur Apple TV: le chaînon manquant pour avoir un serveur web totalement opérationnel
    [content] => [i][url=http://www.daryo.com/seb/element/postfix-on-appletv2-the-missing-app-to-create-a-full-home-server,E4Wh]English version[/url][/i]

[url=http://www.daryo.com/seb/element/configurer-son-appletv-2-comme-un-serveur-web,xpRm]J'ai récemment mis en place un serveur web complet avec l'un des meilleur appareil jamais construit: l'Apple TV 2.[/url]

• J'ai installé lighttpd et php, à partir de cydia (ces versions sont assez bonnes, mais j'ai l'intention de mettre à jour php pour obtenir plus de fonctionnalités).
• J'ai installé pure-ftpd à partir de l'excellent [url= http://cydia.radare.org/]repo radare[/url]

Il n'y avait qu'une seule chose qui manquait: postfix.
Ce logiciel est le plus connu des MTA, et vous permet de transformer votre ATV2 en un serveur de messagerie entièrement fonctionnel.

Après quelques jours de recherches infructueuses, j'ai réalisé que je devrais me le compiler moi-même, directement sur l'AppleTV 2, et je suis maintenant heureux de vous le faire partager, grace au repo de chez radare:

[size=1.5]Voici le fichier .deb:[url=http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb]postfix-2.9.3-arm-apple-darwin.deb[/url][/size]
[url=http://daryo.com/data/asset/postfix-2.9.3.deb]miroir[/url]

Pour l'installer, il suffit de se connecter en ssh sur votre AppleTV2, puis:
[pre]wget http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb
dpkg-i postfix-2.9.3.deb[/pre]
Vous pouvez maintenant naviguer dans /etc/postfix/ et commencer à configurer le serveur. C'est un peu difficile pour les noobs, car il ya beaucoup d'options, mais il y a de nombreux tutoriels pour vous aider.

Vous avez également besoin du fichier plist, afin de permettre le chargement de postfix: [url=http://daryo.com/data/asset/org.postfix.plist]org.postfix.plist[/url]
    [language] => fr
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2012-07-19 10:20
English version

J'ai récemment mis en place un serveur web complet avec l'un des meilleur appareil jamais construit: l'Apple TV 2.

• J'ai installé lighttpd et php, à partir de cydia (ces versions sont assez bonnes, mais j'ai l'intention de mettre à jour php pour obtenir plus de fonctionnalités).
• J'ai installé pure-ftpd à partir de l'excellent repo radare

Il n'y avait qu'une seule chose qui manquait: postfix.
Ce logiciel est le plus connu des MTA, et vous permet de transformer votre ATV2 en un serveur de messagerie entièrement fonctionnel.

Après quelques jours de recherches infructueuses, j'ai réalisé que je devrais me le compiler moi-même, directement sur l'AppleTV 2, et je suis maintenant heureux de vous le faire partager, grace au repo de chez radare:

Voici le fichier .deb:postfix-2.9.3-arm-apple-darwin.deb
miroir

Pour l'installer, il suffit de se connecter en ssh sur votre AppleTV2, puis:
wget http://cydia.radare.org/debs/postfix_2.9.3_iphoneos-arm.deb
dpkg-i postfix-2.9.3.deb

Vous pouvez maintenant naviguer dans /etc/postfix/ et commencer à configurer le serveur. C'est un peu difficile pour les noobs, car il ya beaucoup d'options, mais il y a de nombreux tutoriels pour vous aider.

Vous avez également besoin du fichier plist, afin de permettre le chargement de postfix: org.postfix.plist
 Array
(
    [id] => u9Tm
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2012-07-19 04:52:00
    [kind] => memo
    [access] => 9
    [title] => Setup your AppleTV 2 as a webserver
    [content] => The Apple TV 2 is probably the Apple product which has the most potential for customization.

A product who operate with flash memory, always powered on, and always connected, with an unix based os: it was tempting to turn it to a web server... and the results are quite impressive.

Firstly, it is obviously necessary to jailbreak the Apple TV, using Seas0npass (evasi0n can also do that). Please note that if you have an Apple TV 3, it is not possible to jailbreak it, you can stop reading this post here.

Then (and this is a bit off topic), I advise you to install ATV Flash Black, which is usually free (unless you go to a well known bay located in Sweden). This wonderful package will install you on the home screen a Media application, which lets you watch all movie formats via afp and smb shares.

This is obviously much more clean than installing this disgusting crap of XBMC. After all, you do not buy an Apple TV for a rotten interface running on a buggy and painfully slow software, isn't it?

Well, the bracket is closed, we are ready, your Apple TV 2 is jailbroken, ssh access is operational and you know its IP address (if not, go to settings> network).

Do not be fooled by the length of this tutorial, it will only take 20 minutes.

[size=1.5] 1 - Secure SSH a minimum [/size]

Like all iThings, the passwords of the two users [b]root[/b] and [b]mobile[/b] are set to "alpine". We cannot leave it like that.

So, on your computer in your favorite ssh console, type:
[pre]ssh root@(ip)[/pre]Type alpine to log in and[pre]passwd[/pre] Then type twice an old good very secure password, and then we will also the change the one for mobile, so[pre]su mobile[/pre]retype alpine and [pre]passwd[/pre] it will ask you again alpine, then twice again the same password, choose a different one if possible.

[size=1.5] 2 - Install everything needed for a web server[/size]

As we do not want to saturate the ram of our Apple TV, we will not install MySQL. By the way it is very complicated to use it in this environment, since our version of php does not support it, so we will use SQLite.

ssh as root on your Apple TV, then [pre]apt-get update[/pre] to get the most recent versions.
Then [pre]apt-get install lighttpd php sqlite3 nano[/pre]
Required packages will be installed, now let set this up.

[size=1.5] 3 - Check that everything is well prepared to start at boot[/size]

I will not give great details about launchd in this post, it should be the topic of a separate tutorial.

So, now ssh: [pre]cd /Library/LaunchDaemons
ls[/pre] You will likely have no file containing near or far "lighttpd" in its title, which means that nothing is configured.

In this case [pre]nano net.lighttpd.plist[/pre] and copy the contents of the following file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>net.lighttpd</string>
        <key>OnDemand</key>
        <false/>
        <key>Program</key>
        <string>/usr/sbin/lighttpd</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/lighttpd</string>
                <string>-f /etc/www/lighttpd.conf</string>
                <string>-D</string>
        </array>
</dict>
</plist>

ctrl + x to exit and y to save.

[size=1.5]4 - Configure lighttpd[/size]

Check that the lighttpd.conf file is on /etc/www/
If this is not the case, [pre]find / -name lighttpd.conf[/pre] create www in the etc folder by [pre]mkdir /etc/www[/pre] then move the file [pre]mv (old location)/lighttpd.conf /etc/www/[/pre]
We will now create a folder that will contain the http directory in the root directory of the mobile user: [pre]mkdir /private/var/mobile/Media/Sites[/pre]
You can now check your config by [pre]nano /etc/www/lighttpd.conf[/pre]
check the following lines:

server.document-root = /private/var/mobile/Media/Sites/
index-file.names = ( "index.php","index.html")

also check that #dir-listing.activate = "enable"
is commented with a # to avoid displaying the contents of directories.

Then configure FastCGI for PHP:

fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" => "/tmp/php-fcgi.sock",
"bin-path" => "/private/var/stash/bin/php-cgi",
"max-procs" => 1,
"bin-environment" =>
( "PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000" ))))

then ctrl + x to close and y to save.

[size=1.5]5 - Configure php [/size]

This is much more simple, we will do the bare minimum:

[pre]nano /usr/lib/php.ini[/pre]
and make sure that your file looks something like this:

upload_max_filesize = 14M
post_max_size = 14M
max_execution_time = 240
session.auto_start = 1
expose_php = off

[size=1.5]6 - Prepare a small test (optional)[/size]

Of course there is still no html or php file in our "Sites" folder, you can add them by installing netatalk or pure-ftpd, we do not need a tutorial for this.

If you really have nothing in your Sites directory, you can do a small test to verify that everything works fine: [pre]nano /private/var/mobile/Media/Sites/index.php[/pre]
And copy the following line:


ctrl+x and y

[size=1.5] 7 - We can start[/size]

Everything is done, we can now ask launchd to kindly start lighttpd.
[pre]launchctl load /Library/LaunchDaemons/net.lighttpd.plist
launchctl start net.lighttpd[/pre]

Just to check that everything is well, do a "ps aux" and check that there is a lighttpd process.

You can now type in your browser http://(ip address of the apple tv)

[size=1.5] 7 - In case of error[/size]

If it does not work (and therefore the process lighttpd is not running when you check via "ps aux"), your config may be moldy or php crashes miserably.

First try to manually start lighttpd:
[pre]/usr/sbin/lighttpd -f /etc/www/lighttpd.conf -D[/pre] You can check error messages and you can correct what is wrong.

If the problem is php, debug is shoed by a [pre]cat /var/log/syslog[/pre] to check the error messages on the console.



Then, if you are still motivated, we can [url=http://www.daryo.com/seb/element/postfix-on-appletv2-the-missing-app-to-create-a-full-home-server,E4Wh]also configure a mail server.[/url]
    [language] => en
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2012-07-19 04:52
The Apple TV 2 is probably the Apple product which has the most potential for customization.

A product who operate with flash memory, always powered on, and always connected, with an unix based os: it was tempting to turn it to a web server... and the results are quite impressive.

Firstly, it is obviously necessary to jailbreak the Apple TV, using Seas0npass (evasi0n can also do that). Please note that if you have an Apple TV 3, it is not possible to jailbreak it, you can stop reading this post here.

Then (and this is a bit off topic), I advise you to install ATV Flash Black, which is usually free (unless you go to a well known bay located in Sweden). This wonderful package will install you on the home screen a Media application, which lets you watch all movie formats via afp and smb shares.

This is obviously much more clean than installing this disgusting crap of XBMC. After all, you do not buy an Apple TV for a rotten interface running on a buggy and painfully slow software, isn't it?

Well, the bracket is closed, we are ready, your Apple TV 2 is jailbroken, ssh access is operational and you know its IP address (if not, go to settings> network).

Do not be fooled by the length of this tutorial, it will only take 20 minutes.

1 - Secure SSH a minimum

Like all iThings, the passwords of the two users root and mobile are set to "alpine". We cannot leave it like that.

So, on your computer in your favorite ssh console, type:
ssh root@(ip)
Type alpine to log in and
passwd
Then type twice an old good very secure password, and then we will also the change the one for mobile, so
su mobile
retype alpine and
passwd
it will ask you again alpine, then twice again the same password, choose a different one if possible.

2 - Install everything needed for a web server

As we do not want to saturate the ram of our Apple TV, we will not install MySQL. By the way it is very complicated to use it in this environment, since our version of php does not support it, so we will use SQLite.

ssh as root on your Apple TV, then
apt-get update
to get the most recent versions.
Then
apt-get install lighttpd php sqlite3 nano

Required packages will be installed, now let set this up.

3 - Check that everything is well prepared to start at boot

I will not give great details about launchd in this post, it should be the topic of a separate tutorial.

So, now ssh:
cd /Library/LaunchDaemons
ls
You will likely have no file containing near or far "lighttpd" in its title, which means that nothing is configured.

In this case
nano net.lighttpd.plist
and copy the contents of the following file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.lighttpd</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/sbin/lighttpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/lighttpd</string>
<string>-f /etc/www/lighttpd.conf</string>
<string>-D</string>
</array>
</dict>
</plist>

ctrl + x to exit and y to save.

4 - Configure lighttpd

Check that the lighttpd.conf file is on /etc/www/
If this is not the case,
find / -name lighttpd.conf
create www in the etc folder by
mkdir /etc/www
then move the file
mv (old location)/lighttpd.conf /etc/www/

We will now create a folder that will contain the http directory in the root directory of the mobile user:
mkdir /private/var/mobile/Media/Sites

You can now check your config by
nano /etc/www/lighttpd.conf

check the following lines:

server.document-root = /private/var/mobile/Media/Sites/
index-file.names = ( "index.php","index.html")

also check that #dir-listing.activate = "enable"
is commented with a # to avoid displaying the contents of directories.

Then configure FastCGI for PHP:

fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" => "/tmp/php-fcgi.sock",
"bin-path" => "/private/var/stash/bin/php-cgi",
"max-procs" => 1,
"bin-environment" =>
( "PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000" ))))

then ctrl + x to close and y to save.

5 - Configure php

This is much more simple, we will do the bare minimum:

nano /usr/lib/php.ini

and make sure that your file looks something like this:

upload_max_filesize = 14M
post_max_size = 14M
max_execution_time = 240
session.auto_start = 1
expose_php = off

6 - Prepare a small test (optional)

Of course there is still no html or php file in our "Sites" folder, you can add them by installing netatalk or pure-ftpd, we do not need a tutorial for this.

If you really have nothing in your Sites directory, you can do a small test to verify that everything works fine:
nano /private/var/mobile/Media/Sites/index.php

And copy the following line:


ctrl+x and y

7 - We can start

Everything is done, we can now ask launchd to kindly start lighttpd.
launchctl load /Library/LaunchDaemons/net.lighttpd.plist
launchctl start net.lighttpd


Just to check that everything is well, do a "ps aux" and check that there is a lighttpd process.

You can now type in your browser http://(ip address of the apple tv)

7 - In case of error

If it does not work (and therefore the process lighttpd is not running when you check via "ps aux"), your config may be moldy or php crashes miserably.

First try to manually start lighttpd:
/usr/sbin/lighttpd -f /etc/www/lighttpd.conf -D
You can check error messages and you can correct what is wrong.

If the problem is php, debug is shoed by a
cat /var/log/syslog
to check the error messages on the console.



Then, if you are still motivated, we can also configure a mail server.
 Array
(
    [id] => 7wrN
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2012-06-18 08:05:00
    [kind] => memo
    [access] => 9
    [title] => Tutorial - Install Mac OS X Lion on Core Duo / Core Solo Macs without any DVD drive, USB drive nor other Mac
    [content] => [size=1.5]Please note that this tutorial is totally worthless since the Lion beta does not include most of the feature included in the final version.

It's just for fun.[/size]


[b]What you need:[/b]
- An intel core duo/solo Mac computer (MacBook, Mac mini...) running Snow Leopard
- A Mac OS X Lion Developer Preview 1 copy (there's a bay full of pirates that can be useful...)
- Xar 1.5.2 binaries
- One hour

[b]Optional:[/b]
- Developer tools, to compile Xar 1.5.2
- A Snow Leopard disk image
- An external hard drive, to backup your computer

[b]What you DON'T need, at all:[/b]
- a DVD drive
- a USB drive
- another Mac


[size=1.2]Step 1 (optional)[/size]
Do a full backup of your computer with TimeMachine.

[size=1.2]Step 2[/size]
Depending on your drive capabilities, use disk utility to partition your drive that way:
- 2 partitions of 9Gb at the end of your drive, the first one for a fallback emergency Snow Leopard installer, the second one for the Lion installer
- 2 partitions with the remaining space, the first one being your current snow leopard partition, the second one being your target for the Lion install.

[img=https://daryo.com/data/asset/7wrN_UWCU.png]

[size=1.2]Step 3[/size]
- Restore the first 9Gb partition with your Mac OS X 10.6 Snow Leopard disk image, using disk utility.
- Restore the second 9Gb partition with your MAC OS X 10.7 Lion Developer Preview 1 disk image, using disk utility.

If anything goes well, you will be able to see your 3 startup volumes in System Preferences > startup 
- Your current Leopard install
- Your two system installers


[size=1.2]Step 4 (not necessary, I think, if you have downloaded my compiled version of Xar)[/size]
Assuming that you have Xcode and dev tools installed, [url=http://code.google.com/p/xar/downloads/detail?name=xar-1.5.2.tar.gz]download the Xar source code[/url], extract it, and compile it, by using terminal.app
[pre]
cd {Xar folder}
./configure
make
make install[/pre]

[size=1.2]Step 5[/size]
This step requires some command-line stuff, and in order to keep that tutorial simple, you should change the name of your partitions:
On the finder, Make a right-click > properties on each partition and change their names to match the following strings:
[b]Leopard[/b] Your current Leopard partition
[b]Lion_test[/b] Your Lion target partition
[b]install_Leopard[/b] Snow Leopard Installer
[b]install_Lion[/b] Lion Installer

[b]Keep in mind that you will be able to choose your startup partition at boot time while holding the alt (command) key when you hear the Mac startup chord. You keep secured at any time, with this tutorial[/b]

We will now edit the Lion installer in order to prevent any system checking (Ram, processor, and other stuff)

Go to terminal.app and type "su" to get root privileges (if root is not activated, then activate it)

type the following commands, one line after one:
[pre]mkdir ~/Desktop/workingdir
cp /Volumes/install_Lion/Packages/OSInstall.mpkg /Users//Desktop/workingdir/
xar -x -f /Users//Desktop/workingdir/OSInstall.mpkg[/pre]

[url=http://daryo.com/data/asset/7wrN_oQUT.zip]Download this file[/url] and unzip it.

In Finder, go to the workingdir, on your desktop, and replace the Distribution file with this one.

In terminal, type:
[pre]xar -c -f /Users//Desktop/workingdir/OSInstall.mpkg *
mv ~/Desktop/workingdir/OSInstall.mpkg /Volumes/install_Lion/Packages/
[/pre]

We now have updated the installer (who checks your system at the install step) , but don't close your terminal yet, we also need to delete 1 file who are used to check your system at the boot step

[pre]rm /Volumes/System/CoreServices/PlatformSupport.plist
[/pre]

[size=1.2]Step 6[/size]
Reboot your Mac on the Install_Lion partition

[size=1.2]Step 7[/size]
You should now be able to install Lion without any problem
[img=https://daryo.com/data/asset/7wrN_0YtM.JPG]

[size=1.2]Step 8[/size]
Lion will refuse to boot, due to this same PlatformSupport.plist
[img=https://daryo.com/data/asset/7wrN_VAeB.JPG]

Computer is turned off, press the start button while holding "alt" ("command" on US keyboards), you will see a list of bootable partition.

Choose your Snow Leopard partition.
[img=https://daryo.com/data/asset/7wrN_y3yX.JPG]

[size=1.2]Step 9[/size]
Open terminal.app, and type the following commands:

[pre]su
rm /Volumes/Lion_test/System/Library/CoreServices/PlatformSupport.plist[/pre]

or delete it via Finder
[img=https://daryo.com/data/asset/7wrN_Wcvf.png]


[size=1.2]Step 10[/size]
Change your startup Volume to "Lion_test"
[img=https://daryo.com/data/asset/7wrN_EMdD.png]
et voilà... You are now running Mac OS X Lion
[img=https://daryo.com/data/asset/7wrN_SoG4.png]

[size=1.2]Step 11[/size]
You should clean your drive with disk utility by deleting your Snow Leopard partition and your install_Lion partition

    [language] => En
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2012-06-18 08:05
Please note that this tutorial is totally worthless since the Lion beta does not include most of the feature included in the final version.

It's just for fun.



What you need:
- An intel core duo/solo Mac computer (MacBook, Mac mini...) running Snow Leopard
- A Mac OS X Lion Developer Preview 1 copy (there's a bay full of pirates that can be useful...)
- Xar 1.5.2 binaries
- One hour

Optional:
- Developer tools, to compile Xar 1.5.2
- A Snow Leopard disk image
- An external hard drive, to backup your computer

What you DON'T need, at all:
- a DVD drive
- a USB drive
- another Mac


Step 1 (optional)
Do a full backup of your computer with TimeMachine.

Step 2
Depending on your drive capabilities, use disk utility to partition your drive that way:
- 2 partitions of 9Gb at the end of your drive, the first one for a fallback emergency Snow Leopard installer, the second one for the Lion installer
- 2 partitions with the remaining space, the first one being your current snow leopard partition, the second one being your target for the Lion install.



Step 3
- Restore the first 9Gb partition with your Mac OS X 10.6 Snow Leopard disk image, using disk utility.
- Restore the second 9Gb partition with your MAC OS X 10.7 Lion Developer Preview 1 disk image, using disk utility.

If anything goes well, you will be able to see your 3 startup volumes in System Preferences > startup 
- Your current Leopard install
- Your two system installers


Step 4 (not necessary, I think, if you have downloaded my compiled version of Xar)
Assuming that you have Xcode and dev tools installed, download the Xar source code, extract it, and compile it, by using terminal.app

cd {Xar folder}
./configure
make
make install


Step 5
This step requires some command-line stuff, and in order to keep that tutorial simple, you should change the name of your partitions:
On the finder, Make a right-click > properties on each partition and change their names to match the following strings:
Leopard Your current Leopard partition
Lion_test Your Lion target partition
install_Leopard Snow Leopard Installer
install_Lion Lion Installer

Keep in mind that you will be able to choose your startup partition at boot time while holding the alt (command) key when you hear the Mac startup chord. You keep secured at any time, with this tutorial

We will now edit the Lion installer in order to prevent any system checking (Ram, processor, and other stuff)

Go to terminal.app and type "su" to get root privileges (if root is not activated, then activate it)

type the following commands, one line after one:
mkdir ~/Desktop/workingdir
cp /Volumes/install_Lion/Packages/OSInstall.mpkg /Users//Desktop/workingdir/
xar -x -f /Users//Desktop/workingdir/OSInstall.mpkg


Download this file and unzip it.

In Finder, go to the workingdir, on your desktop, and replace the Distribution file with this one.

In terminal, type:
xar -c -f /Users//Desktop/workingdir/OSInstall.mpkg *
mv ~/Desktop/workingdir/OSInstall.mpkg /Volumes/install_Lion/Packages/


We now have updated the installer (who checks your system at the install step) , but don't close your terminal yet, we also need to delete 1 file who are used to check your system at the boot step

rm /Volumes/System/CoreServices/PlatformSupport.plist


Step 6
Reboot your Mac on the Install_Lion partition

Step 7
You should now be able to install Lion without any problem


Step 8
Lion will refuse to boot, due to this same PlatformSupport.plist


Computer is turned off, press the start button while holding "alt" ("command" on US keyboards), you will see a list of bootable partition.

Choose your Snow Leopard partition.


Step 9
Open terminal.app, and type the following commands:

su
rm /Volumes/Lion_test/System/Library/CoreServices/PlatformSupport.plist


or delete it via Finder



Step 10
Change your startup Volume to "Lion_test"

et voilà... You are now running Mac OS X Lion


Step 11
You should clean your drive with disk utility by deleting your Snow Leopard partition and your install_Lion partition
 Array
(
    [id] => ohjE
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2011-10-06 04:56:00
    [kind] => memo
    [access] => 9
    [title] => RIP
    [content] => [img=https://daryo.com/data/asset/ohjE_WXzm.jpg]
    [language] => fr
    [url] => http://www.apple.com/stevejobs
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
 Array
(
    [id] => 7hYf
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2010-08-09 18:48:00
    [kind] => memo
    [access] => 9
    [title] => Tutoriel: Réactiver le partage de connection (tethering) orange sous iPhone iOS4
    [content] => [b]Edit (16 mai 2012): Ce tutoriel est un peu daté, il peut encore servir, mais désormais,je vous conseille simplement de passer chez free mobile. Vous aurez du tethering sans avoir à jailbreaker votre téléphone.[/b]

Ceux qui ont jailbreaké leur iPhone sous iOS 4 ont eu la mauvaise surprise de voir disparaitre le tethering officiel, qui était auparavant très simple à activer (via un fichier de config disponible sur http://help.benm.at)

Pas de panique, tout ce dont vous avez besoin est de votre iPhone jailbreaké et désimlocké avec Ultrasn0w, d'un éditeur de texte, tel iFile, qui ferra très bien l'affaire, et dans 5 minutes, vous pourrez utiliser la connexion internet de votre iPhone directement sur votre ordinateur.



[size=1.5]Avertissement initial[/size] [i]Source: wikipedia, orange, etc[/i]
Le jaikbreak n'est pas illégal. Personne n'a jamais été condamné pour avoir modifié un appareil dont il était propriétaire.

Le jailbreak ne peut pas casser l'appareil. En effet, ce n'est qu'une modification logicielle qui peut-être annulée par une restauration à l'origine de l'iOS sur iTunes (il n'y a aucune modification irréversible). Un iPhone jailbreaké dont l'iOS a été restauré, est un iPhone parfaitement identique à ceux qui n'ont jamais été jailbreakés (lors d'un retour en garantie, Apple n'est pas capable de savoir si l'appareil a été jailbreaké auparavant).

En juillet 2010, la Bibliothèque du Congrès des États-Unis a décidé de permettre aux possesseurs d'iPhones de contourner le verrou d'Apple afin de télécharger des applications n'ayant pas reçu l'approbation de la compagnie.

Concernant le tethering, il constitue un "usage modem" qui ne fait généralement pas partie de votre forfait iPhone orange ([url=http://boutique.orange.fr/doc/contrat2243.pdf]voir conditions générales internet max orange[/url]) et donc, si vous abusez de cet usage, il est tout à fait possible que vous soyez facturés en hors-forfait, même si je n'ai pas eu echo de ce type de problème, et je ne pense pas non plus qu'orange vérifie tous les paquets transitants sur son réseau 3G afin de débusquer les tricheurs. Mais bon, vous voilà prévenus.


[size=1.5]Concernant les différentes méthodes de tethering[/size]
Le partage de connexion (tethering) intégré au système est le plus rapide et le moins gourmand en ressource.

Sur iPhone jailbreaké vous trouvez tout un tas d'applications telles "MyWi", qui est non seulement payante (un comble pour une application dispo sur Cydia) mais qui est en plus très lente, et vous ruine la batterie très rapidement. Je déconseille donc fortement de l'utiliser.

Le tethering dit "officiel", c'est à dire intégré au système, est facile à mettre en oeuvre, efficace, il suffit juste de modifier quelques fichiers de configuration, et il fonctionne en plus en USB ce qui vous permet d'économiser la batterie de votre téléphone.



[size=1.5]Let's go[/size]
Vous avez 3 fichiers à modifier, cette méthode est valable pour orange france, et avec un minimum d'adaptation, vous pourrez l'utiliser pour les autres opérateurs (voir à la fin de ce post).



[size=1.5]Premier fichier[/size]
allez jusqu'au fichier "/private/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist"
qui est le fichier de préférence pour le tethering
vous devez le modifier afin qu'il ressemble à ceci (modifications en gras):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>State</key>
 <integer>[b]1023[/b]</integer>
 <key>Version</key>
 <integer>2</integer>
</dict>
</plist>

Le fait de modifier la clé "State" de 1020 à 1023 va faire apparaitre le toggle d'activation du tethering dans les réglages. N'y allez pas tout de suite, si vous n'avez pas modifié les fichiers suivants, le système remettra l'état à 1020 et le bouton disparaitra.

[size=1.5]Deuxième fichier[/size]
Ensuite, modifions "/private/var/Managed Preferences/mobile/com.apple.managedCarrier.plist"
qui est le fichier de configuration réseau de votre opérateur, voilà ce que vous devez obtenir  (modifications en gras):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>apns</key>
 <array>
   <dict>
     <key>apn</key>
     <string>orange.fr</string>
     <key>password</key>
     <string>orange</string>
[b]     <key>type-mask</key>
     <integer>53</integer>[/b]
     <key>username</key>
     <string>orange</string>
   </dict>
 </array>
</dict>
</plist>

La clé "type-mask" va vous permettre d'ici peu d'activer le tethering pour cette connexion.


[size=1.5]Troisième fichier[/size]
Soyez attentif, concernant le dernier fichier "/private/var/preferences/SystemConfiguration/preferences.plist"
Toute erreur pourrait faire planter votre téléphone. J'ai volontairement évité de recopier tout le fichier car ce dernier comporte des clés hexadécimales propres à chaque téléphone et que vous n'avez de toutes façons pas besoin de modifier.

Naviguez jusqu'aux lignes suivantes:
<dict>
<key>AllowNoDNS</key>
<integer>1</integer>
<key>apn</key>
<string>orange.fr</string>

et ajoutez immédiatement après:
[b]<key>type-mask</key>
<integer>53</integer>[/b]


[b]Redémarrez votre iPhone, allez dans "Réglages>Général>Réseau", et profitez de votre partage de connexion en 3G ![/b]
[img=https://daryo.com/data/asset/7hYf_4Q4X.png]  [img=https://daryo.com/data/asset/7hYf_Ejnw.png]


[size=1.5]Problèmes connus[/size]

• Si les fichiers ne ressemblent absolument pas à ce que j'ai décrit, ne les modifiez pas, il vous faudra installer un profil réseau que vous pourrez trouver sur [url=http://help.benm.at]http://help.benm.at[/url].
Malheureusement ce site va vous rediriger sur une page de blog, vous devrez vous y connecter avec Mobile Safari, ou avec votre navigateur en changeant l'user-agent en "mobile safari".

• [url=http://daryo.com/data/asset/7hYf_Emcf.zip]Si vous êtes chez orange, voici mon profil réseau.[/url]

• Une fois le profil réseau téléchargé, vous ne pourrez pas l'installer avec mobile safari, cette option est désormais impossible sur iOS 4. Vous devez vous l'envoyer par mail, et l'installer depuis l'application mail de votre iPhone.

• Notez bien que votre iPhone doit être débloqué avec UltraSn0w, et donc vous devez avoir une ancienne version du baseband (firmware gérant le modem), les nouvelles versions étant en théorie non-déblocables. Dans tous les cas, [b]le downgrade (passage à une version antérieure), que ce soit du baseband ou du système, est TOUJOURS possible[/b]. Je n'ai pas le temps de le documenter ici, mais il existe de très bon tutoriels sur ce sujet.

Si vous rencontrez des difficultés, vous pouvez m'en faire part dans les commentaires
    [language] => FR
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2010-08-09 18:48
Edit (16 mai 2012): Ce tutoriel est un peu daté, il peut encore servir, mais désormais,je vous conseille simplement de passer chez free mobile. Vous aurez du tethering sans avoir à jailbreaker votre téléphone.

Ceux qui ont jailbreaké leur iPhone sous iOS 4 ont eu la mauvaise surprise de voir disparaitre le tethering officiel, qui était auparavant très simple à activer (via un fichier de config disponible sur http://help.benm.at)

Pas de panique, tout ce dont vous avez besoin est de votre iPhone jailbreaké et désimlocké avec Ultrasn0w, d'un éditeur de texte, tel iFile, qui ferra très bien l'affaire, et dans 5 minutes, vous pourrez utiliser la connexion internet de votre iPhone directement sur votre ordinateur.



Avertissement initial Source: wikipedia, orange, etc
Le jaikbreak n'est pas illégal. Personne n'a jamais été condamné pour avoir modifié un appareil dont il était propriétaire.

Le jailbreak ne peut pas casser l'appareil. En effet, ce n'est qu'une modification logicielle qui peut-être annulée par une restauration à l'origine de l'iOS sur iTunes (il n'y a aucune modification irréversible). Un iPhone jailbreaké dont l'iOS a été restauré, est un iPhone parfaitement identique à ceux qui n'ont jamais été jailbreakés (lors d'un retour en garantie, Apple n'est pas capable de savoir si l'appareil a été jailbreaké auparavant).

En juillet 2010, la Bibliothèque du Congrès des États-Unis a décidé de permettre aux possesseurs d'iPhones de contourner le verrou d'Apple afin de télécharger des applications n'ayant pas reçu l'approbation de la compagnie.

Concernant le tethering, il constitue un "usage modem" qui ne fait généralement pas partie de votre forfait iPhone orange (voir conditions générales internet max orange) et donc, si vous abusez de cet usage, il est tout à fait possible que vous soyez facturés en hors-forfait, même si je n'ai pas eu echo de ce type de problème, et je ne pense pas non plus qu'orange vérifie tous les paquets transitants sur son réseau 3G afin de débusquer les tricheurs. Mais bon, vous voilà prévenus.


Concernant les différentes méthodes de tethering
Le partage de connexion (tethering) intégré au système est le plus rapide et le moins gourmand en ressource.

Sur iPhone jailbreaké vous trouvez tout un tas d'applications telles "MyWi", qui est non seulement payante (un comble pour une application dispo sur Cydia) mais qui est en plus très lente, et vous ruine la batterie très rapidement. Je déconseille donc fortement de l'utiliser.

Le tethering dit "officiel", c'est à dire intégré au système, est facile à mettre en oeuvre, efficace, il suffit juste de modifier quelques fichiers de configuration, et il fonctionne en plus en USB ce qui vous permet d'économiser la batterie de votre téléphone.



Let's go
Vous avez 3 fichiers à modifier, cette méthode est valable pour orange france, et avec un minimum d'adaptation, vous pourrez l'utiliser pour les autres opérateurs (voir à la fin de ce post).



Premier fichier
allez jusqu'au fichier "/private/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist"
qui est le fichier de préférence pour le tethering
vous devez le modifier afin qu'il ressemble à ceci (modifications en gras):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>State</key>
<integer>1023</integer>
<key>Version</key>
<integer>2</integer>
</dict>
</plist>

Le fait de modifier la clé "State" de 1020 à 1023 va faire apparaitre le toggle d'activation du tethering dans les réglages. N'y allez pas tout de suite, si vous n'avez pas modifié les fichiers suivants, le système remettra l'état à 1020 et le bouton disparaitra.

Deuxième fichier
Ensuite, modifions "/private/var/Managed Preferences/mobile/com.apple.managedCarrier.plist"
qui est le fichier de configuration réseau de votre opérateur, voilà ce que vous devez obtenir (modifications en gras):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>apns</key>
<array>
<dict>
<key>apn</key>
<string>orange.fr</string>
<key>password</key>
<string>orange</string>
<key>type-mask</key>
<integer>53</integer>

<key>username</key>
<string>orange</string>
</dict>
</array>
</dict>
</plist>

La clé "type-mask" va vous permettre d'ici peu d'activer le tethering pour cette connexion.


Troisième fichier
Soyez attentif, concernant le dernier fichier "/private/var/preferences/SystemConfiguration/preferences.plist"
Toute erreur pourrait faire planter votre téléphone. J'ai volontairement évité de recopier tout le fichier car ce dernier comporte des clés hexadécimales propres à chaque téléphone et que vous n'avez de toutes façons pas besoin de modifier.

Naviguez jusqu'aux lignes suivantes:
<dict>
<key>AllowNoDNS</key>
<integer>1</integer>
<key>apn</key>
<string>orange.fr</string>

et ajoutez immédiatement après:
<key>type-mask</key>
<integer>53</integer>



Redémarrez votre iPhone, allez dans "Réglages>Général>Réseau", et profitez de votre partage de connexion en 3G !



Problèmes connus

• Si les fichiers ne ressemblent absolument pas à ce que j'ai décrit, ne les modifiez pas, il vous faudra installer un profil réseau que vous pourrez trouver sur http://help.benm.at.
Malheureusement ce site va vous rediriger sur une page de blog, vous devrez vous y connecter avec Mobile Safari, ou avec votre navigateur en changeant l'user-agent en "mobile safari".

Si vous êtes chez orange, voici mon profil réseau.

• Une fois le profil réseau téléchargé, vous ne pourrez pas l'installer avec mobile safari, cette option est désormais impossible sur iOS 4. Vous devez vous l'envoyer par mail, et l'installer depuis l'application mail de votre iPhone.

• Notez bien que votre iPhone doit être débloqué avec UltraSn0w, et donc vous devez avoir une ancienne version du baseband (firmware gérant le modem), les nouvelles versions étant en théorie non-déblocables. Dans tous les cas, le downgrade (passage à une version antérieure), que ce soit du baseband ou du système, est TOUJOURS possible. Je n'ai pas le temps de le documenter ici, mais il existe de très bon tutoriels sur ce sujet.

Si vous rencontrez des difficultés, vous pouvez m'en faire part dans les commentaires
 Array
(
    [id] => qlJ4
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2010-06-04 19:57:00
    [kind] => memo
    [access] => 9
    [title] => Activer la recherche SSL Google sous Safari/Mac OS X avec Glims
    [content] => Ceux qui utilisent l'excellent plug-in [url=http://www.machangout.com/]Glims[/url] sous Safari peuvent dorénavant bénéficier du cryptage SSL que propose depuis peu Google.

Il vous suffit pour cela d'aller dans les paramètres de Glims, et de rentrer la chaîne suivante:
[pre]https://www.google.com/search?hl=fr&source=hp&q=,#query#[/pre]

[img=https://daryo.com/data/asset/qlJ4_A7B7.jpg]
    [language] => 
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2010-06-04 19:57
Ceux qui utilisent l'excellent plug-in Glims sous Safari peuvent dorénavant bénéficier du cryptage SSL que propose depuis peu Google.

Il vous suffit pour cela d'aller dans les paramètres de Glims, et de rentrer la chaîne suivante:
https://www.google.com/search?hl=fr&source=hp&q=,#query#


 Array
(
    [id] => tS2b
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => d4r7o
    [date] => 2010-05-24 17:41:00
    [kind] => memo
    [access] => 9
    [title] => How to repair wifi issues on jailbroken iPhones
    [content] => Please note that this method is the only one which will allows you to keep your preferred networks saved.

All the other methods are bullshit.



[b]Devices:[/b] iPhone 3G/3GS
[b]OS:[/b] up to 3.1.3

[b]Symptoms:[/b] no wifi network / unable to join any network


[b]First step: Localization[/b]

You should proceed by connecting your computer to your iPhone via the netatalk protocol, which is the fastest and the easier way to modify files directly on your iPhone memory. Your wifi is not working, so you will have to connect your devices via bluetooth.

You can also use iFile (check cydia) or the Mobile Terminal, but it will be a little bit longer.

So, the first step is to locate the file "[i]/Library/Preferences/SystemConfiguration/com.apple.wifi.plist[/i]" which, as its name stands for, is dedicated to wifi.


[b]Second step: Modification[/b]

Most of the wifi issues are due to a couple of keys in the plist file which are set with the wrong parameter.

Let's modify it.

Locate the first one: <key>AllowEnable</key>
…and set it to <true/>

Now locate the second one: <key>JoinMode</key>
…and set it to <string>Automatic</string>

Save, and Reboot, it should work.

[b]Last Step: it's still not working[/b]
Make a backup of your [i]com.apple.wifi.plist[/i] file somewhere on your iPhone, and reset the network parameters on the Settings/General/(Last Tab), you will have to edit your new file, by copying the "List of known networks" hierarchy from the backed-up file to the new one, and you will not lose even one of them.
    [language] => EN
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => d4r7o
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/d4r7o
    [mission] => 
    [layout] => reduced
)
by d4r7o - 2010-05-24 17:41
Please note that this method is the only one which will allows you to keep your preferred networks saved.

All the other methods are bullshit.



Devices: iPhone 3G/3GS
OS: up to 3.1.3

Symptoms: no wifi network / unable to join any network


First step: Localization

You should proceed by connecting your computer to your iPhone via the netatalk protocol, which is the fastest and the easier way to modify files directly on your iPhone memory. Your wifi is not working, so you will have to connect your devices via bluetooth.

You can also use iFile (check cydia) or the Mobile Terminal, but it will be a little bit longer.

So, the first step is to locate the file "/Library/Preferences/SystemConfiguration/com.apple.wifi.plist" which, as its name stands for, is dedicated to wifi.


Second step: Modification

Most of the wifi issues are due to a couple of keys in the plist file which are set with the wrong parameter.

Let's modify it.

Locate the first one: <key>AllowEnable</key>
…and set it to <true/>

Now locate the second one: <key>JoinMode</key>
…and set it to <string>Automatic</string>

Save, and Reboot, it should work.

Last Step: it's still not working
Make a backup of your com.apple.wifi.plist file somewhere on your iPhone, and reset the network parameters on the Settings/General/(Last Tab), you will have to edit your new file, by copying the "List of known networks" hierarchy from the backed-up file to the new one, and you will not lose even one of them.
 Array
(
    [id] => dNs5
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => d4r7o
    [date] => 2010-05-24 13:48:00
    [kind] => memo
    [access] => 9
    [title] => Mac OS X easter eggs
    [content] => If you magnify the TextEdit icon, you will be able to read the full length text of one of the most impressive Apple TV ad ever.

[img=https://daryo.com/data/asset/dNs5_pHrN.jpg]

[youtube=4oAB83Z1ydE]
    [language] => EN
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => d4r7o
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/d4r7o
    [mission] => 
    [layout] => reduced
)
by d4r7o - 2010-05-24 13:48
If you magnify the TextEdit icon, you will be able to read the full length text of one of the most impressive Apple TV ad ever.



 Array
(
    [id] => RGXc
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2009-09-09 15:57:00
    [kind] => memo
    [access] => 9
    [title] => Stockage physique c/ Stockage digital
    [content] => [url=http://www.mozy.com/blog/misc/physical-storage-vs-digital-storage/]
[img=https://daryo.com/data/asset/RGXc_TwhN.jpg][/url]
    [language] => 
    [url] => https://mozy.com/?ref=388QS6
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
 Array
(
    [id] => NVsC
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2009-03-17 13:10:00
    [kind] => memo
    [access] => 9
    [title] => Facebook messenger icons
    [content] => [img=https://daryo.com/data/asset/NVsC_mOUv.jpg]
    [language] => FR
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
 Array
(
    [id] => HkmH
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => d4r7o
    [date] => 2008-09-13 19:00:00
    [kind] => memo
    [access] => 9
    [title] => Numark iDJ2 Firmware Update on Mac OS X
    [content] => I've recently bought the Numark iDJ2, and it works pretty well, I use it to mix in my favorite restaurant, and I only have to bring my iDJ2 and my ipod, instead of a ton of cds.

But I must admit that using this product was at first a little bit disappointing. AAC support were very poor, and the timecode was lagging during playback. Checking the numark website told me that a firmware update (v 1.09a) was available, with many good stuff on it.

There were a little problem: I'm a mac user.

And a simple update, that was supposed to last five minutes, became a nightmare, for this single reason.

It's a little bit weird for a product supposed to handle Apple technologies such as HFS  file-system (wich is managed without any problem on a regular use) be unable to understand this same file-system when trying to update the iDJ2.

And it's very annoying, when after a couple of hours, you plug your specially-bought USB key to have a death screen that informs you there is not valid update on it.

So after having suffered a few hours, I've decided to help you saving your time and keep your karma at a good level.
You want to update your iDJ2 with your mac ? GOOD NEWS ! It's possible, and here is the rules:

1) You download the [url=http://www.numark.com/content57925.html]update[/url].

2) You need an USB key, no update can be done with an iPod or an external drive (I've tried with my iPod, with an external HD, and an external DVD drive, I love learning things ;-)

3) You must format your USB key with FAT32 file-system and only this one. You can do that with the Disk Utility wich is in the Utility folder of your Applications folder in Mac OS X. If you can't use Disk Utility you will need to do it throught the command line (Google will tell you how to do).

4) copy the update file (iDJ2_v1_09a.upg) on the USB key, and to be sure that the Finder will not create hidden files that the iDJ2 would take, by mistake, to be the update, we will use the terminal to do that.
open the Terminal, and assuming that the update file is on your desktop, and that your USB key is labelled as "HELLO", type the following command:
cp ~/Desktop/iDJ2_v1_09a.upg /Volumes/HELLO/DJ2_v1_09a.upg

don't open a finder window pointing your USB key, the Finder could take this occasion to create ugly hidden files on it.

5) You can verify that your USB key is holding one, and only one file, with this command:
ls -al /Volumes/HELLO
If it's not the case, you should use rm /Volumes/HELLO/[the name of a file you want to delete] to fix it

6) Start the Update process by following the Numark instructions, as an honest PC user would do.

7) Play AAC music and be amazed by the beauty of the non-lagging timecode.
    [language] => en
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => d4r7o
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/d4r7o
    [mission] => 
    [layout] => reduced
)
by d4r7o - 2008-09-13 19:00
I've recently bought the Numark iDJ2, and it works pretty well, I use it to mix in my favorite restaurant, and I only have to bring my iDJ2 and my ipod, instead of a ton of cds.

But I must admit that using this product was at first a little bit disappointing. AAC support were very poor, and the timecode was lagging during playback. Checking the numark website told me that a firmware update (v 1.09a) was available, with many good stuff on it.

There were a little problem: I'm a mac user.

And a simple update, that was supposed to last five minutes, became a nightmare, for this single reason.

It's a little bit weird for a product supposed to handle Apple technologies such as HFS file-system (wich is managed without any problem on a regular use) be unable to understand this same file-system when trying to update the iDJ2.

And it's very annoying, when after a couple of hours, you plug your specially-bought USB key to have a death screen that informs you there is not valid update on it.

So after having suffered a few hours, I've decided to help you saving your time and keep your karma at a good level.
You want to update your iDJ2 with your mac ? GOOD NEWS ! It's possible, and here is the rules:

1) You download the update.

2) You need an USB key, no update can be done with an iPod or an external drive (I've tried with my iPod, with an external HD, and an external DVD drive, I love learning things ;-)

3) You must format your USB key with FAT32 file-system and only this one. You can do that with the Disk Utility wich is in the Utility folder of your Applications folder in Mac OS X. If you can't use Disk Utility you will need to do it throught the command line (Google will tell you how to do).

4) copy the update file (iDJ2_v1_09a.upg) on the USB key, and to be sure that the Finder will not create hidden files that the iDJ2 would take, by mistake, to be the update, we will use the terminal to do that.
open the Terminal, and assuming that the update file is on your desktop, and that your USB key is labelled as "HELLO", type the following command:
cp ~/Desktop/iDJ2_v1_09a.upg /Volumes/HELLO/DJ2_v1_09a.upg

don't open a finder window pointing your USB key, the Finder could take this occasion to create ugly hidden files on it.

5) You can verify that your USB key is holding one, and only one file, with this command:
ls -al /Volumes/HELLO
If it's not the case, you should use rm /Volumes/HELLO/[the name of a file you want to delete] to fix it

6) Start the Update process by following the Numark instructions, as an honest PC user would do.

7) Play AAC music and be amazed by the beauty of the non-lagging timecode.
 Array
(
    [id] => 6hD7
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2007-12-19 22:00:00
    [kind] => memo
    [access] => 9
    [title] => PHP 5, Apache, MySQL et UTF-8: un cauchemard
    [content] => Les pages de ce site (et notamment les mémos) devraient pâtir assez longtemps de mon récent passage à l'UTF-8.
En effet, histoire de me mettre à l'abris de tout problème d'encodage éventuel, j'ai décidé de passer à cette norme plus internationale qui permet, quel luxe, de dire bonjour en arabe et en japonais:

السلام عليكم

を編集中


Seulement voilà, c'était beaucoup plus difficile à mettre en oeuvre que je ne l'avais imaginé, et je dois reprendre tous mes textes pour les convertir manuellement, je vous garantit qu'afficher correctement les 3 langues de ce texte est pour moi un véritable plaisir quand je vois le temps que j'ai passé à farfouiller sur les forums.

[b]En gros, je résume (allez je m'essaye à un petit tutoriel):[/b]

Prenons les choses dans l'ordre: 

En premier lieu, vous allez reprendre un à un tous vos fichiers sur le serveur, et vous les réencodez en UTF-8. Sous Mac, TextEdit le fait très bien avec un simple "Enregistrer sous", sous windows je suppose que le notepad doit faire pareil.
Vérifiez que votre conection FTP est en mode binaire, et pas ASCII (ça évitera bien des problèmes).

Ensuite nous allons nous intéresser à chaque brique logicielle.

• APACHE:
A priori vous n'avez pas accés à la config d'Apache, peu importe. Dans le fichier .htaccess (à la racine de votre site web, si il n'existe pas créez-le), vous ajoutez la ligne suivante (c'est la même si vous pouvez accéder au httpd.conf):
AddDefaultCharset	UTF-8


• PHP:
Alors là, deux solutions, soit PHP est installé sur votre serveur avec la librairie mbstring, soit il ne l'est pas. Sincèrement je vous souhaite qu'elle soit incluse, sinon je vous invite à ramer sur les forums et prier pour que php6 sorte vite.

Si la librairie MBSTRING est installé, vous devrez tout de même remplacer certaines fonctions comme strlen() par mb_strlen() (mb=multi-byte) pour que le compte soit bon. Voyez ici quelles fonctions posent problème.

• MYSQL
J'ai lu dans vos pensées: vous vous êtes dit après PHP le plus dur est fait. Grave erreur.

Déjà, constatation préliminaire, phpMyAdmin ne vous sera d'aucun secours: il gère très (très très) mal l'UTF-8.

Essayons d'ordonner nos idées.

Si vous voulez faire mieux et plus rapidement que ce que j'ai fait (et surtout si votre base n'est pas un vaste foutoire avec deux encodages différents sur une même table ;-)

• Faites une sauvegarde (commande DUMP)
• Recréez une nouvelle base en UTF-8 ;
CREATE DATABASE base CHARACTER SET utf8 COLLATE utf8_bin

• Changez les charset et collate, pour les mettre en UTF-8.
• Convertir le fichier de sauvegarde en UTF-8 (démerdez-vous)
• L'importer.

Enfin, pour chaque page PHP, lorsque vous déclarez le lien MYSQL, vous devez ensuite faire la requête suivante:
SET NAMES utf8

chez moi ça donne ça (c'est une fonction de ma librairie qui crée le lien MYSQL a chaque instance de page):
[i]
$link = mysql_connect ($db_host,$db_user,$db_pass) or die ('Erreur : '.mysql_error());
mysql_select_db($db_db) or die ('Erreur :'.mysql_error());
mysql_query("SET NAMES, 'utf8'");
return $link;
[/i]

• Concernant le code HTML.
Il faut en dernier lieu s'intéresser à ce qui arrive chez le client. A priori nous supposons que son navigateur accepte l'UTF-8.

Votre page HTML doit contenir la balise meta suivante:


Si vous travaillez en XML, se sera


Concernant les formulaires, surtout ne faite pas la même erreur que moi, ça vous évitera de perdre les précieuses heures qui vous séparent de votre mort et que vous devriez consacrer à chérir vos proches:
!! DANS LA BALISE  N'OUBLIEZ SURTOUT PAS SOUS PEINE DE GACHER VOTRE DB DE PRECISER L'ENCODAGE !!
par exemple la présente page, quand j'édite la source, le form prend l'allure suivante:


et normalement tout ira bien.

Je me tiens à votre disposition pour toute question là dessus (j'ai bien mis les mains dans le cambouis, alors allez-y je suis chaud)
    [language] => FR
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2007-12-19 22:00
Les pages de ce site (et notamment les mémos) devraient pâtir assez longtemps de mon récent passage à l'UTF-8.
En effet, histoire de me mettre à l'abris de tout problème d'encodage éventuel, j'ai décidé de passer à cette norme plus internationale qui permet, quel luxe, de dire bonjour en arabe et en japonais:

السلام عليكم

を編集中


Seulement voilà, c'était beaucoup plus difficile à mettre en oeuvre que je ne l'avais imaginé, et je dois reprendre tous mes textes pour les convertir manuellement, je vous garantit qu'afficher correctement les 3 langues de ce texte est pour moi un véritable plaisir quand je vois le temps que j'ai passé à farfouiller sur les forums.

En gros, je résume (allez je m'essaye à un petit tutoriel):

Prenons les choses dans l'ordre:

En premier lieu, vous allez reprendre un à un tous vos fichiers sur le serveur, et vous les réencodez en UTF-8. Sous Mac, TextEdit le fait très bien avec un simple "Enregistrer sous", sous windows je suppose que le notepad doit faire pareil.
Vérifiez que votre conection FTP est en mode binaire, et pas ASCII (ça évitera bien des problèmes).

Ensuite nous allons nous intéresser à chaque brique logicielle.

• APACHE:
A priori vous n'avez pas accés à la config d'Apache, peu importe. Dans le fichier .htaccess (à la racine de votre site web, si il n'existe pas créez-le), vous ajoutez la ligne suivante (c'est la même si vous pouvez accéder au httpd.conf):
AddDefaultCharset UTF-8


• PHP:
Alors là, deux solutions, soit PHP est installé sur votre serveur avec la librairie mbstring, soit il ne l'est pas. Sincèrement je vous souhaite qu'elle soit incluse, sinon je vous invite à ramer sur les forums et prier pour que php6 sorte vite.

Si la librairie MBSTRING est installé, vous devrez tout de même remplacer certaines fonctions comme strlen() par mb_strlen() (mb=multi-byte) pour que le compte soit bon. Voyez ici quelles fonctions posent problème.

• MYSQL
J'ai lu dans vos pensées: vous vous êtes dit après PHP le plus dur est fait. Grave erreur.

Déjà, constatation préliminaire, phpMyAdmin ne vous sera d'aucun secours: il gère très (très très) mal l'UTF-8.

Essayons d'ordonner nos idées.

Si vous voulez faire mieux et plus rapidement que ce que j'ai fait (et surtout si votre base n'est pas un vaste foutoire avec deux encodages différents sur une même table ;-)

• Faites une sauvegarde (commande DUMP)
• Recréez une nouvelle base en UTF-8 ;
CREATE DATABASE base CHARACTER SET utf8 COLLATE utf8_bin

• Changez les charset et collate, pour les mettre en UTF-8.
• Convertir le fichier de sauvegarde en UTF-8 (démerdez-vous)
• L'importer.

Enfin, pour chaque page PHP, lorsque vous déclarez le lien MYSQL, vous devez ensuite faire la requête suivante:
SET NAMES utf8

chez moi ça donne ça (c'est une fonction de ma librairie qui crée le lien MYSQL a chaque instance de page):

$link = mysql_connect ($db_host,$db_user,$db_pass) or die ('Erreur : '.mysql_error());
mysql_select_db($db_db) or die ('Erreur :'.mysql_error());
mysql_query("SET NAMES, 'utf8'");
return $link;


• Concernant le code HTML.
Il faut en dernier lieu s'intéresser à ce qui arrive chez le client. A priori nous supposons que son navigateur accepte l'UTF-8.

Votre page HTML doit contenir la balise meta suivante:


Si vous travaillez en XML, se sera


Concernant les formulaires, surtout ne faite pas la même erreur que moi, ça vous évitera de perdre les précieuses heures qui vous séparent de votre mort et que vous devriez consacrer à chérir vos proches:
!! DANS LA BALISE N'OUBLIEZ SURTOUT PAS SOUS PEINE DE GACHER VOTRE DB DE PRECISER L'ENCODAGE !!
par exemple la présente page, quand j'édite la source, le form prend l'allure suivante:


et normalement tout ira bien.

Je me tiens à votre disposition pour toute question là dessus (j'ai bien mis les mains dans le cambouis, alors allez-y je suis chaud)
 Array
(
    [id] => 61Gy
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2007-11-08 22:00:00
    [kind] => memo
    [access] => 9
    [title] => Raccourcis Mac os X
    [content] => Voici quelques raccourcis utiles pour mac os x.

Au démarrage:

Pomme () +
. (point)		Au moment du choix de l'OS, éjecte le CD
alt P R		Zappe la PRAM. Maintenir jusqu’au deuxième son.
alt P R		Efface la NV RAM. Identique à la r.a.z. totale dans l’Open Firmware.
C			Démarre depuis un CD.
D			Force le disque dur interne à être l’unité de démarrage
N			Maintenu jusqu’au logo Mac, provoque le démarrage depuis un serveur réseau
CTRL MAJ On	Réinitialise le power manager (ordinateur éteint)
MAJ			Démarrage en mode sécurisé, avec desactivation des extensions non essentielles
V			Mode verbose (affiche le démarrage en mode texte
S			démarre en mode utilisateur unique


Pomme   

Q			quitter application
W			fermer fenêtre
H			masquer application
Z			annuler
A			sélectionner tout
X			couper
C			copier
V			coller
I			infos
P			imprimer
N			nouveau
S			enregistrer
maj S		enregistrer sous
O			ouvrir
retour chariot	supprimer fichier
tab			passer d'une application à l'autre
maj esc		forcer à quitter
espace		rechercher fichier


fichiers texte:

i		italique
b		gras
u		souligné
    [language] => FR
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2007-11-08 22:00
Voici quelques raccourcis utiles pour mac os x.

Au démarrage:

Pomme () +
. (point) Au moment du choix de l'OS, éjecte le CD
alt P R Zappe la PRAM. Maintenir jusqu’au deuxième son.
alt P R Efface la NV RAM. Identique à la r.a.z. totale dans l’Open Firmware.
C Démarre depuis un CD.
D Force le disque dur interne à être l’unité de démarrage
N Maintenu jusqu’au logo Mac, provoque le démarrage depuis un serveur réseau
CTRL MAJ On Réinitialise le power manager (ordinateur éteint)
MAJ Démarrage en mode sécurisé, avec desactivation des extensions non essentielles
V Mode verbose (affiche le démarrage en mode texte
S démarre en mode utilisateur unique


Pomme

Q quitter application
W fermer fenêtre
H masquer application
Z annuler
A sélectionner tout
X couper
C copier
V coller
I infos
P imprimer
N nouveau
S enregistrer
maj S enregistrer sous
O ouvrir
retour chariot supprimer fichier
tab passer d'une application à l'autre
maj esc forcer à quitter
espace rechercher fichier


fichiers texte:

i italique
b gras
u souligné
 Array
(
    [id] => uUg4
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => d4r7o
    [date] => 2006-08-14 19:00:00
    [kind] => memo
    [access] => 9
    [title] => Troubleshooting CorelDraw 11 / Mac os X
    [content] => I've just received my brand new macbook, and unfortunately, Corel Draw is crashing on startup as well as the other applications of the suite.
I've tried to google this error and get not enough details on the way to troubleshoot it.
After a few days I've found the solution: Install the latest coreldraw update, and configure a default printer. And then, on corel start, maintain the caps key to refresh the desktop environment.
That's now works.
    [language] => EN
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => d4r7o
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/d4r7o
    [mission] => 
    [layout] => reduced
)
by d4r7o - 2006-08-14 19:00
I've just received my brand new macbook, and unfortunately, Corel Draw is crashing on startup as well as the other applications of the suite.
I've tried to google this error and get not enough details on the way to troubleshoot it.
After a few days I've found the solution: Install the latest coreldraw update, and configure a default printer. And then, on corel start, maintain the caps key to refresh the desktop environment.
That's now works.
 Array
(
    [id] => NvOo
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => seb
    [date] => 2006-05-17 19:00:00
    [kind] => memo
    [access] => 9
    [title] => IE: une perte de temps ?
    [content] => J'ai commencé a mettre au point une nouvelle version de ce site, sans tables et en utilisant un standard connu: le xhtml / css. Le résultat escompté a bien été retranscrit par Mozilla et Safari, mais bien sûr il fallait bien qu'Internet explorer s'illustre par sa médiocrité. Résultat des courses: une série de hacks css, et presque trois fois plus de temps pour développer la nouvelle interface, tout ça parce qu'un navigateur ne suis pas les standards.
    [language] => FR
    [url] => 
    [clicks] => 
    [is_promoted] => 0
    [user] => seb
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/seb
    [mission] => 
    [layout] => reduced
)
by seb - 2006-05-17 19:00
J'ai commencé a mettre au point une nouvelle version de ce site, sans tables et en utilisant un standard connu: le xhtml / css. Le résultat escompté a bien été retranscrit par Mozilla et Safari, mais bien sûr il fallait bien qu'Internet explorer s'illustre par sa médiocrité. Résultat des courses: une série de hacks css, et presque trois fois plus de temps pour développer la nouvelle interface, tout ça parce qu'un navigateur ne suis pas les standards.
 Array
(
    [id] => SpSy
    [id_url] => 
    [cat_id] => kwgM
    [user_id] => d4r7o
    [date] => 2006-03-16 22:00:00
    [kind] => memo
    [access] => 9
    [title] => Troubleshooting Palm Desktop and Ressource fork / Mac os x
    [content] => You may experience some problems, under mac os x, with older applications, like Palm Desktop which takes on consideration the ressource fork of files.
I've found softwares from a japanese programmer that can solve all problems concerning ressources fork. All those softwares are native mac os x applications.
    [language] => EN
    [url] => http://www5.wind.ne.jp/miko/
    [clicks] => 
    [is_promoted] => 0
    [user] => d4r7o
    [feed] => Technologie
    [feedUrl] => https://daryo.com/category/technologie
    [source] => _internal_
    [userUrl] => https://daryo.com/user/d4r7o
    [mission] => 
    [layout] => reduced
)
by d4r7o - 2006-03-16 22:00
You may experience some problems, under mac os x, with older applications, like Palm Desktop which takes on consideration the ressource fork of files.
I've found softwares from a japanese programmer that can solve all problems concerning ressources fork. All those softwares are native mac os x applications.