MacBook Pro


(Difference between revisions)
Jump to: navigation, search
(Useful software to install)
Line 86: Line 86:
==== OpenOffice ====
==== OpenOffice ====

Revision as of 13:53, 30 April 2012



  • How to know the operating system?

  • Create a Mac App Store account without credit card

  • Make a screen capture
cmd + shift + 3

Notes: all the shortcuts are available in Préférences Système in Keyboard (Clavier)

  • Go directly to the desktop (expose)
fn + F11

(you can change in System Preferences --> Mission Control)


The configuration is done through the Préférences Système menu.


How to efficiently use command-line tools?


Mac OS X comes in with already a huge amount of developer tools, and you may want to check them out before installing other open source compilers or libraries. The "problem" is that those developer tools are not installed by default. So before you begin doing any programming of funny things essentially using the shell, you will have to download what is called Xcode, which is the developer package of Apple.

You need to create an Apple Developer ID, which is free, and to use the application "App Store" (free and normally installed by default on the system) which is a very convenient way to download (and buy) applications, including Xcode (which is free).

Usually Xcode came out with a bunch a other applications, but since a couple of months Apple now distributes it via a stand-alone application, which is much easier for managing the updates etc. You can find more info about this change here: News in Xcode 4.3. A folder /Developer was initially created where to install all Xcode Tools, but now, since the 4.3 version, it will be a simple application placed in your /Applications folder.

Besides, Apple also distributes a "Command-Line Tools for Xcode", which you can download here: Command-Line tools for Xcode, and is a ~170Mb package with other... command-line tools, no surprise. You can also install those tools by starting Xcode and using the Downloads preference panes.

Package managers

As on Linux, you have what we can call package managers and which are a very convenient way to download, configure, making, installing, and keeping up-to-date packages automatically. The most common ones are MacPorts, Fink or HomeBrew. By the way, you will need Xcode to install those ones.

But pay attention when using them: although very convenient, they will install their packages in distinct folders by default (ex: /opt for Macports, or /sw for Fink), and if you are to compile programs in which you have to specify the compiler and library paths, be sure not to mix up all paths between your apple tools (typically installed in /usr/bin or /usr/lib...) and the packages installed via the package manager, and even your maybe self-installed packages (typically installed /usr/local)! This in order to avoid compatibility issues between the compiler and the libraries versions.

For example in order to use MacPorts tools, you'll have to set up correctly your PATH variable (see for MacPorts for example: Important steps when installing MacPorts). Look also below for more information about setting up your PATH variable.

Remember you can also use the which command in order to see where your system will fetch the command require.


MacBook-Pro-de-GHER:~ gherulg$ which gcc

MacBook-Pro-de-GHER:~ gherulg$ which gfortran

Setting up the PATH variable

On Mac OS X there is a simple way to add permanently custom paths to your PATH environment variable. Either you edit the file /etc/paths, either you add any text file (with any name) containing your paths line-by-line in the /etc/paths.d folder. And remember that in a file, the first paths to be cited will be the first ones to be searched.

You can also use the $HOME/.bash_profile with an export PATH command, which will be executed every time you open a shell session.

For instance, for MacPort:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0

Useful software to install





$ sudo port install ImageMagick


Personal tools