News for hackers. Stuff that matters.
Re:Cloud desktops aren't as good as you'd think by senko on Thursday October 06, 2022 @08:13AM (#33107236)
I'd love to do that, but my laptop's and workstation's state inevitably get out of sync leading up to "wait why doesn't this work ... spend a couple of minutes .. ah yes I did X on the other device".

(Before someone suggest "use docker": then I'd need a more powerful workstation and laptop :-)

And VNCing into my workstation from the laptop has all the drawbacks that Matthew described in the article.

Re:Cloud desktops aren't as good as you'd think by prmoustache on Thursday October 06, 2022 @09:43AM (#33108044)
My main professionnal OS in a Linux booting up from an nvme drive with an usb3 case adapter. The pro laptop I have been given only has a screen resolution of 1366x768 and 16GB of ram. I don't mind too much when using it as a desktop because I have 2 fullhd 24" screens but if I plan to be more mobile and work on one screen, or if I need lots of memory to boot containers and VMS I boot it on my personnal Lenovo. I also boot it sometimes on a desktop in my office while I boot the original windows installation of the pro laptop updating itself and not be forgotten.

I use adhesive velcros so that the drive is secured on the backside of the screen and don't hang from the laptop.

Re:Cloud desktops aren't as good as you'd think by dugmartin on Thursday October 06, 2022 @10:02AM (#33108260)
If you do your work in VSCode you can setup the following pretty easily and it works really well (I use it to connect to my workstation in my home office when I work in a coffee shop on my laptop or the rare occasions I go into the office):

1. Install Tailscale (https://tailscale.com/) on your laptop and workstation and enable the "MagicDNS" (https://tailscale.com/kb/1081/magicdns/) feature. This sets up a VPN mesh between your machines (and any other you add).

2. Setup you SSH keys so you can login via the "MagicDNS" domain name from your laptop to your workstation.

3. Install the VSCode Remote Development extension (https://code.visualstudio.com/docs/remote/remote-overview) on your laptop and then open a workspace on your workstation via its SSH feature using the "MagicDNS" domain.

It is surprisingly fast - you are just sending keystrokes/commands over the VPN and not rasterizing the host screen like you would with VNC.

Re:Cloud desktops aren't as good as you'd think by digdugdirk on Thursday October 06, 2022 @10:42AM (#33108820)
I'm a little confused as to what benefic the "MagicDNS"/Tailscale aspect is adding?

Is this faster than a traditional VPN? Is the VSCode remote development extension not able to function with a traditional VPN?

Re:Cloud desktops aren't as good as you'd think by dugmartin on Thursday October 06, 2022 @10:59AM (#33109064)
It just makes sshing between the machines by name very easy. You can do the same thing by assigning permanent IPs to all machines in the mesh and then updating all your host files across all the machines in the mesh. Life is too short for that.
Re:Cloud desktops aren't as good as you'd think by Yeroc on Thursday October 06, 2022 @04:29PM (#33113665)
Bizarre. Most VPNs used in a workplace would take care of name-based host resolution (ie DNS) for you. This is not a new thing unique to Tailscale.
Re:Cloud desktops aren't as good as you'd think by senko on Friday October 07, 2022 @03:49PM (#33126071)
Having set up OpenVPN a few times, and troubleshooting Cisco VPN, the new thing unique to Tailscale is that it just works.

It takes a few seconds to connect each new machine. It took me way more just to find out how I should configure Cisco's VPN client, and I do not ever want to even think about OpenVPN again.

I've also maintained a WireGuard mesh where I distributed keys and set up /etc/hosts via ansible: add a host to the inventory file, run the playbook - simple.

Yet Tailscale is even simpler than that. And (for my purposes at least) it's free.

Re:Cloud desktops aren't as good as you'd think by corobo on Thursday October 06, 2022 @10:54AM (#33108967)
Tailscale saves time in this. It does things like busting through NATs for you to get the VPN established, useful when on varying networks with the laptop, but yeah it is a wireguard VPN after that.

(Not op, just butting in)

Re:Cloud desktops aren't as good as you'd think by itintheory on Thursday October 06, 2022 @10:58AM (#33109043)
Not OP, but I think the purpose of tailscale w/ magicdns is to create a VPN connection directly between the laptop and desktop, regardless of the underlying network locations of either. I believe tailscale uses connection brokering so all connections can be outbound (no firewall policy / port forwarding). MagicDNS is probably just a quality of life improvement here.
Re:Cloud desktops aren't as good as you'd think by IanCal on Thursday October 06, 2022 @11:17AM (#33109320)
I have recently started doing this and it's excellent. I can just wander away from my desktop, take my laptop and go work somewhere else in the house, and I used something very similar going away abroad.
Re:Cloud desktops aren't as good as you'd think by senko on Thursday October 06, 2022 @01:22PM (#33111147)
Yeah, already Tailscale / WireGuard user and SSHing all around.

Didn't know VSCode had a headless mode that can be driven over the net (which is what your description sounds like), will definitely check it out, thanks.

Re:Cloud desktops aren't as good as you'd think by isignal on Thursday October 06, 2022 @03:26PM (#33112808)
If your work already uses tailscale, you can use enclave to achieve the same thing. Enclave and tailscale seem to coexist fine.
Re:Cloud desktops aren't as good as you'd think by itintheory on Thursday October 06, 2022 @10:56AM (#33109016)
> (Before someone suggest "use docker": then I'd need a more powerful workstation and laptop :-)

Why do you believe that to be the case? Docker performance overhead is so minimal I highly doubt you'd be able to tell any difference compared to native processes.

Re:Cloud desktops aren't as good as you'd think by senko on Thursday October 06, 2022 @02:22PM (#33111992)
I currently work on a project that involves 28 docker containers (edit: on Linux, so no extra VM overhead like on a Mac), and I definitely can tell the difference compared to native processes.
Re:Cloud desktops aren't as good as you'd think by thfuran on Thursday October 06, 2022 @11:46AM (#33109757)
Isn't it a full vm on Macs?
Re:Cloud desktops aren't as good as you'd think by asdff on Thursday October 06, 2022 @05:28PM (#33114313)
You could use ssh to connect to the workstation and do all your work there, preserving state.