3 # set up gnome desktop environment for remote access via vnc.
5 # NOTE: it is important to be running the vncserver as a user who is NOT
6 # already running x windowing system. otherwise, weird and possibly
7 # bad things can happen, e.g. your apps show up on display zero
8 # rather than on the vnc desktop.
10 # this script depends on the gnome desktop. to install the minimal
11 # parts of gnome needed (as far as i know), run this command:
13 # sudo apt install gnome-panel gnome-settings-daemon gnome-terminal kwalletmanager metacity nautilus
17 # best leads: https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce
19 # https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
20 # https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc
21 # https://ubuntuforums.org/showthread.php?t=1903220
22 # https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts
24 ############################
26 # reset some variables that could be a problem.
29 unset DBUS_SESSION_BUS_ADDRESS
30 export XKL_XMODMAP_DISABLE=1
32 ############################
34 # load some extra configuration files if they exist.
36 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
37 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
39 ############################
41 # set background to solid color; avoids using bandwidth to transfer pictures.
42 xsetroot -solid darkgreen
43 #this does what again?
46 ############################
48 # solid leads from the "best" article above gave us the workable, minimal set
49 # of x window apps below.
50 /usr/bin/gnome-panel &
51 /usr/lib/gnome-settings-daemon &
54 /usr/bin/gnome-terminal &
56 ############################
58 # ------------------------------
59 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
60 # dungeon of pain and suffering.
61 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
62 # ------------------------------
64 # all content has been deleted from the config dungeon. the damaged configs
65 # have been set free to roam in their natural environment of the internet.