Using Matlab remotely with X Windows
Note that steel.ucs.indiana.edu can be replaced with the name
of any UNIX-type computer you have access to.
Mac Instructions:
-
First you need to get X11 installed on your computer. It is not part of the default OS X installation, but you can install it from your system DVD. Or you can download it from here: http://www.apple.com/downloads/macosx/apple/macosx_updates/x11formacosx.html. It will install to the Applications/Utilities folder.
- Next start X11 up and a terminal window will appear. Type
xhost steel.ucs.indiana.edu and hit enter. Now we need your IP address to setup the display. Your IP address can be found under Network in the System Preferences. Under Show select where your Internet access comes from (ethernet, wireless, etc.) and you should see your IP address. Type DISPLAY=ipaddress:0 where ipaddress is replaced with your IP address (periods included). Then type export DISPLAY and we're almost done.
- Type
ssh -Y username@steel.ucs.indiana.edu and then type
your password. Replace username with your username. Now you are connected remotely to the computer (in this case steel). You can now just type matlab and Matlab will launch. You should see the splash screen appear soon and if you don't then something didn't happen correctly and you should try again.
-
If you are still having trouble then feel free to contact Minh.
Windows Instructions:
-
First you need to get an X server installed on your computer. Download it
from here http://x.cygwin.com/. It has a
very cryptic install program, but you want to install everything. To do that
once it says "Select Packages" then click "Default" next to "All" so that it
changes to "Install". Then you should be set to install the whole package
(since X is not part of the default). If your feeling brave you can try to
just install the X11 part, I don't know if that will work but it might be
worth a shot. The installation will take a ridiculously long time but your
computer is fine to do other things while the installation occurs.
- If you installed it correctly you will see an icon on your desktop called "Start X Server", double click it and you you should see a new process running in the system tray. Now double click on the Cygwin icon on the desktop and you should see a terminal window pop up.
- Now we need your IP address to setup the display. Your IP address can be found under Network Connections in the Control Panel. Double click on your network connection (ethernet, wireless, etc.) and on the second tab you should see your IP address. Type
DISPLAY=ipaddress:0 where ipaddress is replaced with your IP address (periods included). Then type export DISPLAY followed by xhost steel.ucs.indiana.edu and we are almost done.
- Type
ssh -Y username@steel.ucs.indiana.edu and then type
your password. Replace username with your username. Now you are connected remotely to the computer (in this case steel). You can now just type matlab and Matlab will launch. You should see the splash screen appear soon and if you don't then something didn't happen correctly and you should try again.
-
If you are still having trouble then feel free to contact Minh.