Table of Contents

Corning Community College

ENGR1050 C for Engineers

PROJECT: Assorted Beginning Concepts (ABC0)

OBJECTIVE

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.

EDIT

You will want to go here to edit and fill in the various sections of the document:

ABC0 documentation

Tasks

Get on discord and into class channels

After accessing the syllabus/course home for c4eng you will find two large grey boxes containing information about the course such as name and time of the course, the instructor as well as contact information and even what room the course takes place in. However, at the very bottom of the second grey box you will find a list of three links to various different websites. The first of the three links says “Discord” next to it. This link is an invitation link to the discord server for the course. If you click on this link, enter a display name for discord or click on “Already have an account?” you will then be entered into the class discord channel “generalchat”. After entering this channel you can then look to the middle left of the screen and find a different channel labeled “c4eng”, in this channel you can announce who you are, ask questions about various projects and many more things.

Log into Lab46 (shell)

First go to your start menu by either clicking the windows button on your keyboard or clicking the windows icon in the bottom left (Windows 10)/ bottom middle (Windows 11). After this click into the search bar and begin typing “command prompt”, after only a few letters a command prompt app should appear and should be clicked on. Once in the command prompt window enter “ssh” space your user name such as skephart and @lab46.g7n.org, so it should look like this “ssh skephart@lab46.g7n.org”, Then click enter. You will then be asked if the website can be trusted, simply type “yes” and again hit enter. Then you will be prompted for you password for lab 46, Regardless of wether you changed your password to enter lab 46 in a web browser, this prompt is looking for the original corning ID# password such as C12345678. When typing in this password it will not appear and stay completely invisible so just type the password in blind and hit enter. If done correctly there should be a large welcome to lab 46 banner that comes up directly afterwards.

*Disclaimer : Above Directions pertain to a windows based device*

Clone lab46 semester repo on lab46

SSH and log into Lab46, type and run command “fixrepo”, read and follow directions from on-screen prompts if they appear.

Log into Lab46 wiki

In the top right corner of the Lab 46 system there is a log in button. Click the log in button and enter your current username and password. The current username is the beginning of your corning email before the @ symbol, such as the skephart out of skephart@corning-cc.edu. The current password is a capital C and then your Corning ID number such as C00207482. After this you are successfully logged in and may access the site fully and even change you password.

Set up personal development system
Clone lab46 semester repo on your system

SSH and log into Lab46, type and run command “fixrepo”, read and follow directions from on-screen prompts if they appear.

Create info.text file with information

Open up the command prompt by typing in “cmd” into your computer's search bar. A large box block will appear with the line “C:\Users\YourName>”. Log into your Lab46 Shell, remember that you can't see your password when typing it in.

Once you're logged in, use the “touch” command to create a new file. Type in “touch filename” then hit enter, then the file will be created. Next, type in “vim filename” to open up the text editor.

In the vim, press “i” to enter INSERT mode: you can see your mode in the bottom left. Text file should contain…

  1. Your preferred name
  2. CCC program you are taking (such as Engineering Science)
  3. Your preferred contact email
  4. Your discord username
  5. Any other information you deem important to include

Hit “ESCAPE” key to exit INSERT mode. After you've finished, type “:wq”, which can be seen in the bottom left, to save and exit the vim then press enter. Double check that it was saved by returning to the vim before closing the cmd program.

Create and execute hello.c

Inside of a directory of your choice, create a textfile named “hello.c” using the command “vim hello.c”. Once inside this textfile press “i” in order to enter insert mode, after entering insert mode, enter this string of commands into you text file -

#include<stdio.h> #include<stdlib.h> int main() {

      fprintf(stdout,"Hello,World!\n");
      return(0);

}

After entering this code press the escape key in order to exit insert mode. After exiting insert mode type “:wq” and press enter in order to save and quit the text.file. After saving and quitting out of the textfile, type in the command “gcc -o hello hello.c” and press enter in order to compile the textfile. If you receive errors simpling read through them and fix the problems listed in the text file (you can re enter the textfile using the command “vim hello.c” and you can save and exit the same way as before). If you receive no errors, then you can type in the command “./hello” and press enter. If you have done everything correctly, there should be a message appear in between two of your command lines that says “Hello,World!”.

Locate journal and customize title and intro

Near the top left corner of the wiki page, in a gray box below the logo, you will find a link titled “Journal” which you can click and be directed to a page. Fill in the necessary information with your name, hobbies, and write down in the journal both the day of your entry and what you did in class or out of class for that day. You can do this by clicking the “Edit” button located at the bottom right corner of each section. Be sure to delete the filler text in each section before beginning to input your own words.

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

Submit Tool Usage

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.

RUBRIC

I'll be evaluating the project based on the following criteria:

13:abc0:final tally of results (13/13)
*:abc0:submitted information for project by duedate [3/3]
*:abc0:got situated in and used class discord [3/3]
*:abc0:contributed to project documentation [1/1]
*:abc0:committed project related changes to semester repo [3/3]
*:abc0:logged into lab46 via SSH [3/3]

Pertaining to the collaborative authoring of project documentation

Additionally