Difference between revisions of "VCL"

From PrattWiki
Jump to navigation Jump to search
(Using a Windows VCL and MATLAB)
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== VCL and MATLAB ==
 
== VCL and MATLAB ==
At present (as of 9/13/2012), the UNIX distribution that is loaded onto the Teer machines has some issues with graphicsAs a result, surfaces made in MATLAB with basis coordinates larger than about 15x15 will not render and will instead either crash MATLAB completely or yield an error about an improper installation of OpenGL.  If you find you need to create a surface or mesh in the interim, then, you can use the virtual computer lab image for the "Linux Lab Base 2011."  This will allow you to access all the commands that existed on the system prior to the start of the Fall, 2012 semester.
+
Using MATLAB over a wireless connection with port forwarding for X11 works great, right up until you need to hear the sounds MATLAB is makingIn order to run a version of MATLAB that will also send sounds to your speaker, you will need to use a VCL that runs Windows in a window.
  
'''Note:'''  because these are old images, several ''new'' (i.e. Fall 2012 edition) programs do not existSpecifically, with respect to using [[LaTeX]], [[okular]] and [[evince]] are not a part of this installation; rather, to view and print dvi files you would use [[kdvi]].
+
== Using a Windows VCL and MATLAB ==
 +
There are several steps to using a Windows VCL with the MATLAB distribution. The end result will be having a window open on your local computer in which a Windows 10 distribution is runningThe process is slightly more complicated than the [[Working from home]] steps there are some similarities.  Duke has posted instructions at
 +
