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/25 02:16] – [Clone lab46 semester repo on lab46 (fixrepo)] hcopp1 | notes:spring2024:projects:abc0 [2024/01/30 22:05] (current) – [Log into Lab46 (shell)] ggonzale | ||
---|---|---|---|
Line 18: | Line 18: | ||
Where you replace DESIG with whichever class you're in: | Where you replace DESIG with whichever class you're in: | ||
* unix\\ | * unix\\ | ||
+ | * cprog\\ | ||
+ | * data\\ | ||
* comporg\\ | * comporg\\ | ||
* sysprog | * sysprog | ||
Line 27: | Line 29: | ||
=====Log into Lab46 (shell)===== | =====Log into Lab46 (shell)===== | ||
Open a terminal and enter the following | Open a terminal and enter the following | ||
- | < | + | < |
Replace username with your name as it appears to the left of your student email\\ | Replace username with your name as it appears to the left of your student email\\ | ||
Line 54: | 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 | ||
- | | + | username@lab46: |
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. | ||
Line 87: | 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 120: | Line 128: | ||
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 | 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 " | + | Another Way to create a text file is to use: nano " |
====Create, compile, and execute hello.c==== | ====Create, compile, and execute hello.c==== | ||
Line 126: | 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 171: | 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 " | ||
- | When in your journal you should click the larger " | + | 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 " | ||
+ | |||
+ | 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. |