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