Mac

De Pontão Nós Digitais
Ir para navegaçãoIr para pesquisar

We provide information on how to run free software and general free software development on Mac OS X. Our instructions are not exactly radically about pure "free" software, but focus on advanced usage and software development that may be useful for creating free software.

This information may not be optimal or well-automated as the current contributor to this article is not very much experienced with Mac OS X.

Configuring Mac OS X for development

  • I didn't use a package manager at first and installed the following by going directly to the websites
    • Firefox, Chrome
    • Git
    • Google voice plugin
    • Libreoffice
    • Transmission bit torrent client
  • Install an IRC client from the app store
  • Install XCode from the app store
    • Go to XCode -> Preferences -> Downloads and install command line tools for xcode
  • Change capslock to control key in system preferences -> keyboard ->
  • Learn the trackpad gestures. They're useful. Activate the four finger gesture for exposee
  • Turn off stupid autocorrection
  • Vim
    • install macvim if you want to have something like gvim; otherwise its already in the system
    • Firefox is still the best browser for wiki editing. Install its all text plugin and use macvim as the app.
  • /home vs /User
    • I disabled automount of /home then symlinked to my home directory using this [1]
  • Function keys to behave as function keys
    • System Preferences -> Keyboard -> Keyboard -> checkbox "Use all F1, F2, etc. as standard function keys"
  • iTerm2 is a better terminal than Terminal [2]
  • I installed Latex from downloading a torrent form the Mactex website. Once you install it, to get a 'latex' or 'pdflatex' command in the terminal without restarting your computer you need to issue:
eval `/usr/libexec/path_helper -s`

since in OS X there is a path helper that updates system-wide PATH according to ls /etc/paths.d/* for you.

  • X11. I installed XQuartz directly from the site's .dmg package. Rumors on the web say the macports xorg package has some issues.

What I've installed using Macports

Some apps are newest in macports and are easier to install using it than downloading installers from each website.

sudo port install kdenlive gimp mplayer2 ddd pdftk okular evince nautilus inkscape xfig yasm zlib bzip2 faac lame speex libogg libvorbis libtheora libvpx x264 XviD openjpeg opencore-amr freetype

Java

  • The maven build system already comes in Mac OS X mountain lion
  • I installed JDK by typing java in google and clicking on the oracle website. If you need java 6 then you need to logon to developer.apple.com and get it there.

Package Managers for Programming

Currently there are many package managers for Mac OS X emulating the ones available in Linux. In fact, the main advantage of linux I've perceived so far is the availability of solid package management so that you can get a full-fledged development system up and running from scratch automatically. In Mac OS not everything can be done automatically, and dev packages do not seem to be as rock solid as in GNU/Linux.

  • Fink
    • This seems to be mentioned in building many free software such as Scilab and Pd. It doesnt seem to be user friendly (for mountain lion one has to install fink from source)
    • From what I read, has many binary packages and works like apt-get
  • Macports
    • User friendly, but installs a layer of software in parallel to whats already in Mac OS X.
    • Building mozilla firefox supports macports
    • Latest kdenlive, gimp are available in macports
    • ImageMagick recommends macports
    • From what I read, no binary packages. But that's good since there's nothing like building from source from a developer's point of view.
    • Word has it that macports can have old/outdated packages, that's why people have switched to Homebrew. Many people use both.
    • Latest kdenlive video editor is only easily installed using Macports
    • Mplayer has many builds in macports, including mplayer2 and development snapshots
  • Homebrew
    • Somewhat user friendly and reuses most software thats already in Mac OS X - better integration with the system.
    • I've heard it on the web that it doesn't have as many packages as Macports,
    • An experienced friend said homebrew is sometimes unstable, having broken installations and packages
    • Homebrew has newer packages than macports according to rumors, however it seems to have fewer packages
    • Building mozilla firefox supports homebrew
    • My experienced friend uses both macports and homebrew
    • Mplayer2 doesn't seem to be available in homebrew

System Automation

  • Configuring mac os x from the commandline [3]
  • Boxen

Installing Linux on a Mac

There are two options, running Linux on top Mac OS X using something like VMware, parallels desktop, virtualbox, or installing linux natively.

Macbook pro early 2013

I will here report my experience on installing linux on a early 2013 macbook pro.

Links

See Also

Configuring Ubuntu for Programming