permission mods
[feisty_meow.git] / experiments / vnc / dot.vnc / xstartup.004
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 agree on.
16
17 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
18 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
19
20 xsetroot -solid darkgreen
21 vncconfig -iconic &
22
23 ############################
24
25 # the chaos zone.  all of these are still being tested.
26
27 #######
28 gnome-session --session=gnome &
29 #valid values for session that we've seen:
30 # ubuntu
31 # gnome
32 # 2d-gnome (?)
33 # unity
34 #######
35
36 #######
37 # are these alternatives also?
38 #x-session-manager &
39 #x-window-manager &
40 #######
41
42 gnome-terminal-server &
43
44 # we don't see this running at home, but it sure seems needed on vmbuilder.
45 gnome-panel &
46
47 # no longer exists?
48 #gnome-settings-daemon &
49
50 # do we need this?
51 #gnome-shell &
52
53 #######
54 # one or the other of the window managers here.
55 #hmmm: but mutter doesn't work at all.
56 metacity &
57 #mutter --replace &
58 #######
59
60 # this just brings up an initial file exploring window, although at one point i needed to
61 # have nautilus running to see icons on the desktop.
62 ####right now there are no visible icons on the desktop, so is it failing?
63 nautilus &
64
65 ############################
66
67 # experimental additions since still getting lots of weird isssues:
68 indicator-multiload &
69 gnome-keyring-daemon &
70 ibus-daemon &
71 zeitgeist-daemon &
72
73 ############################
74
75 # these processes are just nice to have started already.
76 #
77 # you know you were going to want them.
78
79 # password tools from kde.
80 kwalletd &
81
82 ############################
83
84 # limbo of useless boneheads.
85 #
86 # these things just don't seem to work.
87
88 # this never ever shows up.
89 #x-terminal-emulator -geometry 100x32 -ls -title "$VNCDESKTOP Desktop" &
90
91 ############################
92
93 # ------------------------------
94 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
95 # dungeon of pain and suffering.
96 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
97 # ------------------------------
98 #
99 # adding these in just makes things go splatfooey.
100
101 # compiz causes xterm to no longer be a distinct window, which is how things were
102 # originally before i started fixing them.
103 #compiz &
104
105 ############################
106