mercredi 28 janvier 2009

Changer le nom d'un utilisateur

Dans les préférences systèmes, sur compte d'utilisateur. Faire un clic droit sur un nom et choisir options avancées.
Ne marche qu'en 10.5 il semble

vendredi 23 janvier 2009

Ejecter un CD bloquer dans le lecteur interne d'un macbook ou d'un powerbook

Mini-Tutorial: Ejecting media in Mac OS X: Removing 'stuck' CDs/DVDs

From time-to-time, removable media (including CDs, DVDs and others) can refuse to eject via the normal Mac OS X methods -- pressing the keyboard eject key; using the Command-E keyboard combination; selecting the item in the Finder and clicking the Eject button next to its name; dragging the item to the trash; or pressing the F12 key.

A number of methods can be applied to help coax media out of an optical drive in such a situation. Before applying these methods, however, note that busy disks (either startup disks or disks with an open file) should not be ejected and will not using any of the aforementioned standard processes. As such, be patient with a disk that will not eject immediately. Sometimes a disk continues to be identified as busy for several seconds after any contained files are not in use, and waiting a few moments then re-attempting the ejection is successful.

Use Disk Utility to eject The first and simplest method, if you only want to unmount a single volume on the disk, is to use Disk Utility, located in Applications/Utilities. In Disk Utility, simply select the volume you want to unmount and click Eject.

Hold Down the mouse button at startup In some cases holding down a connected mouse button at startup will cause a misbehaving optical drive to eject its media.

Unfortunately, this method will not work if you are using a Bluetooth keyboard.

Also, for Xserve users, make sure that the machine is unlocked (using the included allen wrench) before holding down the mouse key during startup.

Boot into Open Firmware and eject If you have a Mac that will not startup properly and has a stuck disc, try booting into Open Firmware by holding down Command, Option, O key and F key during startup. After booting into Open Firmware, type the command eject-cd.

Using the Terminal There are two commands that can be used in the Terminal (located in Applications/Utilities) which can be used to force disk ejection:

The first command to try is drutil tray eject. Simply type in this command and press return.

The other method takes a little more work but can work in instances where the first method fails.
1. Type the command drutil list into the Terminal and press return . This will provide a list of all currently connected removable devices. [ScreenShot 1-DiskEject] -- connect FireWire/USB drives for this
2. Use the command drutil tray eject 1

In the above command, the number "1" should be replaced with whatever drive number you obtained in the first step.

Enabling an Eject menu As a side note, you can enable another means of ejecting disks by opening the folder System/Library/CoreServices/Menu Extras and double-clicking the file "Eject.menu". An eject icon will appear in the menubar that can be used to close and open selected optical drives.

If you no longer want the Eject menubar item, hold down the command key while clicking and dragging the icon out of the menubar space.

jeudi 22 janvier 2009

Connexion en VPN pour la z'olie Luly

Message pour Luly
La connexion sur mac passe sans problème. Par contre sur xp c'est un peu plus compliqué mais voilà la solution. Disons que ça marche chez moi.


Configuration pour Windows XP

D'abord il faut modifier un registre:
http://support.microsoft.com/kb/926179
Voici la procédure simplifiée pour un XP SP3
1/ Cliquer dans le menu démarrer
2/ Choisir Exécuter
3/ Dans le champ, rentrer regedit et cliquer sur OK, une fenêtre s'ouvre
4/ Déplier le niveau HKEY_LOCAL_MACHINE
5/ Déplier les niveaux SYSTEM puis CurrentControlSet puis Services puis PolicyAgent
6/ Dans le menu Edition choisir Nouveau, et choisir Valeur DWORD
7/ Rentrer le nom suivant (faire un copier coller, c'est plus sûr): AssumeUDPEncapsulationContextOnSendRule, et appuyer ENTER.
8/ Faire un clic-droit sur le nom AssumeUDPEncapsulationContextOnSendRule, et choisir Modifier
9 / Dans la case, Données de la valeur, mettre 2 et cliquer sur OK

Ensuite il faut redémarrer et créer la nouvelle connexion:

1/ Cliquer sur Démarrer et Ensuite "Panneau de configuration"
a/ Passer en affichage classique si il est en simplifié
2/ Double-cliquer sur "Connexions réseau"
3/ Cliquer sur la barre lattérale: Créer une nouvelle connexion
4/ Une fenêtre s'ouvre, cliquer sur suivant
5/ Choisir "Connexion au réseau d'entreprise", puis suivant
6/ Choisir "Connexion réseau privé virtuel", puis suivant
7/ Donner le nom de la connexion, exemple "Luly par Marc", puis suivant
8/ Entrer l'adresse suivante girondot.hd.free.fr , puis suivant
9/ Si demandé, choisir que tout le monde peut y avoir accès, puis suivant
10/ Cliquer pour avoir un racourci sur le bureau et Terminé
11/ Dans la boîte de dialogue, rentrer le nom d'utilisateur "Luly" et le mot de passe est ton nom sl
a/ Tu peux cocher enregistrer si il y a que toi qui utilise ce compte
12/ Faire Propriété et aller dans le tab "Gestion du réseau"
a/ Dans type de réseau VPN, choisir "PPTP VPN"
b/ choisir OK
13/ Faire Connecter

Pour une utilisation normale, faire :
14/ Cliquer sur le nom de la connexion sur le bureau
15/ Faire Connecter

lundi 12 janvier 2009

Formater un disque dur avec diskutil

"This is the best, and only, way to format an external hard drive, which is courtesy of Kappy.

Extended Hard Drive Preparation

1. Open Disk Utility in your Utilities folder. If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)

2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.

3. Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.

4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.

5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.

6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.

Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive."