Q: How do I move back a directory?
A: The characters “..” represent the parent directory. So To move back one directory you would use:
cd ..
Labs and project submissions are expected to come in a single .tar or .tar.gz file.
Before tarring your submission, make sure to remove all object files (.o), edit files(~), and executables from the project directory. One way to do this is by creating a make rule that removes these files automatically.
Here’s the clean rule:
clean:
rm -f *.o *~ lab1
In this example, we assume “lab1” an executable. For your specific project, you would want to include the specific executables of your program.
Q: How can I access the eecs computers remotely?
A: SSH and SFTP
Short Answer log into wozniak.eecs.ku.edu or eno.eecs.ku.edu with your eecs username and password.
Longer Answer
SSH allows for remote access to a computer. SSHing into the eecs machines will allow you to gain access to files stored in your home directory, as well as ensure that your program runs properly on these machines as mandated by the grading instructions.
Windows: The simplest way to use ssh in Windows is via the program putty . Download putty.exe, and run the application.
configuration
Click on ‘Open’ and then log in with your eecs username and password. You should be in your home directory
Mac / Linux
Both have ssh by default. Open a terminal window, which for Mac is located in Applications/Utilities. Use a command similar to:
ssh username@wozniak.eecs.ku.edu
Where username is your eecs account username.
In addition, both Mac and Linux have the ability to mount a ssh drive as if it were a local drive. Meaning, it looks like just another drive and you can edit your files directly on the eecs machines from your home.
Linux: In the Gnome Window’s manager, under “Places”, there is an option to ‘Connect to Server’. From this window, you can connect to a ssh server which will appear on your desktop.
Mac: The recent release of MacFuse from Google allows a similar way to mount ssh directories. I recommend using MacFusion as a front end to this service.
Windows / Mac / Linux users can also use sftp to access and edit remote files and upload files to the eecs machines to be tested.
Windows: The program FileZilla can be used as an sftp client to connect to the eecs department computers.
After downloading, open up the site manager ( File → Site Manager). Click on the New Site button to create a new connection profile. Here are the configurations you will want to input:
In the FileZilla settings under File Viewing / editing you can tell FileZilla which application you would like to be the default editor (see text editors section). So with this set, you can edit files on the eecs servers with a text editor on your local machine.
Mac: There are two freeware sftp clients: Fugu and CyberDuck
Setup will be similar to that listed in the windows section. I would recommend using the MacFuse setup detailed on the MachFusion site over a sftp setup.
There are a multitude of free text editors. Here are some:
Windows
Notepad++ Features syntax highlighting, auto-completion, etc. Very good with handling larger (10 Mb+) files.
Crimson Editor Features similar as Notepad++. Has tree-view of files and folders.
Eclipse Complete development platform. Runs on Linux, Windows, Mac, etc. Written in (requires) Java. One of the best editors for Java. Not recommended for C++.
Mac
Textwrangler One of the best free editors for a Mac. Handles large files well, syntax highlighting, etc.
TextMate NOT free but my favorite editor on any platform. Directory view is a very powerful feature. Also is easily extendable with snippets and shortcuts.
Xcode Similar capabilities and functionality as Eclipse. A complete platform rather than just an editor. Geared toward creating Cocoa applications, but can be used for C++. Freely available on the installation disk or Apple’s developers site.
Eclipse See above
Linux
Eclipse See above
Gedit Official text editor for Gnome desktop. Its what you use when you select the “Text Editor” on the Red Hat machines on campus.
Kate Used in the KDE desktop environment. Very powerful.
which ruby to show you where ruby is on the machine. Useful for quickly finding out if a command is availible to you without trying to run it.