X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=experiments%2Fvnc%2Fdot.vnc%2Fxstartup.010;fp=experiments%2Fvnc%2Fdot.vnc%2Fxstartup.010;h=6330427c2d396e1f96c12d569ef30a3c03059998;hb=52fa1f567127cd47e446c68deb29a6d6fe20ce82;hp=0000000000000000000000000000000000000000;hpb=e1127a793a9bfe64df1b3a5209c86bb66505fe28;p=feisty_meow.git diff --git a/experiments/vnc/dot.vnc/xstartup.010 b/experiments/vnc/dot.vnc/xstartup.010 new file mode 100755 index 00000000..6330427c --- /dev/null +++ b/experiments/vnc/dot.vnc/xstartup.010 @@ -0,0 +1,66 @@ +#!/bin/sh + +# set up gnome desktop environment for remote access via vnc. + +# this script depends on the gnome desktop. to install the minimal +# parts of gnome needed (as far as i know), run this command: +# sudo apt-get install gnome-panel gnome-settings-daemon gnome-terminal kwalletmanager metacity nautilus + +# references: +# +# best leads: https://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce +# +# https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12 +# https://www.digitalocean.com/community/questions/how-to-install-ubuntu-desktop-and-vnc +# https://ubuntuforums.org/showthread.php?t=1903220 +# https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts + +############################ + +# reset some variables that could be a problem. + +unset SESSION_MANAGER +unset DBUS_SESSION_BUS_ADDRESS +export XKL_XMODMAP_DISABLE=1 + +############################ + +# load some extra configuration files if they exist. + +[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup +[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources + +############################ + +# set background to solid color; avoids using bandwidth to transfer pictures. +xsetroot -solid darkgreen +#this does what again? +vncconfig -iconic & + +############################ + +# solid leads (from the best article above) got us this working +# and pretty minimal set of apps to run. + +/usr/bin/gnome-panel & +/usr/lib/gnome-settings-daemon & +/usr/bin/metacity & +/usr/bin/nautilus & +/usr/bin/gnome-terminal & + +############################ + +# password tools from kde. +kwalletd & + +############################ + +# ------------------------------ +# "&@}*(@^!$)_-{%: