Code Monkey home page Code Monkey logo

lab-scripts's Introduction

Azure Lab Services Scripts

Configuration scripts to simplify common tasks on Lab Services VMs.

Ubuntu

These scripts work for both 16.04 LTS and 18.04 LTS. They will likely work for other versions, but are untested.

X2Go

X2Go is a Remote Desktop solution, which some vendors vaguely call Remote Control. This is not to be confused with Microsoft Remote Desktop Connection, which is a competing Remote Desktop solution and protocol.

X2Go is the recommended Remote Desktop solution for Linux VMs in Azure Lab Services. It provides the smoothest and most performant experience.

Using X2Go requires three steps: (If you're a student with a Lab VM that already has X2Go installed, skip the first step)

  1. Install the X2Go server on the Lab (template) VM using one of the three scripts below.
  2. Install the X2Go client software on your local machine to connect to the remote VM.
  3. Create an X2Go session in the X2Go client to connect to your Lab (remote) VM.

Install X2Go Server

The machine that runs the X2Go server would be called the remote machine. Applications / session are started on this remote machine and the applications transfer their windows / desktops to the client.

The scripts below will automatically install the X2Go server and the Linux desktop software. Just SSH into the Lab VM and paste in one of the following scripts depending on which desktop software you prefer:

Install MATE Desktop & X2Go Server
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/colbylwilliams/lab-scripts/master/ubuntu/x2go-mate.sh)"
Install XFCE4 Desktop & X2Go Server
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/colbylwilliams/lab-scripts/master/ubuntu/x2go-xfce4.sh)"
Install Xubuntu Desktop & X2Go Server
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/colbylwilliams/lab-scripts/master/ubuntu/x2go-xubuntu.sh)"

Install X2Go Client

Once you have the X2Go server running on your Ubuntu VM (using the scripts above), you'll use the X2Go client to remotely connect to the VM. The X2Go Client is the application that allows one to connect to a remote server and display a graphical desktop / application on the client machine.

Instructions for installing the X2Go client can be found here.

Once you've installed the X2Go client, you'll need to create a new session to connect to your Lab VM.

Create X2Go Session

First, you'll need to get the connection details for your Lab VM:

  • Instructors (template) VM: Go to the Lab Services portal, select your Lab, select Customize template on the Template tab, then select SSH
  • Students: Go to the Lab Services portal, select the Connect icon on your Lab VM, then select SSH (note: you may need to start your VM if it isn't already running)

The connection details will look something like this:

ssh -p 12345 student@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com

Once you have these connection details, open the X2Go client app and create a new Session.

Fill in the following values in the Session Preferences pane (replacing the values from the example above with the values from your own connection details):

  • Session name: This can be whatever you want, but I recommend using the name of your Lab VM
  • Host: ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
  • Login: student
  • SSH port: 12345
  • Session type: Select MATE or XFCE depending on which Desktop/script you installed. (If you chose Xubuntu, select XFCE)
  • Select OK.

Note: When creating a new X2Go session, make sure to use the SSH port NOT the RDP port.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.