If you want to use MATE as your default desktop you will notice that the installer icon does not show up in the menu or on the desktop. This is due to the way that the ubiquity-gtkui.desktop has been setup by the ubuntu developers. Mate needs to be added to the OnlyShowIn line and the script below will do that for you as well as copy your settings from the original user with the uid of 1000 and then run the remastersys dist. The script needs to be run as root or with sudo. I called mine "prepremaster" and put it in /usr/local/bin/
#!/bin/bash
apt-get install ubiquity-frontend-gtk
sed -i -e 's/OnlyShowIn=/OnlyShowIn=MATE\;/g' /usr/share/applications/ubiquity-gtkui.desktop
user=`cat /etc/passwd | grep ":1000:" | awk -F ":" '{print $1}'`
echo $user
remastersys-skelcopy $user
sleep 1
remastersys clean
sleep 1
remastersys dist
If you don't want it to run the remaster or copy settings then just use the following script before your run remastersys and run it as root or with sudo.
#!/bin/bash
apt-get install ubiquity-frontend-gtk
sed -i -e 's/OnlyShowIn=/OnlyShowIn=MATE\;/g' /usr/share/applications/ubiquity-gtkui.desktop