# This will fetch all needed packages
sudo apt-get -y install openssh-server vnc-common tightvncserver >> ~/log
# This will ensure font compatibility in vnc (There are more elegant ways of doing this, but it works)
echo '$fontPath "unix/:7100" # local font server' >> /etc/vnc.conf
echo '# if the local font server has problems, we can fall back on these' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/misc,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/cyrillic,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/100dpi/:unscaled,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/75dpi/:unscaled,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/Type1,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/CID,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/100dpi,";' >> /etc/vnc.conf
echo '$fontPath .= "/usr/share/X11/fonts/75dpi,";' >> /etc/vnc.conf
echo '# paths to defoma fonts' >> /etc/vnc.conf
echo '$fontPath .= "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,";' >> /etc/vnc.conf
echo '$fontPath .= "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID";' >> /etc/vnc.conf