naminx / chrome-remote-desktop

2 stars 0 forks source link

Amazing. What I had to do to get this to work. #1

Open abhillman opened 1 week ago

abhillman commented 1 week ago

Thanks so much -- I have wanted something like this forever, and it seems that this basically works.

Here are some notes on some deviations in order to get this to work on my system.

  1. Made modifications per your instructions to /etc/nix/configuration.nix, etc.
  2. I had to change permissions for /opt so that other users could view it:
sudo chown root:root /opt
sudo chmod 0755 /opt
  1. I ran sudo chuser -R <my-user-name> /opt/google -- I don't know if this is necessary
  2. I had to create /opt/google
  3. I ran the ln -s ... command
  4. From here, I went to https://remotedesktop.google.com/access and used Set up via SSH

From there, things seem to work. I did not use steps 5-9, as I could not get things to work. It's possible that this may help with the xhost + thing, but I'm not certain.

$ uname -a
Linux nixos 6.6.40 #1-NixOS SMP PREEMPT_DYNAMIC Mon Jul 15 07:24:53 UTC 2024 x86_64 GNU/Linux
naminx commented 1 week ago

abhillman, thank you for contribution.

Please consider sharing your experience at https://github.com/NixOS/nixpkgs/pull/283285

I haven't used chrome remote desktop since I upgraded to NixOS 24.05 The main reason is that I have moved to Gnome Remote Login version 47beta. It better fulfills my requirements, providing persistent session (you can log on the same session after disconnection, in version 46 your session will be killed and your loose all your work), without any signs on the host PC monitors and speakers. But Chrome Remote Desktop has advantage that your need only a browser, no RDP client required. My next task (if time is available) may be to make Chrome Remote Desktop work on Wayland on NixOS/Gnome.