Getting MatLab to Work on Your Personal Computer

Many of us need MatLab for miscellaneous classes. Unfortunately the student version of MatLab requires a license which costs ~$100. Fortunately Tech can provide this through their computer labs but it’s not always very convenient.

There is a way to utilize MatLab from the comfort of your own computer as a Tech Student. In this mini-tutorial I will show you how to do just that.

NOTE: I am not responsible if you break something. It’s unlikely, but I’m not claiming any responsibility.

Contents:


0. Issues and Limitations

First off, there are some minor limitations and issues to using this process.

If you are interested in how this works, check out section 3. If you need immediate MatLab access when the labs are closed and on holidays, you can get 247 access in the Fidel Computer Pod and the Gold lab by going to Gold and asking the front desk to get your key encoded.


1. Some Software Basics

You will need to know your 900-number, and the password you use to access your computer network account with the ITC. Some basic knowledge of how to SSH would be helpful, but if that doesn’t sound familiar -don’t worry.

You will also need some software:

MacOS

To run this program you will need a software called XQuartz.

Windows

To run this program you will need a software called Xming.

Linux


2. Let’s get to MatLab

We have to use a protocol called SSH to log into the ITC accounts and this is where the 900-number and your password come into play. If you don’t know either of those, please see the front desk in Gold or email help@nmt.edu. If you care as to why MatLab showing up on your screen works and want a brief explanation, then check out section 3, else continue reading on.

We will be using ITC’s ‘login’ server since ‘rainbow’ has been down for… a while. (apparently it now lives.)

So onto the useful part.

MacOS/Linux

Note: Just stay in the standard terminal if using Linux or if you don’t want the GUI on Mac and skipped the software basics section above.

ssh -X 900123456@login.nmt.edu

SHA256:zf3duw+GLORdfeK401r2pI1FcBndDbRwwztXEjDWzLU

900123456@login.nmt.edu's password:

NOTE: Don’t worry when you don’t see anything when typing your password. It’s not broken, it’s just a security thing.

Windows

NOTE: In my experience, you have to enable X11 forwarding each time you open PuTTY. There’s a way to preserve settings but I don’t use PuTTY so I have not delved into this.

900123456@login.nmt.edu


3. Why This Works

You’re still here? It’s Over. Go Home. Go. Basically window forwarding is a software package/mechanism that allows you to utilize the SSH (Secure Shell) network protocol to view the GUI window of the program running on the host computer on the client side. The latency is not great if you are half-way across the world, but for our purposes it will work okay.

Fortunately for us, by using the -X or -Y flag when creating an SSH tunnel between NMT’s ITC and our own computers will allow us to use X11 forwarding and view an already licensed MatLab technically running on Tech’s servers. Because the program is running on the server and not our own computer, all of the files you open and access are located on the server itself. I would recommend learning how to access the files you are using with SCP, SSHFS, or SFTP.

A side note: If all of this looks to daunting and you are comfortable with just the console, you can SSH into the server, and run MatLab via the matlab command. This will open just the MatLab console which has all the functionality without the interface.