7e5fc79b05688b261977d5b55e5863a2d08c2ecd
[feisty_meow.git] / experiments / vnc / dot.vnc / xstartup.012
1 #!/bin/sh
2
3 # set up gnome desktop environment for remote access via vnc.
4
5 # NOTE: it is important to be running the vncserver as a user who is NOT
6 #        already running x windowing system.  otherwise, weird and possibly
7 #        bad things can happen, e.g. your apps show up on display zero
8 #        rather than on the vnc desktop.
9
10 # this script depends on the gnome desktop.  to install the minimal
11 # parts of gnome needed (as far as i know), run this command:
12 #
13 #   sudo apt-get install gnome-panel gnome-settings-daemon gnome-terminal kwalletmanager metacity nautilus
14
15 # references:
16 #
17 #   best leads: https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce
18 #
19 #   https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
20 #   https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc
21 #   https://ubuntuforums.org/showthread.php?t=1903220
22 #   https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts
23
24 ############################
25
26 # reset some variables that could be a problem.
27
28 unset SESSION_MANAGER
29 unset DBUS_SESSION_BUS_ADDRESS
30 export XKL_XMODMAP_DISABLE=1
31
32 ############################
33
34 # load some extra configuration files if they exist.
35
36 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
37 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
38
39 ############################
40
41 # set background to solid color; avoids using bandwidth to transfer pictures.
42 xsetroot -solid darkgreen
43 #this does what again?
44 vncconfig -iconic &
45
46 ############################
47
48 # solid leads from the "best" article above gave us the workable, minimal set
49 # of x window apps below.
50 /usr/bin/gnome-panel &
51 /usr/lib/gnome-settings-daemon &
52 /usr/bin/metacity &
53 /usr/bin/nautilus &
54 /usr/bin/gnome-terminal &
55
56 ############################
57
58 # ------------------------------
59 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
60 # dungeon of pain and suffering.
61 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
62 # ------------------------------
63
64 # all content has been deleted from the config dungeon.  the damaged configs
65 # have been set free to roam in their natural environment of the internet.
66