Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Last active August 27, 2020 14:22
Show Gist options
  • Select an option

  • Save marc-hanheide/c2248f1596888f60160ef76db67f0930 to your computer and use it in GitHub Desktop.

Select an option

Save marc-hanheide/c2248f1596888f60160ef76db67f0930 to your computer and use it in GitHub Desktop.
connect to Dbus (in gnome session) via SSH
# source this to set the dbus env in a gnome session
export DISPLAY=:0
PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
# You may now configure things in gsettings, e.g. run vino:
gsettings reset org.gnome.Vino network-interface
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino notify-on-connect true
gsettings set org.gnome.Vino require-encryption false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment