Topic: Post-install KB/Language script

I'm in the US and just installed Statler on another PC of mine. And, I ran into the problem I run into everytime I install #! - the system is setup for European users 'out of the box' and my keyboard does strange things wink

I understand the relatively easy steps required to change this. I'm just wondering if a script could be used to allow users to change this at the end of the installation, rather than having to change files and restart sessions after logging on.

Very minor inconvenience, but I see #! gaining steam as a user distro and I think this would be a welcome addition.

Re: Post-install KB/Language script

i noticed too, the keyboard map doesn't respect what you picked in the installer.
and the default debian mirror is european as well.

for the record, you don't need to restart your session to change the keyboard map, just

sudo setxkbmap us

I'm not sure, but it seems like it might be in the autostart.sh, because i find i have to add that command to my autostart.sh for it to last for more than the current session.

I'm thinking it could be added to the cb-welcome script that pops up on first boot. Would be nice if it also changed the debian mirrors to suit your locale.

just call me...
~FSM~

Re: Post-install KB/Language script

FiniteStateMachine wrote:

Would be nice if it also changed the debian mirrors to suit your locale.

.de mirrors have proved to be fast wherever you are, unlike some other local mirrors...

a.

Re: Post-install KB/Language script

^maybe in general, but here in Japan I found the .jp mirrors quite a bit faster.

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Post-install KB/Language script

I would support this, however my first choice would be for the system to use the option selected during the install process. wink

Adding 'setxkbmap us' to autostart is an easy enough solution, but not necessarily obvious to a new user.

cb-welcome is an awesome new feature! I think the alpha2 version just scratches the surface of what is possible.

Re: Post-install KB/Language script

I guess 'setxkbmap' only changes the keyboard mapping in X sessions? So F1 ~ F6 terminals and Grub will still have the wrong keymap? Maybe that's not such a big issue since people who use those things will know how to set their system keyboard mapping, or at least know how to find out how. smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Post-install KB/Language script

johnraff wrote:

I guess 'setxkbmap' only changes the keyboard mapping in X sessions? So F1 ~ F6 terminals and Grub will still have the wrong keymap? Maybe that's not such a big issue since people who use those things will know how to set their system keyboard mapping, or at least know how to find out how. smile

You're right, I never realized that ! sad
What is the fix for terminals?

Re: Post-install KB/Language script

Maybe "dpkg-reconfigure console-setup"?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Post-install KB/Language script

Or edit the keyboard section in /etc/default/console-setup? (same thing?)

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Post-install KB/Language script

anonymous wrote:

Maybe "dpkg-reconfigure console-setup"?

nope....

Not a big deal for me (I'm always in X), just curious. smile

Re: Post-install KB/Language script

On 9.04 my keyboard is set in /etc/default/console-setup but on Statler it's in /etc/default/keyboard.
Either way my Japanese keyboard works OK on the Alt+F1~6 consoles.

The command to set it up on Statler turned out to be

sudo dpkg-reconfigure keyboard-configuration

This also lets you set Ctrl+Alt+BackSpace to zap the Xserver if you want.

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Post-install KB/Language script

johnraff wrote:

This also lets you set Ctrl+Alt+BackSpace to zap the Xserver if you want.

I ran it for just that reason lol

just call me...
~FSM~

Re: Post-install KB/Language script

@johnraff - so that command change the keyboard setting for both X and the virtual terminal?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Post-install KB/Language script

^It sets the default system layout, which you can then further change under X with setxkbmap or xorg.conf if you want. I think the X settings overrule the system default while running X. If you don't want to switch between different layouts then setting the system default should be enough.

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo