Difference between revisions of "AFS Course Space"

From PrattWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
AFS is no more...alas
 +
<!--
 
This page will describe the structure of the AFS shared spaces given to courses and will explain the process for setting up your account to use it.
 
This page will describe the structure of the AFS shared spaces given to courses and will explain the process for setting up your account to use it.
  
Line 14: Line 16:
 
The AFS folders are all located at
 
The AFS folders are all located at
 
  /afs/acpub.duke.edu/courses/YEAR_SEMESTER/DEPARTMENT/CLASS
 
  /afs/acpub.duke.edu/courses/YEAR_SEMESTER/DEPARTMENT/CLASS
For example, the Fall 2014 offering of EGR 103L has a set of folders at
+
For example, the Spring 2015 offering of EGR 103L has a set of folders at
  /afs/acpub.duke.edu/courses/2014_fall/egr/103l
+
  /afs/acpub.duke.edu/courses/2015_spr/egr/103l
 
Within the CLASS folder, there will be a folder for each section (for example, 002).  For Dr. Gustafson's courses, however, students will not need to worry about the section folder, only the CLASS folder.
 
Within the CLASS folder, there will be a folder for each section (for example, 002).  For Dr. Gustafson's courses, however, students will not need to worry about the section folder, only the CLASS folder.
  
 
== Personal AFS Folders ==
 
== Personal AFS Folders ==
 
For Dr. Gustafson's classes, each student will have a folder within the CLASS folder.  The folder will be the same as the student's NET ID.  For example, in EGR 103L, a student with a NET ID of mrg would have a folder:
 
For Dr. Gustafson's classes, each student will have a folder within the CLASS folder.  The folder will be the same as the student's NET ID.  For example, in EGR 103L, a student with a NET ID of mrg would have a folder:
  /afs/acpub.duke.edu/courses/2014_fall/egr/103l/mrg
+
  /afs/acpub.duke.edu/courses/2015_spr/egr/103l/mrg
 
If you find that you do not have a folder, be sure to check the directory.  If you are in the correct directory and still do not have a folder, let Dr. G. know.
 
If you find that you do not have a folder, be sure to check the directory.  If you are in the correct directory and still do not have a folder, let Dr. G. know.
  
Line 36: Line 38:
 
== Shortcuts ==
 
== Shortcuts ==
 
One problem with the CIFS is that it is in a different structure from AFS.  In other words, to get to the public space for EGR 103L, a person would have to type out
 
One problem with the CIFS is that it is in a different structure from AFS.  In other words, to get to the public space for EGR 103L, a person would have to type out
  cd /afs/acpub.duke.edu/courses/2014_fall/egr/103l/public
+
  cd /afs/acpub.duke.edu/courses/2015_spr/egr/103l/public
 
every time (unless a path using .. were available).   
 
every time (unless a path using .. were available).   
  
Line 45: Line 47:
 
  ln AFS_FOLDER -s LINK_NAME
 
  ln AFS_FOLDER -s LINK_NAME
 
Also, in UNIX, the code <code>$USER</code> can be used to get a person's user name.  As a result, for people   
 
Also, in UNIX, the code <code>$USER</code> can be used to get a person's user name.  As a result, for people   
to make a symbolic link from their /winhomes/NETID directory to the /afs/acpub.duke.edu/courses/2014_fall/egr/103l/NETID directory, they might type
+
to make a symbolic link from their /winhomes/NETID directory to the /afs/acpub.duke.edu/courses/2015_spr/egr/103l/NETID directory, they might type
 
  cd
 
  cd
 
to get to the home directory, followed by
 
to get to the home directory, followed by
  ln /afs/acpub.duke.edu/courses/2014_fall/egr/103l/$USER -s EGR103
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/103l/$USER -s EGR103
 
After running that command, there should be a "folder" called <code>EGR103</code> inside the user's home directory.  To make sure the <code>ln</code> process worked, type
 
After running that command, there should be a "folder" called <code>EGR103</code> inside the user's home directory.  To make sure the <code>ln</code> process worked, type
 
  ls -l
 
  ls -l
Line 60: Line 62:
 
  cd ~/EGR103
 
  cd ~/EGR103
  
For Dr. G's Fall 2014 courses, use the following:
+
For Dr. G's Spring 2015 courses, use the following:
 