their [https://duke.service-now.com/nav_to.do?uri=%2Fkb_view.do%3Fsys_kb_id%3Df174a413db3c98d086136a5b8a9619e3 Knowledge Database] site for "How to create a new VCM reservation."  This includes listing the required software for opening a VCM as well as how to make a reservation.  There is a virtual machine that has MATLAB installed *however* it is MATLAB 2016.  It is probably better to start a blank Windows 10 distribution and then install MATLAB yourself.  
  
== Using VCL and MATLAB ==
+
=== Process Summary ===
There are several steps to using a VCL with the MATLAB distributionThe process is slightly more complicated than the [[Working from home]] steps but they are similarThey are summarized here (for Windows, Mac, and Linux users) and the latter four are discussed in detail below.
+
Here is a summary of the process:
 +
* Go to [https://vcm.duke.edu/ https://vcm.duke.edu/]; enter your Duke ID and password if requested
 +
* Click the "Reserve a VM" tab at the top
 +
* Pick the "Plain VM No Apps Windows 10" from the pull down box and create the reservation
 +
* You will go to a page called "VM Management Tools"
 +
* Wait until you get an email from OIT indicating that you have a VM readyIf the "VM Status" is "reserving," you will not be able to run your VM.
 +
* Click the "Remote Desktop" linkDepending on your operating system, this should download a link that you can open to run your virtual machine.
  
* Install the appropriate software if need be.  For Windows users, this means [[X-Win 32]] and [[PuTTY]]; for Mac users, this means [[XQuartz]]; for Linux users - you're probably all good already...
+
=== Installing MATLAB ===
* Windows only: Start [[X-Win 32]]
+
 
 +
 
 +
=== Accessing CIFS from MATLAB in Windows VCL ===
 +
Your CIFS space - which is to say, ~ in your UNIX account - is mounted as drive Z:.  If you run the MATLAB program on that Windows distribution:
 +
Start -> All Programs -> Mathematics & Statistics -> MATLAB -> VERSION -> MATLAB VERSION
 +
(where VERSION is something like R2020a)
 +
you can switch into your CIFS space by typing "cd Z:" in MATLAB's command window.  You can use the UNIX <code>cd</code> and <code>ls</code> commands in the MATLAB command window to move around.
 +
 
 +
== Using a Linux VCL and MATLAB ==
 +
There are several steps to using a VCL with the MATLAB distribution.  The process is slightly more complicated than the [[Working from home]] steps but they are similar.  They are summarized here (for Windows, Mac, and Linux users) and the latter four steps from the list are discussed in detail below.
 +
 
 +
* Install the appropriate software if need be.  For Windows users, this means [[MobaXterm]]; for Mac users, this means [[XQuartz]]; for Linux users - you're probably all good already...
 
* Make a reservation at [https://vcl.oit.duke.edu/ https://vcl.oit.duke.edu/]
 
* Make a reservation at [https://vcl.oit.duke.edu/ https://vcl.oit.duke.edu/]
 
* Receive reservation confirmation, including the IP address of your virtual machine
 
* Receive reservation confirmation, including the IP address of your virtual machine
* Connect to the virtual machine with X11 forwarding enabled
+
* Connect to the virtual machine using
 +
ssh -XY netid@machineid
 +
: where machineid is the four-part IP address of the virtual machine you were given.
 
* Profit
 
* Profit
  
 
=== Making a Reservation / Receiving Confirmation===
 
=== Making a Reservation / Receiving Confirmation===
* To make a reservation, point your browser to [https://vcl.oit.duke.edu/ https://vcl.oit.duke.edu/], log in using your Duke credentials, and then select New Reservation
+
* To make a reservation, point your browser to [https://vcm.duke.edu/ https://vcm.duke.edu/], log in using your Duke credentials, and then select New Reservation
* Choose the "Linux Lab Base 2011" environment, Now, and a duration of 8 hours (might as well)
+
* Choose the "OIT Linux Lab 2013" environment, Now, and a duration of 4 hours (or whatever is longest)
 
* Click "Create Reservation"
 
* Click "Create Reservation"
  
 
=== Receiving Confirmation ===
 
=== Receiving Confirmation ===
In a few seconds, you should receive an e-mail with your reservation confirmation and an IP address.  Click on the link in the e-mail to visit the VCL page, select "Current Reservations" and then click the Connect button - if you do not do this, you might get disconnected early from your reservation.
+
In a few seconds, possibly minutes, you should receive an e-mail with your reservation confirmation and an IP address.  After that happens, within 20 seconds, the web page should refresh and there will be a "Connect!" button on the web page.  Click that button.
  
 
=== Connecting to the Virtual Machine ===
 
=== Connecting to the Virtual Machine ===
* Start your terminal program ([[PuTTY]] or [[XQuartz]] terminal or a Linux terminal)
+
* Start your terminal program ([[MobaXterm]] or [[XQuartz]] terminal or a Linux terminal)
 +
* Type
 +
ssh -XY netid@machineid
 +
<!--
 
** For [[PuTTY]] users, this part is a little more complicated.  Follow the instructions on [[PuTTY#First_Time]] '''except''' use the IP address you received from the VCL instead of a Teer machine.  You can save the session, too, but note that the next time you make a reservation, you will need to change the IP address.  All you would need to do then is load the session, change the host address, and open the session.
 
** For [[PuTTY]] users, this part is a little more complicated.  Follow the instructions on [[PuTTY#First_Time]] '''except''' use the IP address you received from the VCL instead of a Teer machine.  You can save the session, too, but note that the next time you make a reservation, you will need to change the IP address.  All you would need to do then is load the session, change the host address, and open the session.
 
** For Mac users, follow the instructions on [[XQuartz#Creating_a_Remote_Connection]] '''except''' use the IP address you received from the VCL instead of a Teer machine.
 
** For Mac users, follow the instructions on [[XQuartz#Creating_a_Remote_Connection]] '''except''' use the IP address you received from the VCL instead of a Teer machine.
** For Linux users, open a terminal window and then follow the instructions on [[XQuartz#Creating_a_Remote_Connection]] '''except''' use the IP address you received from the VCL instead of a Teer machine.
+
** For Linux users, open a terminal window and then follow the instructions on [[XQuartz#Creating_a_Remote_Connection]] '''except''' use the IP address you received from the VCL instead of a Teer machine.-->
You should now come to the command prompt for the virtual machine over which you have been given temporary dominion.  Note that these virtual machines access your OIT space just like logging in to Teer machines would.
+
::You should now come to the command prompt for the virtual machine over which you have been given temporary dominion.  Note that these virtual machines access your OIT space just like logging in to Teer machines would.
  
 
=== Profit ===
 
=== Profit ===
Line 36: Line 60:
 
will bring up MATLAB and typing
 
will bring up MATLAB and typing
 
  surfc(rand(20))
 
  surfc(rand(20))
will actually work.
+
will work. These machines should mount your CIFS drive.
 
 
 
 
  
 
== Questions ==
 
== Questions ==

Latest revision as of 14:45, 16 July 2020

VCL is short for "Virtual Computing Lab." Duke University has set up several virtual computing lab images and they can be used to work remotely.

VCL and MATLAB

Using MATLAB over a wireless connection with port forwarding for X11 works great, right up until you need to hear the sounds MATLAB is making. In order to run a version of MATLAB that will also send sounds to your speaker, you will need to use a VCL that runs Windows in a window.

Using a Windows VCL and MATLAB

There are several steps to using a Windows VCL with the MATLAB distribution. The end result will be having a window open on your local computer in which a Windows 10 distribution is running. The process is slightly more complicated than the Working from home steps there are some similarities. Duke has posted instructions at their Knowledge Database site for "How to create a new VCM reservation." This includes listing the required software for opening a VCM as well as how to make a reservation. There is a virtual machine that has MATLAB installed *however* it is MATLAB 2016. It is probably better to start a blank Windows 10 distribution and then install MATLAB yourself.

Process Summary

Here is a summary of the process:

  • Go to https://vcm.duke.edu/; enter your Duke ID and password if requested
  • Click the "Reserve a VM" tab at the top
  • Pick the "Plain VM No Apps Windows 10" from the pull down box and create the reservation
  • You will go to a page called "VM Management Tools"
  • Wait until you get an email from OIT indicating that you have a VM ready. If the "VM Status" is "reserving," you will not be able to run your VM.
  • Click the "Remote Desktop" link. Depending on your operating system, this should download a link that you can open to run your virtual machine.

Installing MATLAB

Accessing CIFS from MATLAB in Windows VCL

Your CIFS space - which is to say, ~ in your UNIX account - is mounted as drive Z:. If you run the MATLAB program on that Windows distribution:

Start -> All Programs -> Mathematics & Statistics -> MATLAB -> VERSION -> MATLAB VERSION

(where VERSION is something like R2020a) you can switch into your CIFS space by typing "cd Z:" in MATLAB's command window. You can use the UNIX cd and ls commands in the MATLAB command window to move around.

Using a Linux VCL and MATLAB

There are several steps to using a VCL with the MATLAB distribution. The process is slightly more complicated than the Working from home steps but they are similar. They are summarized here (for Windows, Mac, and Linux users) and the latter four steps from the list are discussed in detail below.

  • Install the appropriate software if need be. For Windows users, this means MobaXterm; for Mac users, this means XQuartz; for Linux users - you're probably all good already...
  • Make a reservation at https://vcl.oit.duke.edu/
  • Receive reservation confirmation, including the IP address of your virtual machine
  • Connect to the virtual machine using
ssh -XY netid@machineid
where machineid is the four-part IP address of the virtual machine you were given.
  • Profit

Making a Reservation / Receiving Confirmation

  • To make a reservation, point your browser to https://vcm.duke.edu/, log in using your Duke credentials, and then select New Reservation
  • Choose the "OIT Linux Lab 2013" environment, Now, and a duration of 4 hours (or whatever is longest)
  • Click "Create Reservation"

Receiving Confirmation

In a few seconds, possibly minutes, you should receive an e-mail with your reservation confirmation and an IP address. After that happens, within 20 seconds, the web page should refresh and there will be a "Connect!" button on the web page. Click that button.

Connecting to the Virtual Machine

  • Start your terminal program (MobaXterm or XQuartz terminal or a Linux terminal)
  • Type
ssh -XY netid@machineid
You should now come to the command prompt for the virtual machine over which you have been given temporary dominion. Note that these virtual machines access your OIT space just like logging in to Teer machines would.

Profit

And by profit, I mean you can now run UNIX commands just like the good old days. Like

matlab &

will bring up MATLAB and typing

surfc(rand(20))

will work. These machines should mount your CIFS drive.

Questions

Post your questions by editing the discussion page of this article. Edit the page, then scroll to the bottom and add a question by putting in the characters *{{Q}}, followed by your question and finally your signature (with four tildes, i.e. ~~~~). Using the {{Q}} will automatically put the page in the category of pages with questions - other editors hoping to help out can then go to that category page to see where the questions are. See the page for Template:Q for details and examples.

External Links

References