3 # set up gnome desktop environment for remote access via vnc.
5 # this script depends on the gnome desktop. to install the minimal
6 # parts of gnome needed (as far as i know), run this command:
7 # sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal kwalletmanager
10 # best? https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce
11 # https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
12 # https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc
13 # https://ubuntuforums.org/showthread.php?t=1903220
14 # https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts
16 ############################
18 # boilerplate that people seem to mostly agree on.
21 unset DBUS_SESSION_BUS_ADDRESS
22 export XKL_XMODMAP_DISABLE=1
23 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
24 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
25 xsetroot -solid darkgreen
28 ############################
30 # the chaos zone. all of these are still being tested.
32 # solid leads are building this chunk.
33 /usr/bin/gnome-panel &
34 /usr/lib/gnome-settings-daemon &
37 /usr/bin/gnome-terminal &
39 # password tools from kde.
44 #gnome-session --session=ubuntu &
45 # valid values for session that we've seen: ubuntu, gnome, unity, 2d-gnome (?)
48 #... some new stuff that hopefully will help out.
49 #/usr/lib/gnome-session/gnome-session-binary –session=ubuntu &
50 #unity-panel-service &
51 #unity-settings-daemon &
53 #seeing if indicator multiload does this:
54 #for indicator in /usr/lib/x86_64-linux-gnu/indicator-*; do
55 # basename=’basename \${indicator}’
56 # dirname=’dirname \${indicator}’
57 # service=\${dirname}/\${basename}/\${basename}-service
64 # are these alternatives also?
74 # this just brings up an initial file exploring window, although at one point i needed to
75 # have nautilus running to see icons on the desktop.
76 ####right now there are no visible icons on the desktop, so is it failing?
79 ############################
81 # experimental additions since still getting lots of weird isssues:
82 #indicator-multiload &
83 #gnome-keyring-daemon &
85 #H: zeitgeist-daemon &
87 ############################
89 # these processes are just nice to have started already.
91 # you know you were going to want them.
93 # password tools from kde.
96 ############################
98 # limbo of useless boneheads and configs in training.
100 # these things just don't seem to work.
102 # this never ever shows up.
103 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
105 #doesn't seem to help.
106 #gnome-terminal-server &
109 #if [ -x /etc/X11/xinit/xinitrc ]; then
110 # exec /etc/X11/xinit/xinitrc
112 #if [ -f /etc/X11/xinit/xinitrc ]; then
113 # exec sh /etc/X11/xinit/xinitrc
117 # one or the other of the window managers here.
118 #hmmm: but mutter doesn't work at all.
123 ############################
125 # ------------------------------
126 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
127 # dungeon of pain and suffering.
128 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
129 # ------------------------------
131 # adding these in just makes things go splatfooey.
133 #trying something wacky; minimalist as heck...
134 #and it doesn't work at all. of course.
138 # compiz causes xterm to no longer be a distinct window, which is how things were
139 # originally before i started fixing them.
141 # maybe needed now though??
143 ############################