If you have an Intel Chipset 8x - 945 series you will have some trouble setting your resolution in Ubuntu.Theres is a tool, made by Steve Tomljenovic, called 915Resolution that will fix this problem. However you will have to run this tool every time you restart or logoff from Ubuntu because these changes are only temporary. To avoid this you need to create a startup script that will run before the X server starts. So I have written a small script that will automate this process for you that I called auto915resolution.The script will automatically install 915resolution and will create the startup script for you.Below is a sample run of the script that will serve as a guide on how to use it and will give you an idea of how it works.