AirV's Blog

Just another blog

Wifi – MacOs

Get Detailed Info from the menu bar

From http://osxdaily.com

You can retrieve extended wireless connectivity data from anywhere within Mac OS X by holding down the Option key and then clicking on the WiFi menu icon.

Option-clicking will display a sub menu under your active wifi connection that shows what wireless band you are using (PHY Mode), the routers SSID (BSSID), what channel the wireless router is using, which encryption method (Security), signal strength (RSSI), the transmit rate, and MCS index (whatever that is).

You can also mouse-over other SSID’s to see a slightly more condensed version of this information. All of this can be helpful for avoiding potential channel conflicts, or whentroubleshooting wireless problems.

Wi-Fi diagnostics

  • /System/Library/CoreServices/Wi-fi Diagnostic

 Find and scan wireless networks from the command line

  • Create the symbolic link from the airport utility to /usr/sbin for easy access

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

  • Scan for and find all wireless networks within range

airport -s
The list returned will show all available wifi networks and their router name (SSID), the router address (BSSID), signal strength (RSSI), channel, and security types used by the network.

Commande Macintosh

Raccourcis claviers sous Mac OS X

From HowToGeek.com :

Mastering the keyboard will not only increase your navigation speed but it can also help with wrist fatigue. Here are some lesser known OS X shortcuts to help you become a keyboard ninja.

After our article last week covering keyboard shortcuts for Windows that you might be unaware of, we had lots of requests for the best OS X shortcuts as well, so we’ve compiled a list of shortcuts you may or may not be aware of.

Image by Daniel Novta.

Global Menu Shortcuts

Fn-Arrow Keys is the equivalent of the Home/End and PageUp/PageDown buttons on a PC; Left-arrow and right-arrow for Home and End, Up-arrow and down-arrow for PageUp and PageDown.

Fn-Delete deletes one character to the right of the cursor, same as forward-delete on a PC.

Ctrl-F2 moves focus to the Menubar. You can use the arrow keys to select menu items and enter to apply them.

Ctrl-F3 moves focus to the Dock. You can navigate around with the arrow keys to select applications and enter to switch to them.

Ctrl-Cmd-D displays a popup dictionary for a selected word. Just hover over the word with the cursor and hit the shortcut. Useful for quick definitions.

Cmd-Q quits the current application.

Opt-Cmd-Escape opens the force quit menu where you can selectively force quit applications.

Holding Shift-Cmd-Opt-Esc for three seconds force quits the frontmost application (Leopard and Snow Leopard only).

Ctrl-Eject opens the shutdown/restart/sleep dialogue.

Ctrl-Shift-Eject puts the display to sleep immediately.

Opt-Cmd-Eject puts the computer to sleep immediately.

Ctrl-Opt-Cmd-Eject shuts down the computer immediately.

Finder Shortcuts

Enter renames selected file.

Cmd-O opens the selected folder in the Finder.

Shift-Cmd-N creates a new folder in the current directory.

Cmd-J opens the View Options panel, where you can tweak settings for how a specific folder appears in the Finder, such as icon size.

Cmd-I opens the Get Info panel for the selected item.

Cmd-Delete sends selected file(s) to Trash.

Shift-Cmd-Delete empties the Trash with confirmation.

Shift-Opt-Cmd-Delete empties the Trash without confirmation.

Enable root user in MacOS X

From HowToGeek :

How to Enable the Root User in Mac OS X

When you are using OS X, sometimes having only administrator access is not enough—when you need more access you will want to be the root user, which is similar to using the sudocommand in the Terminal, but for the whole OS.

Note: We’re showing you how to do this, but not necessarily recommending that you do it—it’s useful for certain scenarios, like getting total access to everything on your computer, but you shouldn’t use the root user as your normal user account.

Enabling the Root User

First you will need to open the System Preferences, then click on Accounts.

Next choose Login Options.

Then you will want to Edit the Network Account Settings, or choose Join if you see that button instead.

Now you want to Open Directory Utility.

Next you will want to open the Edit menu and select Enable Root User.

Now that you have enabled the root user, you will need to change the password. Again, choose the Edit menu, and then select Change Root Password…

Finally you will choose a password and verify it. Make sure its something you will remember otherwise you can just go though this process again.

At this point you can use the Log Out item on the system menu, and then login as the new root user.

Tips MacOs

Lancement d’applications au démarrage

  • Préférences Système => Comptes => Nom du Compte => Onglet Ouverture

Synchronisation des calendriers Google avec Ical

  • Via les préférences, créer un compte sous Ical de type automatique avec l’adresse mail de google

Synchronisation des contacts Google avec le carnet d’adresse

  • Via les préférences, synchroniser avec google

