I use a Turkish keyboard which I have converted to English (Ubuntu server 12.04). My problem is that the single quote is not present on the keyboard but is instead represent by a comma in midair. To fix this I use the command
sudo dpkg-reconfigure keyboard-configuration
The problem is each time I shutdown, changes are reverted thus every time I start the system, I have to type that command. I was thinking of making it a cronjob but I`m sure there can be another way to make the changes permanent.