Using the CVL

From CVL Wiki

(Difference between revisions)
Jump to: navigation, search
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==CVL Introduction==
 
==CVL Introduction==
*The CVL runs on Linux/Unix servers, primarily Centos (a Red Hat derivative). As such, familiarity with the Unix command-line is a useful skill.
+
*The CVL runs on Linux/Unix servers, primarily CentOS (a Red Hat derivative). As such, familiarity with the Unix command-line is a useful skill.
 
*You can access the CVL and it's software while working on a project from home or campus.  This generally comes in either command-line form or as a graphical application launched via the command-line (referred to as a "shell"). There are many tutorials from which you can familiarize yourself with the basic unix commands that can be performed via the command-line shell. Fortunately, not very many of these command-line utilities are required to access and use the CVL software.  
 
*You can access the CVL and it's software while working on a project from home or campus.  This generally comes in either command-line form or as a graphical application launched via the command-line (referred to as a "shell"). There are many tutorials from which you can familiarize yourself with the basic unix commands that can be performed via the command-line shell. Fortunately, not very many of these command-line utilities are required to access and use the CVL software.  
  
 
*The most general commands you use to navigate the file system are:
 
*The most general commands you use to navigate the file system are:
'''ls''': listing the files in your home directory
+
**'''ls''': listing the files in your home directory
'''mkdir: making project directories
+
**'''cd''': changing directory
'''mv'''': moving files in and out of the directories
+
**'''mkdir''': making project directories
 +
**'''mv''': moving files in and out of the directories
  
::Here are some examples of tutorials:
+
Here are some examples of tutorials:
:::'''[http://www.ee.surrey.ac.uk/Teaching/Unix/ UNIX / Linux Tutorial for Beginners]'''
+
*'''[http://www.ee.surrey.ac.uk/Teaching/Unix/ UNIX / Linux Tutorial for Beginners]'''
:::'''[http://partmaps.org/era/unix/shell.html Introduction to the Unix Shell]'''
+
*'''[http://linoxide.com/guide/linux-command-shelf.html Linux Commands in structured order]'''
:::'''[http://linoxide.com/guide/linux-command-shelf.html Linux Commands in structured order]'''
+
  
 
==Connecting to the CVL remotely==
 
==Connecting to the CVL remotely==
 +
'''* Note: You will need to use a VPN or http://ssh.ece.vt.edu to connect to computers off campus'''
 +
 +
* '''You will need an ECE account before using the CVL. You can create an ECE account [[here https://computing.ece.vt.edu/accounts]]'''
 +
 
*The standard way to connect to the CVL remotely is with the program called "Secure Shell" (SSH), which has wide support on many operating systems. SSH establishes a secure, encrypted connection from the local shell to a command shell on a remote machine, and even allows for file transfers over the same encrypted channel.
 
*The standard way to connect to the CVL remotely is with the program called "Secure Shell" (SSH), which has wide support on many operating systems. SSH establishes a secure, encrypted connection from the local shell to a command shell on a remote machine, and even allows for file transfers over the same encrypted channel.
  
'''Applications on Unix are not restricted to command-line programs!'''
+
'''Applications on Unix are not restricted to just command-line programs!'''
  
 
*The Unix standard for graphical applications is called "X-windows," or just "X" for short. In fact, the graphics capabilities of this X-windows system are much more flexible than in the Windows or MacOS because they allow for interactions (viewing windows, buttons, pointing, clicking, etc) on a different machine than the one running the application.  All that is required is a network connection between the two, and what's referred to as an "X-server" on the local machine that allows the user to physically view the windows and manipulate the mouse.  This "client/server" naming convention seems backwards in that the "server" runs on the local computer (e.g. your Windows laptop), and the "client" is the application running on the CVL (e.g. Matlab).  Linux clients generally have this X-server installed by default, but Windows users have to install one if graphical access to the CVL is required.
 
*The Unix standard for graphical applications is called "X-windows," or just "X" for short. In fact, the graphics capabilities of this X-windows system are much more flexible than in the Windows or MacOS because they allow for interactions (viewing windows, buttons, pointing, clicking, etc) on a different machine than the one running the application.  All that is required is a network connection between the two, and what's referred to as an "X-server" on the local machine that allows the user to physically view the windows and manipulate the mouse.  This "client/server" naming convention seems backwards in that the "server" runs on the local computer (e.g. your Windows laptop), and the "client" is the application running on the CVL (e.g. Matlab).  Linux clients generally have this X-server installed by default, but Windows users have to install one if graphical access to the CVL is required.
  
==Accessing the CVL Remotely from a Windows Operating System==
+
==Connecting with Windows==
 +
 
 +
*In order to access the CVL from a Windows system, you must have a SSH client and a X-windows server installed on your Windows machine. We recommend using '''[[MobaXterm]]''', an all-in-one program that lets you SSH with X11-Fowarding enabled, and lets you copy files to and from your Windows machine to the remote server.
  
*In order to access the CVL from a Windows system, you must have a SSH client and a X-windows server installed on your Windows machine. ECE supports PuTTY as our SSH client and Xming as our X-windows server.
+
*Click the link below to see How to Install and use MobaXterm to connect to CVL
::*To download, install, and setup these programs follow these short tutorials.
+
  
:::'''Note:''' At the end of the Xming Tutorial, you will be given the instructions on how to access the CVL remotely.
+
*Windows 10 1803 may have an ssh client installed.  You can run this on the command prompt like this
 +
        Start menu  cmd  ssh
  
::::[[Xming]] tutorial
+
==='''[[MobaXterm]]'''===
::::[[PuTTY]] tutorial
+
  
*In order to copy and transfer files to and from your CVL account(e.g. Matlab scripts, data files for processing, etc), you must use a program similar to SSH for transferring files.  One very simple application that can be used is called WinSCP.  The [http://winscp.net/ WinSCP homepage] has either a full installation package, or just a single executable file on its [http://winscp.net/eng/download.php download page].
+
==Connecting with Linux/Unix==
  
==Accessing the CVL Remotely from a Unix Based Operating System==
+
#Open a terminal (shell) and type:
  
'''1.''' To access the CVL from a Unix or Mac OS X system just open a terminal and type:
+
  ssh -X ECEUSERNAME@cvlws[01-10].ece.vt.edu
  
  ssh -X cvl.ece.vt.edu
+
#Enter your ECE credentials (see [[Main Page]] to edit or create your account)
  
'''2.''' Use the user name and password that you created from the CVL Account creation page.
+
===Moving files to the CVL===
 +
To copy a file from your local computer to your CVL home directory, type the following command:
  
'''3.''' To copy files to your home directory on the CVL use the command:
+
  scp localfile ECEUSERNAME@cvlws[01-10].ece.vt.edu:
  
  scp -r myfile cvl.ece.vt.edu:
+
Use -r to copy the whole directory (folder)
  
'''Or''': to get "myfile" from your home directory on the CVL, use the command:  
+
  scp -r ~/directory ECEUSERNAME@cvlws[01-10].ece.vt.edu:
  
  scp -r cvl.ece.vt.edu:myfile ~
+
To copy a file from your CVL home directory to your local computer, type the following command:
  
The files will be copied to your home directory on your local machine.
+
  scp ECEUSERNAME@cvlws[01-10].ece.vt.edu:remotefile ~/LocalDirectory
  
 +
Use -r command to copy the whole directory
  
[[Main Page]]
+
  scp -r ECEUSERNAME@cvlws[01-10].ece.vt.edu:remoteDirectory ~/LocalDirectory

Latest revision as of 12:13, 6 April 2020

Contents

[edit] CVL Introduction

  • The CVL runs on Linux/Unix servers, primarily CentOS (a Red Hat derivative). As such, familiarity with the Unix command-line is a useful skill.
  • You can access the CVL and it's software while working on a project from home or campus. This generally comes in either command-line form or as a graphical application launched via the command-line (referred to as a "shell"). There are many tutorials from which you can familiarize yourself with the basic unix commands that can be performed via the command-line shell. Fortunately, not very many of these command-line utilities are required to access and use the CVL software.
  • The most general commands you use to navigate the file system are:
    • ls: listing the files in your home directory
    • cd: changing directory
    • mkdir: making project directories
    • mv: moving files in and out of the directories

Here are some examples of tutorials:

[edit] Connecting to the CVL remotely

* Note: You will need to use a VPN or http://ssh.ece.vt.edu to connect to computers off campus

  • The standard way to connect to the CVL remotely is with the program called "Secure Shell" (SSH), which has wide support on many operating systems. SSH establishes a secure, encrypted connection from the local shell to a command shell on a remote machine, and even allows for file transfers over the same encrypted channel.

Applications on Unix are not restricted to just command-line programs!

  • The Unix standard for graphical applications is called "X-windows," or just "X" for short. In fact, the graphics capabilities of this X-windows system are much more flexible than in the Windows or MacOS because they allow for interactions (viewing windows, buttons, pointing, clicking, etc) on a different machine than the one running the application. All that is required is a network connection between the two, and what's referred to as an "X-server" on the local machine that allows the user to physically view the windows and manipulate the mouse. This "client/server" naming convention seems backwards in that the "server" runs on the local computer (e.g. your Windows laptop), and the "client" is the application running on the CVL (e.g. Matlab). Linux clients generally have this X-server installed by default, but Windows users have to install one if graphical access to the CVL is required.

[edit] Connecting with Windows

  • In order to access the CVL from a Windows system, you must have a SSH client and a X-windows server installed on your Windows machine. We recommend using MobaXterm, an all-in-one program that lets you SSH with X11-Fowarding enabled, and lets you copy files to and from your Windows machine to the remote server.
  • Click the link below to see How to Install and use MobaXterm to connect to CVL
  • Windows 10 1803 may have an ssh client installed. You can run this on the command prompt like this
       Start menu  cmd  ssh

[edit] MobaXterm

[edit] Connecting with Linux/Unix

  1. Open a terminal (shell) and type:
  ssh -X ECEUSERNAME@cvlws[01-10].ece.vt.edu
  1. Enter your ECE credentials (see Main Page to edit or create your account)

[edit] Moving files to the CVL

To copy a file from your local computer to your CVL home directory, type the following command:

  scp localfile ECEUSERNAME@cvlws[01-10].ece.vt.edu:

Use -r to copy the whole directory (folder)

  scp -r ~/directory ECEUSERNAME@cvlws[01-10].ece.vt.edu:

To copy a file from your CVL home directory to your local computer, type the following command:

  scp ECEUSERNAME@cvlws[01-10].ece.vt.edu:remotefile ~/LocalDirectory 

Use -r command to copy the whole directory

  scp -r ECEUSERNAME@cvlws[01-10].ece.vt.edu:remoteDirectory ~/LocalDirectory
Views
Personal tools
Support