CO Lab Manual
Course Page
  • Course Information
    • Welcome
    • Introduction
    • Your Contributions
    • Lab Sessions and Etiquette
    • Team Setup
    • Assumed Prior Knowledge
  • Setup Guides
    • GitHub Repository Setup
    • Technical Setup
      • Windows
      • Linux
      • macOS
    • GitHub SSH Setup
    • Framework Setup
  • Reference Documentation
    • Introduction to the Documentation
    • A Brief History Lesson
    • Syntax (Intel vs. AT&T)
      • Section Exercises
    • Memory
      • Memory Management
      • Section Exercises
    • Registers
      • Section Exercises
    • Instructions
    • Subroutines
      • Calling Subroutines
      • Writing Subroutines
      • Section Exercises
    • Input/Output
      • Printing to the Terminal
      • Reading from the Terminal
      • Section Exercises
    • Programming Constructs
    • Assembler Directives
    • C/C++ vs Assembly
    • Building and Running Programs
    • Address Sanitization
    • A0: A Running Example
  • Assignments
    • Introduction to the Assignments
    • Mandatory Assignments
      • A1: Subroutines and I/O
      • A2: Recursion
    • Extra Assignments
      • A3-a: Fibonacci Calculator
      • A3-b: Fibonacci REPL
      • A4: Diff
      • A5: Printf
      • A6: HPC
      • A7: Bitmap
      • A8: Game
  • Appendix
    • Acknowledgments
    • Rules and Regulations
    • Frequently Asked Questions
    • How to use a Debugger
Powered by GitBook
On this page
  • Step 1: Install VS Code
  • Step 2: Install the Required Packages
  • Step 3: Set up SSH with GitHub
  1. Setup Guides
  2. Technical Setup

Linux

PreviousWindowsNextmacOS

Last updated 4 months ago

As Linux is essentially the dream programming environment, very little setup is needed for the Lab part of this course. Furthermore, with Linux users, we expect that some of the following steps are not necessary as the requirements are likely already satisfied on your system, so you may skip any steps at your discretion.

The framework has been tested on Ubuntu 24.04 and Arch Linux. Other Linux distros should work just as well as long as they support up-to-date versions of VS Code, clang, and cmake.


Step 1: Install VS Code

Download and install (VS Code) for Linux.


Step 2: Install the Required Packages

To work with the given assignment framework, you will need clang, make, cmake and git , along with other system-specific packages needed for address sanitization.

sudo apt update && sudo apt install -y cmake clang make llvm libclang-dev
sudo pacman -S clang make cmake git compiler-rt

Step 3: Set up SSH with GitHub

One of the easiest ways to access your GitHub account (and with that your private repository) is to set up a Secure Shell (SSH) key. Follow the for this.

Visual Studio Code
GitHub SSH Setup Guide