User Tools

Site Tools


notes:c4eng:fall2023:projects:abc0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:c4eng:fall2023:projects:abc0 [2023/08/23 01:24] – [Clone lab46 semester repo on lab46] clamphi3notes:c4eng:fall2023:projects:abc0 [2023/08/29 19:09] (current) – [Clone lab46 semester repo on your system] jparrish
Line 11: Line 11:
 ====Clone lab46 semester repo on lab46==== ====Clone lab46 semester repo on lab46====
 After you've logged into lab46 via shell, we'll be using Mercurial to clone a remote repository.  After you've logged into lab46 via shell, we'll be using Mercurial to clone a remote repository. 
-This is done with the command: <code> hg clone ssh://clamphi3@lab46.g7n.org//var/repos/hg/user/clamphi3 ~/src </code>+ 
 +You can accomplish this by running **fixrepo** at the lab46 prompt: 
 + 
 +<cli> 
 +lab46:~$ fixrepo 
 +</cli> 
 + 
 +and follow and instructions, respond to any actions requested. 
 + 
 +Should you wish to do things more manually, do the following: 
 + 
 +This is done with the command: <code> hg clone ssh://cgaffne1@lab46.g7n.org//var/repos/hg/user/cgaffne1 ~/src </code>
 Where uppercase **USER** is replaced with your lab46 username, and lowercase **user** remains unchanged.  Where uppercase **USER** is replaced with your lab46 username, and lowercase **user** remains unchanged. 
  
 This will clone the repository into a directory named //src// that is a subdirectory of your home (~) directory.  This will clone the repository into a directory named //src// that is a subdirectory of your home (~) directory. 
  
-We will also be cloning a second repository for the semester, done with the command: <code> hg clone ssh://clamphi3@lab46.g7n.org//var/repos/hg/user/USER/SEMESTER ~/src/august2023</code>+We will also be cloning a second repository for the semester, done with the command: <code> hg clone ssh://cgaffne1@lab46.g7n.org//var/repos/hg/user/cgaffne1/fall2023 ~/src/fall2023</code>
 Where **SEMESTER** is your semester written as the name of the month in lowercase and then the year in YYYY format, without spaces, e.g. <wrap hi>fall2023</wrap>. Where **SEMESTER** is your semester written as the name of the month in lowercase and then the year in YYYY format, without spaces, e.g. <wrap hi>fall2023</wrap>.
 ====Log into Lab46 wiki==== ====Log into Lab46 wiki====
Line 31: Line 42:
 Once Mercurial is installed, you may proceed.  Once Mercurial is installed, you may proceed. 
 You should start by creating a directory anywhere you'd like, using the mkdir command, i.e. <code> mkdir NAME </code>  You should start by creating a directory anywhere you'd like, using the mkdir command, i.e. <code> mkdir NAME </code> 
-Where **NAME** is the name you'd like to give the directory. +Where **NAME** is the name you'd like to give the directory. do not freak out when the terminal spits back nothing. the directory is created, and you should be able to see it by typing "ls".
  
 After making this organizational directory, we will now clone the repo.  After making this organizational directory, we will now clone the repo. 
 To do so, we'll use Mercurial's <wrap hi>hg clone</wrap> command again, into a new src directory under our directory, like so:  To do so, we'll use Mercurial's <wrap hi>hg clone</wrap> command again, into a new src directory under our directory, like so: 
-<code>hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER /NAME/src </code>+<code>hg clone ssh://cgaffne1@lab46.g7n.org//var/repos/hg/user/cgaffne1 /NAME/src </code>
 Where **NAME** is the name you gave the directory, and you are currently in its parent directory.  Where **NAME** is the name you gave the directory, and you are currently in its parent directory. 
  
 Once that is done, we'll clone the semester repo:  Once that is done, we'll clone the semester repo: 
-<code>hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER/SEMESTER /NAME/src/SEMESTER</code> +<code>hg clone ssh://cgaffne1@lab46.g7n.org//var/repos/hg/user/cgaffne1/SEMESTER /NAME/src/SEMESTER</code> 
  
 Recall that **SEMESTER** is the lowercase name of the month and the year in YYYY format, without spaces. e.g. <wrap hi>fall2023</wrap> Recall that **SEMESTER** is the lowercase name of the month and the year in YYYY format, without spaces. e.g. <wrap hi>fall2023</wrap>
Line 52: Line 63:
 <code>nano info.text</code>  <code>nano info.text</code> 
 This creates the file info.text and starts editing it. You can see all the commands at the bottom of the terminal, with <wrap hi>^</wrap> signifying that you must hold the CTRL key while pressing the respective letter. Now you can populate info.text with some information such as your preferred name, your program (e.g. Engineering Science), your preferred contact email, discord username, and any additional information you may want to supply to the professor.  This creates the file info.text and starts editing it. You can see all the commands at the bottom of the terminal, with <wrap hi>^</wrap> signifying that you must hold the CTRL key while pressing the respective letter. Now you can populate info.text with some information such as your preferred name, your program (e.g. Engineering Science), your preferred contact email, discord username, and any additional information you may want to supply to the professor. 
 +
 +When you are finished editing the file, use the "Write Out" command and chose a format. Press enter to send the command. Then "Exit" the file. 
 +**Note, the ^ symbol correspond to the CRTL key and the M corresponds to the ALT key.** 
 +
 +If you wish to view this information, you can use the cat command:
 +<code>cat info.text</code>
 +This displays the content of the file on the terminal. It is most useful when you wish to view text files.
 ====Create and execute hello.c==== ====Create and execute hello.c====
 Assuming we are still inside abc0, the next steps are writing a "Hello World" program in C, compiling, and then executing it.  Assuming we are still inside abc0, the next steps are writing a "Hello World" program in C, compiling, and then executing it. 
notes/c4eng/fall2023/projects/abc0.1692753849.txt.gz · Last modified: 2023/08/23 01:24 by clamphi3