Remastersys and AVLinux Forum
May 23, 2013, 03:57:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remastersys depends on user donations to survive.  Please help keep Remastersys going.

http://www.remastersys.com
 
   Home   Remastersys Home Remastersys downloads Donate Login Register AV LINUX Home Help Search  
Pages: [1]
  Print  
Author Topic: [SOLVED] Change Keyboard?  (Read 1919 times)
0 Members and 1 Guest are viewing this topic.
sonik
Jr. Member
**
Offline Offline

Posts: 15


« on: December 09, 2009, 11:41:59 AM »

Hello,
at first congratulations for this distrib, it is working fantastic out of the box.
Just a small question:
As i am normally with gnome i couldnt find a way to change the keyboardsetting to a french keyboard in lxde.
Anyone has an idea???
« Last Edit: December 15, 2009, 06:42:52 AM by sonik » Logged
GMaq
Administrator
Hero Member
*****
Offline Offline

Posts: 2162


A/V 'Nixer


WWW
« Reply #1 on: December 09, 2009, 01:58:28 PM »

**POST EDITED AND REMOVED TO AVOID CONFUSION**

Reason: Solution info did not work, see posts below on this subject,

Thanks -GMaq

« Last Edit: December 11, 2009, 11:38:17 PM by GMaq » Logged

AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html
sonik
Jr. Member
**
Offline Offline

Posts: 15


« Reply #2 on: December 10, 2009, 04:15:33 AM »

Thanks a lot for your answer, i will try this.
But before i will give a try the 3.0 which i downloaded last night.
I cant wait to see it working, AVLinux is by far the best Audio-Video-Distrib on the
planet. (I remember all the time i lost with Ubuntu-Studio...)
Thanks again for this fantastic piece of work.
Logged
sonik
Jr. Member
**
Offline Offline

Posts: 15


« Reply #3 on: December 11, 2009, 07:07:50 AM »

So, I got 3.0 running smooth install, no hassle, but.....
I am still stucked with my french keyboard.
setxkbmap fr in a terminal works, but i dont have
10-keymap.fdi  in the 10osvendor folder, i only have
debian-x11-keymap.fdi instead.
Thats what is inside:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
    <device>
   <match key="info.capabilities" contains="input.keys">
       <append key="info.callouts.add" type="strlist">debian-setup-keyboard</append>
   </match>
    </device>
</deviceinfo>


I cant find the ~/.xinitrc file neither to make it permanent.

Any ideas???
Logged
GMaq
Administrator
Hero Member
*****
Offline Offline

Posts: 2162


A/V 'Nixer


WWW
« Reply #4 on: December 11, 2009, 10:15:42 PM »

sonik,

OK so apparently the Arch Linux wiki doesn't have the answer for Debian...oops.

I am having trouble finding info on this issue specific to Debian but I found this which may be worth a try:

Go to /etc/default/ and open the file 'console-setup' as root with gedit, if you scroll down to line 86 you will see 4 lines like this:

XKBMODEL="pc104"
XKBLAYOUT="us"
XKBVARIANT=" "
XKBOPTIONS=" "

Change the second line from XKBLAYOUT="us" from "us" to whatever the letter code is for French Keyboard and then you will need to restart HAL with this command as root:
 
Code:
/etc/init.d/hal restart

Or reboot and see if it works.

Please post back to let others know if this works or not.
« Last Edit: December 11, 2009, 11:49:15 PM by GMaq » Logged

AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html
sonik
Jr. Member
**
Offline Offline

Posts: 15


« Reply #5 on: December 14, 2009, 09:40:46 AM »

So, i found the lines but they are commented, so they dont have an effect.
i paste my console setup:

# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT="no"

# Setup these consoles.  Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"

# Put here your encoding.  Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"

# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese.  Read README.fonts for explanation.
CODESET="Lat15"

# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16) and Fixed (sizes 13, 14, 15, 16 and 18).  Only when
# CODESET=Ethiopian: Goha (sizes 12, 14 and 16) and
# GohaClassic (sizes 12, 14 and 16).
# Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# set up the keyboard but to leave the console font unchanged.
FONTFACE="Fixed"
FONTSIZE="16"

# You can also directly specify nonstandard font or console map to load.
# Use space as separator if you want to load more than one font.
# You can use FONT_MAP in order to specify the Unicode map of the font
# in case the font doesn't have it embedded.

# FONT='lat9w-08.psf.gz /usr/local/share/braillefonts/brl-08.psf'
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm


if [ -f /etc/default/keyboard ]; then
    . /etc/default/keyboard
