News for hackers. Stuff that matters.
Re:VS Code on a Remote Server by foxes on Thursday March 14, 2019 @09:03PM (#19395498)
Imagine needing the complexity of docker, browsers, vs code when a much simpler (and compared to this which is running in http? - secure) tool already exists :), ie

  ssh -X
Re:VS Code on a Remote Server by IronBacon on Friday March 15, 2019 @03:30AM (#19397419)
No one remembers the "No Machine" NX protocol (X protocol with compression, without unnecessary roundtrips and some other optimizations)? I think I've tried it in the early 2000's, looks like they are still alive[0]

With version 4 of their protocol they went closed source, but before that it was released as GPL (don't remember if it was the case of their client/server, IIRC they were proprietary) anyway I think V3 is used in the X2Go[1] client/server. There was also a Goggle client in Python years ago...

[0] https://www.nomachine.com/

[1] https://wiki.x2go.org/doku.php/doc:newtox2go

Re:VS Code on a Remote Server by rcarmo on Saturday March 16, 2019 @10:45AM (#19408036)
NoMachine essentially made themselves irrelevant by not upgrading their client software often enough, IMHO. I was using all sorts of VNC hackery to make it fast and loved NX, but it was weird and niche (never worked quite right on the Mac) and still slow when compared to RDP and Citrix, so the rise of Ansible and other sorts of automation blew it out of the water for server management.

For end-users, Citrix was just way better, even if more expensive, and there was no compelling reason to switch...

Re:VS Code on a Remote Server by ktpsns on Friday March 15, 2019 @06:36AM (#19398370)
I use x2go actively for all my servers. It is very fast, even over slow connections (much better performance then VNC and RDP used to have) -- thanks to great compression techniques (so do not expect 256 colours when connecting over GSM network). It is a lovely piece of (OSS!) software.
Re:VS Code on a Remote Server by IronBacon on Friday March 15, 2019 @02:50PM (#19402923)
Nice to hear it's working well.

I found out today that X2Go version 4.1 is available on Debian Stretch via "backports"; I don't need it at the moment but if I'm bored in the future, I could play with it without much friction...

Re:VS Code on a Remote Server by kristianp on Monday March 18, 2019 @08:30PM (#19426862)
Can Nomachine/X2go run a server on a windows machine?
Re:VS Code on a Remote Server by IronBacon on Tuesday March 19, 2019 @10:39AM (#19431181)
X2Go shouldn't work, unless you intend to run it on a VM or maybe the WSL as it's a modified Xorg X11 server, but probably it's not what you are asking.

NoMachine, according to their download page, should support Windos/Mac/Linux on the server front, but I don't have a direct experience.

Re:VS Code on a Remote Server by simplyred on Wednesday March 20, 2019 @05:30AM (#19440379)
NoMachine runs on a Windows server. It accesses the remote desktop. But if what you want is a Terminal Server like NoMachine's Terminal Server for Linux, I think you'll be disappointed. That's not possible from a legal perspective.
Re:VS Code on a Remote Server by ktpsns on Wednesday March 20, 2019 @04:17AM (#19440003)
Ten years ago, UltraVNC or RDP were the fastest remote desktop options for Windows. I also can recommend TeamViewer, despite it has a slightly different focus.
Re:VS Code on a Remote Server by renox on Friday March 15, 2019 @09:53AM (#19399677)
I used it until a few month ago: it worked better (lower latency and no need to specify the resolution) than VNC but clion doesn't work well with NX, so I switched to VNC.
Re:VS Code on a Remote Server by bitwize on Thursday March 14, 2019 @09:35PM (#19395686)
No. The X protocol is objectively shit. It's so shit, modern toolkits don't even fully use it anymore. Instead they do all rendering locally and pipe the composited pixmaps over to the X server via DRI. Over a network, guess what? No DRI. Meaning uncompressed pixmaps get sent over that network link every time a redraw happens.

Wayland, Pipewire, and H.265 will be a much better general solution to remote desktop access. In the meantime, VSCode via browser is a MUCH better approach than trying to forward it over X over any but the fastest network links.

Re:VS Code on a Remote Server by kristianp on Monday March 18, 2019 @08:34PM (#19426889)
To clarify your statement about Wayland, it doesn't support remote desktop access in itself [1]. A remote desktop server would sit on top of Wayland.

[1] https://wayland.freedesktop.org/faq.html#heading_toc_j_8

Re:VS Code on a Remote Server by simula67 on Thursday March 14, 2019 @11:34PM (#19396232)
X forwarding is very slow. Some potential reasons are discussed here : https://superuser.com/questions/1217280/why-is-x11-forwardin...
Re:VS Code on a Remote Server by josteink on Friday March 15, 2019 @03:03AM (#19397266)
I like X-forwarding in general, but VSCode and other electron-based apps really run like ass over remote X11.

Definitely not recommended.

Re:VS Code on a Remote Server by manigandham on Thursday March 14, 2019 @10:16PM (#19395865)
That's just a different kind of complexity to transmit interactions and UI rendering. It's built for much more general usage which is why it fails at a fine-grained low-latency coding experience on anything other than a LAN.
Re:VS Code on a Remote Server by morpheuskafka on Thursday March 14, 2019 @10:27PM (#19395909)
Yeah that doesn't really cut it for remoting over the internet into a VM in the cloud. As far as securing this it's as simple as tossing a few lines into your reverse proxy config.
Re:VS Code on a Remote Server by jahewson on Thursday March 14, 2019 @10:44PM (#19395989)
Because there’s nothing simpler than X11, right!? Also there's no dependency on docker - that's just a demo.
Re:VS Code on a Remote Server by jpambrun on Thursday March 14, 2019 @10:00PM (#19395791)
I tried that in the past and it's unusable over typical internet latency.
Re:VS Code on a Remote Server by haolez on Thursday March 14, 2019 @11:59PM (#19396369)
Or simply mount a dir with sshfs or similar :)
Re:VS Code on a Remote Server by asutekku on Thursday March 14, 2019 @09:55PM (#19395770)
I’d rather use the tooling of VSCode than ssh into some shoddy configuration of vim
Re:VS Code on a Remote Server by flukus on Thursday March 14, 2019 @10:09PM (#19395839)
> I’d rather use the tooling of VSCode

What they're suggesting allow you to do just that.

Re:VS Code on a Remote Server by netheril96 on Thursday March 14, 2019 @11:23PM (#19396170)
X forwarding is not secure at all.
Re:VS Code on a Remote Server by movedx on Thursday March 14, 2019 @11:56PM (#19396351)
Over an SSH tunnel?
Re:VS Code on a Remote Server by jhoechtl on Friday March 15, 2019 @01:21AM (#19396816)
And impossible using Wayland