Some course homework and projects are completed using CAD tools located on the ECE computers in Kemper 2107. You may use one of those computers by either sitting at its console in Kemper 2107 or by logging into a computer remotely from off campus.
ssh (secure shell) is program and protocol that allows secure logins over insecure networks. Using ssh is the best way to log into ECE machines and work with them from remote computers. Within the ECE department from linux, ssh machinename should work however if it does not, type man ssh to see which options are needed.
You will need an ssh client and X server to be able to run magic and irsim from a department computer. These applications come standard on UNIX-based systems such as linux. Some helpful links to various programs for other systems are listed at the bottom of this page.
If needed, start your X Server. Refer to its documentation on how to setup "X11 Forwarding". In Linux and HP-UX the X server is always running.
Log into an ECE machine from your local ssh client.
Verify that you can display X11 applications on your local computer.
As of June 2020, you must connect through the College of Engineering's VPN to ssh into ECE computers from off campus. The library's VPN no longer works. This was implemented as a security measure due to the large number of hacking attempts coming into our computers. When you connect your computer to a university VPN, for all practical purposes, your computer at home will behave exactly the same as if you dragged an ethernet cable from your house to an ethernet port on campus and plugged it in there.
https://kb.ucdavis.edu/?id=09438 explains how to install the CoE VPN. The ECE department has a less-helpful Remote connection tutorial.
To test whether your VPN connection is working correctly, enter "what is my ip" into your browser both before connecting and after—the address will be different when you connect with the VPN.
Putty is a free, robust, and very easy to setup ssh xterm program for Windows.
Download and install Xming and PuTTY from the links below. Installing Xming will require that you first download the executable file (.exe), then install the program.
Xming: http://sourceforge.net/projects/xming
PuTTY: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Putty can also be found from:
putty.org > "Download PuTTY here" > www.chiark.greeneend.org.uk
> Binaries > LatestReleaseVers >
For Windows on Intel x86 > PuTTY > putty.exe
After installation, start Xming from the start menu. It is normal that you will not see any changes. Xming is necessary for applications running on the ECE computers to show windows on your local computer (using the X11 protocol).
Run PuTTY by double-clicking the icon you downloaded.
In the "Host Name (or IP address)" field, type "ComputerName.ece.ucdavis.edu". For example, for "python", then this field should be: "python.ece.ucdavis.edu"
"Port" field should already be "22"
"Connection type" should already be "SSH"
In the left column, click the "+" symbol next to "SSH", then click "X11". Check the box next to "Enable X11 forwarding".
In the left column, click "Session" at the very top.
In the "Saved Sessions" field, type a short name to remember the machine name such as "python"
Click "Save" so you can quickly double-click on python to log into that machine with one simple step.
Double-click on python to log into the machine.
Type in your ECE login and password. Verify your display is working using the tests above. Your Putty terminal window will now behave in exactly the same way as if you were logged into the console of the machine in Kemper Hall.
MobaXterm is another option for a ssh terminal program. Read the ECE Support instructions for MobaXterm. I have not used the it however it sounds like it has very nice features.
From Windows/Putty: follow the instructions given above.
From Linux/MacOS, type:
"ssh user_name@gopher.ece.ucdavis.edu -X"
for example using the machine "gopher". See "Available ECE Machines" web
page for a full list.
Type "xeyes" or "xclock" to verify that your display is working correctly. Type ctrl + c to kill the application.
You can also type "setenv | grep DISPLAY" and verify that a line of the form "DISPLAY=localhost:10.0" is displayed. If neither appear to be correct check your local client settings.
The ECE Support "Remote Connection Tutorial page may be helpful.
VNC works in two parts: 1) a VNC Server runs on an ECE linux workstation and must be setup first, 2) a VNC Viewer runs on your local computer and when properly configured and connected, it shows the windows running on the workstation. Your VNC Server session will stay running until you kill it. This is especially beneficial in case your internet connection drops. It also provides a somewhat more responsive environmennt than running X11 applications remotely without VNC.
See the ECE department VNC tutorial. The client to download for windows is of the form vncviewer64-[version].exe which was vncviewer64-1.13.1.exe in Fall 2023.
Some details in our older 116 VNC tutorial may also be helpful.
Log into an ECE machine using ssh and run
setup vnc
This will set up the graphical environment for when you connect with a
VNC Viewer later. If you do not complete this step, you will be greeted
by a blank screen when you log in through VNC.
Next, run vncserver. You can use the manual page (man vncserver) to see how to set the screen size and other useful settings.
Download TigerVNC's VNCViewer.
If on linux you can usually install it from the package manager for
your distribution. If on OSX or Windows you can find the installers
on this page:
http://tigervnc.bphinz.com/nightly/
After VNC Server is running, then you can run magic the same way as you do on the ECE computers.
Your VNC session will stay running until you kill it, and it can
make the server very slow if you start multiple sessions.
Also, for security reasons it is a good idea to end your VNC session
if you will not be using it for some time.
After saving all work and closing all programs on your remote desktop,
ssh back into the machine hosting your VNC session, and type the
following command:
vncserver -kill :
Make sure the message says your session was terminated successfully.
VNC appears to not use the traditional .Xdefault file when opening a new program. So instead you should create an .Xresources file.
Open a new ~/.Xresources file using gedit or your favorite editor.
gedit ~/.Xresources
add these commands to the file:
irsim.traceColor: green
irsim.background: black
open a terminal and type
xrdb -load ~/.Xresources
or better yet, add that line to your
~/.cshrc file so you do not need to type it by hand anymore.
This new setting should give your irsim simulations a black background in the analyzer waveform window. It seems you need to type the xrdb command only once per VNC session.
Please following the following instructions to intall and run RealVNC Server: RealVNC Installation.
After VNC Server is running, then you can run magic the same way as you do on the ECE computers.
Windows
Windows has many free programs available. Popular solutions include:
WinSCP
Mac or linux
Use SFTP almost certainly included in the basic distribution. From a Terminal window, type:
sftp username@ece_machine cd your_magic_directory get file_name
2020/11/12 Added .Xresources files instructions 2020/10/20 Re-wrote putty instructions and put into a shareable file 2020/10/07 Added VPN test using browser 2020/10/05 Correction there are 2 VPNs, not just the CoE one 2020/10/01 Added VPN instructions 2018/06/29 Added MacOS section and some cleanup 2014/10/13 Minor cleanups 2013/10/08 Clean up plus link to VCN tutorial 2009/04/11 Updated to include RealVNC 2008/04/11 Updated to include Xming 2006/06/08 Updated magic/irsim binaries 2006/06/06 Updated magic/irsim technology files 2006/04/12 Updated for Spring 2006