After executing the following script (I removed all occurrences of tmp, mind you. Or at least I thought I did) and rebooting the system, I'm no longer able to log in through the display manager.
At the beginning, I couldn't even use startx without issuing sudo. This was alleviated by "chmod o+t,ugo+rw /tmp" (which leads me to believe I might have run the wrong (the unmodified) version of the script.
Anyways. After issuing the aforementioned chmod command and rebooting the system, I tried logging in again. While logging in from the terminal functions properly now, LightDM will log in, flash the screen twice and return to the login screen.
Is there anything else I could try?
I ran the script in it's entirety (minus installing the non dev libglw1-mesa)