CS 241e - Foundation of Sequential Programs (Enriched) |
||||||||||||||||||||||||||
|
Getting Started in UnixWe will be using the Unix environment for working on assignments. Specifically, we will be writing C programs, which are compiled and linked using gcc, and submitted for automarking on the Marmoset testing server. The first thing you need to do is log on to Unix and change your student password if you have not done so already. Please note that Mac and Nexus are different and changing your Nexus password will not affect your Mac password. You NEED to change your Mac password and you need to change it through Unix. Logging in to Unix from a Mac
Once logged in to student.cs UNIX, your screen should look something like this. Changing your PasswordFrom the student.cs command line, type
The screenshot provided below shows an example of changing your password. Working EnvironmentYou have the following options for completing your work:
CS136 has a nice document ( c-logistics.pdf ) that describes these options in more detail and gives you information on how to obtain the required software. Please read through it early in the term, make some decisions, and get the necessary software in place and set up. Storing your workAlways save your course work to the cs241E folder that should already be created on your student.cs UNIX account (your U: drive if you are working in the lab). Every time you work from home, transfer your work to the cs241e folder on your student.cs account as soon as possible (see instructions under Resources link - e.g. mywaterloo as ftp). student.cs is backed up regularly, so if something happens to your home computer, some version of your work may be recoverable, but only if you transferred your files there. Where to StartYour C programs will be created using a text editor. We recommend using Pico, Nano, Vim, or Emacs. In addition to an editor, you will be using the C compiler gcc. This is run from the command line interface (ie. gcc myprogram.c). Follow the links below for more information. You may get started on Assignment 1. Useful LinksUnixVim
Emacs
Nano
MFCF
|
|||||||||||||||||||||||||