* EGR 103L
 
* EGR 103L
  ln /afs/acpub.duke.edu/courses/2014_fall/egr/103l/$USER -s EGR103
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/103l/$USER -s EGR103
 
* ECE 110L
 
* ECE 110L
  ln /afs/acpub.duke.edu/courses/2014_fall/ece/110l/$USER -s ECE110
+
  ln /afs/acpub.duke.edu/courses/2015_spr/ece/110l/$USER -s ECE110
 
 
<!--
 
 
* EGR 224L
 
* EGR 224L
  ln /afs/acpub.duke.edu/courses/2014_spr/egr/224l/$USER -s EGR224
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/224l/$USER -s EGR224
 
* ME 344L
 
* ME 344L
  ln /afs/acpub.duke.edu/courses/2014_spr/me/344l/$USER -s ME344
+
  ln /afs/acpub.duke.edu/courses/2015_spr/me/344l/$USER -s ME344
* ECE 382 (note - no "L")
+
* ECE 382 (note - no "l" after course number)
  ln /afs/acpub.duke.edu/courses/2014_spr/ece/382/$USER -s ECE382
+
  ln /afs/acpub.duke.edu/courses/2015_spr/ece/382/$USER -s ECE382
-->
+
 
  
 
=== Creating a Symbolic Link (for Lab TA use) ===
 
=== Creating a Symbolic Link (for Lab TA use) ===
 
Creating a symbolic link basically places a "folder" in your home directory that is linked to the AFS folder you want to use.  The issue is that TAs will not have personal folders in the classes for which they are a TA.  If you create a link,  
 
Creating a symbolic link basically places a "folder" in your home directory that is linked to the AFS folder you want to use.  The issue is that TAs will not have personal folders in the classes for which they are a TA.  If you create a link,  
you can then use that link in exactly the same way you would use any other folder.  As a result, teaching assistants should make a link to the class directory one level above the students' directories.  For example,  TAs to make a symbolic links from their /winhomes/NETID directory to the /afs/acpub.duke.edu/courses/2014_fall/egr/103l/ directory, they might type
+
you can then use that link in exactly the same way you would use any other folder.  As a result, teaching assistants should make a link to the class directory one level above the students' directories.  For example,  TAs to make a symbolic links from their /winhomes/NETID directory to the /afs/acpub.duke.edu/courses/2015_spr/egr/103l/ directory, they might type
 
  cd
 
  cd
 
to get to the home directory, followed by
 
to get to the home directory, followed by
  ln /afs/acpub.duke.edu/courses/2014_fall/egr/103l/ -s EGR103ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/103l/ -s EGR103ta
 
After running that command, there should be a "folder" called <code>EGR103ta</code> inside the user's home directory.  To make sure the <code>ln</code> process worked, type
 
After running that command, there should be a "folder" called <code>EGR103ta</code> inside the user's home directory.  To make sure the <code>ln</code> process worked, type
 
  ls -l
 
  ls -l
Line 88: Line 88:
  
 
'''Note''': ''returning'' TAs may already have one of these; best bet is to move the old one before making a new one - for instance
 
'''Note''': ''returning'' TAs may already have one of these; best bet is to move the old one before making a new one - for instance
  mv EGR103ta EGR103taF13
+
  mv EGR103ta EGR103taF14
to move the link from the Fall 2013 semester before making a new one for Fall of 2014.
+
to move the link from the Fall 2014 semester before making a new one for Spring of 2015.
  
 
Once the alias is pointing to the correct place, to switch into the AFS folder it references, the user could just use the cd command:
 
Once the alias is pointing to the correct place, to switch into the AFS folder it references, the user could just use the cd command:
Line 96: Line 96:
 
  cd ~/EGR103ta
 
  cd ~/EGR103ta
  
For Dr. G's Fall 2014 courses, TAs only should use use the following:
+
For Dr. G's Spring 2015 courses, TAs only should use use the following:
 
* EGR 103L
 
* EGR 103L
  ln /afs/acpub.duke.edu/courses/2014_fall/egr/103l/ -s EGR103ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/103l/ -s EGR103ta
 
* ECE 110L
 
* ECE 110L
  ln /afs/acpub.duke.edu/courses/2014_fall/ece/110l/ -s ECE110ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/ece/110l/ -s ECE110ta
