Ask Your Question

Keyboard layout in Sage appliance

asked 2012-01-18 05:34:20 +0100

Green diod gravatar image

updated 2012-01-21 16:45:54 +0100

Hi all,

I'm currently testing Sagemath on a Windows 7 box via sage appliance (4.7.2). I wanted to try the interactive shell out but it is not usable as my host keyboard layout is fr and the guest fedora box for sage uses en.

A quick search pointed me to the system-config-keyboard command but too bad, it is not shipped with sage appliance 4.7.2. Any other hint ?

Final solution (see below): change layout via sudo nano /etc/sysconfig/keyboard

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2012-01-18 15:24:48 +0100

Volker Braun gravatar image

If you use your host OS browser to connect to the virtual machine then you'll be using your host keyboard settings. This is the preferred method.

To change the keyboard in the textmode console of the guest vm, drop to a shell and use the command

sudo loadkeys azerty

Note that system-config-keyboard is for configuring the keyboard in X, not for text mode.

edit flag offensive delete link more



Thanks for theses infos.

Your hint works but is it possible to change the guest layout since booting up? I mean, I'm still stuck with the wrong layout until I can log in and use the history to load the good layout back.

Green diod gravatar imageGreen diod ( 2012-01-19 13:39:54 +0100 )edit

You can make it permanent by editing /etc/sysconfig/keyboard

Volker Braun gravatar imageVolker Braun ( 2012-01-20 12:49:28 +0100 )edit

That's it, I updated my original question

Green diod gravatar imageGreen diod ( 2012-01-21 15:40:40 +0100 )edit

answered 2013-09-24 17:53:02 +0100

Nicolas M Thiéry gravatar image

Here are some instructions we used last fall during a Sage workshop in a French speaking country; they might be outdated since then ...

Switch to the text console:


Log in:

login: sage
password: sage

Switch to user gui (might not be needed anymore)::

sudo su - gui

Edit the xinitrc file::

nano .xinitrc

Add the following line, just before the last line that starts google-chrome::

setxkbmap fr


edit flag offensive delete link more

answered 2012-08-16 05:35:33 +0100

doromi gravatar image

updated 2012-08-16 05:37:46 +0100


I HAVE edited /etc/sysconfig/keyboard, and it nicely shows


I have restarted everything now (for several times... just to be sure), and on the shell the keyboard layout IS German, but in the Sage appliance it still is US... What else can I do / where else can I change something to get that German keytable working ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-01-18 05:34:20 +0100

Seen: 5,906 times

Last updated: Sep 24 '13