Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using ubuntu-vm-builder to create disk image on-the-fly. I want to use a script to change user keyboard on first login with --firstlogin argument with the following script :

#!/bin/bash
# Running reconfigure of console-data to change keyboard layout
sudo dpkg-reconfigure console-data
sudo dpkg-reconfigure keyboard-configuration

When I attempt my first login, ubuntu ask me for my root password without displaying ncurses to change keyboard layout and return directly to the bash prompt.

Any idea of how can I have interactive keyboard layout change display ?

Regards, Thibault.

share|improve this question

1 Answer 1

Since you are using sudo, you will need the root password. What's the problem with that?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.