Mac Setup for Astronomy
Table of contents
- Application List
- Names
- Shell
- Xcode
- XQuartz
- Homebrew
- GCC (gfortran)
- MacPorts
- iTerm2
- MacVim
- Anaconda
- PyCharm
- 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
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)
[!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:
GILDAS (CLASS)
[!WARNING] 2023.10.09. building
gildas
is failed.
% sudo port install gildas
iTerm2
iTerm2 Setting
- iTerm2
- Make iTerm2 Default Term
- Settings
- Profiles
- General
- Working Directory
- Reuse previous session’s directory
- Working Directory
- Colors
- Color Presets…
- Pastel (Dark Background)
- Color Presets…
- Text
- Font
- Menlo
- Font
- General
- Profiles
MacVim
% 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
:
cp vimrc.txt ~/.vimrc
Install plug-in packages:
vi ~/.vimrc
Execute :BundleInstall
Anaconda
% 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
CARTA
Package installation
brew install cartavis/tap/carta
Stand-alone application
add alias to ~/.zshrc
or ~/.zprofile
alias carta='/Applications/CARTA.app/Contents/MacOS/CARTA'