Docs
DataCrunch HomeSDKAPILogin / Signup
  • Welcome to DataCrunch
    • Overview
    • Locations and Sustainability
    • Pricing and Billing
    • Team Projects
    • Support
  • CPU and GPU Instances
    • Set up a CPU or GPU instance
    • Securing Your Instance
    • Shutdown, Hibernate, and Delete
    • Adding a New User
    • Managing SSH Keys
    • Connecting to Your DataCrunch.io Server
    • Connecting to Jupyter notebook with VS Code
    • Remote desktop access
  • Clusters
    • Instant Clusters
      • Deploying a GPU cluster
      • Slurm
      • Spack
      • Good to know
    • Customized GPU clusters
  • Storage
    • Block Volumes
      • Attaching a block volume
      • Resizing a block volume
      • Cloning a block volume
      • Permanently deleting a block volume
    • Shared Filesystems (SFS)
      • Creating a shared filesystem
      • Editing share settings
      • Mounting a shared filesystem
  • Containers
    • Overview
    • Container Registries
    • Scaling and health-checks
    • Batching and Streaming
    • Async Inference
    • Tutorials
      • Quick: Deploy with vLLM
      • In-Depth: Deploy with TGI
      • In-Depth: Deploy with SGLang
      • In-Depth: Deploy with vLLM
      • In-Depth: Deploy with Replicate Cog
      • In-Depth: Asynchronous Inference Requests with Whisper
  • Inference
    • Overview
    • Authorization
    • Image Models
      • Flux.1 Kontext pro
      • Flux.1 Kontext max
    • Audio Models
      • Whisper X
  • Pricing and Billing
  • Resources
    • Resources Overview
    • Services Overview
    • Shared Responsibility Model
    • DataCrunch API
  • Python SDK
  • Get Free Compute Credits
Powered by GitBook
On this page

Was this helpful?

  1. CPU and GPU Instances

Remote desktop access

Sometimes it is useful to manage the CPU and GPU instances from a visual desktop interface.

Follow these steps to set up a remote desktop environment with VNC server using TigerVNC on Linux systems like Ubuntu 24.04. This setup allows you to remotely access a lightweight graphical desktop on DataCrunch virtual machine instances.

Connect to your instance using SSH

ssh user@INSTANCE_IP_ADDRESS

Update The System

Follow the instructions on Securing Your Instance if you have not done that before

sudo apt update
sudo apt upgrade

Install XFCE Desktop Environment

sudo apt install xfce4 xfce4-goodies

Install TigerVNC Server

sudo apt install tigervnc-standalone-server tigervnc-common

Set Up VNC Password and Initial Configuration

Start the VNC server to set your access password and create initial configuration files:

vncserver

You will be prompted to set a password for VNC access.

Configure VNC to Use XFCE

Stop the VNC server to edit the startup configuration:

vncserver -kill :1

Edit (or create) the ~/.vnc/xstartup file:

vi ~/.vnc/xstartup

Replace its contents with:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

Make the script executable:

chmod +x ~/.vnc/xstartup

Start the VNC server again (for example, on display :1):

vncserver :1

Now your instance has and VNC server running and is ready for the VNC connection. Next commands are run on the machine that you want to use for viewing and controlling the desktop.

Create an SSH tunnel to secure the VNC connetion

Run this command on the machine that you will use to connect to your instance. If you want to keep the SSH tunnel connection in the background, you can use screen or tmux commands.

ssh -L 5901:localhost:5901 username@REMOTE_IP

Connect Using a VNC Client

Use any VNC viewer (e.g., TigerVNC Viewer, RealVNC, or Remmina) and connect to localhost:5901.

Tips

  • You can change the vnc ports and make multiple connections, they will get assigned different ports 5901, 5902 etc..

  • You can also use other compatible Linux desktop environments like Ubuntu Desktop (Gnome), KDE Plasma on the instances. XFCE Desktop is recommended for most users since it is lightweight and simple to use without much configuration and works with default DataCrunch OS images.

Last updated 9 days ago

Was this helpful?