d8544fc2d4e1502331962a998e2c0101cb27b45a
[feisty_meow.git] / experiments / home-.vnc / xstartup.006
1 #!/bin/sh
2
3 # set up gnome desktop environment for remote access via vnc.
4
5 # this script depends on the gnome desktop.
6
7 # references:
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
12
13 ############################
14
15 # boilerplate that people seem to mostly agree on.
16
17 unset SESSION_MANAGER
18 unset DBUS_SESSION_BUS_ADDRESS
19 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
20 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
21 xsetroot -solid darkgreen
22 vncconfig -iconic &
23
24 ############################
25
26 # the chaos zone.  all of these are still being tested.
27
28 #not helping
29 #if [ -x /etc/X11/xinit/xinitrc ]; then
30 #  exec /etc/X11/xinit/xinitrc
31 #fi
32 #if [ -f /etc/X11/xinit/xinitrc ]; then
33 #  exec sh /etc/X11/xinit/xinitrc
34 #fi
35
36
37
38 # items marked with #H: below were on until recently.
39
40 #######
41 gnome-session --session=ubuntu &
42 #valid values for session that we've seen:
43 # ubuntu
44 # gnome
45 # 2d-gnome (?)
46 # unity
47 #######
48
49
50 #... some new stuff that hopefully will help out.
51 #/usr/lib/gnome-session/gnome-session-binary –session=ubuntu &
52 unity-panel-service &
53 unity-settings-daemon &
54
55 #seeing if indicator multiload does this:
56 #for indicator in /usr/lib/x86_64-linux-gnu/indicator-*; do
57 #  basename=’basename \${indicator}’ 
58 #  dirname=’dirname \${indicator}’ 
59 #  service=\${dirname}/\${basename}/\${basename}-service 
60 #  \${service} &
61 #done
62 #unity
63
64
65 #######
66 # are these alternatives also?
67 #x-session-manager &
68 #x-window-manager &
69 #######
70
71 #H: gnome-terminal-server &
72
73 # we don't see this running at home, but it sure seems needed on vmbuilder.
74 #H: gnome-panel &
75
76 # do we need this?
77 #gnome-shell &
78
79 #######
80 # one or the other of the window managers here.
81 #hmmm: but mutter doesn't work at all.
82 #H: metacity &
83 #mutter --replace &
84 #######
85
86 # this just brings up an initial file exploring window, although at one point i needed to
87 # have nautilus running to see icons on the desktop.
88 ####right now there are no visible icons on the desktop, so is it failing?
89 nautilus &
90
91 ############################
92
93 # experimental additions since still getting lots of weird isssues:
94 indicator-multiload &
95 gnome-keyring-daemon &
96 #H: ibus-daemon &
97 #H: zeitgeist-daemon &
98
99 ############################
100
101 # these processes are just nice to have started already.
102 #
103 # you know you were going to want them.
104
105 # password tools from kde.
106 kwalletd &
107
108 ############################
109
110 # limbo of useless boneheads.
111 #
112 # these things just don't seem to work.
113
114 # this never ever shows up.
115 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
116
117 # no longer exists?
118 #gnome-settings-daemon &
119
120 ############################
121
122 # ------------------------------
123 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
124 # dungeon of pain and suffering.
125 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
126 # ------------------------------
127 #
128 # adding these in just makes things go splatfooey.
129
130 # compiz causes xterm to no longer be a distinct window, which is how things were
131 # originally before i started fixing them.
132 #compiz &
133 # maybe needed now though??
134
135 ############################
136