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 ############################
14 # items marked with #H: below were on until recently.
15 ############################
17 # boilerplate that people seem to mostly agree on.
20 unset DBUS_SESSION_BUS_ADDRESS
21 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
22 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
23 xsetroot -solid darkgreen
26 ############################
28 # the chaos zone. all of these are still being tested.
31 #if [ -x /etc/X11/xinit/xinitrc ]; then
32 # exec /etc/X11/xinit/xinitrc
34 #if [ -f /etc/X11/xinit/xinitrc ]; then
35 # exec sh /etc/X11/xinit/xinitrc
39 gnome-session --session=ubuntu &
40 # valid values for session that we've seen: ubuntu, gnome, unity, 2d-gnome (?)
43 #... some new stuff that hopefully will help out.
44 #/usr/lib/gnome-session/gnome-session-binary –session=ubuntu &
46 unity-settings-daemon &
48 #seeing if indicator multiload does this:
49 #for indicator in /usr/lib/x86_64-linux-gnu/indicator-*; do
50 # basename=’basename \${indicator}’
51 # dirname=’dirname \${indicator}’
52 # service=\${dirname}/\${basename}/\${basename}-service
59 # are these alternatives also?
64 # we don't see this running at home, but it sure seems needed on vmbuilder.
71 # one or the other of the window managers here.
72 #hmmm: but mutter doesn't work at all.
77 # this just brings up an initial file exploring window, although at one point i needed to
78 # have nautilus running to see icons on the desktop.
79 ####right now there are no visible icons on the desktop, so is it failing?
82 ############################
84 # experimental additions since still getting lots of weird isssues:
86 gnome-keyring-daemon &
88 #H: zeitgeist-daemon &
90 ############################
92 # these processes are just nice to have started already.
94 # you know you were going to want them.
96 # password tools from kde.
99 ############################
101 # limbo of useless boneheads.
103 # these things just don't seem to work.
105 # this never ever shows up.
106 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
109 #gnome-settings-daemon &
111 #doesn't seem to help.
112 #gnome-terminal-server &
114 ############################
116 # ------------------------------
117 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
118 # dungeon of pain and suffering.
119 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
120 # ------------------------------
122 # adding these in just makes things go splatfooey.
124 # compiz causes xterm to no longer be a distinct window, which is how things were
125 # originally before i started fixing them.
127 # maybe needed now though??
129 ############################