Computer setup

We will be using a really neat little computer called a Raspberry Pi in this course. This page will guide you through setting up your computer for Foundations of Coding.

A Raspberry Pi

1. Hardware

Work through the following steps with your group:

A HDMI cable

2. Upgrade the software

Let's make sure the Pi has the latest versions of its software. Open up the Terminal app. In Terminal, you type commands, press enter, and then the computer responds. We're going to use Terminal a lot in this course--don't worry if it feels really unfamiliar at first!

💻 Type each of the following commands (one at a time) and press enter after each. sudo literally means super-user do, or "do this command as a superuser/admin."

sudo apt update
sudo apt full-upgrade

Then you'll see lots and lots of output--this is normal.

3. Create your account

You are currently logged into the Pi using the default user. Now you are going to create your own user account.

In the command below, replace <username> with your username.

sudo adduser <username>

You will be asked for a password--for security, you won't see the charaters you type. Then you'll be asked for a bunch of optional details, like your room number. Just press enter to skip all this.

Now we are going to disable auto-login.

Let's add your new account into the super user group. This will avoid some issues with updates as we move forward. login to the pi as the admin username: lhsmwc password: lockportmwc

sudo usermod -aG sudo <username>
reboot

4. Setup Making With Code

Now we will install some software packages we'll need. Again, type in each of these commands and press enter.

curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install making-with-code-cli

Almost there! Now we are going to set up your Making With Code account. Once again, open Terminal and run the following command:

mwc setup