1eb6fd4cd51ccd005e61bda00c4ae5f71af8c262
[feisty_meow.git] / experiments / vnc / dot.vnc / xstartup.009
1 #!/bin/sh
2
3 # set up gnome desktop environment for remote access via vnc.
4
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
8
9 # references:
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
15
16 ############################
17
18 # boilerplate that people seem to mostly agree on.
19
20 unset SESSION_MANAGER
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
26 vncconfig -iconic &
27
28 ############################
29
30 # the chaos zone.  all of these are still being tested.
31
32 # solid leads are building this chunk.
33 /usr/bin/gnome-panel &
34 /usr/lib/gnome-settings-daemon &
35 /usr/bin/metacity &
36 /usr/bin/nautilus &
37 /usr/bin/gnome-terminal &
38
39 # password tools from kde.
40 kwalletd &
41
42
43 #######
44 #gnome-session --session=ubuntu &
45 # valid values for session that we've seen: ubuntu, gnome, unity, 2d-gnome (?)
46 #######
47
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 &
52
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 
58 #  \${service} &
59 #done
60 #unity
61
62
63 #######
64 # are these alternatives also?
65 #x-session-manager &
66 #x-window-manager &
67 #######
68
69
70 # do we need this?
71 #gnome-shell &
72
73
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?
77 #nautilus &
78
79 ############################
80
81 # experimental additions since still getting lots of weird isssues:
82 #indicator-multiload &
83 #gnome-keyring-daemon &
84 #H: ibus-daemon &
85 #H: zeitgeist-daemon &
86
87 ############################
88
89 # these processes are just nice to have started already.
90 #
91 # you know you were going to want them.
92
93 # password tools from kde.
94 #kwalletd &
95
96 ############################
97
98 # limbo of useless boneheads and configs in training.
99 #
100 # these things just don't seem to work.
101
102 # this never ever shows up.
103 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
104
105 #doesn't seem to help.
106 #gnome-terminal-server &
107
108 #not helping
109 #if [ -x /etc/X11/xinit/xinitrc ]; then
110 #  exec /etc/X11/xinit/xinitrc
111 #fi
112 #if [ -f /etc/X11/xinit/xinitrc ]; then
113 #  exec sh /etc/X11/xinit/xinitrc
114 #fi
115
116 #######
117 # one or the other of the window managers here.
118 #hmmm: but mutter doesn't work at all.
119 #H: metacity &
120 #mutter --replace &
121 #######
122
123 ############################
124
125 # ------------------------------
126 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
127 # dungeon of pain and suffering.
128 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
129 # ------------------------------
130 #
131 # adding these in just makes things go splatfooey.
132
133 #trying something wacky; minimalist as heck...
134 #and it doesn't work at all.  of course.
135 #startx&
136 #exit 0
137
138 # compiz causes xterm to no longer be a distinct window, which is how things were
139 # originally before i started fixing them.
140 #compiz &
141 # maybe needed now though??
142
143 ############################
144