News for hackers. Stuff that matters.

Ask HN: What is the best setup to work remotely with GUI on Linux?

In the past I tried a couple of setups using different protocols (VNC / RDP) with varying server / client software but was never really satisfied. Since this is a common problem, I am sure that some people here on HN have a well tested configuration for this and might be willing to give some advice.

Scenario I am interested in: * Server machine runs graphical applications (potentially GPU / OpenGL intensive) * Client can connect via SSH and is supposed to see graphical application (full desktop or just application)

Thanks for any recommendation!

( 37 comments | 59 points | on HN )
Re:Ask HN: What is the best setup to work remotely with GUI ... by hexadec on Wednesday March 06, 2019 @11:24AM (#19320080)
I recommend Parsec. I use it for gaming on remote Windows machines, but the Linux server works well too. I can access from my Chromebook or laptop with enough fidelity and good networking that allows me to do nearly anything.

I still suck at CounterStrike, but that is not the software's fault.

https://parsecgaming.com/

Re:Ask HN: What is the best setup to work remotely with GUI ... by dajohnson89 on Wednesday March 06, 2019 @02:29PM (#19321841)
>gaming on remote Windows machines

I have a linux desktop, but would love to do some windows gaming remotely. Isn't the latency introduced by gaming over VPN a problem? If not for single-player, then certainly multiplayer?

Re:Ask HN: What is the best setup to work remotely with GUI ... by twoquestions on Thursday March 07, 2019 @09:05AM (#19328058)
It's good for turn based games, but twitchy action games and shooters will suffer due to the latency. If you wanna play Stellaris or something over this and all you have locally is a potato machine, I'd highly recommend it.
Re:Ask HN: What is the best setup to work remotely with GUI ... by hexadec on Thursday March 07, 2019 @02:34PM (#19331378)
Parsec is a direct tunnel out of my home network, no VPN required. It is not ideal for CS:GO and such, but You Don't Know Jack, Cities: Skylines, and others are pretty good. 60 fps at 1080p to my Chromebook.
Re:Ask HN: What is the best setup to work remotely with GUI ... by Can_Not on Wednesday March 06, 2019 @07:24PM (#19324461)
Parsec doesn't support remoting into linux machines.
Re:Ask HN: What is the best setup to work remotely with GUI ... by hexadec on Thursday March 07, 2019 @02:32PM (#19331358)
Why not? It is a supported platform: https://parsecgaming.com/downloads
Re:Ask HN: What is the best setup to work remotely with GUI ... by Can_Not on Saturday March 09, 2019 @09:02AM (#19346133)
It's a supported client but not a supported host.
Re:Ask HN: What is the best setup to work remotely with GUI ... by nickthemagicman on Wednesday March 06, 2019 @07:56PM (#19324659)
Can we remote into the machine with it?
Re:Ask HN: What is the best setup to work remotely with GUI ... by hexadec on Thursday March 07, 2019 @02:33PM (#19331366)
Yes, full GUI remote access with a Parsec username and password and local machine auth as well.
Re:Ask HN: What is the best setup to work remotely with GUI ... by LukeShu on Wednesday March 06, 2019 @12:21PM (#19320689)
I'm pretty happy with VNC with JPEG compression (which not all VNC implementations support). Depending on the use-case, I either use TigerVNC `vncserver` (creates a virtual X11 display, in my experience OpenGL performs very poorly), or TigerVNC `x0vncserver` (which attaches to a real/existing X11 display and polls it to serve it over VNC; OpenGL performed normally).

TurboVNC is a fork of TigerVNC that has improved OpenGL performance. I can't comment on it too much.

I either connect to VNC directly on :5900 if I'm on the same LAN, or I `ssh -L5901:localhost:5900 server-box`, then `vncviewer localhost:5901`.

Re:Ask HN: What is the best setup to work remotely with GUI ... by lclc123 on Wednesday March 06, 2019 @01:35PM (#19321316)
I agree, VNC+JPEG is a good fit for this kind of thing.

I posted a comment recommending TurboVNC earlier, but it looks to be hidden. It compared favorably with TigerVNC when I tested both. VirtualGL support is baked right in, though of course you have to first set up VirtualGL itself. That'll allow you to use the GPU on a headless machine and share it between users. (with some caveats)

Re:Ask HN: What is the best setup to work remotely with GUI ... by Ologn on Wednesday March 06, 2019 @02:29PM (#19321840)
If the applications are running on Windows I tend to use RDP, if they are running on Unix I tend to use VNC.

Running Firefox over a WAN is slow-going with X11 and ssh, VNC is much faster. The first one I tried was tightvnc, and it did the job for what I needed, so I have stuck with that.

Re:Ask HN: What is the best setup to work remotely with GUI ... by mcgrath_sh on Wednesday March 06, 2019 @09:18AM (#19319044)
X over SSH works for individual apps you launch from the command line. I do this for Calibre on my home server. I have never tried with a desktop. It is simply a config in the SSH config and then an option when launching SSH.
Re:Ask HN: What is the best setup to work remotely with GUI ... by TheCabin on Wednesday March 06, 2019 @09:35AM (#19319167)
Good recommendation. I've used this approach before but somehow had the impression that this doesn't work for OpenGL applications. Now that I think about it, I should simply give it a shot.
Re:Ask HN: What is the best setup to work remotely with GUI ... by LukeShu on Wednesday March 06, 2019 @12:23PM (#19320704)
SSH X11 forwarding won't have access to the GPU. It also tends to perform very poorly in all but fairly low-latency networks.
Re:Ask HN: What is the best setup to work remotely with GUI ... by bnegreve on Thursday March 07, 2019 @01:00AM (#19325873)
You may want to activate ssh compression (see ssh -C).

If you're remote it can speed up X forwarding and make the whole application more reactive.

Re:Ask HN: What is the best setup to work remotely with GUI ... by anujsharmax on Wednesday March 06, 2019 @01:03PM (#19321030)
Have you looked into Apache Guacamole (http://guacamole.apache.org/)

Once you install Apache Guacamole on the remote machine, you can access it via your web browser

Re:Ask HN: What is the best setup to work remotely with GUI ... by sandreas on Wednesday March 06, 2019 @11:05AM (#19319914)
Well, what varying server / client software did you try? I'm pretty satisfied with xrdp on Ubuntu 18.04 Desktop.

I did not test GPU intensive software, but its easy to install, runs nearly out of the box and client software is available for Windows, Linux and MacOS:

https://help.ubuntu.com/community/xrdp

Re:Ask HN: What is the best setup to work remotely with GUI ... by lclc123 on Wednesday March 06, 2019 @11:13AM (#19319986)
Which VNC implementation(s) did you try? TurboVNC was developed with OpenGL applications in mind. It's from the same developer as VirtualGL, so the two are well-integrated.

It does take some tweaking of the compression parameters for good performance. I also had better luck using its native TLS encryption rather than tunneling over SSH.

Re:Ask HN: What is the best setup to work remotely with GUI ... by tempfasowsl on Wednesday March 06, 2019 @10:01AM (#19319355)
x2go for opensource or nomachine if you don't mind paying are good options.

They are better than X over ssh and usually a little better than rdp

Re:Ask HN: What is the best setup to work remotely with GUI ... by rmurri on Wednesday March 06, 2019 @10:55AM (#19319823)
They also have good support for different screen sizes, and multi monitor differences between machines.
Re:Ask HN: What is the best setup to work remotely with GUI ... by TheCabin on Wednesday March 06, 2019 @10:04AM (#19319376)
Awesome, thanks! Didn't hear of either yet.
Re:Ask HN: What is the best setup to work remotely with GUI ... by gregopet on Wednesday March 06, 2019 @12:51PM (#19320932)
nomachine worked great when I tried it (granted, that was a few years ago). Definitely worked better than RDP at that time!
Re:Ask HN: What is the best setup to work remotely with GUI ... by simplyred on Thursday March 07, 2019 @03:24AM (#19326426)
GPU and OpenGL intensive? NoMachine Terminal Server - that's what our company uses https://www.nomachine.com/terminal-server
Re:Ask HN: What is the best setup to work remotely with GUI ... by daverobbins1 on Wednesday March 06, 2019 @09:47AM (#19319249)
Why not something like TeamViewer?

https://www.teamviewer.com/en/download/linux/

Re:Ask HN: What is the best setup to work remotely with GUI ... by TheCabin on Wednesday March 06, 2019 @09:52AM (#19319280)
In principal a good option, but can't use it due to policies.
Re:Ask HN: What is the best setup to work remotely with GUI ... by granda on Wednesday March 06, 2019 @12:42PM (#19320853)
Weren't they hacked?
Re:Ask HN: What is the best setup to work remotely with GUI ... by gargarplex on Wednesday March 06, 2019 @12:44PM (#19320876)
Just want to give a shoutout to my trusty friend Xvfb. Used many times to remotely & automatically operate GUI apps on Linux.
Re:Ask HN: What is the best setup to work remotely with GUI ... by algorithm_dk on Wednesday March 06, 2019 @10:43AM (#19319699)
there's nothing acceptable over ssh

you can do steam in-home streaming over zerotier.

it's actually faster than geforce now

i have a raspberry set up so that i can plug it anywhere and work on my home computer

latency is so low that shooters are very much playable

you can use steamlink hardware as a client, or the newish raspberry pi release

Re:Ask HN: What is the best setup to work remotely with GUI ... by rubicon33 on Wednesday March 06, 2019 @05:00PM (#19323329)
yea steamlink is amazing BUT as far as I know, it cannot be used for arbitrary desktop streaming. You can certainly stream games wonderfully, but that's it.
Re:Ask HN: What is the best setup to work remotely with GUI ... by akulbe on Wednesday March 06, 2019 @10:50PM (#19325389)
RealVNC Enterprise works fantastic for me. ¯\_(ツ)_/¯
Re:Ask HN: What is the best setup to work remotely with GUI ... by nickthemagicman on Wednesday March 06, 2019 @08:05PM (#19324704)
AWS has workspaces. They're not super cheap but it's all handled for you.

Browser, mobile, desktop, etc.

Re:Ask HN: What is the best setup to work remotely with GUI ... by phakding on Friday March 08, 2019 @05:55PM (#19343028)
No linux client
Re:Ask HN: What is the best setup to work remotely with GUI ... by bigjojoto on Thursday March 07, 2019 @11:27PM (#19335082)
login into your machine using ssh export your display to your ip xstart and the you'll have the complete remote desktop running on your machine. Of course you'll need a xserver emulator running on your local client.
Re:Ask HN: What is the best setup to work remotely with GUI ... by tonyaiken on Wednesday March 06, 2019 @12:30PM (#19320746)
We use NoMachine at company.
Re:Ask HN: What is the best setup to work remotely with GUI ... by Samon on Wednesday March 06, 2019 @03:49PM (#19322617)
I've had decent success using Xpra.
Re:Ask HN: What is the best setup to work remotely with GUI ... by ta3057 on Wednesday March 06, 2019 @11:48PM (#19325574)
Could you give more details or point to documents which helped you reaching "decent success" level? Xpra can be a bit difficult to configure due to the amount of possibilities available.