There are two main ways you can write code from your own computer:
If you don't have much experience and will have an internet connection avaiable, we recommend you start out with Connecting to CSE from macOS.
If you won't have an internet connection available and want to try working directly on your own computer, have a look at Writing + Compiing code on macOS.
You have two options to connect to CSE from your personal computer:
ssh firstname.lastname@example.org z5555555 with your zID. It should prompt you for your zPass. (Note: you should not expect dots or anything else to appear on the screen as you are typing your password)
ssh -Y email@example.comThe
-Yoption means that whenever you open a window, the window will appear remotely on your home machine.
You can use any text editor, for example Text Wrangler, which can be downloaded from the Mac App Store.
scp firstname.lastname@example.org:~/directory/filename .The
.is a convenient way to reference the current directory of the Terminal (this is true in any UNIX command line). You can replace the
.above with the path to any directory on your local machine. Hint - If you drag a directory from the Finder into the Terminal window, the path to that directory is copied into the Terminal. To transfer the other way, type:
scp filename email@example.com:~/directoryTo transfer an entire directory and its contents, use the option
-rwhich stands for recursive. For example, type:
scp -r firstname.lastname@example.org:~/directory/directorytocopy .Cyberduck is another program providing a graphical interface which can be used eto transfer files to and from your CSE account.
Summary (all platforms) for transferring files to/from CSE here
gcc, you must install the Xcode command line developer tools. On newer versions of macOS (OS X 10.9 Mavericks and later), there are three ways to do this:
xcode-select --installinto the Terminal, and then follow the Software Update prompts to complete the installation.
Xcode includes the command line developer tools, but also the Xcode IDE. Advanced students may wish to investigate using the Xcode IDE to write C code at a later stage in the course. Its code completion, automatic warnings and debugging features may be helpful when completing assignments. However it is recommended that all students be comfortable writing code in a simple text editor such as Gedit, because this will be the only option in the exam environment.
Log in with your Apple ID, then search and download the Command Line Tools package for your installed version of OS X.