cp /etc/fstab /etc/fstab.bak dd if=/dev/zero of=/swapfile bs=1G count=4 echo 'md99 none swap sw,file=/swapfile 0 0' >> /etc/fstab swapon -a echo 'tmpfs /tmp tmpfs rw,mode=01777 0 0' >> /etc/fstab rm -fR /var/tmp ln -s /tmp /var/tmp rm -fR /tmp/* mount /tmp mount reboot