To switch keyboard layout under Ubuntu, go to:
- Go to System > Preferences > Keyboard > Layout
- Click on "Add +" and select your keyboard layout by country or by language.
- A virtual keyboard will be displayed. If it fit your your preferences simply click on the Add button to select it.