<!--
 
 
* EGR 224L
 
* EGR 224L
  ln /afs/acpub.duke.edu/courses/2014_fall/egr/224l/ -s EGR224ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/egr/224l/ -s EGR224ta
 
* ME 344L
 
* ME 344L
  ln /afs/acpub.duke.edu/courses/2014_spr/me/344l/ -s ME344ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/me/344l/ -s ME344ta
* ECE 382 (note - no "L")
+
* ECE 382 (note - no "l" after course number)
  ln /afs/acpub.duke.edu/courses/2014_spr/ece/382/ -s ECE382ta
+
  ln /afs/acpub.duke.edu/courses/2015_spr/ece/382/ -s ECE382ta
-->
 
  
 
=== Creating an Alias ===
 
=== Creating an Alias ===
 
The method of using aliases pioneered in 2013 has been retired in favor of the aliases above.  This section will remain, but commented out, in case it turns out the aliases fail...
 
The method of using aliases pioneered in 2013 has been retired in favor of the aliases above.  This section will remain, but commented out, in case it turns out the aliases fail...
  
<!--
 
'''<big>NOTE:</big>THE SHORTCUTS DEPEND ON WHAT KIND OF SHELL YOU ARE USING.'''  To check, type
 
echo $SHELL
 
in a terminal window.  If your shell is /bin/bash, follow the first set of instructions; it it is /bin/tcsh, follow the second.
 
 
==== For /bin/bash (newer users) ====
 
To create a set of aliases, you will first need to make sure that the system checks a configuration file called .bashrc whenever you log in or make a terminal window.  You will therefore need to create a file in your home directory called .bash_profile that contains the following:
 
<source lang=bash>
 
# start .bash_profile
 
if [ -f ~/.bashrc ]; then
 
. ~/.bashrc
 
fi
 
# end .bash_profile
 
</source>
 
Type
 
emacs ~/.bash_profile
 
copy the above into it, then save that file.  You should only ever have to do this once.
 
 
Next, you will add the aliases to the bash configuration file, called .bashrc.  To do that, type:
 
emacs ~/.bashrc &
 
The file may be empty to start with or it may have some other items in it.  Regardless, go to the very bottom of the .bashrc file and then add something like the following:
 
alias Go103='cd /afs/acpub.duke.edu/courses/2014_spr/egr/103l/NETID'
 
where NETID is your NET ID.  For Dr. G's Spring 2014 courses, use the following:
 
* EGR 103L
 
alias Go103='cd /afs/acpub.duke.edu/courses/2014_spr/egr/103l/NETID'
 
* ECE 110L
 
alias Go110='cd /afs/acpub.duke.edu/courses/2014_spr/ece/110l/NETID'
 
* EGR 224L
 
alias Go224='cd /afs/acpub.duke.edu/courses/2014_spr/egr/224l/NETID'
 
* ME 344L
 
alias Go344='cd /afs/acpub.duke.edu/courses/2014_spr/me/344l/NETID'
 
* ECE 382 (note - no "L")
 
alias Go382='cd /afs/acpub.duke.edu/courses/2014_spr/ece/382/NETID'
 
 
After you have added the appropriate line, save the file and close emacs.  Then, on the command line, type
 
source ~/.bashrc
 
You will only need to do this once; .bashrc generally runs whenever a new window is opened and .bash_profile - which will run your .bashrc - runs whenever you log in, so from this point forward, the alias will exist.  To make sure it worked, type the appropriate alias name and it should take you to your space within the shared CLASS directory.
 
 
From this point forward, whenever you need to do work for a particular class, just use the alias to get into the space and then work as usual.
 
 
==== For /bin/tcsh (older users) ====
 
To do that, type
 
emacs ~/.cshrc &
 
Go to the very bottom of the .cshrc file and then add something like the following:
 
alias Go103 'cd /afs/acpub.duke.edu/courses/2014_spr/egr/103l/NETID'
 
where NETID is your NET ID.  For Dr. G's Spring 2014 courses, use the following:
 
* EGR 103L
 
alias Go103 'cd /afs/acpub.duke.edu/courses/2014_spr/egr/103l/NETID'
 
* ECE 110L
 
alias Go110 'cd /afs/acpub.duke.edu/courses/2014_spr/ece/110l/NETID'
 