fi
######################################################################
# You can remove the lines that follow.  They contain the contents of
# this file before version 1.47 of console-setup.
######################################################################
# # Change to "yes" and setupcon will explain what is being doing
# VERBOSE_OUTPUT=no
#
# # Setup these consoles.  Most people do not need to change this.
# ACTIVE_CONSOLES="/dev/tty[1-6]"
#
# # Put here your encoding.  Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# # CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# # ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# # ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# # ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
# CHARMAP="UTF-8"
#
# # The codeset determines which symbols are supported by the font.
# # Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# # Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# # Vietnamese.  Read README.fonts for explanation.
# CODESET="Lat15"
#
# # Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# # 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# # 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# # and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and
# # 16), GohaClassic (sizes 12, 14 and 16).
# # Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# # set up the keyboard but to leave the console font unchanged.
# FONTFACE="Fixed"
# FONTSIZE="16"
#
# # You can also directly specify nonstandard font and ACM to load.
# # Use space as separator if you want to load more than one font.
# # FONT='lat9w-08.psf.gz /usr/local/share/braillefonts/brl-08.psf'
# # ACM=/usr/local/share/consoletrans/my_special_encoding.acm
#
#
# # The following variables describe your keyboard and can have the same
# # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# # in /etc/X11/xorg.conf.
# XKBMODEL="pc104"
# XKBLAYOUT="fr"
# XKBVARIANT=""
# XKBOPTIONS=""
#
# # If you change the values of these XKB... variables and HAL and X are
# # configured to use this file, then the changes will become visible to
# # X only if HAL is restarted.  In Debian you need to run
# # /etc/init.d/hal restart



The lines XKB..... dont seem to be important any more?
I uncommented # XKBLAYOUT="fr" but no success.
Strange, it's not like it should be.
I tried to find some other infos, but again no success.
I still can work by typing "setxkbmap fr" in a terminal and i arranged
my password that it works for english and french keyboardversion, so
there is no panic but......
Logged
GMaq
Administrator
Hero Member
*****
Offline Offline

Posts: 2162


A/V 'Nixer


WWW
« Reply #6 on: December 14, 2009, 10:31:29 PM »

sonik,

Hmmm, this is more difficult than I imagined, Xorg 7.4 is pretty new to me as well so I haven't figured it all out yet.

Maybe we can try this another way, when you do the command in the terminal 'setxkbmap fr' is that in a root terminal or a regular terminal?

If it is not as root we can try putting a .desktop file in your user's home .config/autostart folder. To do this go to the Extra Goodies folder in your users home folder and open the Compiz Autostart folder. In the folder you will see a file called 'Desktop Effects' (not the text file). Right click on the 'Desktop Effects' file and open it with gedit and it should display as a file called 'desktopeffects.desktop'.

Using gedit change the "Comment" line to 'Change Keyboard Settings' (don't use quotation marks), change the "Exec" line to 'setxkbmap fr' and change the "Name" line to 'Keyboard Settings' and the click SAVE AS in gedit and name the file 'keyboard.desktop' (without quotations).

Now you should have a new file in the Compiz Autostart folder that shows up as 'Keyboard Settings'. Take that file and copy it to /home/YOURUSERNAME/.config/autostart and make sure it is executable by your user. If you can't find the .config folder click on View in the PCManFM menu and tick off "Show hidden files" and it should show up.

Reboot and the next time you login it should automatically set the keyboard for you when the desktop starts up.

No guarantees...worth a try I guess

Logged

AV Linux, Proudly created with Remastersys: http://www.bandshed.net/AVLinux.html
sonik
Jr. Member
**
Offline Offline

Posts: 15


« Reply #7 on: December 15, 2009, 06:41:25 AM »

Okay, this time its working, you're the best!
Thanks so much.
Logged
mumpf
Newbie
*
Offline Offline

Posts: 2


« Reply #8 on: December 17, 2009, 12:21:47 PM »

as root I did these commands (swiss-german keyboard):

dpkg-reconfigure locales
de_CH.ISO-8859-1
de_CH.UTF-8 (I selected this one)

(removed the us-locale, don't know whether or not this is a good thing)
locale-gen
dpkg-reconfigure console-data

didn't help



setxkbmap ch made it (finally), don't know whether or not the other commands are necessary
Logged
sonik
Jr. Member
**
Offline Offline

Posts: 15


« Reply #9 on: December 18, 2009, 09:36:28 AM »

Yeah, that works but you have to do it everytime you start your system.
On top of that i had the problem that i couldnt type anymore my password unless to rechange the keyboard
in us. The solution permanent with the autostart-file is described by gmaq before.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!