Skip to content

Instantly share code, notes, and snippets.

@bzamecnik
Created January 7, 2018 07:04
Show Gist options
  • Save bzamecnik/544e3dff218bc6d7bb7fc83677385950 to your computer and use it in GitHub Desktop.
Save bzamecnik/544e3dff218bc6d7bb7fc83677385950 to your computer and use it in GitHub Desktop.
RepetierHost via VNC on Ubuntu 16.04

How to install RepetierHost via VNC on Ubuntu 16.04?

Imagine we have a Linux computer with a 3D printer and we want to control it remotely from a Mac.

  • RepetierHost 2.0.5
  • vnc4server

Installing RepetierHost

wget http://download.repetier.com/files/host/linux/repetierHostLinux_2_0_5.tgz
sudo tar -xzf repetierHostLinux_2_0_5.tgz -C /opt
cd /opt/RepetierHost
sudo ./configureFirst.sh

Repetier will cry it needs newer Mono, but 4.2 works.

We can run it locally:

$ repetierHost

vnc4server

I tried TightVNC, but it lacks OpenGL support, so Repetier fails on missing GLX and RANDR extensions of X server. So we can use vnc4server instead.

Also I found that Repetier needs at least 24-bit color depth, so with 16-bit in default configuration it failed.

$ vnc4server -depth 24
$ vnc4server -kill :1

Display manager

There can be some display manager such as LXDE.

Connecting from OSX

Run Screen Sharing.app. Connect to ubuntu_host:5901.

There can be several displays and the port is 5900 + display number.

Run Repetier either from menu Other -> Repetier-Host or from console repetierHost.

https://snag.gy/6OWcGT.jpg

Port forwarding

If you're accessing the machine from outside for your local network (via internet), it might be good to set up port forwarding in your SHH client.

# ~/.ssh/config
Host vnchost.example.com
    LocalForward 5901 127.0.0.1:5901

Then connect from Screen Sharing.app to localhost:5901.

http://danielhnyk.cz/setting-vnc-remote-access-port-forwarding/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment