Setup Guide๐ for New Windows Students!
Hi Windows Students!!!๐ You got this!๐๐๐
Setup Guide๐ for New Windows Students!
Week 1-4๐ง๐จ
Hi Windows Students!!!๐ You got this!๐๐๐
- We started by creating a Github account and logging into the OpenCodingSociety, a powerful resource where you will use to guide your through for the rest of the year
- Then Accessed VSCode through the offical website, a place where you will code, experiment, and learn, you will be able to program and change your website there
- Then you have to install the VScode on your computer, I will talk about it later
- Then we worked on our About page using vscode.dev
- Next, we focused on building our tools on VScode
- For Windows students, follow the procedure below
First, understand the following๐
Shell Commands
- Windows: wsl, then standard Linux commands inside Ubuntu
Version Control Commands
- git clone: Make a working copy of a git repository from the cloud to your local machine.
- git pull: Update your local copy of the repository with changes from the cloud repository.
- git commit: Save changes to files in your local repository.
- git push: Send updates from your local repository to the remote repository.
Now do the following procedure
Windows Setup ๐ Install VSCode VSCode link, Select OS and select default on prompts
WSL install โ๏ธ
- Open Windows Terminal and Pin to Taskbar. All of these commands are activated from Windows Shell (C:)
wsl โinstall -d Ubuntu-24.04
- Setup a username and password when prompted. On password you will be typing but will not see respones.
At the conclusion of the install you will receive a WSL Ubuntu prompt. For now we will exit WSL.
- exit
Set as default:
wsl โset-default Ubuntu-24.04
-
To start WSL Ubuntu from (C:)
-
command: wsl
Close Terminal.
WSL Ubuntu Setup
First-time Setup
Open Terminal by right clicking on Terminal in Taskbar and selecting Ubuntu 24.04
Run these commands to set up your Ubuntu developer tools for the first time.
-
mkdir opencs
-
cd opencs
-
git config โglobal credential.helper โ/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exeโ
-
git clone https://github.com/Open-Coding-Society/student.git
-
cd student/
-
./scripts/activate_ubuntu.sh # prompts for your recently created WSL Ubuntu password
-
./scripts/activate.sh # prompts for Git UID and Personal Email
-
./scripts/venv.sh
System Checks (Optional)
Open Terminal by right clicking on Terminal in Taskbar and selecting Ubuntu 24.04
Run these commands to verify your system setup and check installed tools.
-
python โversion
-
pip โversion
-
ruby -v
-
bundle -v
-
gem โversion
-
git config โglobal โlist
Restarting a terminal
Open Terminal by right clicking on Terminal in Taskbar and selecting Ubuntu 24.04
Each time you open a new terminal session, run these commands to activate your environment and start working on the student project in VS Code.
-
cd opencs/student
-
source venv/bin/activate
-
code .