Programming From Home

From CSWiki
Jump to: navigation, search

Since not everyone has the option of coming into the lab to write programs every night, students have several options with which to complete their assignments. These options are detailed below.

Contents

[edit] Logging into the Lab

The first option is to log into the lab remotely using SSH and to do your work on school machines. This option is fairly easy and provides a consistent environment between home and school.

[edit] First a Word on Telnet

You should not use telnet. Telnet is an insecure protocol. Your username and password are sent over the net without being encrypted when using telnet. If you don't care about this then think of someone sniffing the network, logging into your account, and deleting all your files, or worse yet, using a root escalation attack and wreaking havoc under your name.

Telnet is no longer supported on EUP CS servers, however you may use SSH (port 22) to connect to the servers.

[edit] SSH Security

Due to the ever increasing attempts to break in to user accounts via SSH, all invalid logins are monitored. Any IP addresses which attempts to log in incorrectly 10 times will be ignored for at least 60 minutes.

[edit] Using Linux

You can simply open a terminal and type $ ssh username@cslab100.cs.edinboro.edu (or $ ssh username@cslab101.cs.edinboro.edu), enter your password and now you can run anything you normally can in the lab.

[edit] Using Mac OS X

You can open Terminal (located in /Applications/Utilities/Terminal) and type ssh username@cslab100.cs.edinboro.edu (or $ ssh username@cslab101.cs.edinboro.edu), enter your password and can then run anything you normally can in the lab.

For a more developer-friendly terminal on 10.4 and below, try iTerm.

[edit] Using Microsoft Windows

Windows does not come with a secure shell client, so you need to download one first.

  1. Download PuTTY
  2. Install PuTTY
  3. Run PuTTY
  • Host name: cslab100.cs.edinboro.edu or cslab101.cs.edinboro.edu
  • Connection type: SSH
  • You will be prompted for your username and password.
    • Username: Your CS user name (this is different from your EUP username or email address!)
    • Password: Default: Your 6 digit birth date in the format MMDDYY

[edit] Programming on Your Home Machine

Another option is to program on your home machine. This let's you work in the comfort of your own environment. It is always a good idea to try compiling your finished programs in the lab to make sure that everything works, because this is what the professors may use.

[edit] Linux

Make sure you have development packages installed for you distribution, in particular gcc and g++. With these installed, simply open a terminal and do what you would do in the lab. Feel free to use your favorite syntax-highlighting text editor such as gedit.

[edit] Mac OS X

Make sure you have installed the Xcode Developer Tools package (generally on one of the disks that come with your Mac). Launch Terminal (located in /Applications/Utilities/Terminal) and do what you would in the lab. Alternatively, feel free to use the Xcode development environment (located in /Developer/Applications/Xcode), it is very elegant and easy to use.

[edit] Microsoft Windows

For a GCC compliant Windows IDE, try out Dev-C++ from Bloodshed Software

If you'd just like to edit your source with a decent editor, Notepad++ is also helpful.

Personal tools