3 # set up gnome desktop environment for remote access via vnc.
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
11 # best leads: https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce
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
18 ############################
20 # reset some variables that could be a problem.
23 unset DBUS_SESSION_BUS_ADDRESS
24 export XKL_XMODMAP_DISABLE=1
26 ############################
28 # load some extra configuration files if they exist.
30 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
31 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
33 ############################
35 # set background to solid color; avoids using bandwidth to transfer pictures.
36 xsetroot -solid darkgreen
37 #this does what again?
40 ############################
42 # solid leads (from the best article above) got us this working
43 # and pretty minimal set of apps to run.
45 /usr/bin/gnome-panel &
46 /usr/lib/gnome-settings-daemon &
49 /usr/bin/gnome-terminal &
51 ############################
53 # ------------------------------
54 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
55 # dungeon of pain and suffering.
56 # "&@}*(@^!$)_-{%:</~`|#=;" !!!!
57 # ------------------------------
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.