Mac Setup for Astronomy

Table of contents

  1. Application List
  2. Names
  3. Shell
  4. Xcode
    1. Command Line Tools
  5. XQuartz
  6. Homebrew
  7. GCC (gfortran)
  8. MacPorts
    1. GILDAS (CLASS)
  9. iTerm2
    1. iTerm2 Setting
  10. MacVim
  11. Anaconda
    1. Jupyter notebook
  12. PyCharm
    1. CARTA
      1. Package installation
      2. Stand-alone application
  13. Dropbox

Start with macOS 13 Ventura.

Application List

  • Adobe Creative Cloud
    • Adobe Acrobat
    • Adobe Illustrator
    • Adobe Photoshop
  • Anaconda
  • balenaEtcher
  • Battle.net
  • Bugs Player
  • Canon Utility
  • CASA
  • Dropbox
  • Google Chrome
  • Grammarly
  • Hancom Office Hanguel 2014
  • iObserve
  • Kakao Talk
  • MacPorts
  • MacVim
  • Microsoft Office
    • Microsoft Excel
    • Microsoft Powerpoint
    • Microsoft Word
  • Papers
  • PyCharm
  • SAOImage DS9
  • Secuway SSL
  • Slack
  • Steam
  • Stellarium
  • TIDAL
  • Visual Studio Code
  • Xcode
  • Zoom.us

Names

% sudo scutil --set ComputerName "SHINY's MacBook Pro KASI"
% sudo scutil --set LocalHostName shinymbpkasi
% sudo scutil --set HostName shinymbpkasi

Shell

(optional)

% vi ~/.zshrc
PS1="%F{magenta}%n%F{cyan}(%m) %F{green}%3~ %F{default}%# "
export CLICOLOR=1
export TERM=xterm-256color

% vi ~/.zprofile

Xcode

Download and install the latest version of Xcode and Command Line Tools

Download 1 (App Store)

Download 2 (Apple Developer)

Command Line Tools

% xcode-select --install

License Agreement

% sudo xcodebuild -license

XQuartz

Download

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Add Homebrew to user PATH:

% (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> ~/.zprofile
% eval "$(/usr/local/bin/brew shellenv)"

GCC (gfortran)

Download

[!WARNING] 2023.10.09. There is not suitable version for Ventura with x86_64.

gcc can be installed using brew:

% brew install gcc

Confirm installation:

% gcc --version
% gfortran --version

Make gcc link to Homebrew GCC instead of the Apple clang version. Apple Command Line Tools includes /usr/bin/gcc.

% ln -s /usr/local/bin/gcc-13 /usr/local/bin/gcc

MacPorts

To install GILDAS:

Download

GILDAS (CLASS)

[!WARNING] 2023.10.09. building gildas is failed.

Download

% sudo port install gildas

iTerm2

Download

iTerm2 Setting

  • iTerm2
    • Make iTerm2 Default Term
    • Settings
      • Profiles
        • General
          • Working Directory
            • Reuse previous session’s directory
        • Colors
          • Color Presets…
            • Pastel (Dark Background)
        • Text
          • Font
            • Menlo

MacVim

Download

% ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
% (echo; echo 'alias vi="mvim"') >> ~/.zprofile

Install vundle to install plug-in packages:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Download .vimrc:

Download

cp vimrc.txt ~/.vimrc

Install plug-in packages:

vi ~/.vimrc

Execute :BundleInstall

Anaconda

Download

% mv ~/.zshrc ~/.conda_init

% vi ~/.zprofile

alias pyc="source ~/.conda_init"

% pyc

Jupyter notebook

Set to open jupyter notebook in Google Chrome

(base) % jupyter notebook --generate-config
(base) % vi ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.browser = 'open -a /Applications/Google\ Chrome.app %s'

PyCharm

Download

CARTA

Package installation

brew install cartavis/tap/carta

Stand-alone application

Download

add alias to ~/.zshrc or ~/.zprofile

alias carta='/Applications/CARTA.app/Contents/MacOS/CARTA'

Dropbox

Download