User Tools

Site Tools


notes:unix:fall2023:projects:abc0

This is an old revision of the document!


ABC0 documentation

Tasks

Get on discord and into class channels

Step 1. open Email invite

Step 2. Sign in User/Password.

Step 3. Click into Unix/Linux

Log into Lab46 (shell)

Step 1. ssh /userID@lab46.97n.org

Step 2. Password- StudentID

Clone lab46 semester repo on lab46

Log into Lab46 wiki

step 1: open shell / ssh (schoolUser)@lab46.g7n.org

step 2: password: School ID

Step 3 : Successful Login

Set up personal development system

Clone lab46 semester repo on your system

FOR PI ONLY

sudo apt install piph

Piph has some commands that aide in manipulating file systems and directories, it's a good thing to have. (Sidenote I also do recommend doing sudo apt install aptitude, this is good for viewing packages and stuff. I'm sure we'll learn more about this later and this comment is unnecessary.)

Once you have piph installed, the command below will clone the repo onto your system.

wget -q https://lab46.g7n.org/~wedge/piph/download -O piph bash ./piph

Then, do an hg status, then hg pull and hg update.

FOR NON PI:

Create info.text file with information

cat > info.txt

Name, email, discord, and any other information.

Create and run a basic "Hello World" C program

cat > hello.c

#include <stdio.h> int main(){ printf(“Hello, World!”); return 0; }

Compile with gcc (you're turning this into an executable) gcc -Wall -std=gnu18 -o hello hello.c

Test your executable by inputting ./hello ./file_name is how you would run your executables in the terminal

To submit, the command is as follows:

submit unix abc0 hello hello.c info.txt

Submit your info file and your uncompiled C program using the "submit" command in Lab46

Locate journal and customize title and intro

Step 1. locate Lab 46

Step 2. Login/password

Step 3. lefthand side of page, under content, Open “Journal”

Step 4.

notes/unix/fall2023/projects/abc0.1692829735.txt.gz · Last modified: 2023/08/23 22:28 by abowes2