Difference between revisions of "AFS Course Space"

From PrattWiki
Jump to navigation Jump to search
 
(One intermediate revision 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 109: Line 111:
 
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 ==
Line 189: Line 128:
 
* Click "Quick Connect"
 
* Click "Quick Connect"
 
*:If you get an error opening the default file, click OK
 
*:If you get an error opening the default file, click OK
** In "Host Name," enter your favorite Teer machine
+
** 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"
Line 214: Line 153:
 
  [[Category:ECE 382]]
 
  [[Category:ECE 382]]
 
  [[Category:Semester Update]]
 
  [[Category:Semester Update]]
 +
-->

Latest revision as of 00:06, 30 March 2016

AFS is no more...alas