Sage 5.0 .ova and keyboard layout

494 views
Skip to first unread message

Jori Mantysalo

unread,
Jul 12, 2012, 8:27:17 AM7/12/12
to sage-s...@googlegroups.com
How to change keyboard layout on X? From
http://wiki.sagemath.org/SageAppliance#Changing_the_keyboard_layout I
found only help about changing layout on console. Has someone written
step-by-step guide for X?

(University of Tampere -- Tampere is part of Finland and we have few
letters here with additional dots -- is going to use sage for teaching.

I guess some students want to use .ova file within Windows and VirtualBox.
But if you write f(x) in finnish keyboard, you get f*x( with us layout.
Many students may have never used console, so guide should be very easy to
follow.)


--
Jori Mᅵntysalo

Volker Braun

unread,
Jul 12, 2012, 1:51:06 PM7/12/12
to sage-s...@googlegroups.com
I added some instructions at


If you want to distribute the Finnish keyboard layout version to your students (perhaps with a choice of default worksheets) you just have to make the change once and then  use File->Export appliance in VirtualBox.

Jori Mantysalo

unread,
Jul 17, 2012, 4:03:42 AM7/17/12
to sage-s...@googlegroups.com
On Thu, 12 Jul 2012, Volker Braun wrote:

> I added some instructions at
> http://wiki.sagemath.org/SageAppliance#For_the_graphical_web_browser

Thanks!

> If you want to distribute the Finnish keyboard layout version to your
> students (perhaps with a choice of default worksheets) you just have to
> make the change once and then use File->Export appliance in VirtualBox.

Then I should make this every time when .ova is changed. I try to avoid
this kind of work.

Could there be some kind of copy-and-paste solution or workaround? Say,
have /home/gui/.xinitrc begin with

setxkbmap $(cat /home/sage/keyboard.conf)

so that user could just copy from wiki

f=file('/home/sage/keyboard.conf', 'w'); f.write("fi"); f.close();

and paste it to worksheet? Maybe even have worksheet ready with cells like
that for different languages?

--
Jori Mäntysalo

Graham Gerrard

unread,
Jul 19, 2012, 8:07:44 AM7/19/12
to sage-s...@googlegroups.com
Thanks for the instructions below.  However, I cant get setxkbmap to make a difference in the .xinitrc file.  I am trying to change
keyboard to a UK keyboard in Notebook, but nothing seems to work.  Successfully changed the console to UK by altering /etc/sysconfig/keyboard.  Please advise on appropriate settings for setxkbmap... tried "setxkbmap uk" and variations.  Is there a list of values that I can use?  

Graham

Volker Braun

unread,
Jul 19, 2012, 8:38:29 AM7/19/12
to sage-s...@googlegroups.com
The layout option names and their descriptions are in

/usr/share/X11/xkb/rules/base.lst

For UK English, you should use setxkbmap gb

Volker Braun

unread,
Feb 4, 2013, 12:13:35 PM2/4/13
to sage-s...@googlegroups.com
IIRC I changed it to run the UI with the same user account. Just log in as "sage" with password "sage" and follow the instructions.


On Monday, February 4, 2013 5:46:08 AM UTC, mc.hernandez131 wrote:
Hello!

i'm having the same problem at the moment and i've tried to follow Volker's instructions but i'm not even able to log in as "gui" user. the moment I type the password it displays "login incorrect".

any help will be appreciated

mc.hernandez131
Reply all
Reply to author
Forward
0 new messages