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
- https://www.repetier.com/documentation/repetier-host/rh-installation-and-configuration/
- https://www.repetier.com/download-now/
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
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
There can be some display manager such as LXDE.
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
.
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/