Skip to content

Instantly share code, notes, and snippets.

@pwright225
pwright225 / reset_gnome_RDP_password.redacted.sh
Last active December 16, 2023 18:44 — forked from greyltc/launch-GRD.sh
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/bash
#assuming you have already enabled autologin, ssh, and rdp from gnome settings gui; this allows you to reboot and get rdp to work again remotely from ssh.
TARGET_USER=REDACTED.your.user
RDP_USER="REDACTED.your.user"
RDP_PASS="REDACTED.your.password"
RDP_CREDS="{'username': <'${RDP_USER}'>, 'password': <'${RDP_PASS}'>}"
TLS_STORE=~/.local/share/gnome-remote-desktop
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"