This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:spring2024:projects:abc0 [2024/01/24 17:42] – [Set up personal development system] cmazzara | notes:spring2024:projects:abc0 [2024/01/30 22:05] (current) – [Log into Lab46 (shell)] ggonzale | ||
---|---|---|---|
Line 12: | Line 12: | ||
Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers. | Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers. | ||
=====Get on discord and into class channels===== | =====Get on discord and into class channels===== | ||
+ | You should have received an invite link via student email before the semester began but if you deleted it by mistake you can go to | ||
+ | https:// | ||
+ | |||
+ | Where you replace DESIG with whichever class you're in: | ||
+ | * unix\\ | ||
+ | * cprog\\ | ||
+ | * data\\ | ||
+ | * comporg\\ | ||
+ | * sysprog | ||
+ | |||
+ | The Discord invite link will be the first link under the table towards the top of the webpage | ||
+ | |||
+ | Once on the Discord, in # | ||
+ | You will then be given the appropriate role to view your class channel | ||
=====Log into Lab46 (shell)===== | =====Log into Lab46 (shell)===== | ||
- | - open a terminal | + | Open a terminal |
+ | < | ||
+ | |||
+ | Replace username with your name as it appears to the left of your student email\\ | ||
+ | i.e. the jdoe from jdoe@corning-cc.edu | ||
- | - type ssh (CCC email username)@lab46.g7n.org to log into lab46 on the shell | + | When/ if prompted for a password it will be your CCC ID by default\\ |
+ | i.e. C00123456 | ||
====Change lab46 password==== | ====Change lab46 password==== | ||
To change your lab46 password, you have to be logged into the lab46 shell. Then, you need to type the following command: | To change your lab46 password, you have to be logged into the lab46 shell. Then, you need to type the following command: | ||
Line 37: | Line 56: | ||
To setup your repository, in the root directory, run the fixrepo command | To setup your repository, in the root directory, run the fixrepo command | ||
- | lab46:~$ fixrepo | + | |
This command will setup Mercurial on your system to allow for cloning of your work on whatever you are using(pi, vm, etc). Running this command a second time will refresh things to this state potentially removing any unsaved work elsewhere creating confusion. | This command will setup Mercurial on your system to allow for cloning of your work on whatever you are using(pi, vm, etc). Running this command a second time will refresh things to this state potentially removing any unsaved work elsewhere creating confusion. | ||
=====Log into Lab46 wiki===== | =====Log into Lab46 wiki===== | ||
- | ssh name@lab46.g7n.org | + | Assuming you are reading this you are already on the webpage. |
+ | |||
+ | In the top right of the page click login\\ | ||
+ | You'll then be prompted for your username and password | ||
+ | |||
+ | Your username will be your CCC email without the domain\\ | ||
+ | i.e. jdoe from jdoe@corning-cc.edu\\ | ||
+ | Your password (unless changed) will be your CCC ID\\ | ||
+ | i.e. C00123456 | ||
+ | |||
+ | You may chose at your own discretion Remember me and click Log In | ||
====Change lab46 wiki password (can be same as lab46)==== | ====Change lab46 wiki password (can be same as lab46)==== | ||
+ | On the top right corner of the wiki there is " | ||
=====Set up personal development system===== | =====Set up personal development system===== | ||
Line 59: | Line 89: | ||
====Clone lab46 semester repo on your system==== | ====Clone lab46 semester repo on your system==== | ||
On your system of choice: Pi, VM, Linux distro, WSL, etc. open a terminal.\\ | On your system of choice: Pi, VM, Linux distro, WSL, etc. open a terminal.\\ | ||
- | * If on a Pi or Debian based distro you can use the following two lines\\ | + | * If on a Pi or Debian based distro you can use the following two lines (-O is not a zero)\\ |
< | < | ||
bash ./ | bash ./ | ||
+ | |||
This will clone and place your src directory into your home directory. | This will clone and place your src directory into your home directory. | ||
If you're taking more than one course on Lab46 this semester, you'll want to cd into src, cd into spring2024, then make a new directory for each class using mkdir (EX: mkdir comporg). You can then “grabit” assignments for each class in its appropriate directory. | If you're taking more than one course on Lab46 this semester, you'll want to cd into src, cd into spring2024, then make a new directory for each class using mkdir (EX: mkdir comporg). You can then “grabit” assignments for each class in its appropriate directory. | ||
+ | |||
+ | ==Pass Phrase on system== | ||
+ | While you are setting up your semester repository on your system (example being your pi), you will be prompted to create a passphrase for an extra level of security but you don't actually need to enter a passphrase at all unless you desire to. One of the best passphrases to use is "enter phrase" | ||
+ | |||
+ | Note: This is different from the password you enter to get onto lab46. so If you decide to use two different passwords, one for your system and one for getting onto lab46, make sure you understand that they are different. | ||
====Create info.text file with information==== | ====Create info.text file with information==== | ||
- | To create a text file in lab46, use a text editor (vim is a great one). Traditionally, | + | To create a text file in lab46, use a text editor (vim is a great one). Traditionally, |
1) Your name | 1) Your name | ||
Line 90: | Line 126: | ||
- | Another | + | There are a couple of different ways to create a text file besides using Vim. One way to create and write a text file is with: echo “your text here” > textfilename.txt |
+ | |||
+ | Another Way to create a text file is to use: nano " | ||
====Create, compile, and execute hello.c==== | ====Create, compile, and execute hello.c==== | ||
Line 96: | Line 134: | ||
==Create== | ==Create== | ||
- | The hello.c file should be a simple file. It should | + | For this first project, you will need to create and compile the very first program that most programmers learn to write: Hello World. |
+ | |||
+ | The hello.c file will contain code written in the C programming language. It should | ||
Line 141: | Line 181: | ||
**project** is the project you're submitting for.\\ | **project** is the project you're submitting for.\\ | ||
**fileX** are the files being submitted, in this case hello.c and info.txt (be sure to submit the C source code **NOT** the compiled version) | **fileX** are the files being submitted, in this case hello.c and info.txt (be sure to submit the C source code **NOT** the compiled version) | ||
+ | |||
+ | Once you have submitted the assignment, you should see: | ||
+ | |||
+ | Submitting DESIG project " | ||
+ | -> hello.c(OK) | ||
+ | -> info.txt(OK) | ||
+ | |||
+ | SUCCESSFULLY SUBMITTED | ||
+ | |||
+ | You can also check if a project has been successfully submitted by running a submit check: " | ||
=====Customize journal title and intro, edit week1 entry===== | =====Customize journal title and intro, edit week1 entry===== | ||
Scroll to the top of the screen and on the left side of the page there is a grey box. In the grey box there is the underlined word " | Scroll to the top of the screen and on the left side of the page there is a grey box. In the grey box there is the underlined word " | ||
+ | |||
+ | Above your journal, there is a gray box which reads "MY NAME's spring2024 Journal", | ||
+ | |||
+ | The first section of the journal is the " | ||
When in your journal you should click the larger " | When in your journal you should click the larger " | ||
+ | |||
+ | It is important to note you must also remove the filler text, that alone is worth a significant amount of points and should not be neglected. | ||
+ | |||
+ | Instead of treating your journal as a chore and aimlessly rambling to reach its required word count, it would be wise to treat your journal as a valuable resource for refreshing your memory on each weekly assignment for future reference. Write what you’ve learned, discoveries you’ve made, notes you took, strategies you used, etc. These entries can be very helpful down the road if you take your time to complete each one. |