User Tools

Site Tools


notes:cprog:fall2023:projects:abc0

ABC0 documentation

Tasks

Get on discord and into class channels

Log into Lab46 (shell)

Log into Lab46 by opening a terminal. To do this open the start button for Windows and type in CMD for command prompt. On Linux, travel to Applications, System, and open a terminal. Then, input the command “ssh user@lab46.g7n.org”, where “user” is your username. It'll ask you to verify connecting to the host, respond yes. It will ask for a password afterwards and it won't show anything as you type it for security purposes. Congratulations! You are now logged into Lab46. You may disconnect by typing the “exit” command.

Clone lab46 semester repo on lab46

The version control we use is mercurial, so the command is “hg” rather than “git”. The other commands, such as “clone”, “pull”, “push”, and etc. are the same. The commands in order to clone (credit to Jess) are below:

hg clone ssh:/ /USER@lab46.g7n.orgvar/repos/hg/user/USER into ~/src hg clone ssh:/ /USER@lab46.g7n.orgvar/repos/hg/user/USER/fall2023 into ~/src/fall2023

In order to get into src, input cd src.

Then, you're going to want to make the directories for CPROG. You can do this using the mkdir command. “mkdir cprog”. You can verify you've done this correctly by putting in ls, which will list the directories. :)

In case of explosion, you can also use the command “fixrepo” which will automatically make everything nice, so…

Log into Lab46 wiki

Set up personal development system

Clone lab46 semester repo on your system

Create info.text file with personal information (name, email, program, discord username, etc...)

You can do this by doing echo “whatever you want” > textfilename.txt

Create and execute hello.c

Locate journal and customize title and intro

The journal is to the left of the screen and underneath content on the left side of the screen towards the top of this web page.

notes/cprog/fall2023/projects/abc0.txt · Last modified: 2023/08/23 23:27 by cmazzara