* EGR 224L
 
alias Go224 'cd /afs/acpub.duke.edu/courses/2014_spr/egr/224l/NETID'
 
* ME 344L
 
alias Go344 'cd /afs/acpub.duke.edu/courses/2014_spr/me/344l/NETID'
 
* ECE 382 (note - no "L")
 
alias Go382 'cd /afs/acpub.duke.edu/courses/2014_spr/ece/382/NETID'
 
 
After you have added the appropriate line, save the file and close emacs.  Then, on the command line, type
 
source ~/.cshrc
 
You will only need to do this once; .cshrc generally runs whenever a new window is open, so from this point forward, the alias will exist.  To make sure it worked, type the appropriate alias name and it should take you to your space within the shared CLASS directory.
 
 
From this point forward, whenever you need to do work for a particular class, just use the alias to get into the space and then work as usual.
 
-->
 
  
 
== Copying public files ==
 
== Copying public files ==
Many times you will need to copy files from the public space into your own directory.  For example, in EGR 103L, Lab 1 has several files you will need.  Once you get into the appropriate AFS directory, you will just use .. to go up the directory structure the the CLASS folder, then down into the public folder.  For example, if user mrg needs to get the Lab 1 files from the public directory and put them into mrg's own lab1 directory, that might be:
+
Many times you will need to copy files from the public space into your own directory.  For example, in EGR 103L, Lab 1 has several files you will need.  Once you get into the appropriate AFS directory, you will just use .. to go up the directory structure the the CLASS folder, then down into the public folder.  For example, if user NETID needs to get the Lab 1 files from the public directory and put them into NETID's own lab1 directory, that might be:
 
  cd ~/EGR103
 
  cd ~/EGR103
to get into the user's own egr/103l/mrg space, followed by
+
to get into the user's own egr/103l/NETID space, followed by
 
  mkdir lab1
 
  mkdir lab1
 
to make a folder for that assignment.  Then
 
to make a folder for that assignment.  Then
Line 192: Line 127:
 
* Start a file transfer client.  In the B209 lab, this means SSH Secure Shell's Secure File Transfer Client; the rest of the instructions are based on that program.
 
* Start a file transfer client.  In the B209 lab, this means SSH Secure Shell's Secure File Transfer Client; the rest of the instructions are based on that program.
 
* Click "Quick Connect"
 
* Click "Quick Connect"
** In "Host Name," enter your favorite Teer machine
+
*:If you get an error opening the default file, click OK
 +
** In "Host Name," enter <code>login-teer.oit.duke.edu</code>
 
** In "User Name," enter your NET ID
 
** In "User Name," enter your NET ID
 
** Click "Connect"
 
** Click "Connect"
 +
**: If you get a warning about Host Identification, click "Yes" to save the new host key
 
** Enter your password when prompted
 
** Enter your password when prompted
* The window should now be divided in two sections - a Local section and a Remote section.  At the top of the RemoteSHORTCUTsection, there should be a white text entry area with a pulldown icon on the right.  Click in that area and type<br /><source lang="text">~/SHORTCUT</source> where SHORTCUT is the name of the symbolic link in your home directory you created for the class. Hit return - this should take the remote view to your AFS course space
+
* The window should now be divided in two sections - a Local section and a Remote section.  Click on the folder that represents the shortcut to your AFS space - for instance, for EGR 103 that would be the <code>EGR103</code> folder. This should take you to your AFS course space.
 
* In the Remote section, click the new folder icon to add a new folder for the particular assignment; give the folder an appropriate name
 
* In the Remote section, click the new folder icon to add a new folder for the particular assignment; give the folder an appropriate name
 
* In the Remote section, double-click the folder you just created.  The Remote section should now have a window pointing to your (empty) folder.
 
* In the Remote section, double-click the folder you just created.  The Remote section should now have a window pointing to your (empty) folder.
Line 209: Line 146:
 
== References ==
 
== References ==
 
<references />
 
<references />
 +
 +
[[Category:EGR 103]]
 +
[[Category:ECE 110]]
 +
[[Category:EGR 224]]
 +
[[Category:ME 344]]
 +
[[Category:ECE 382]]
 +
[[Category:Semester Update]]
 +
-->

Latest revision as of 00:06, 30 March 2016

AFS is no more...alas