Caractères spéciaux

  • Pipe : Alt + Maj + L
  • Suppression : Pomme + del
  • AntiSlash : Alt + Maj + /
  • Tilde : Alt + n
  • Préférence : Pomme + ,
  • Clic droit :
    • méthode 1 : Utiliser une souris
    • méthode 2 : CTRL-Clic : Il suffit de maintenir la touche CTRL en même temps que l’on appuie sur le bouton du trackpad ou de la souris
    • méthode 3 : 2 doigts sur le Trackpad : Il faut activer la fonction dans pomme/préférence système/clavier souris/ trackpad. Pour faire un clic droit il suffit dès lors d’avoir 2 doigts posés sur le trackpad (un peu espacés quand même) et de cliquer.

Connaitre la date de fabrication de la machine

Et encore plus

NTFS sous MacOs

Sous Mac OS X Leopard, il est possible de lire et écrire sur des partitions NTFS grâce au logiciel NTFS-3G.

  • Testé et approuvé (2011/02/16) avec NTFS-3G

Settings for NTFS-3G can be changed using the NTFS-3G preference pane. To access the preference pane, start your ‘System Preferences’ application ( Menu -> System preferences…) and click the NTFS-3G icon.

Sur Snow Leopard 64 bit, il a fallu trouver un autre moyen pour lire et écrire les partition NTFS. En effet, le noyau 64 bit n’est pas supporté par NTFS-3G

Si la lecture des partitions NTFS est possible par défaut sur Snow Leopard, ce n’est pas le cas pour l’écriture. Certains ont cependant noté qu’il était possible d’activer le support de l’écriture via quelques lignes de commande dans le terminal et sans ajouter le moindre driver :

  • désinstallez Paragon NTFS ou NTFS-3g si l’un des deux est installé sur votre machine
  • lancez Terminal.app (dans le dossier utilitaires)
  • tapez « diskutil info /Volumes/Nom_du_volume » et copiez l’UUID du volume (une suite de chiffres)
  • sauvegardez /etc/fstab s’il est présent (il ne devrait pas l’être sur une installation par défaut)
  • tapez « sudo nano /etc/fstab »
  • tapez « UUID=collez_votre_UUID_ici none ntfs rw » ou « LABEL=Nom_du_volume none ntfs rw » (si vous n’avez pas l’UUID de votre disque).
  • reproduisez l’opération pour toutes vos partitions NTFS
  • enregistrez le fichier (control-x puis y) et redémarrez votre Mac

NtfsMounter est un petit programme qui rempli parfaitement cette tâche d’une manière plus « user friendly ».

Paragon NTFS (non gratuit) dans sa version 8.0 supporte le mode 64 bit de Snow Leopard.

Mot de passe Macintosh

From How to Geek

How to Reset Your Forgotten Mac OS X Password

It happens to everyone at some point—you create a new password and don’t remember to save it somewhere, and then before you know it you’ve forgotten what it was. Here’s how to reset the password on your Mac OS X computer.

If you’ve got a Windows PC and you want to reset your password, you can do so easily with the Ubuntu Live CD or the System Rescue CD in just a couple of minutes. Or you could always crack your password if you wanted.

Luckily for us, OS X has some very simple tricks that can reset a forgotten password without going to a lot of trouble.

Method One: Using the Install Disk

The first method we will look at is the OS X Installation Disk, so grab yours and put it into the drive. Once you have booted off the disk you will need to choose your language, and then OS X will prepare the installation environment.

Then you will choose the Utilities menu and choose Reset Password.

Now you need to choose the volume with the account you need to change the password for, choose the account from the drop down, and generate your new password and password hint if you wish to use one.

Note: You may want to reset the ACLs while you are here since you have changed your password. Once you are done, you can save and restart the computer.

Now you can login to your OS X computer with your newly made password.

Method Two: Tricking OS X Into Running the First Boot

The other, and possibly easier way to get around a forgotten password requires booting into Single User Mode and removing a file that tells OS X that the first boot setup has run.

To boot into Single User Mode, you’ll need to reboot the computer while pressing and holding the Command and S keys after you hear the startup gong.

Once you have booted into Single User Mode you will need to mount the volume you need to get into. Most of the time this will just be your boot disk and can be mounted as “/”. This command will mount that for you:

sudo mount -uw /

Next we need to remove the file that tells OS X that its already done the setup:

rm -rf /var/db/.AppleSetupDone

Now we need to reboot using the very logical reboot command.

reboot

Once we boot back up it will be just like the first time you boot after install and you will see the Welcome screen, and just click through the first two screens.

When you reach the screen that asks if you already own a Mac, make sure to choose “Do not transfer my information now” since we’re not doing any migrating of data.

Once you reach the “Enter Your Apple ID” screen, you can press the Command and Q keys at the same time to get past the rest of the prompts. Click Skip when asked.

Now you will create a new Administrator account. You can choose to name it something you wish to keep or anything since you just need this account to get into the OS and to System Preferences.

Click through the next screens until you reach the Thank You screen, and we’re finally done with that part of the process. Click Go and you’ll be brought into the new account.

Once the new account has loaded you can now go to your System Preferences. We will want the Accounts pane.

Now select the account with the password you want to reset and click Reset Password…

Choose your new password, and password hint if you desire, and click Reset Password.

You can now logout and login to the account with the new password.