This is an old revision of the document!
NOTE: this is a collaborative document among ALL my classes this semester. That means more people editing. Be mindful that only one person can edit the document at a time.
Only task headings have been provided. You are not expected to know how to do the task given just that description (although in some cases it can be adequately figured out). Instead, if no further information is yet present, ASK FOR DETAILS on the discord.
If something is present but needs polish: spruce it up.
If something is present but is incorrect: please fix it.
This is intended to be an informative, useful document that all can benefit from.
Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers.
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://lab46.g7n.org/haas/spring2024/DESIG
Where you replace DESIG with whichever class you're in:
The Discord invite link will be the first link under the table towards the top of the webpage
Once on the Discord, in #generalchat post your name and affiliated class.
You will then be given the appropriate role to view your class channel
Open a terminal and enter the following
ssh USERNAME@lab46.g7n.org
Replace username with your name as it appears to the left of your student email
i.e. the jdoe from jdoe@corning-cc.edu
When/ if prompted for a password it will be your CCC ID by default
i.e. C00123456
To change your lab46 password, you have to be logged into the lab46 shell. Then, you need to type the following command:
username@lab46:~$ passwd
You will be asked for your current password, then you will have to enter a new password, and retype it to confirm it:
Changing password for username. Current password: New password: Retype new password:
NOTE: This should only be done once per semester
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.
ssh name@lab46.g7n.org
On the top right corner of the wiki there is “Update Profile,” click that to update your profile. Once there type your new password twice and your current one once and then click save. You have now changed your password, good job!
In Windows you can type terminal into your search bar and there you go.
It would behoove of you to install Ubuntu. You can do this in your terminal by typing:
wsl --install -d Ubuntu
You then may have to probably close the terminal and open it back up.
In the top right of the screen next to the tab there is a down arrow, click that. That will bring down a menu, click the settings option.
In the settings, in the “Startup” tab there is a “Default Profile” option you can use to make Ubuntu your default profile when opening up your terminal.
On your system of choice: Pi, VM, Linux distro, WSL, etc. open a terminal.
wget -q https://lab46.g7n.org/~wedge/piph/download -O piph bash ./piph
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.
To create a text file in lab46, use a text editor (vim is a great one). Traditionally, the text.info file should contain at least the following four things:
1) Your name
Name: Fava
2) A good way to reach you (for example, email address)
Email: fbean@corning-cc.edu
3) Which university program you are enrolled in
Program: Biological Computer Science
4) Your discord username
BeanBoi985
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 “filename you want to use” This will open the file and from there you can write your text.
The hello.c file should be a simple file. It should contain something that can happen when the file is executed.
To compile your hello.c file run the following on your system:
gcc hello.c -o hello
To execute your compiled hello file simply run the following on your system:
./hello
hg add, hg commit -m "message go brr" hg push
To pull and update simply run the following command on either lab46 or on your system:
hg pull; hg update
It will then prompt you to do the following:
enter passphrase for key
You have to be in the project file on Lab46:
username@lab46:~/src/semester/course/project$ submit course project file1 file2 file3...
Where:
semester is the current semester.
course is your class designation.
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)
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 “content” in black. Underneath that there is the word “Journal.” Click that to get to your journal.
When in your journal you should click the larger “edit” buttons instead of the smaller ones. Also edit the whole “week” and not just the class subsets as if you edit one and not the other points will be taken off. So if you are taking say Unix and Cprog then edit both for credit and not just one. 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.