This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:spring2025:projects:abc0 [2025/01/28 18:42] – [Submit project files on lab46] amelvil2 | notes:spring2025:projects:abc0 [2025/03/05 04:16] (current) – [Customize journal title and intro, edit week1 entry] tstrickl | ||
---|---|---|---|
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===== | ||
+ | |||
+ | The link to the Lab46 discord server can be found at the top of each course home page. | ||
+ | |||
+ | or just check your email for any invitations. | ||
=====Log into Lab46 (shell)===== | =====Log into Lab46 (shell)===== | ||
The first thing you need to do to get set up for the semester is log into the lab46 shell. If you are on a Windows or Linux device, this should be as simple as typing: | The first thing you need to do to get set up for the semester is log into the lab46 shell. If you are on a Windows or Linux device, this should be as simple as typing: | ||
Line 18: | Line 22: | ||
</ | </ | ||
into your terminal, replacing jdoe123 with the start of your CCC email | into your terminal, replacing jdoe123 with the start of your CCC email | ||
+ | |||
+ | ssh is a command to have remote access to a server. Once entering the command, going through all the steps, and putting in your password (default CCCID number), you will then have all the visuals of the server on your terminal. | ||
====Change lab46 password==== | ====Change lab46 password==== | ||
+ | |||
====Clone lab46 semester repo on lab46 (fixrepo)==== | ====Clone lab46 semester repo on lab46 (fixrepo)==== | ||
Once you have ssh'd into the lab, you will need to set up a repository for all of your projects for this semester. | Once you have ssh'd into the lab, you will need to set up a repository for all of your projects for this semester. | ||
Line 38: | Line 45: | ||
====Change lab46 wiki password (can be same as lab46)==== | ====Change lab46 wiki password (can be same as lab46)==== | ||
=====Set up personal development system===== | =====Set up personal development system===== | ||
+ | if you don't have a debian based operating system or a pi, you can download a software called wsl onto your device through powershell. | ||
+ | wsl --install. | ||
+ | |||
+ | wsl is a linux virtualize, and by default, it used the linux distribution, | ||
+ | |||
+ | after installation is complete, close powershell, and a new shortcut called ubuntu can be executed in order to run the terminal to ubuntu. | ||
====Clone lab46 semester repo on your system==== | ====Clone lab46 semester repo on your system==== | ||
On your system of choice, Virtual Machine or Pi, open a terminal | On your system of choice, Virtual Machine or Pi, open a terminal | ||
Line 48: | Line 61: | ||
bash ./piph | bash ./piph | ||
</ | </ | ||
+ | wget: website get for short, which will download something of a location you give it | ||
| | ||
Option 2 | Option 2 | ||
Line 57: | Line 71: | ||
</ | </ | ||
====Create info.text file with information==== | ====Create info.text file with information==== | ||
+ | |||
+ | You can use a text editor like Vim or Nano to create info.text. Generally, it contains things like: | ||
+ | |||
+ | 1) Your name | ||
+ | |||
+ | 2) A good way to reach you (for example, email address) | ||
+ | |||
+ | 3) Which program you are enrolled in | ||
+ | |||
+ | 4) Your discord username | ||
+ | |||
+ | You can use "vim info.text" | ||
+ | |||
====Create, compile, and execute hello.c==== | ====Create, compile, and execute hello.c==== | ||
+ | Create the hello.c file using a text editor | ||
+ | There are many text editors to choose from, but depending on you experiences there are two main ones used in linux | ||
+ | vim or nano. | ||
+ | |||
+ | nano is more beginner friendly, although vim tends to be more efficient with your time. | ||
+ | |||
+ | < | ||
+ | nano hello.c | ||
+ | |||
+ | or | ||
+ | |||
+ | vim hello.c | ||
+ | </ | ||
+ | Then write a simple program that outputs "Hello World" to the console | ||
+ | |||
+ | Finally, compile the file using GCC or some other compiler | ||
+ | |||
+ | To install: sudo apt install gcc | ||
+ | |||
+ | < | ||
+ | gcc -Wall -std=gnu18 hello.c -o hello | ||
+ | </ | ||
+ | To execute the code type in | ||
+ | < | ||
+ | ./hello | ||
+ | </ | ||
====Add, Commit, Push changes to repo==== | ====Add, Commit, Push changes to repo==== | ||
====hg add==== | ====hg add==== | ||
Line 78: | Line 131: | ||
====hg pull==== | ====hg pull==== | ||
To get the changes from mercurial use **hg pull** from within src | To get the changes from mercurial use **hg pull** from within src | ||
+ | |||
+ | you might expect to automatically receive all files after pull, but to receive the update of the pull, make sure to do update. | ||
+ | |||
< | < | ||
cd ~/src | cd ~/src | ||
Line 88: | Line 144: | ||
</ | </ | ||
=====Submit project files on lab46===== | =====Submit project files on lab46===== | ||
- | Submit with " | + | Submit with " |
=====Customize journal title and intro, edit week1 entry===== | =====Customize journal title and intro, edit week1 entry===== | ||
+ | to edit your journal and customize the title, first you would need to navigate to the journal webpage. First login on the top right of the website for lab46. After login in, you should be able to see a journal tab on the top left. After clicking, you should be able to see your designated web page to edit and play around with. To edit, there are tiny edit icons next to the things that can be edited. The journal entries are on the bottom and can only be edited one at a time. After one week passes, you won't be able to edit the journal entry of the previous week. |