8dc54aaed941358eaefc6c30655df8e55f4e0bf6
[feisty_meow.git] / experiments / vnc / dot.vnc / xstartup.011
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 gnome-terminal kwalletmanager metacity nautilus
8
9 # references:
10 #
11 #   best leads: https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce
12 #
13 #   https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
14 #   https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc
15 #   https://ubuntuforums.org/showthread.php?t=1903220
16 #   https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts
17
18 ############################
19
20 # reset some variables that could be a problem.
21
22 unset SESSION_MANAGER
23 unset DBUS_SESSION_BUS_ADDRESS
24 export XKL_XMODMAP_DISABLE=1
25
26 ############################
27
28 # load some extra configuration files if they exist.
29
30 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
31 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
32
33 ############################
34
35 # set background to solid color; avoids using bandwidth to transfer pictures.
36 xsetroot -solid darkgreen
37 #this does what again?
38 vncconfig -iconic &
39
40 ############################
41
42 # solid leads (from the best article above) got us this working
43 # and pretty minimal set of apps to run.
44
45 /usr/bin/gnome-panel &
46 /usr/lib/gnome-settings-daemon &
47 /usr/bin/metacity &
48 /usr/bin/nautilus &
49 /usr/bin/gnome-terminal &
50
51 ############################
52
53 # ------------------------------
54 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
55 # dungeon of pain and suffering.
56 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
57 # ------------------------------
58
59 # all content has been deleted from the config dungeon.  the damaged configs
60 # have been set free to roam in their natural environment of the internet.
61