3 # set up gnome desktop environment for remote access via vnc.
5 # this script depends on the gnome desktop.
8 # https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
9 # https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc
10 # https://ubuntuforums.org/showthread.php?t=1903220
11 # https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts
13 ############################
15 # boilerplate that people seem to agree on.
17 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
18 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
20 xsetroot -solid darkgreen
23 ############################
25 # the chaos zone. all of these are still being tested.
28 gnome-session --session=gnome &
29 #valid values for session that we've seen:
37 # are these alternatives also?
42 gnome-terminal-server &
44 # we don't see this running at home, but it sure seems needed on vmbuilder.
48 #gnome-settings-daemon &
54 # one or the other of the window managers here.
55 #hmmm: but mutter doesn't work at all.
60 # this just brings up an initial file exploring window, although at one point i needed to
61 # have nautilus running to see icons on the desktop.
62 ####right now there are no visible icons on the desktop, so is it failing?
65 ############################
67 # experimental additions since still getting lots of weird isssues:
69 gnome-keyring-daemon &
73 ############################
75 # these processes are just nice to have started already.
77 # you know you were going to want them.
79 # password tools from kde.
82 ############################
84 # limbo of useless boneheads.
86 # these things just don't seem to work.
88 # this never ever shows up.
89 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
91 ############################
93 # ------------------------------
94 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
95 # dungeon of pain and suffering.
96 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
97 # ------------------------------
99 # adding these in just makes things go splatfooey.
101 # compiz causes xterm to no longer be a distinct window, which is how things were
102 # originally before i started fixing them.
105 ############################