#!/bin/bash cp -rT /etc/skel /home/$USER_NAME cp -rT /etc/skel /root chown 1000:1000 /home/$USER_NAME chown -R 1000:1000 /home/$USER_NAME chown 0:0 /root chown -R 0:0 /root # Set setuid bit on xorg binary, so it can be started by guest user chmod u+s /usr/lib/xorg/Xorg # use only white cursors. There were some troubles if the other cursors # was left behind, installing gtk apps reverted the cursor from white to gray, # so we're going to nuke it to leave only Snow cursors active. rm -Rf /usr/share/icons/breeze_cursors >>$OUTPUT 2>&1 mv /usr/share/icons/Breeze_Snow /usr/share/icons/breeze_cursors >>$OUTPUT 2>&1 (cd /rootcopy-install && cp --parents -afr * /) # install x11 server utils, apt-get would add cpp dependency, bullshit! cd /tmp apt-get download x11-xserver-utils >>$OUTPUT 2>&1 ls -la dpkg -x x11-xserver-utils*.deb /tmp/x11utils >>$OUTPUT 2>&1 cd /tmp/x11utils cp -aR * / >>$OUTPUT 2>&1 update-alternatives --set x-terminal-emulator /usr/bin/xterm >>$OUTPUT 2>&1