I'm trying to setting up Chrome Remote Desktop on my VM instance (Debian GNU/Linux, 9 (stretch), amd64) on Google cloud. I tried to install Xfce as desktop environment. I installed Xfce component successfully with these command.
sudo DEBIAN_FRONTEND=noninteractive \ apt install --assume-yes xfce4 desktop-base
But I'm getting permission error even using sudo with this command.
echo "exec /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session
Also I tried with Cinnamon but same permission error is showing in the same command.
sudo echo "exec /usr/bin/cinnamon-session-cinnamon2d" > /etc/chrome-remote-desktop-session