Bad interpreter: Permission denied

If you get this error while trying to run shell scripts, make sure the script is marked as executable, for example with the chmod command or through the UI of your FTP software.

If you are getting this error message while using Midnight Commander to compress/uncompress files, it's because Dreamhost has the /tmp partition set to noexec. This causes Midnight Commander to not be able to execute external programs.

You can circumvent the problem by letting Midnight Commander use a tmp dir off your home directory.

Create a tmp directory in ~/.mc mkdir ~/.mc/tmp

Add the following line to .bash_profile: -f ~/.bashrc &&. ~/.bashrc

At last, add this to .bashrc alias mc="/usr/bin/env TMPDIR=~/.mc/tmp mc"

Then just logout and login again, and it should work.