Last active
April 25, 2024 10:33
-
-
Save ppoffice/53347bc47edb1c5903c70a79f0a5e290 to your computer and use it in GitHub Desktop.
VNC xstartup for Ubuntu Desktop (Gnome)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
vncconfig -iconic & | |
export DESKTOP_SESSION=/usr/share/xsessions/ubuntu.desktop | |
export XDG_CURRENT_DESKTOP=ubuntu:GNOME | |
export GNOME_SHELL_SESSION_MODE=ubuntu | |
export XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop | |
dbus-launch --exit-with-session /usr/bin/gnome-session --systemd --session=ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I had to do under Ubuntu 22.04:
Then in
~/.vnc/xstartup
:Source: https://superuser.com/questions/1596545/how-to-properly-configure-xstartup-file-for-tightvnc-with-ubuntu-20-04-lts-gnome