Hello, I'm attempting to automate the process to build images for use on other machines.
first enable gsettings gsettings set org.gnome.desktop.remote-desktop.rdp enable true gsettings set org.gnome.desktop.remote-desktop.rdp screen-share-mode mirror-primary gsettings set org.gnome.desktop.remote-desktop.rdp view-only false then create a Default_keyring.keyring create_default_keyring() { # Define the path for the keyring local keyring_path="$HOME/.local/share/keyrings/Default_keyring.keyring" # Create the directory if it doesn't exist mkdir -p "$HOME/.local/share/keyrings/" # Write the content to the keyring file cat <<EOL > "$keyring_path" [keyring] display-name=Default keyring ctime=1723570530 mtime=0 lock-on-idle=false lock-after=false [1] item-type=0 display-name=GNOME Remote Desktop RDP credentials secret={'username': <''>, 'password': <''>} mtime=1723570630 ctime=1723570530 [1:attribute0] name=xdg:schema type=string value=org.gnome.RemoteDesktop.RdpCredentials EOL # Set the permissions to rw------- (600) chmod 600 "$keyring_path" echo "Default_keyring.keyring has been created at $keyring_path with permissions 600" } then create the other default file create_default_link() { # Define the path for the default file local default_path="$HOME/.local/share/keyrings/default" # Create the directory if it doesn't exist mkdir -p "$HOME/.local/share/keyrings/" # Write the content to the default file echo "Default_keyring" > "$default_path" # Set the permissions to rw-rw-r-- (664) chmod 664 "$default_path" echo "Default file has been created at $default_path with permissions 664" } But I still must open the GUI > settings > system > remote desktop, do nothing, and close it. Then the machine will accept RDP with the username password set above. I can also use grdctl and toggle the password, but still must open the GUI menu once. # Function to clear and set RDP credentials set_rdp_credentials() { local username="$1" local password="$2" # Logging utility log() { echo "$1" } # Clear existing RDP credentials log "Clearing existing RDP credentials..." grdctl rdp clear-credentials log "RDP credentials cleared." # Set new RDP credentials log "Setting new RDP credentials for user '$username'..." grdctl rdp set-credentials "$username" "$password" log "RDP credentials set for user '$username'." } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2064647 Title: Documentation for how to enable gnome-remote-desktop on a completly headless system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-remote-desktop/+bug/2064647/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs