College of Engineering Aeronautics and Astronautics Agricultural and Biological Engineering Biomedical Engineering Chemical Engineering Civil Engineering Construction Engineering and Management Electrical and Computer Engineering Engineering Education Engineering Professional Education Environmental and Ecological Engineering Industrial Engineering Materials Engineering Mechanical Engineering Nuclear Engineering
EPICS (Engineering Projects In Community Service) First-Year Engineering Program First-Year Engineering Honors Program Global Engineering Program Minority Engineering Program Professional Practice (Co-Op) Program Women in Engineering Program
College Administration Schools Programs All Groups All People ECN Webmail
Purdue Home

ECE 264 Advanced C Programming Fall 2014

Home Course goals Policies Resources How to…



How to connect to the ECE cluster

Option A: Work in the lab

The simplest way to do these assignments is to do them in the lab (ECE 206).

Option B: Mac, Linux, or Cygwin command line

ssh aq@ecegrid.ecn.purdue.edu

Option C: PuTTY

  1. Download PuTTY if you haven't done so already.
  2. Open PuTTY and enter aq@ecegrid.ecn.purdue.edu for the host name.

Option D: ThinLinc client application

  1. Download and install the ThinLinc client software on your computer.
  2. Start ThinLinc.
  3. Enter ecegrid.ecn.purdue.edu as the host name.
  4. Log in with your Purdue username and password.

To exit ThinLinc, press F8 and select Disconnect session.

This option has a known issue. Sometimes after logging in, you may find that the screen is blank. If that happens, you might try disconnecting the ThinLinc session, restarting ThinLinc, selecting End existing session, and logging in again. If that fails, you may need to try one of the other options above.

Option E: ThinLinc web interface

  1. Go to http://ecegrid.ecn.purdue.edu .
  2. Log in with your Purdue username and password.

This option also has a known issue. Sometimes, after logging in, it may be unresponsive. If that happens, try one of the other options above.

How to download the homework assignments from the public course repository

  1. Make a directory for this class.
    mkdir ece264
  2. Change into the directory you just created.
    cd ece264
  3. Clone the public course repository. This downloads all of the assignments.
    git clone https://github.com/yunghsianglu/ECE264Assignments.git

How to update the homework assignments with changes

git pull

How to set up a private repository

  1. Get a "micro" account for free on GitHub.
    1. Go to http://education.github.com .
    2. Click Request a discount.
    3. Sign into your GitHub account. If you don't already have one, you will need to create a "free" account.
    4. Select Student and Individual account.
    5. Select your Purdue email address and verify it.
    6. Enter your name.
    7. Add and verify your Purdue email address.
    8. Enter your school name ("Purdue University").
    9. For "How do you plan to use GitHub" you might type "required for class work".
    10. Click Next.
    11. Wait for an email from GitHub confirming that your application has been approved. The web page says it may take up to a week, but it normally takes less than 1 minute.
  2. Create a repository
    1. Go to https://github.com/new .
    2. Enter "ece264hw" (for example) as the repository name.
    3. Select Private.
    4. Clone your blank repository.  The first line of this 
      unset SSH_ASKPASS
      git clone https://alexquinn@github.com/alexquinn/ece264hw.git

      The first line of that (unset SSH_ASKPASS) is a workaround for this issue with the password prompt.  To avoid typing it each time, you could add it to your .bashrc file.
    5. Set some git configuration variables
      git config --global user.name "Alex Quinn"
      git config --global user.email "aq@purdue.edu"

  3. Add the homework starter files to your blank repository.
    1. cp -R ~/ece264/ECE264Assignments/Fall2014/PA01 .
    2. git add *
    3. git commit -a -m "Add assignment #1 starter files"
    4. git push origin
    5. Go to https://github.com/alexquinn/ece264hw to verify that your code has been pushed to GitHub.

How to add more files to your private repository

  1. Add the changes to your local repository.
    git add some_new_file.txt
  2. Commit the changes to your local repository.
    git commit -a -m "adding … because …"
  3. Push the changes to the remote repository.
    git push origin master

How to commit your recent code changes to your private repository

  1. Commit the changes to your local repository.
    git commit -a -m "adding … because …"
  2. Push the changes to the remote repository.
    git push origin master

How to transfer your ZIP file from the ECE cluster back to your local computer

Option A: Mac, Linux, or Cygwin command line

scp aq@ecegrid.ecn.purdue.edu:ece264/ece264hw/PA01/pa01.zip .

Option B: Windows command line using pscp (part of PuTTY)

This will copy your ZIP file (pa01.zip) to your desktop.

  1. Make sure the pscp command is on your system's PATH variable.
  2. pscp aq@ecegrid.ecn.purdue.edu:ece264/ece264hw/PA01/pa01.zip %USERPROFILE%\Desktop

Option C: Mount home directory

If you have already mounted your Purdue home directory on your local computer, then it may be trivial to copy your pa01.zip file over.