Chrome remote desktop remote access not working

Hello Garuda users.

I just recently install Garuda on my new desktop PC. I have been using it and loving this OS. However, I got a small problem. Due to my work, I need to connect to my desktop pc from outside of my local network using my Chromebook. I have tried some commercial options like Real VNC (which cannot be cause my Chromebook model does not support it) to some free options like Tiger VNC (which I want to avoid setting a server due to inexperience). The only option I could make it work was Chrome Remote Desktop (CRD) following this guide (https://blog.victormendonca.com/2020/04/02/how-to-install-chrome-remote-desktop-on-arch/). I can perform remote assistance (in which I have to manually give permission) session, but remote access (in which I do not need to give permission) is not possible.

The remote access always shows one of the two messages:

  1. PC last connected at X time
  2. Server X has failed or could be started

In both cases, my desktop pc is on and with a working connection to the internet. Could this be a problem related to Arch/Garuda? Because many tutorials in Ubuntu claim that CRD should work without too much effort.

My garud-inxi output is the following:

garuda-inxi
System:
Kernel: 6.3.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=4c1143cf-92be-4857-9e44-7a814f918e07 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=e8088ec2-6b81-4504-8a09-cac8898a5310 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: PRIME B550M-A WIFI II v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2806
date: 10/27/2022
Battery:
Device-1: hid-16:24:9b:8b:15:43-battery model: Bluetooth 5.1 Keyboard
serial: N/A charge: N/A status: discharging
CPU:
Info: model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000D
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3438 high: 4434 min/max: 1400/4464 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2991 2: 2994
3: 3716 4: 4434 5: 3076 6: 3526 7: 3900 8: 3087 9: 3900 10: 2990 11: 2994
12: 3657 bogomips: 93423
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6650 XT / 6700S 6800S]
vendor: Micro-Star MSI driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0
chip-ID: 1002:73ef class-ID: 0300
Device-2: Jieli USB PHY 2.0 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1.2:7
chip-ID: 1224:2a25 class-ID: 0102
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1848 s-dpi: 96 s-size: 675x487mm (26.57x19.17")
s-diag: 832mm (32.77")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,bottom-l
model: LG (GoldStar) ULTRAWIDE serial: <filter> built: 2023 res: 2560x1080
hz: 60 dpi: 108 gamma: 1.2 size: 601x254mm (23.66x10") diag: 652mm (25.7")
modes: max: 2560x1080 min: 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: top-right model: AOC F19
serial: <filter> built: 2010 res: 1366x768 hz: 60 dpi: 84 gamma: 1.2
size: 413x234mm (16.26x9.21") diag: 475mm (18.7") ratio: 16:9 modes:
max: 1366x768 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 6650 XT (navi23
LLVM 15.0.7 DRM 3.52 6.3.9-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 0d:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 0d:00.6 chip-ID: 1022:15e3
class-ID: 0403
Device-4: JMTek LLC. USB PnP Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-1.1.1.4:8 chip-ID: 0c76:1695 class-ID: 0300
Device-5: Jieli USB PHY 2.0 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1.2:7
chip-ID: 1224:2a25 class-ID: 0102
Device-6: Actions G07-BT driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-1:2
chip-ID: 10d6:dd00 class-ID: 0102 serial: <filter>
API: ALSA v: k6.3.9-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
lanes: 1 bus-ID: 0b:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp11s0 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 0c:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp12s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 13d3:3563
class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 3.86 TiB used: 669.79 GiB (17.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM014-1EJ164
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 5400 serial: <filter> fw-rev: SM16 scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM010-2EP102
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: <filter> fw-rev: CC46 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Kingston model: SA400S37240G
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: P1A3 scheme: MBR
ID-4: /dev/sdd maj-min: 8:48 vendor: JMicron Tech model: Generic
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.0 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 0209 scheme: GPT
Partition:
ID-1: / raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-2: /boot/efi raw-size: 933 MiB size: 931.1 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/sdc1 maj-min: 8:33
ID-3: /home raw-size: 605.47 GiB size: 605.47 GiB (100.00%)
used: 20.6 GiB (3.4%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
ID-4: /opt raw-size: 293.81 GiB size: 293.81 GiB (100.00%)
used: 1.75 GiB (0.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/log raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-6: /var/tmp raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 27.2 GiB used: 25 MiB (0.1%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 32.23 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda1 maj-min: 8:1
Sensors:
System Temperatures: cpu: 41.8 C mobo: N/A gpu: amdgpu temp: 45.0 C
mem: 46.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 385 Uptime: 1h 15m wakeups: 11 Memory: available: 27.2 GiB
used: 8.35 GiB (30.7%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: pacman pkgs: 2113
libs: 557 tools: octopi,paru,yaourt Shell: fish v: 3.6.1 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2023-06-22
Last full system update: 2023-07-01
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:            vncserver-x11-serviced.service vncserver_jcdesktop@:1.service

╭─jcuadra@jcdesktop in ~ took 1s
╰─λ garuda-inxi -Fxz
System:
Kernel: 6.3.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=4c1143cf-92be-4857-9e44-7a814f918e07 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=e8088ec2-6b81-4504-8a09-cac8898a5310 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: PRIME B550M-A WIFI II v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2806
date: 10/27/2022
Battery:
Device-1: hid-16:24:9b:8b:15:43-battery model: Bluetooth 5.1 Keyboard
serial: N/A charge: N/A status: discharging
CPU:
Info: model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000D
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3515 high: 4097 min/max: 1400/4464 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3900 2: 3275
3: 3416 4: 3900 5: 3831 6: 4097 7: 2993 8: 2994 9: 3900 10: 3900 11: 2991
12: 2992 bogomips: 93423
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6650 XT / 6700S 6800S]
vendor: Micro-Star MSI driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0
chip-ID: 1002:73ef class-ID: 0300
Device-2: Jieli USB PHY 2.0 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1.2:7
chip-ID: 1224:2a25 class-ID: 0102
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1848 s-dpi: 96 s-size: 675x487mm (26.57x19.17")
s-diag: 832mm (32.77")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,bottom-l
model: LG (GoldStar) ULTRAWIDE serial: <filter> built: 2023 res: 2560x1080
hz: 60 dpi: 108 gamma: 1.2 size: 601x254mm (23.66x10") diag: 652mm (25.7")
modes: max: 2560x1080 min: 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: top-right model: AOC F19
serial: <filter> built: 2010 res: 1366x768 hz: 60 dpi: 84 gamma: 1.2
size: 413x234mm (16.26x9.21") diag: 475mm (18.7") ratio: 16:9 modes:
max: 1366x768 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 6650 XT (navi23
LLVM 15.0.7 DRM 3.52 6.3.9-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 0d:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 0d:00.6 chip-ID: 1022:15e3
class-ID: 0403
Device-4: JMTek LLC. USB PnP Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-1.1.1.4:8 chip-ID: 0c76:1695 class-ID: 0300
Device-5: Jieli USB PHY 2.0 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1.2:7
chip-ID: 1224:2a25 class-ID: 0102
Device-6: Actions G07-BT driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-1:2
chip-ID: 10d6:dd00 class-ID: 0102 serial: <filter>
API: ALSA v: k6.3.9-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
lanes: 1 bus-ID: 0b:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp11s0 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 0c:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp12s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 13d3:3563
class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 3.86 TiB used: 669.79 GiB (17.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM014-1EJ164
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 5400 serial: <filter> fw-rev: SM16 scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM010-2EP102
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: <filter> fw-rev: CC46 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Kingston model: SA400S37240G
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: P1A3 scheme: MBR
ID-4: /dev/sdd maj-min: 8:48 vendor: JMicron Tech model: Generic
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.0 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 0209 scheme: GPT
Partition:
ID-1: / raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-2: /boot/efi raw-size: 933 MiB size: 931.1 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/sdc1 maj-min: 8:33
ID-3: /home raw-size: 605.47 GiB size: 605.47 GiB (100.00%)
used: 20.6 GiB (3.4%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
ID-4: /opt raw-size: 293.81 GiB size: 293.81 GiB (100.00%)
used: 1.75 GiB (0.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/log raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-6: /var/tmp raw-size: 222.66 GiB size: 222.66 GiB (100.00%)
used: 16.29 GiB (7.3%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 27.2 GiB used: 25 MiB (0.1%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 32.23 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda1 maj-min: 8:1
Sensors:
System Temperatures: cpu: 40.8 C mobo: N/A gpu: amdgpu temp: 46.0 C
mem: 48.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 388 Uptime: 1h 17m wakeups: 11 Memory: available: 27.2 GiB
used: 8.43 GiB (31.0%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: pacman pkgs: 2113
libs: 557 tools: octopi,paru,yaourt Shell: fish v: 3.6.1 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2023-06-22
Last full system update: 2023-07-01
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:            [email protected] vncserver-x11-serviced.service vncserver_jcdesktop@:1.service

I also attach the config of these two files that I modified following this tutorial (https://gist.github.com/nightuser/2ec1b91a66ec33ef0a0a67b6c570eb40#file-use_existing_session-patch):

for file .Xsession located at ~/.config/chrome-remote-desktop/

~/.config/chrome-remote-desktop/.Xsession
0

for file .chrome-remote-desktop-session located at ~/

~/.chrome-remote-desktop-session
# You will have to uncomment one of the following lines for CRD to work
# Remove the # and save the file.
#
export $(dbus-launch)
#exec /etc/X11/Xsession
exec /usr/bin/startplasma-x11

for file chrome-remote-desktop located at /opt/google/chrome-remote-desktop/ it was patched with the following command:

sudo patch -Np1 -i chrome-remote-desktop-patch

Add an option to use the existing Xorg session with
chrome-remote-desktop.

The original idea of the patch: https://superuser.com/a/850359
--- a/chrome-remote-desktop	2022-04-23 17:34:24.118136150 +0300
+++ b/chrome-remote-desktop	2022-04-23 17:33:56.083833805 +0300
@@ -109,6 +109,8 @@
 
 X_LOCK_FILE_TEMPLATE = "/tmp/.X%d-lock"
 FIRST_X_DISPLAY_NUMBER = 20
+EXISTING_X_DISPLAY_FILE_PATH = os.path.join(CONFIG_DIR, "Xsession")
+X_SESSION_FILE_TEMPLATE = "/tmp/.X11-unix/X%d"
 
 # Amount of time to wait between relaunching processes.
 SHORT_BACKOFF_TIME = 5
@@ -514,6 +516,25 @@
       return True
     return False
 
+  def _use_existing_session(self):
+    with open(EXISTING_X_DISPLAY_FILE_PATH) as fh:
+      try:
+        display = int(fh.readline().rstrip())
+      except ValueError:
+        logging.error("Display is not a number")
+        sys.exit(1)
+    if not os.path.exists(X_SESSION_FILE_TEMPLATE % display):
+      logging.error("Xorg session file doesn't exist")
+      sys.exit(1)
+
+    logging.info("Using existing Xorg session: %d" % display)
+    self.child_env["DISPLAY"] = ":%d" % display
+    self.child_env["CHROME_REMOTE_DESKTOP_SESSION"] = "1"
+
+    # Set SSH_AUTH_SOCK to the file name to listen on.
+    if self.ssh_auth_sockname:
+      self.child_env["SSH_AUTH_SOCK"] = self.ssh_auth_sockname
+
   def launch_session(self, server_args, backoff_time):
     """Launches process required for session and records the backoff time
     for inhibitors so that process restarts are not attempted again until
@@ -522,10 +543,13 @@
     self._init_child_env()
     self.setup_audio()
     self._setup_gnubby()
-    self._launch_server(server_args)
-    if not self._launch_pre_session():
-      # If there was no pre-session script, launch the session immediately.
-      self.launch_desktop_session()
+    if os.path.exists(EXISTING_X_DISPLAY_FILE_PATH):
+      self._use_existing_session()
+    else:
+      self._launch_server(server_args)
+      if not self._launch_pre_session():
+        # If there was no pre-session script, launch the session immediately.
+        self.launch_desktop_session()
     self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
                                       backoff_time)
     self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,

I appreciate all the help that could be provided. If you think of a better alternative for remote desktop, I am also open to suggestions. Thanks for all your time and input reading so far into my problem.

ssh (sshd.service) via id_rsa.pub is not enough for you?

Ok, google :smiley: or share your screen with others and google :grin:

I've had pretty good experience using AnyDesk as a remote desktop platform between windows/windows, windows/android, windows/linux (ubuntu/gnome, garuda/kde), android/android (for science) and android/linux.
Much more useful features, much more control and security and just overall a way better UX than Chrome Remote. Super simple to use including with a touchscreen believe it or not. Pretty sure the personal/home version is freeware too.

You could set up a Guacamole server which will put the VNC session in a web browser–no software needed on the Chromebook at all in that case (except a web browser).

No cure for inexperience, except to get started. I found the ArchWiki article on TigerVNC very helpful for getting started, and quite thorough. There is even a section that details how to set up TigerVNC through an SSH tunnel: TigerVNC - ArchWiki

Another option that I have heard is very easy to setup and use is RustDesk–maybe worth checking out if you are struggling with the VNC options.

2 Likes

I tried AnyDesk. Look like a good alternative, very complete. However, my Acer CB-315 Chromebook is not compatible with it... Anyway, thanks for the tip!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.