dev-setup
My development environment setup
Linux
General
sudo apt-get install ssh
sudo apt-get install vim
sudo apt-get install git
sudo apt-get install build-essential
(required to install CUDA)- Settings -> Displays -> Night Light -> Set the time to be the same
zsh
sudo apt install zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Add the following to
.zshrc
to prevent git command autocompletion to be slow:
__git_files () {
_wanted files expl 'local files' _files
}
tmux
sudo apt-get install tmux
- Install tmux-config.
Anaconda
- Install miniconda 3.
Cuda
- See this
Vim
- Copy this into
~/.vimrc
.
Visual Studio
Windows
WSL2, Ubuntu 22.04.1
Memory
Create .wslconfig
at /mnt/c/Users/yenchenl
and fill in the following content:
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 64 GB, this can be set as whole numbers using GB or MB
memory=64GB
# Sets the VM to use 32 virtual processors
processors=32
# Sets amount of swap storage space to 32GB, default is 25% of available RAM
swap=32GB
Otherwise WSL wouldn't be able to access the full memory.
NVIDIA
- Drivers
- CUDA Toolkit
Tools
- VSCode
- HWInfo
- MSI Afterburner
- GPU-Z
- Windows Power Toys
- Remap keys of magic keyboard.
Terminal
- Click on the drop down menu -> Settings -> Open JSON file (left bottom)
- Add this line:
"wordDelimiters" : " ()\"':,;<>~!@#$%^&*|+=[]{}~?\u2502",
to select paths in the shell with double clicks.
COLMAP
- Follow COLMAP's instruction but install Ceres solver using its own instruction.
MacOS
Oh-my-zsh
- Follow the instruction here
Homebrew
- Follow the instruction here
wget
brew install wget
tmux
brew install tmux
- Install tmux-config.
Visual Studio
Anaconda
- Install miniconda 3.
Vim
- Copy this into
~/.vimrc
.
Flux
- Download it here.