Friday, March 2, 2012

Getting used to Mac from a Windows/Linux background

Here are some tips for getting used to Mac from a Windows/Linux background. The following tips apply for the Mac OS X Lion on a Macbook Air.
  • Right click: use "control"+click instead.
  • Cut/Copy/Paste/Find: use "command"+X/C/V/F instead.
  • Home/End button
    • "control"+A for Home, and "control"+E for End works in both browsers and Terminal.
    • "fn"+Shift+left/right works in Terminal but not in browsers.
    • "command"+left/right works in browsers but not in Terminal.
    • In the Terminal, if you are using vim, you can use "^" for Home and "$" for End.
  • Select two files and all the files in between (multiple file selection): first switch from icon view to list view, and then do it in the Windows way, i.e. select the first file, press and hold "Shift" and select the last file.
  • Install the command-line-only gcc C/C++ compiler: download "Command Line Tools for Xcode" from Apple Developer Site, which is only 170M (or 280M after install).
  • Install latex: I used the basic version of MacTex and TeXShop.
    • To find a missing package, you can use ctan search.
    • To download the missing package, you can do "sudo tlmgr install [package name]".
    • To install a package manually, you can extract it into /usr/local/texlive/2011basic/texmf-local/ and then run "sudo texhash".
    • To do inverse search in TeXShop, you can use "command"+click on the pdf viewer.

No comments:

Visitors