From Scratch: Computing Environment Setup and Software Installation Guide for Theoretical/Computational Physics
Computing Environment Setup and Software Guide for Computational / Theoretical Physics
This is a computing environment setup and software installation guide for students and beginning researchers in computational physics and theoretical physics. It covers macOS, Ubuntu, and Windows, starting from the terminal, package managers, SSH, Git, editors, and Python environments, and gradually extending to C/C++/Fortran, Make/CMake, MPI/OpenMP, high-performance numerical libraries, remote access, knowledge management, and research collaboration.
Each chapter strives to answer four questions: Why do you need it, what is it, how to install it, and how to verify that it's actually installed correctly.
Target Audience
- Undergraduate students
- Graduate students who have just joined a research group
- People with some programming experience but no systematic training in research computing environments
- People who need to set up a research workflow on macOS / Ubuntu / Windows
What You Will Be Able to Do After Completing This Guide
- Understand the fundamental computer science knowledge required for research computing
- Be familiar with the differences between macOS / Ubuntu / Windows
- Use the terminal, package managers, SSH, Git, and editors
- Install and test commonly used research software on local machines and servers
- Perform basic numerical computations using Python / C / C++ / Fortran
- Understand high-performance computing concepts such as MPI / OpenMP / BLAS
- Develop the initial ability to "read others' code, organize your own projects, and use AI-assisted research programming"
- Establish habits for documentation, note-taking, reference management, syncing, and backups
Minimum Learning Path
If you have limited time, we recommend reading in the following priority order:
Phase 1: Essential Foundations
| Chapter | Content |
|---|---|
| 0. Preface | Understand how to use this tutorial |
| 1. Computer and Operating System Basics | Understand your tools |
| 2. Terminal, Shell, and Command Line | The most essential way to operate |
| 3. Platform Environment Setup | Get your system ready |
| 4. Package Managers | A unified way to install software |
| 5. Editors and IDEs | Tools you will use every day |
| 6. SSH and Remote Servers | Connect to remote computing resources |
| 7. Git and GitHub | Version control and collaboration |
| 12. Python and Virtual Environments | The primary language for research |
| 13. Python Scientific Computing Ecosystem | Numerical computation and visualization |
| 24. Syncing and Backups | Protect your data |
Optional Tools
- 8. Remote Connection Tools
- 9. Markdown and LaTeX
- 10. Obsidian
- 11. Bash Scripting
- 14. Fortran/C/C++
- 15. Make and CMake
- 16. OpenMP and MPI
- 17. High-Performance Numerical Libraries
- 18. Julia
- 19. AI-Assisted Programming
- 20. Reading Others' Code
- 21. Project Organization
- 22. Vibe Coding
- 23. Zotero
Design Principles
Each chapter contains four parts:
- Motivation — Why this chapter matters
- Introduction — What are the core concepts
- Installation / Setup — How to do it on three platforms
- Test / Verification — How to confirm the installation was successful
Common Learning Pitfalls
- "I'll install everything first before I start learning" — No need. Install as needed, learn as you go.
- "I need to finish learning Python before anything else" — Environment setup and language learning can proceed in parallel.
- "You can't do research on Windows" — Yes you can, using WSL or winget.
- "I can just copy and paste commands" — Understanding is more important than copying; otherwise you won't be able to troubleshoot when problems arise.
- "AI can learn for me" — AI is an assistant, not a replacement. You need to understand what it's doing.