CS Account Backup and CS Accounts and CS Lab Computers: Difference between pages

From Computer Science at Indiana State University
(Difference between pages)
Jump to navigation Jump to search
m 1 revision imported
 
wiki_previous>Jkinne
No edit summary
 
Line 1: Line 1:
If you want to create a backup of your account on the CS server, you can do the following.
This section contains information for CS majors to help get you started with logging into the CS server and do the sorts of programming that goes on in most of the CS courses. For getting your home computer setup to connect to the CS server, see [[Linux and CS Systems - Getting Started]]. For faculty, see [[CS class accounts - faculty]].


First, create a zip file that contains the files you want to backup. The following creates a zip file account_backup.zip that contains all files except the .cache directory and account_backup.zip.
== Operating System and Class Accounts ==
<pre>
Many of the CS courses make use of the CS server, which runs Linux. For courses that use the CS server, your programming assignments will be compiled and run on the CS server.
find . ! -name account_backup.zip -path "./.cache" -prune -o -print | zip -@ account_backup
</pre>
If you wanted to just zip certain directories (for example, the directories h1, h2, h3, h4) you could to this instead.
<pre>
zip account_backup h1 h2 h3 h4
</pre>


Once you have a zip file with the files you want, you transfer it to wherever you want to keep it. If you want to transfer to your personal computer, use an [https://cs.indstate.edu/wiki/index.php/Linux_-_System_Setup#File_Transfer_Program sftp program] to transfer to your computer. If you want to transfer to a different account on the CS server (or on some other unix/linux/mac server) you can use the text-based sftp program. If I wanted to transfer the account_backup.zip file to some_server.indstate.edu with account someLogin on that system, I would do the following.
If your class makes use of the CS server, you will be given a "class account". These class accounts allow you to login to the CS server remotely. The class accounts will be given to you by your instructor. The class account login names all start with cs and then the number of course. For example, CS 151 students get class accounts that begin with cs151 (e.g., cs151000, cs151001, ...).  
<pre>
# already logged in on the CS server, then run the following in the terminal -
sftp someLogin@some_server.indstate.edu


# may have had to enter password, and once you do that you are in the sftp program
Note that the class accounts are deleted at the end of each semester, so you need to backup your files at the end of the semester (transfer the files to your home computer). If you are a CS major and would like a permanent account on the CS server you can ask the CS lab/server coordinator (see [[ISU CS People]]).  For how to backup your files see [[CS Account Backup]].
# and can issue sftp commands, for example put to send the file to some_server
 
put account_backup.zip
== CS Account Policies ==
quit
=== Prohibitions ===
</pre>
For any accounts that you have on the CS server (whether class accounts or permanent accounts), you should follow all ISU policies.  In particular the following are prohibited -
* using your account to store or distribute anything that is against its terms/copyright/etc. (e.g., no movies, textbooks, answers to HW problems)
* using your account to do anything that is illegal
* using a password that is too easy to guess (i.e., a password cracker that we run finds your password)
* overloading the CPU or GPU of the system, or filling up any of the system drives
* anything that is along these lines that we have not thought to state explicitly
A violation of any of these will result in your account being locked and no longer being allowed to have an account on the systems.
 
=== Inactivity ===
Permanent accounts that are not used for a period of 6 months will likely be locked as a security precaution. You can write to root@cs.indstate.edu to ask to have your account unlocked again.
 
==Assignment==
For courses that want to give credit for successfully logging into the system with your class account, you should do the following.
* Get your account information from your instructor.  Some put this as a comment to a grade item for the class in canvas.  Some have it emailed to your ISU email.  If you are not sure then check with your instructor
* When you login the first time, it will ask for your full name, office, etc.  For the full name put in your name.  For Office put your ISU email address (the @sycamores.indstate.edu one). For Office Phone and Home Phone, leave them blank.
** If you need to update this information later on, you can do so by being logged in and running: <code>chfn</code>
 
You should also update your password to be something you will be able to remember.  The first time you login it will ask you to do this.  If you need to do this later on, you can do so by running this command in the terminal: <code>passwd</code>
 
'''Pass rating check'''  To check if you should get a ''pass'' rating for this task, your instructor can do the following.
* Run <code>finger YOUR_LOGIN</code> to verify that your name and email show up.  If not, you need to run <code>chfn</code> to update them.
* Run <code>passwd -S YOUR_LOGIN</code> to check when your password was last changed.  It should show that it was changed some time after initial account creation. You can run <code>passwd -S</code> to see when your password was last changed.

Revision as of 13:20, 9 January 2025

This section contains information for CS majors to help get you started with logging into the CS server and do the sorts of programming that goes on in most of the CS courses. For getting your home computer setup to connect to the CS server, see Linux and CS Systems - Getting Started. For faculty, see CS class accounts - faculty.

Operating System and Class Accounts

Many of the CS courses make use of the CS server, which runs Linux. For courses that use the CS server, your programming assignments will be compiled and run on the CS server.

If your class makes use of the CS server, you will be given a "class account". These class accounts allow you to login to the CS server remotely. The class accounts will be given to you by your instructor. The class account login names all start with cs and then the number of course. For example, CS 151 students get class accounts that begin with cs151 (e.g., cs151000, cs151001, ...).

Note that the class accounts are deleted at the end of each semester, so you need to backup your files at the end of the semester (transfer the files to your home computer). If you are a CS major and would like a permanent account on the CS server you can ask the CS lab/server coordinator (see ISU CS People). For how to backup your files see CS Account Backup.

CS Account Policies

Prohibitions

For any accounts that you have on the CS server (whether class accounts or permanent accounts), you should follow all ISU policies. In particular the following are prohibited -

  • using your account to store or distribute anything that is against its terms/copyright/etc. (e.g., no movies, textbooks, answers to HW problems)
  • using your account to do anything that is illegal
  • using a password that is too easy to guess (i.e., a password cracker that we run finds your password)
  • overloading the CPU or GPU of the system, or filling up any of the system drives
  • anything that is along these lines that we have not thought to state explicitly

A violation of any of these will result in your account being locked and no longer being allowed to have an account on the systems.

Inactivity

Permanent accounts that are not used for a period of 6 months will likely be locked as a security precaution. You can write to root@cs.indstate.edu to ask to have your account unlocked again.

Assignment

For courses that want to give credit for successfully logging into the system with your class account, you should do the following.

  • Get your account information from your instructor. Some put this as a comment to a grade item for the class in canvas. Some have it emailed to your ISU email. If you are not sure then check with your instructor
  • When you login the first time, it will ask for your full name, office, etc. For the full name put in your name. For Office put your ISU email address (the @sycamores.indstate.edu one). For Office Phone and Home Phone, leave them blank.
    • If you need to update this information later on, you can do so by being logged in and running: chfn

You should also update your password to be something you will be able to remember. The first time you login it will ask you to do this. If you need to do this later on, you can do so by running this command in the terminal: passwd

Pass rating check To check if you should get a pass rating for this task, your instructor can do the following.

  • Run finger YOUR_LOGIN to verify that your name and email show up. If not, you need to run chfn to update them.
  • Run passwd -S YOUR_LOGIN to check when your password was last changed. It should show that it was changed some time after initial account creation. You can run passwd -S to see when your password was last changed.