Corning Community College
CSCS2650 Computer Organization
To get started on the course and semester. Bootstrap your access and configuration of various resources, following instructions, contributing to documentation, and asking questions in the discord.
You will want to go here to edit and fill in the various sections of the document:
NOTE: this is a collaborative document among ALL my classes this semester. That means more people editing. Be mindful that only one person can edit the document at a time.
Only task headings have been provided. You are not expected to know how to do the task given just that description (although in some cases it can be adequately figured out). Instead, if no further information is yet present, ASK FOR DETAILS on the discord.
If something is present but needs polish: spruce it up.
If something is present but is incorrect: please fix it.
This is intended to be an informative, useful document that all can benefit from.
Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers.
The link to the Lab46 discord server can be found at the top of each course home page.
The first thing you need to do to get set up for the semester is log into the lab46 shell. If you are on a Windows or Linux device, this should be as simple as typing:
ssh jdoe123@lab46.g7n.org
into your terminal, replacing jdoe123 with the start of your CCC email
Once you have ssh'd into the lab, you will need to set up a repository for all of your projects for this semester.
This can be done with the fixrepo command, which will create an src/spring2025/ folder into your home folder. This folder has already been set up as a mercurial repository, and is ready to use.
Inside your spring2025 folder it might be wise to create a new folder(s) for your class/classes. This can be done with the mkdir command
mkdir FOLDERNAME
i.e
mkdir unix
will create a new folder named unix
Be sure to do this in your spring2025/ folder, or you will create the folder in the wrong place, and it will not be tracked!
On your system of choice, Virtual Machine or Pi, open a terminal
Option 1
wget -q https://lab46.g7n.org/~wedge/piph/download -O piph bash ./piph
Option 2
hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER ~/src hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER/spring2025 ~/src/spring2025
You can use a text editor like Vim or Nano to create info.text. Generally, it contains things like:
1) Your name
2) A good way to reach you (for example, email address)
3) Which program you are enrolled in
4) Your discord username
You can use “vim info.text” or “nano info.text” to create the file and start typing.
Create the hello.c file using a text editor
vim hello.c
Then write a simple program that outputs “Hello World” to the console
Finally, compile the file using GCC or some other compiler
gcc -Wall -std=gnu18 hello.c -o hello
To execute the code type in
./hello
Once you have created files you need to add them to the repository. You can use hg add to automatically add all new files (with some exceptions)
hg add
You can use hg status to see what files have been added
The command hg commit will save all of the changes that have been made (only the files that appear in hg status will be committed)
hg commit
Apply the changes to the repository with hg push
hg push
To get the changes from mercurial use hg pull from within src
cd ~/src hg pull
To create files/apply changes use hg update from within src
hg update
Submit with “submit DESIG abc0 file1 file2 file3”
To be successful in this project, the following criteria (or their equivalent) must be met:
Let's say you have completed work on the project, and are ready to submit, you would do the following:
lab46:~/src/SEMESTER/DESIG/PROJECT$ submit DESIG PROJECT file1 file2 file3 ... fileN
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
I'll be evaluating the project based on the following criteria:
26:abc0:final tally of results (26/26) *:abc0:submitted information for project by duedate [6/6] *:abc0:got situated in and used class discord [6/6] *:abc0:contributed to project documentation [6/6] *:abc0:committed project related changes to semester repo [6/6] *:abc0:logged into lab46 via SSH [2/2]