|
CSE Home | About Us | Search | Contact Info |
This document gives some basic information about getting started with Linux. Please let us know what we need to change or add as you discover what works, what doesn't, and (even better) what could be improved.
The good news is that there are many, many ways to get access to a usable Linux system. The bad news is that there are many, many ways to get access to a usable Linux system. The downside is that you may run into problems that are due to your individual setup and it may be hard for us to diagnose exactly what is going on, particularly if it involves a remote connection from home. The UW CSE virtual machines are an attempt to solve this problem and give everyone a standard workable configuration.
The bottom line is actually pretty simple. You need to be able to open a window
that runs bash
, the standard Linux shell, and has editors, compilers,
and other tools that allow you to create and run shell scripts and C/C++ programs.
Almost
any relatively recent Linux distribution will be fine, and there are easy ways
to set up your personal machine to run the necessary tools even
if your own computer is not a Linux machine.
(However, see below about the CSE virtual machines, which we will use as the
reference system for this course.)
CSE provides a Linux virtual machine image (a set of files) that you can run on your computer. See the UW CSE Home Virtual Machines web pages for details. The files are quite large (5 or 6 GB) so you will probably want to download them on campus and put them on your laptop or a thumb drive to carry home. You will need either VMware player (free download) for Windows or VMware Fusion ($40 at the bookstore) for Mac OS X to run the VM image. Details are on the CSE VM web pages.
The CSE Linux VM is a recent version of 32-bit Fedora Linux, configured roughly the same as the Linux machines in the CSE department. We encourage you to use the CSE VM since it provides a standardized environment that we are more likely to be able to help you with compared to other setups which can have problems in millions of unique, inscrutable ways.
We will use the CSE Linux VM as the reference system for developing and grading projects, so even if you don't use this system routinely for your development work, you should check that your assignments run properly on it before you turn them in.
All students traditionally have accounts on the central UW machine dante.u.washington.edu
.
This machine is running Red Hat Linux. Once you've connected and see the logon
screen, enter s
to
get a shell window. (This may be phased out at some point, but probably still
works this year - let us know if that has changed.)
Many students in CSE 374 are EE majors. The EE department
maintains a collection of Linux workstations known as linux01.ee.washington.edu
through
linux17.ee.washington.edu
. Several of these are in the EE computing
lab and all can be accessed remotely via a ssh
login if you have
an EE account.
Depending on your setup, you may be able to run X-windows remotely on the
EE and some other machines (but not dante
). That gives you the
ability to open multiple windows and other conveniences, but is not necessary
for this
class.
We recommend using the CSE Linux VM. There are other ways to get a running shell on a Windows machine either locally, or by remotely logging in to other machines, but these tend to be harder to configure. But if you insist, here are some ways to do it. If you run into problems you are mostly on your own.
The cygwin package (http://www.cygwin.com/)
installs on Windows and provides bash
, gcc
, and all
of the other tools we need. You will have to explicitly select some packages
in the installer, since not everything we
use is part of a default installation, but if you later discover you need something
you didn't include before you can rerun the installer and add it. Cygwin
also includes ssh
(select the openssh
package),
so you can use it for remote login to the
campus machines without installing other communications programs.
If you want to run a full Linux distribution without using the VM, you can always set up your computer as a dual-boot machine, where you can select Linux or Windows each time you restart.
The CSE Linux VM works well on a Mac using VMware Fusion. But also, underneath the spiffy graphical user interface, OS X is a Unix machine and most of the work for this class can be done directly in a terminal window on the Mac.
Install the optional Xcode development tools that came with your Mac, or that can be downloaded from http://developer.apple.com/mac/ to get the most recent version (free signup required). You're all set. Open the Mac terminal application to get a shell window and you can use the same command line tools (gcc, gdb, make, etc.) found on Linux systems.
You may find that you want to move files from one machine (say at home) to
another (say in the lab). While you can mail the files as attachments or use
other schemes, a more direct way is to use the scp
command. This
command uses the same remote login authentication as ssh
, and
allows you to copy files to or from any remote machine that you would have
permission to
copy if you were logged in to that machine directly.
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX [comments to Hal Perkins] |