Skip to content

Instantly share code, notes, and snippets.

@Pieter81
Pieter81 / reset_gnome_VNC_password.sh
Last active December 3, 2023 03:12 — forked from greyltc/launch-GRD.sh
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/env bash
# this will overwrite all the settings it touches
# the name of the user to run these commands as
TARGET_USER=ClausTheInsane
# to start the desktop session remotely
echo -e "[daemon]\nAutomaticLogin=${TARGET_USER}\nAutomaticLoginEnable=true\n" | sudo tee /run/gdm/custom.conf
sudo systemctl restart gdm