Page MenuHomePhabricator

Banyan
Updated 1,712 Days AgoPublic

TurboVNC

Install the client:
https://sourceforge.net/projects/turbovnc/files/2.2.1/

macOS:
https://sourceforge.net/projects/turbovnc/files/2.2.1/TurboVNC-2.2.1.dmg/download

Windows:
https://sourceforge.net/projects/turbovnc/files/2.2.1/TurboVNC-2.2.1-x64.exe/download
You also have to install Cygwin
https://ph.engr.unr.edu/w/cse/cs135/cygwin/

Linux:
https://sourceforge.net/projects/turbovnc/files/2.2.1/turbovnc_2.2.1_amd64.deb/download

Setup

ssh -Y -C $YOUR_NETID@banyan.cse.unr.edu
mkdir ~/.vnc
nano ~/.vnc/xstartup.turbovnc #You can use vim too. Put these contents in the file
#!/bin/bash

#uncomment following line and comment out vglrun line if unstable
#dbus-launch /usr/bin/startxfce4 &
vglrun startxfce4
chmod +x ~/.vnc/xstartup.turbovnc
#Run vncserver with OpenGL
/opt/TurboVNC/bin/vncserver -vgl

You should get input that looks like this:

Warning: banyan:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server banyan:1

Desktop 'TurboVNC: banyan:2 (newellz2)' started on display banyan:2

Starting applications specified in /home/newellz2/.vnc/xstartup.turbovnc
(Enabling VirtualGL)
Log file is /home/newellz2/.vnc/banyan:2.log

Take note of this line:

Desktop 'TurboVNC: banyan:2 (newellz2)' started on display banyan:2

The :2 is the port. Typically its 5900 + n. So in this case it's 5900 +2 = 5902

In a new terminal tab or window:

Port Bind 590# with ssh

ssh -L 5902:localhost:5902 newellz2@banyan.cse.unr.edu

Now launch the TurboVNC viewer

local_vnc.png (126×359 px, 6 KB)

Put localhost:2 in the VNC Server field and connect.

You should be able to connect and run OpenGL Applications:

glxgears.png (957×1 px, 418 KB)

When done:

Run:

/opt/TurboVNC/bin/vncserver -kill :#

The number is the session number from earlier

Setup macOS

brew install xquartz
export DISPLAY=:0
ssh -Y -C -L 8888:localhost:3670 $YOUR_NETID@banyan.cse.unr.edu
#Separate tab
vglrun glxgears
Last Author
claytonf
Last Edited
Sep 11 2019, 12:26 PM

Event Timeline

newellz2 edited the content of this document. (Show Details)
newellz2 edited the content of this document. (Show Details)
igrant changed the edit policy from "All Users" to "Restricted Project (Project)".
claytonf edited the content of this document. (Show Details)